This commit is contained in:
Vanessa 2022-09-19 15:33:30 +08:00
parent 74a9ef4b51
commit 1fedca6929
4 changed files with 18 additions and 21 deletions

View file

@ -57,7 +57,7 @@ export const pasteAsPlainText = async (protyle:IProtyle) => {
insertHTML(protyle.lute.BlockDOM2Content(protyle.lute.InlineMd2BlockDOM(clipboard.readText())), protyle, false, false);
}
/// #endif
}
};
export const pasteText = (protyle: IProtyle, textPlain: string, nodeElement: Element) => {
const range = getEditorRange(protyle.wysiwyg.element);