Replies: 1 comment 1 reply
|
You can create a new Prosemirror plugin and use editable prop to enable or disable the editing of your editor: function editingAllowedPlugin() {
return new Plugin({
props: {
editable(state) {
return isEditingAllowed(state) ; // your logic for enabling or disabling
},
},
}); |
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Hello! I would like to ask if there are any ways to prevent or block editing area?
I want to allow to edit only after user pushes the "Edit" button.
All reactions