Skip to content

Commit

Permalink
Fixes Bold/Italics Issue (calcom#8613)
Browse files Browse the repository at this point in the history
Co-authored-by: Alex van Andel <[email protected]>
  • Loading branch information
oneknucklehead and emrysal authored May 8, 2023
1 parent 3c46c39 commit 2907405
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions packages/ui/components/editor/plugins/ToolbarPlugin.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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" : ""}
/>
Expand All @@ -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" : ""}
/>
Expand Down

0 comments on commit 2907405

Please sign in to comment.