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 51855fd2..0a84d96d 100644 --- a/src/bundle/Resources/public/js/CKEditor/core/base-ckeditor.js +++ b/src/bundle/Resources/public/js/CKEditor/core/base-ckeditor.js @@ -46,7 +46,10 @@ const VIEWPORT_TOP_OFFSET = 102; } getData() { - return this.editor.getData(); + const notTrimmedData = this.editor.getData({ trim: 'none' }); + const isDataEmpty = notTrimmedData === '

 

'; + + return isDataEmpty ? this.editor.getData() : notTrimmedData; } getHTMLDocumentFragment(data) {