diff --git a/app/src/protyle/render/av/blockAttr.ts b/app/src/protyle/render/av/blockAttr.ts index ca9ac36af..39b133b6f 100644 --- a/app/src/protyle/render/av/blockAttr.ts +++ b/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(); diff --git a/app/src/protyle/wysiwyg/transaction.ts b/app/src/protyle/wysiwyg/transaction.ts index 3a4665b9d..a31ea1473 100644 --- a/app/src/protyle/wysiwyg/transaction.ts +++ b/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