diff --git a/plugin.js b/plugin.js index a74f256..eb35836 100644 --- a/plugin.js +++ b/plugin.js @@ -74,7 +74,7 @@ root.removeClass( 'placeholder' ); // fill it properly if (CKEDITOR.dtd[ root.getName() ]['p']) { - root.setHtml( '


' ); + root.setHtml( editor.enterMode === CKEDITOR.ENTER_P ? '


' : (editor.enterMode === CKEDITOR.ENTER_DIV ? '

' : '
') ); // Set caret in position var range = new CKEDITOR.dom.range(editor.document); range.moveToElementEditablePosition(root.getFirst(), true);