My Oracle Support Banner

Extra Div with Space on CKEditor Appearing Automatically at End of Text (Doc ID 1589974.1)

Last updated on DECEMBER 18, 2023

Applies to:

Oracle WebCenter Sites - Version and later
Information in this document applies to any platform.


If, in CKEditor, you have an unordered list within a <div> block (or a similar construct), and you place the cursor inside one of the list items, another <div> block containing only a &nbsp; gets added to the end of the text.

E.g. this HTML:





To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!

In this Document
 A) Set enter mode to BR instead of DIV. This will cause CKEditor not to create paragraphs using <div> blocks, but instead create new lines using <br/> tags.
 B) Set CKEditor to create empty paragraphs instead of ones containing &nbsp;. This will not prevent the <div> block at the end, but it will leave it empty, which may help with alignment.
 C) Set CKEditor to display blocks by default. This will help editors to see when an extra <div> block is created. It can be deleted by going to the last line just before it and pressing the delete key.

My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.