Prevent an update (or to be able to edit it's content)

Is there a way to prevent an update from mutating the current state? Or to modify it’s content before it’s processed in the DOM?
I’m working on a freeze plugin (that would only let users modify a part of a document) and I want to prevent the deletion of the characters that delimit the freezing zone.

I tried listening to DOM events, but I don’t necessarily know in advance which input will create which changes before hand.

(Hi! and awesome software, by the way!)

You’ll want to use either a transaction filter (to prevent entire transactions) or a change filter (to prevent only part of the changes in a transaction).

1 Like