Vanessa 2022-09-19 08:43:28 +08:00
parent ffa1c0d84f
commit 86095cdbb9

View file

@ -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;
}