figcaption editor if not empty (#367)

This commit is contained in:
Ilya Y 2024-01-18 10:02:37 +03:00 committed by GitHub
parent d4ef39e6ca
commit 5d874ee639
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -260,7 +260,7 @@ export const Editor = (props: Props) => {
!e.isActive('image') &&
!e.isActive('figure')) ||
e.isActive('footnote') ||
e.isActive('figcaption')
(e.isActive('figcaption') && !empty)
setShouldShowTextBubbleMenu(result)
return result
},