diff --git a/app/src/protyle/util/paste.ts b/app/src/protyle/util/paste.ts index a7c95ec74..aee087ee5 100644 --- a/app/src/protyle/util/paste.ts +++ b/app/src/protyle/util/paste.ts @@ -411,7 +411,7 @@ export const paste = async (protyle: IProtyle, event: (ClipboardEvent | DragEven e.removeAttribute(Constants.CUSTOM_RIFF_DECKS); e.classList.remove("protyle-wysiwyg--select", "protyle-wysiwyg--hl"); e.setAttribute("updated", newId.split("-")[0]); - e.querySelector(".protyle-attr--refcount")?.remove(); + e.removeAttribute("refcount"); isBlock = true; }); if (nodeElement.classList.contains("table")) {