slate-angular 17.1.0 → 17.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -3092,17 +3092,7 @@ class SlateEditable {
|
|
|
3092
3092
|
}
|
|
3093
3093
|
writeValue(value) {
|
|
3094
3094
|
if (value && value.length) {
|
|
3095
|
-
|
|
3096
|
-
this.editor.children = value;
|
|
3097
|
-
}
|
|
3098
|
-
else {
|
|
3099
|
-
this.editor.onError({
|
|
3100
|
-
code: SlateErrorCode.InvalidValueError,
|
|
3101
|
-
name: 'initialize invalid data',
|
|
3102
|
-
data: value
|
|
3103
|
-
});
|
|
3104
|
-
this.editor.children = normalize(value);
|
|
3105
|
-
}
|
|
3095
|
+
this.editor.children = value;
|
|
3106
3096
|
this.initializeContext();
|
|
3107
3097
|
if (!this.listRender.initialized) {
|
|
3108
3098
|
this.listRender.initialize(this.editor.children, this.editor, this.context);
|