This commit is contained in:
parent
ffa1c0d84f
commit
86095cdbb9
1 changed files with 1 additions and 1 deletions
|
@ -234,7 +234,7 @@ export class Toolbar {
|
|||
}
|
||||
|
||||
public setInlineMark(protyle: IProtyle, type: string, action: "range" | "toolbar", textObj?: ITextOption) {
|
||||
if (["text", "a", "block-ref", "inline-math", "inline-memo"].includes(type)) {
|
||||
if (["a", "block-ref", "inline-math", "inline-memo"].includes(type)) {
|
||||
protyle.toolbar.element.querySelector(`[data-type="${type}"]`).dispatchEvent(new CustomEvent("block-ref" === type ? getEventName() : "click"));
|
||||
return;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue