diff --git a/packages/ui/components/editor/plugins/ToolbarPlugin.tsx b/packages/ui/components/editor/plugins/ToolbarPlugin.tsx index adb30ae029..5e254d32a1 100644 --- a/packages/ui/components/editor/plugins/ToolbarPlugin.tsx +++ b/packages/ui/components/editor/plugins/ToolbarPlugin.tsx @@ -459,9 +459,6 @@ export default function ToolbarPlugin(props: TextEditorProps) { StartIcon={Bold} onClick={() => { editor.dispatchCommand(FORMAT_TEXT_COMMAND, "bold"); - if (isItalic) { - editor.dispatchCommand(FORMAT_TEXT_COMMAND, "italic"); - } }} className={isBold ? "bg-subtle" : ""} /> @@ -474,9 +471,6 @@ export default function ToolbarPlugin(props: TextEditorProps) { StartIcon={Italic} onClick={() => { editor.dispatchCommand(FORMAT_TEXT_COMMAND, "italic"); - if (isItalic) { - editor.dispatchCommand(FORMAT_TEXT_COMMAND, "bold"); - } }} className={isItalic ? "bg-subtle" : ""} />