add mod+z/y shortcuts, set editor state to what history manager returns
This commit is contained in:
@@ -90,6 +90,11 @@ export default class EditorModel {
|
||||
}
|
||||
}
|
||||
|
||||
reset(serializedParts, caret, inputType) {
|
||||
this._parts = serializedParts.map(p => this._partCreator.deserializePart(p));
|
||||
this._updateCallback(caret, inputType);
|
||||
}
|
||||
|
||||
update(newValue, inputType, caret) {
|
||||
const diff = this._diff(newValue, inputType, caret);
|
||||
const position = this.positionForOffset(diff.at, caret.atNodeEnd);
|
||||
|
||||
Reference in New Issue
Block a user