Skip to content

Block filler must be rendered in empty lines created by <br> #4351

Closed
ckeditor/ckeditor5-engine
#1426
@Reinmar

Description

@Reinmar

may-30-2018 11-51-21

Unfortunately, we must achieve this when rendering a block which ends with a line break:

<p>...<br>BLOCK_FILLER</p>

BLOCK_FILLER is a <br data-cke-filler=true> inside the editing view and &nbsp; in the data.

So, we need to adjust the logic which decides where to place block fillers. In general, block filler is needed after a <br> if that <br> is the last node of a container element:

<p>XXX<br>YYY<br>ZZZ<br>BLOCK_FILLER</p>
<p>XXX<br>YYY<br>ZZZ<br>ĄŚĆ</p>
<p><br>YYY<br>ZZZ<br>ĄŚĆ</p>

Metadata

Metadata

Assignees

Labels

package:enginetype:bugThis issue reports a buggy (incorrect) behavior.

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions