mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-01-31 04:35:16 +01:00
This commit is contained in:
parent
3a334d3402
commit
b840e452fb
1 changed files with 1 additions and 1 deletions
|
|
@ -97,7 +97,7 @@ export const getContenteditableElement = (element: Element): Element => {
|
|||
return blockElement.firstElementChild;
|
||||
} else if ("NodeTable" === type) {
|
||||
return blockElement.querySelector("table");
|
||||
} else if ("NodeCodeBlock" === type) {
|
||||
} else if ("NodeCodeBlock" === type && blockElement.classList.contains("code-block")) {
|
||||
return blockElement.querySelector(".hljs").lastElementChild;
|
||||
} else if (["NodeBlockQueryEmbed", "NodeMathBlock", "NodeHTMLBlock"].includes(type)) {
|
||||
return element;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue