This commit is contained in:
parent
5218ff42a4
commit
88f29a7519
1 changed files with 1 additions and 1 deletions
|
@ -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(" ");
|
||||
|
|
Loading…
Add table
Reference in a new issue