diff --git a/src/bundle/Resources/public/js/CKEditor/core/base-ckeditor.js b/src/bundle/Resources/public/js/CKEditor/core/base-ckeditor.js index 266563a3..d1f9d486 100644 --- a/src/bundle/Resources/public/js/CKEditor/core/base-ckeditor.js +++ b/src/bundle/Resources/public/js/CKEditor/core/base-ckeditor.js @@ -52,6 +52,10 @@ const VIEWPORT_TOP_OFFSET_DISTRACTION_FREE_MODE = 0; } getData() { + if (!this.editor) { + return ''; + } + const notTrimmedData = this.editor.getData({ trim: 'none' }); const isDataEmpty = notTrimmedData === '
';