supermemory/apps/web/app/components/editor/plugins/block-selection-plugins.ts
2025-01-20 17:50:45 -07:00

23 lines
518 B
TypeScript

'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;