diff options
Diffstat (limited to 'apps/web/app/components/editor/plugins/block-selection-plugins.ts')
| -rw-r--r-- | apps/web/app/components/editor/plugins/block-selection-plugins.ts | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/apps/web/app/components/editor/plugins/block-selection-plugins.ts b/apps/web/app/components/editor/plugins/block-selection-plugins.ts new file mode 100644 index 00000000..ab35e38f --- /dev/null +++ b/apps/web/app/components/editor/plugins/block-selection-plugins.ts @@ -0,0 +1,23 @@ +'use client'; + +import { BlockSelectionPlugin } from '@udecode/plate-selection/react'; + +export const blockSelectionPlugins = [ + BlockSelectionPlugin.configure({ + inject: { + excludeBelowPlugins: ['tr'], + excludePlugins: ['table', 'code_line', 'column_group', 'column'], + }, + options: { + areaOptions: { + behaviour: { + scrolling: { + speedDivider: 1.5, + }, + startThreshold: 4, + }, + }, + enableContextMenu: true, + }, + }), +] as const; |