This commit is contained in:
zoujiandong
2025-07-17 17:15:28 +08:00
parent dc39275e6e
commit 75d515fbc6
92 changed files with 1718 additions and 945 deletions
@@ -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;
}
@@ -141,6 +141,7 @@ const _sfc_main = {
html: transHtml,
success: () => {
this.editorCtx.changeInput();
this.editorCtx.blur();
}
});
});