- Create new note from selection
-
- Creates a new note containing the current selection and replaces the selection with a link to the
- new note.
-
- >
- }
- iconName="notes"
- onSelect={() => {
- editor.dispatchCommand(CREATE_NOTE_FROM_SELECTION_COMMAND, undefined)
- }}
- />
- )}
+
+ Create new note from selection
+
+ Creates a new note containing the current selection and replaces the selection with a link to the
+ new note.
+
+ >
+ }
+ iconName="notes"
+ onSelect={() => {
+ editor.dispatchCommand(CREATE_NOTE_FROM_SELECTION_COMMAND, undefined)
+ }}
+ disabled={!hasNonCollapsedSelection}
+ />
{isMobile && (