support (de)serializing parts with other dependencies than text
This commit is contained in:
parent
678fd37549
commit
e674f39e3b
4 changed files with 46 additions and 16 deletions
|
@ -73,7 +73,7 @@ export default class EditorModel {
|
|||
}
|
||||
|
||||
serializeParts() {
|
||||
return this._parts.map(({type, text}) => {return {type, text};});
|
||||
return this._parts.map(p => p.serialize());
|
||||
}
|
||||
|
||||
_diff(newValue, inputType, caret) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue