Skip to content

Commit

Permalink
Put space HTML character in empty blocks to have view and edit the same
Browse files Browse the repository at this point in the history
config.fillEmptyBlocks = true; instead of false, to reset it to default
addition of   in empty/newline blocks by CKeditor
  • Loading branch information
kadevgraaf committed Feb 27, 2018
1 parent a7d9513 commit 24a0d8b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion assets/ckeditor_config.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ CKEDITOR.editorConfig = function( config ) {

// Set the most common block elements.
config.format_tags = 'p;h3;h4;h5;pre';
config.fillEmptyBlocks = false;
config.fillEmptyBlocks = true; //emptyblocks need to have space to prevent difference slide edit and slide view mode
config.enterMode = CKEDITOR.ENTER_DIV;
config.resize_enabled = false;
config.disableObjectResizing = true;
Expand Down

0 comments on commit 24a0d8b

Please sign in to comment.