fix(extension/bubble-menu): 🐛 fix bubble menu and floating menu being available when editor not editable (#3195)
This commit is contained in:
@@ -66,6 +66,7 @@ export class BubbleMenuView {
|
||||
!hasEditorFocus
|
||||
|| empty
|
||||
|| isEmptyTextBlock
|
||||
|| !this.editor.isEditable
|
||||
) {
|
||||
return false
|
||||
}
|
||||
|
||||
@@ -46,6 +46,7 @@ export class FloatingMenuView {
|
||||
|| !empty
|
||||
|| !isRootDepth
|
||||
|| !isEmptyTextBlock
|
||||
|| !this.editor.isEditable
|
||||
) {
|
||||
return false
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user