Opened 8 years ago
Closed 8 years ago
#14774 closed Bug (invalid)
newline <br/> becomes when invoking getData()
Reported by: | Satya Minnekanti | Owned by: | |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | General | Version: | |
Keywords: | IBM | Cc: | Irina |
Description
To reproduce the defect:
- Open nightly build & clear all editor content
- Add few empty paragraph's.
- Open inspector like Firebug, you see content like this in the editor body:
<p><br></p> <p><br></p> <p><br></p> <p><br></p>
- Click "Source" button which invokes getData(), it gives:
<p dir="ltr"> </p> <p dir="ltr"> </p> <p dir="ltr"> </p> <p dir="ltr"> </p>
You can see the <br> converted to
please review and see whether this is a defect, or any reasons behind for the conversion. it seems to be intended. if it is, please explain the reason for doing this conversion.
Change History (1)
comment:1 Changed 8 years ago by
Resolution: | → invalid |
---|---|
Status: | new → closed |
Version: | 4.5.10 (GitHub - master) |
In editable, empty blocks need fillers so that they could have a height. This role is fulfilled by
<br>
nodes. In data empty blocks are filled with
and this is one of basic concepts ofHtmlDataProcessora
In short, we use
<br>
in ediatble and
in data. This is by design.