-
-
Notifications
You must be signed in to change notification settings - Fork 430
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Super formatting toolbar on mobile now shows whether an option …
…is active in the selection, and also shows hints when an option is long-pressed (#2432)
- Loading branch information
1 parent
d508425
commit 77f72ff
Showing
14 changed files
with
352 additions
and
428 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 2 additions & 1 deletion
3
packages/web/src/javascripts/Components/SuperEditor/Plugins/Blocks/BulletedList.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,12 @@ | ||
import { LexicalEditor } from 'lexical' | ||
import { INSERT_UNORDERED_LIST_COMMAND } from '@lexical/list' | ||
|
||
export function GetBulletedListBlock(editor: LexicalEditor) { | ||
export function GetBulletedListBlock(editor: LexicalEditor, isActive = false) { | ||
return { | ||
name: 'Bulleted List', | ||
iconName: 'list-bulleted', | ||
keywords: ['bulleted list', 'unordered list', 'ul'], | ||
onSelect: () => editor.dispatchCommand(INSERT_UNORDERED_LIST_COMMAND, undefined), | ||
active: isActive, | ||
} | ||
} |
3 changes: 2 additions & 1 deletion
3
packages/web/src/javascripts/Components/SuperEditor/Plugins/Blocks/NumberedList.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,12 @@ | ||
import { LexicalEditor } from 'lexical' | ||
import { INSERT_ORDERED_LIST_COMMAND } from '@lexical/list' | ||
|
||
export function GetNumberedListBlock(editor: LexicalEditor) { | ||
export function GetNumberedListBlock(editor: LexicalEditor, isActive = false) { | ||
return { | ||
name: 'Numbered List', | ||
iconName: 'list-numbered', | ||
keywords: ['numbered list', 'ordered list', 'ol'], | ||
onSelect: () => editor.dispatchCommand(INSERT_ORDERED_LIST_COMMAND, undefined), | ||
active: isActive, | ||
} | ||
} |
231 changes: 0 additions & 231 deletions
231
...ges/web/src/javascripts/Components/SuperEditor/Plugins/FloatingLinkEditorPlugin/index.tsx
This file was deleted.
Oops, something went wrong.
File renamed without changes.
File renamed without changes.
Oops, something went wrong.