OptionaldocOptionaldocumentThe document api, so undo/redo can find the per-doc state when a yjs UndoManager exists (collab documents). Set via setCollabContext.
OptionalredirectRequired if redirectState is set. Tells the extension how to forward the transactions.
OptionalredirectIf set, undo and redo will be forwarded to the editor this function returns instead of the current one, when a per-doc yjs UndoManager is not available (non-collab documents). This makes handling embedded editors easier.
This is a function so as to make it easier to always get the latest state.
The id of the document this editor is bound to. Used with
documentApito resolve the per-doc state. Set viasetCollabContext.