move plugins

This commit is contained in:
Philipp Kühn
2020-08-21 21:23:46 +02:00
parent 9e1bb182db
commit 53f892ddd0
3 changed files with 28 additions and 13 deletions

View File

@@ -0,0 +1,9 @@
import { Plugin, PluginKey } from 'prosemirror-state'
import Editor from '../..'
export default (editor: Editor) => new Plugin({
key: new PluginKey('editable'),
props: {
editable: () => editor.isEditable,
},
})