mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-05-02 19:09:49 +08:00
This commit is contained in:
parent
2ef990b312
commit
482c1a8ba6
@ -746,6 +746,7 @@ export class Toolbar {
|
|||||||
focusByRange(this.range);
|
focusByRange(this.range);
|
||||||
|
|
||||||
const showMenuElement = newNodes[0] as HTMLElement;
|
const showMenuElement = newNodes[0] as HTMLElement;
|
||||||
|
if (showMenuElement.nodeType !== 3) {
|
||||||
const showMenuTypes = (showMenuElement.getAttribute("data-type") || "").split(" ");
|
const showMenuTypes = (showMenuElement.getAttribute("data-type") || "").split(" ");
|
||||||
if (type === "inline-math") {
|
if (type === "inline-math") {
|
||||||
mathRender(nodeElement);
|
mathRender(nodeElement);
|
||||||
@ -764,6 +765,7 @@ export class Toolbar {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
public showRender(protyle: IProtyle, renderElement: Element, updateElements?: Element[], oldHTML?: string) {
|
public showRender(protyle: IProtyle, renderElement: Element, updateElements?: Element[], oldHTML?: string) {
|
||||||
const nodeElement = hasClosestBlock(renderElement);
|
const nodeElement = hasClosestBlock(renderElement);
|
||||||
|
Loading…
Reference in New Issue
Block a user