@contentful/field-editor-rich-text 3.1.7 → 3.1.9
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.
- package/CHANGELOG.md +10 -0
- package/dist/field-editor-rich-text.cjs.development.js +1 -5
- package/dist/field-editor-rich-text.cjs.development.js.map +1 -1
- package/dist/field-editor-rich-text.cjs.production.min.js +1 -1
- package/dist/field-editor-rich-text.cjs.production.min.js.map +1 -1
- package/dist/field-editor-rich-text.esm.js +1 -5
- package/dist/field-editor-rich-text.esm.js.map +1 -1
- package/package.json +3 -3
|
@@ -7115,11 +7115,7 @@ function sanitizeIncomingSlateDoc(nodes) {
|
|
|
7115
7115
|
*/
|
|
7116
7116
|
|
|
7117
7117
|
var hasContent = function hasContent(doc) {
|
|
7118
|
-
|
|
7119
|
-
return false;
|
|
7120
|
-
}
|
|
7121
|
-
|
|
7122
|
-
return doc.content.length > 0;
|
|
7118
|
+
return ((doc == null ? void 0 : doc.content) || []).length > 0;
|
|
7123
7119
|
};
|
|
7124
7120
|
/*
|
|
7125
7121
|
Plate api doesn't allow to modify (easily) the editor value programmatically
|