Split MessageEditor in edit-specifics & reusable part for main composer

This commit is contained in:
Bruno Windels
2019-08-05 15:27:40 +02:00
parent e8fcfbe2bf
commit 299cf8542c
6 changed files with 273 additions and 163 deletions

View File

@@ -24,9 +24,17 @@ export default class EditorModel {
this._activePartIdx = null;
this._autoComplete = null;
this._autoCompletePartIdx = null;
this.setUpdateCallback(updateCallback);
}
setUpdateCallback(updateCallback) {
this._updateCallback = updateCallback;
}
get partCreator() {
return this._partCreator;
}
clone() {
return new EditorModel(this._parts, this._partCreator, this._updateCallback);
}