Add method disableHistory to disable history on the given transaction #7
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "master"
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?
Hi marijnh,
I am building a codeblock node based on CodeMirror and ProseMirror.
Similar to the official codemirror example, a code editor in prosemirror. The difference is that I am using the codemirror6 and the code editor have tabs.
When change the tab, I need to change the content of codeblock node dynamicly by dispatching
tr.replaceWith. Then the change will be stored in history which is unwanted.So I make this PR.
This looks like it will just corrupt the history (by making the changes in it no longer align with the current document).
You are right. I think I should try another interaction.
Pull request closed