|
@@ -31,6 +31,8 @@ export class Headings extends MenuItem {
|
|
const actionBtn = this.element.children[0] as HTMLElement;
|
|
const actionBtn = this.element.children[0] as HTMLElement;
|
|
actionBtn.addEventListener(getEventName(), (event) => {
|
|
actionBtn.addEventListener(getEventName(), (event) => {
|
|
event.preventDefault();
|
|
event.preventDefault();
|
|
|
|
+ // https://github.com/Vanessa219/vditor/issues/1391
|
|
|
|
+ clearTimeout(vditor.wysiwyg.afterRenderTimeoutId);
|
|
if (actionBtn.classList.contains(Constants.CLASS_MENU_DISABLED)) {
|
|
if (actionBtn.classList.contains(Constants.CLASS_MENU_DISABLED)) {
|
|
return;
|
|
return;
|
|
}
|
|
}
|