<div class="cm-activeLine cm-line"><br></div>
<div class="cm-line"> </div>
The blank line above inserts a <br>
, I want to insert spaces like the div below.
<div class="cm-activeLine cm-line"><br></div>
<div class="cm-line"> </div>
The blank line above inserts a <br>
, I want to insert spaces like the div below.
The <br>
is there to prevent the browser from collapsing the line’s <div>
and to make sure it allows a cursor to be put in it. Why does it cause problems for you?
So that has nothing at all do to with the <br>
. Maybe you’re seeing insertNewLineAndIndent
(the default command bound to Enter) remove trailing whitespace it itself added?
Yes, can this be solved
It is by design. Bind another command to enter if you want it to behave differently.