move plugins
This commit is contained in:
9
packages/core/src/plugins/editable.ts
Normal file
9
packages/core/src/plugins/editable.ts
Normal 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,
|
||||
},
|
||||
})
|
||||
Reference in New Issue
Block a user