Add MarkView.destroy #174
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "ocavue/markview-destroy"
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?
This PR implements the
destroy()method for mark views, which is required for rendering mark with other UI framework like React. See also https://discuss.prosemirror.net/t/support-destroy-method-in-markview/7855TypeScript, with our build settings, still produces much worse code for a
?.()call than this conditional. Could you rever this and also use anifinMarkView.destroy?Sure. I have reverted it in the latest commit.
Thanks!