
I installed CKEditor, i found it causes large space between lines even though i’m just pressing enter once to move to the next! I have to press “Shift” for every enter to have the breakline! Any idea on how to make it work without pressing Shift?
Line 2 caused by pressing Shift + enter.
Line 3 caused by just pressing Enter.
I’m using PHP
You can set in your config.js to use a
<br>instead of<p>while hitting the ENTER key:The available flags are
Look on the docs for enterMode for further details
Expanding on Josepth Silber answer (that he know deleted.. He suggested using
config.autoParagraph = false;), IIRC (the Manual is not really clear on whatcreate wrapping blocks around inline contentsmeans), theautoParagraphconfig adds a<p></p>pair around each inline content inside the body. So, even if you hit Enter on an empty line, it will generate<p></p>(or<p> </p>, if so configured). The manual suggest leaving that option as it is, though (so set to true);