refac
This commit is contained in:
1 parent
88401e91c7
commit
38ae91ae23
1 file changed
+6
-1
@@ -691,7 +691,12 @@
|
|||||||
element: element,
|
element: element,
|
||||||
extensions: [
|
extensions: [
|
||||||
StarterKit.configure({
|
StarterKit.configure({
|
||||||
link: link
|
link: link,
|
||||||
|
// When rich text is off, disable Strike from StarterKit so we can
|
||||||
|
// re-add it below without its Mod-Shift-s shortcut (which conflicts
|
||||||
|
// with the Toggle Sidebar shortcut). When rich text is on, the user
|
||||||
|
// can undo strikethrough via the toolbar, so the shortcut is fine.
|
||||||
|
...(richText ? {} : { strike: false })
|
||||||
}),
|
}),
|
||||||
...(dragHandle ? [ListItemDragHandle] : []),
|
...(dragHandle ? [ListItemDragHandle] : []),
|
||||||
Placeholder.configure({ placeholder: () => _placeholder, showOnlyWhenEditable: false }),
|
Placeholder.configure({ placeholder: () => _placeholder, showOnlyWhenEditable: false }),
|
||||||
|
|||||||
Reference in new issue
Block a user