chore: fix link option in super toolbar [skip e2e]
This commit is contained in:
@@ -507,7 +507,14 @@ const ToolbarPlugin = () => {
|
|||||||
active={isHighlight}
|
active={isHighlight}
|
||||||
onSelect={() => editor.dispatchCommand(FORMAT_TEXT_COMMAND, 'highlight')}
|
onSelect={() => editor.dispatchCommand(FORMAT_TEXT_COMMAND, 'highlight')}
|
||||||
/>
|
/>
|
||||||
<ToolbarButton name="Link" iconName="link" active={isLink} onSelect={() => {}} />
|
<ToolbarButton
|
||||||
|
name="Link"
|
||||||
|
iconName="link"
|
||||||
|
active={isLink}
|
||||||
|
onSelect={() => {
|
||||||
|
editor.dispatchCommand(TOGGLE_LINK_AND_EDIT_COMMAND, '')
|
||||||
|
}}
|
||||||
|
/>
|
||||||
<ToolbarButton
|
<ToolbarButton
|
||||||
name="Strikethrough"
|
name="Strikethrough"
|
||||||
iconName="strikethrough"
|
iconName="strikethrough"
|
||||||
|
|||||||
Reference in New Issue
Block a user