SuperEditor has moved to an edit pipeline through an Editor. As a result, it's never acceptable to alter a Document or DocumentNode directly. Changes need to happen within EditCommands.
To enforce this, we should make DocumentNodes immutable.
This change still doesn't solve the problem that AttributedText is also immutable, but this will bring us one step closer to correct immutability.
SuperEditor
has moved to an edit pipeline through anEditor
. As a result, it's never acceptable to alter aDocument
orDocumentNode
directly. Changes need to happen withinEditCommand
s.To enforce this, we should make
DocumentNode
s immutable.This change still doesn't solve the problem that
AttributedText
is also immutable, but this will bring us one step closer to correct immutability.