Only create drop cursor if the view is editable. #8
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "only-create-if-editable"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Similar to ProseMirror/prosemirror-gapcursor#6 but for the drop cursor.
I would normally create a local var for the view or the state here, now that it's being accessed in the arrow function, but I tried to keep the change minimal. Let me know if that would be preferred.
@marijnh can this change be integrated or is something missing from the PR?
Having everybody recompute editable all the time seems wasteful. I'm going to make
view.editablepublic, and attached patch uses that instead.Pull request closed