1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 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;