mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-21 09:00:12 +01:00
🎨 Improve Paste and Paste as plain text Fix https://github.com/siyuan-note/siyuan/issues/8289
This commit is contained in:
parent
dd6bfbe4ba
commit
aef5130436
7 changed files with 14 additions and 9 deletions
|
|
@ -50,9 +50,9 @@ export const pasteAsPlainText = async (protyle: IProtyle) => {
|
|||
}
|
||||
/// #endif
|
||||
if (localFiles.length === 0) {
|
||||
// https://github.com/siyuan-note/siyuan/issues/8010
|
||||
// Inline-level elements support pasted as plain text https://github.com/siyuan-note/siyuan/issues/8010
|
||||
navigator.clipboard.readText().then(textPlain => {
|
||||
insertHTML(protyle.lute.BlockDOM2Content(protyle.lute.Md2BlockDOM(textPlain)), protyle);
|
||||
insertHTML(protyle.lute.BlockDOM2EscapeMarkerContent(protyle.lute.Md2BlockDOM(textPlain)), protyle);
|
||||
});
|
||||
}
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue