mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-01-27 18:56:09 +01:00
This commit is contained in:
parent
83b39b89e9
commit
12f74cba9c
5 changed files with 5 additions and 5 deletions
|
|
@ -244,7 +244,7 @@ export const insertHTML = (html: string, protyle: IProtyle, isBlock = false,
|
|||
range.collapse(false);
|
||||
range.insertNode(document.createElement("wbr"));
|
||||
if (isNodeCodeBlock) {
|
||||
getContenteditableElement(blockElement).removeAttribute("data-render");
|
||||
blockElement.querySelector('[data-render="true"]')?.removeAttribute("data-render");
|
||||
highlightRender(blockElement);
|
||||
} else {
|
||||
focusByWbr(blockElement, range);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue