Project

General

Profile

Actions

Feature #14681

closed

unnecessary <br /> tags in tables

Added by Sebastian Widmann about 19 years ago. Updated almost 18 years ago.

Status:
Closed
Priority:
Should have
Category:
RTE (rtehtmlarea + ckeditor)
Target version:
-
Start date:
2005-07-05
Due date:
% Done:

0%

Estimated time:
PHP Version:
Tags:
Complexity:
Sprint Focus:

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)

Actions #1

Updated by Sebastian Widmann about 19 years ago

there should be a br-tag after <td>cell1

Actions #2

Updated by Stanislas Rolland almost 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.

Actions

Also available in: Atom PDF