7.17
This commit is contained in:
@@ -117,7 +117,6 @@ function addImage(imgs, options = {}) {
|
||||
if (!upRes || upRes.length == 0)
|
||||
return;
|
||||
noKeyboardEffect(() => {
|
||||
editorCtx.insertText({ text: "\n" });
|
||||
upRes == null ? void 0 : upRes.forEach((item) => {
|
||||
common_vendor.index.__f__("log", "at uni_modules/sv-editor/components/common/utils.js:51", "item");
|
||||
common_vendor.index.__f__("log", "at uni_modules/sv-editor/components/common/utils.js:52", item);
|
||||
@@ -126,7 +125,6 @@ function addImage(imgs, options = {}) {
|
||||
src: options.srcFiled ? item[options.srcFiled] : item
|
||||
});
|
||||
});
|
||||
editorCtx.insertText({ text: "\n" });
|
||||
});
|
||||
return upRes;
|
||||
}
|
||||
@@ -140,7 +138,6 @@ async function addVideo(uploadFunc, options = {}) {
|
||||
if (!upRes || !(upRes == null ? void 0 : upRes.length))
|
||||
return;
|
||||
noKeyboardEffect(() => {
|
||||
editorCtx.insertText({ text: "\n" });
|
||||
upRes == null ? void 0 : upRes.forEach((item) => {
|
||||
editorCtx.insertImage({
|
||||
...options,
|
||||
@@ -149,7 +146,6 @@ async function addVideo(uploadFunc, options = {}) {
|
||||
data: { url: item.videoUrl }
|
||||
});
|
||||
});
|
||||
editorCtx.insertText({ text: "\n" });
|
||||
});
|
||||
return upRes;
|
||||
}
|
||||
|
||||
+1
@@ -141,6 +141,7 @@ const _sfc_main = {
|
||||
html: transHtml,
|
||||
success: () => {
|
||||
this.editorCtx.changeInput();
|
||||
this.editorCtx.blur();
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user