Liyuan Li 5 years ago
parent
commit
febb24e2f7
2 changed files with 2 additions and 1 deletions
  1. 1 0
      CHANGELOG.md
  2. 1 1
      src/ts/util/fixBrowserBehavior.ts

+ 1 - 0
CHANGELOG.md

@@ -68,6 +68,7 @@
 
 ### v3.3.11 / 2020-07-xx
 
+* [611](https://github.com/Vanessa219/vditor/issues/611) SV 模式粘贴图片拉取上传问题 `修复缺陷`
 * [616](https://github.com/Vanessa219/vditor/pull/616) fix: safari下选中文字添加标题文字会消失 `修复缺陷`
 * [615](https://github.com/Vanessa219/vditor/issues/615) 即时渲染模式下在safari中光标位置跳动 `修复缺陷`
 

+ 1 - 1
src/ts/util/fixBrowserBehavior.ts

@@ -1215,7 +1215,7 @@ export const paste = (vditor: IVditor, event: ClipboardEvent & { target: HTMLEle
                         }
                         const original = responseJSON.data.originalURL;
                         if (vditor.currentMode === "sv") {
-                            vditor.sv.element.querySelectorAll('[data-type="image"] .vditor-sv__marker--link')
+                            vditor.sv.element.querySelectorAll(".vditor-sv__marker--link")
                                 .forEach((item: HTMLElement) => {
                                     if (item.textContent === original) {
                                         item.textContent = responseJSON.data.url;