changeFilter + bracketMatching

If I have both a changeFilter returning [0, 0] and the bracketMatching plugin, if I try to type an open bracket at the end of the document, I get:

Uncaught RangeError: Position 73 is out of range for changeset of length 72

If I change the changeFilter to return ‘true’ I have no issue.

That was a bug in the way change filters are implemented that caused an effect added by the bracket-closing extensions to be mapped in an invalid way. This patch should help.

1 Like