aboutsummaryrefslogtreecommitdiff
path: root/apps/web/app/components/editor/plugins/block-selection-plugins.ts
blob: ab35e38f68827311ad6439a12b605ebaa1e4ae2a (plain) (blame)
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;