Skip to content

Commit 09c134f

Browse files
committed
Run composer cs
1 parent a0c9c8c commit 09c134f

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

packages/forms/resources/js/components/rich-editor.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,11 @@ export default function richEditorFormComponent({
108108
pluginKey: `floatingToolbar::${key}`,
109109
shouldShow: ({ editor }) => {
110110
if (key === 'paragraph') {
111-
return editor.isFocused && editor.isActive(key) && !editor.state.selection.empty
111+
return (
112+
editor.isFocused &&
113+
editor.isActive(key) &&
114+
!editor.state.selection.empty
115+
)
112116
}
113117

114118
return editor.isFocused && editor.isActive(key)

0 commit comments

Comments
 (0)