implement editor placeholder
This commit is contained in:
parent
e2e4ea493f
commit
f9992a1fc6
4 changed files with 26 additions and 0 deletions
|
@ -35,6 +35,10 @@ export default class EditorModel {
|
|||
return this._partCreator;
|
||||
}
|
||||
|
||||
get isEmpty() {
|
||||
return this._parts.reduce((len, part) => len + part.text.length, 0) === 0;
|
||||
}
|
||||
|
||||
clone() {
|
||||
return new EditorModel(this._parts, this._partCreator, this._updateCallback);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue