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
},
},
}); |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
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.
Beta Was this translation helpful? Give feedback.
All reactions