Don't show formatting menu if formatting flag is disabled
This commit is contained in:
parent
9d1252ae19
commit
65be832569
1 changed files with 7 additions and 1 deletions
|
@ -135,6 +135,12 @@ export class FormattingMenu {
|
|||
}
|
||||
|
||||
scheduleRemoval(): void {
|
||||
// Nothing to do
|
||||
if (!this.referenceElement) {
|
||||
return;
|
||||
}
|
||||
|
||||
// Already scheduled
|
||||
if (this.fadingOutTimeout) {
|
||||
return;
|
||||
}
|
||||
|
@ -157,7 +163,7 @@ export class FormattingMenu {
|
|||
}
|
||||
|
||||
onEditorChange(): void {
|
||||
if (!this.options.isMenuEnabled) {
|
||||
if (!this.options.isMenuEnabled || !this.options.isEnabled) {
|
||||
this.scheduleRemoval();
|
||||
return;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue