浏览代码

:rotating_light:

Vanessa 10 月之前
父节点
当前提交
06ce692180
共有 2 个文件被更改,包括 3 次插入3 次删除
  1. 2 2
      app/src/protyle/render/av/blockAttr.ts
  2. 1 1
      app/src/protyle/wysiwyg/transaction.ts

+ 2 - 2
app/src/protyle/render/av/blockAttr.ts

@@ -289,8 +289,8 @@ class="fn__flex-1 fn__flex${["url", "text", "number", "email", "phone", "block"]
                     } else {
                         const textPlain = event.clipboardData.getData("text/plain");
                         const target = event.target as HTMLElement;
-                        const blockElement = hasClosestBlock(target)
-                        const cellsElement = hasClosestByAttribute(target, "data-type", "mAsset")
+                        const blockElement = hasClosestBlock(target);
+                        const cellsElement = hasClosestByAttribute(target, "data-type", "mAsset");
                         if (blockElement && cellsElement && textPlain) {
                             updateCellsValue(protyle, blockElement as HTMLElement, textPlain, [cellsElement], undefined, protyle.lute.Md2BlockDOM(textPlain));
                             document.querySelector(".av__panel")?.remove();

+ 1 - 1
app/src/protyle/wysiwyg/transaction.ts

@@ -5,7 +5,7 @@ import {Constants} from "../../constants";
 import {blockRender} from "../render/blockRender";
 import {processRender} from "../util/processCode";
 import {highlightRender} from "../render/highlightRender";
-import {hasClosestBlock, hasClosestByAttribute, isInEmbedBlock} from "../util/hasClosest";
+import {hasClosestByAttribute, isInEmbedBlock} from "../util/hasClosest";
 import {setFold, zoomOut} from "../../menus/protyle";
 import {disabledProtyle, enableProtyle, onGet} from "../util/onGet";
 /// #if !MOBILE