Posted - 03/26/2019 : 11:55:37
Maybe this will help.
Found this in an older forum.
Patrick
From Gary Flack I.T.ZAP Website Design Works http://itzap.com.au
Found out there is an easy way to configure CK Editor to insert <br /> break tags whenever the user presses "Enter" ... if that is what you really want (or need).
(1) In the "ckeditor" folder, open the file named "config.js" (2) See these lines of code ...
CKEDITOR.editorConfig = function( config ) { // Define changes to default configuration here. For example: // config.language = 'fr'; // config.uiColor = '#AADC6E';
(3) Underneath those entries, simply add this line ... config.enterMode = CKEDITOR.ENTER_BR;
(4) Save file and upload. (5) Test CK Editor. Confirmed that this config code does work.
This solution was found on the CK Source Forum : http://cksource.com/forums/viewtopic.php?f=5&t=26552&p=67551&hilit=config.enterMode#p67551 and also http://docs.cksource.com/ckeditor_api/symbols/CKEDITOR.config.html#.enterMode
The default behavior for Enter key is <p> paragraph tags. Note their comment : It is recommended to use the CKEDITOR.ENTER_P setting because of its semantic value and correctness. The editor is optimized for this setting.
Default behavior for Shift+Enter is <br />, as usual.
Gary Flack I.T.ZAP Website Design Works http://itzap.com.au

|