Vanessa 2025-12-27 16:39:35 +08:00
parent 3a334d3402
commit b840e452fb

View file

@ -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;