Vanessa 2024-11-13 10:58:13 +08:00
parent 5218ff42a4
commit 88f29a7519

View file

@ -1775,7 +1775,7 @@ export class WYSIWYG {
protyle.toolbar.range = getEditorRange(protyle.element);
if (target.tagName === "SPAN" && !isNotEditBlock(nodeElement)) { // https://ld246.com/article/1665141518103
let types = protyle.toolbar.getCurrentType(protyle.toolbar.range);
let types = target.getAttribute("data-type")?.split(" ");
if (types.length === 0) {
// https://github.com/siyuan-note/siyuan/issues/8960
types = (target.dataset.type || "").split(" ");