From 5d874ee63947709ecc45504372e838e8d780f576 Mon Sep 17 00:00:00 2001 From: Ilya Y <75578537+ilya-bkv@users.noreply.github.com> Date: Thu, 18 Jan 2024 10:02:37 +0300 Subject: [PATCH] figcaption editor if not empty (#367) --- src/components/Editor/Editor.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/Editor/Editor.tsx b/src/components/Editor/Editor.tsx index 18882032..04b2e984 100644 --- a/src/components/Editor/Editor.tsx +++ b/src/components/Editor/Editor.tsx @@ -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 },