Feature #14681
closedunnecessary <br /> tags in tables
0%
Description
I found a bug in the htmlArea RTE. If I generate a table with 3 rows and 5 cells (doesn't matter) and insert some content "cell1", "cell2",..., the RTE generates the following (using firefox):
[...]<td>cell1<br /></td>[...]
Why is there the <br /> - tag? It is not necessary and leads to unneeded line-breaks.
(issue imported from #M1259)
Updated by Sebastian Widmann over 19 years ago
there should be a br-tag after <td>cell1
Updated by Stanislas Rolland over 19 years ago
As they say this is a feature, not a bug: Mozilla/Firefox inserts a br tag whenever text is inserted in an empty block. Could be an empty cell, empty paragraph, etc. These tags are not added by the editor.
With version 0.5.9, a new Page TSConfigproperty removeTrailingBR allows to remove those br tags on save or chMode. When this property is enabled, any br tag found at the end of a block element will be removed unless it is itself preceded by another br tag.