-
Notifications
You must be signed in to change notification settings - Fork 51
Expand file tree
/
Copy pathplugins.ts
More file actions
28 lines (24 loc) · 807 Bytes
/
plugins.ts
File metadata and controls
28 lines (24 loc) · 807 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
import 'prosemirror-gapcursor/style/gapcursor.css'
import 'prosemirror-tables/style/tables.css'
import { placeholder } from '@aeaton/prosemirror-placeholder'
import { dropCursor } from 'prosemirror-dropcursor'
import { gapCursor } from 'prosemirror-gapcursor'
import { history } from 'prosemirror-history'
import { columnResizing, tableEditing } from 'prosemirror-tables'
import { baseKeys, editorKeys, listKeys, tableKeys } from './keys'
import { rules } from './rules'
export const plugins = [
history(),
tableKeys(),
listKeys(),
editorKeys(),
baseKeys(), // last
rules(),
placeholder(),
dropCursor(),
gapCursor(),
tableEditing(),
columnResizing({}),
]
document.execCommand('enableObjectResizing', false, 'false')
document.execCommand('enableInlineTableEditing', false, 'false')