mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-01-17 06:05:29 +01:00
🚨
This commit is contained in:
parent
dce6444b97
commit
820a51e5c2
4 changed files with 11 additions and 13 deletions
|
|
@ -34,7 +34,7 @@ export const insertHTML = (html: string, protyle: IProtyle, isBlock = false,
|
|||
let id = blockElement.getAttribute("data-node-id");
|
||||
range.insertNode(document.createElement("wbr"));
|
||||
let oldHTML = blockElement.outerHTML;
|
||||
const isNodeCodeBlock = blockElement.getAttribute("data-type") === "NodeCodeBlock"
|
||||
const isNodeCodeBlock = blockElement.getAttribute("data-type") === "NodeCodeBlock";
|
||||
if (!isBlock &&
|
||||
(isNodeCodeBlock || protyle.toolbar.getCurrentType(range).includes("code"))) {
|
||||
range.deleteContents();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue