mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-30 05:18:49 +01:00
This commit is contained in:
parent
e87b831da7
commit
9fa331b407
1 changed files with 5 additions and 1 deletions
|
|
@ -1266,7 +1266,11 @@ export class WYSIWYG {
|
|||
}
|
||||
protyle.toolbar.range = getEditorRange(protyle.element);
|
||||
if (target.tagName === "SPAN") { // https://ld246.com/article/1665141518103
|
||||
const types = protyle.toolbar.getCurrentType(protyle.toolbar.range);
|
||||
let types = protyle.toolbar.getCurrentType(protyle.toolbar.range);
|
||||
if (types.length === 0) {
|
||||
// https://github.com/siyuan-note/siyuan/issues/8960
|
||||
types = (target.dataset.type || "").split(" ");
|
||||
}
|
||||
if (types.length > 0) {
|
||||
removeSearchMark(target);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue