Ticket #2050 (new Bug)

Opened 2 years ago

Last modified 2 years ago

Line breaks after bold lines are missing the nbsp

Reported by: oPerrin Owned by:
Priority: Normal Milestone:
Component: General Version: FCKeditor 2.6 Beta
Keywords: Discussion Cc:

Description

Steps to reproduce

1. Type a line into the 2.6 beta

2. Bold that line

3. Hit return from the end of that line

4. View source

Expected result: <p><b>&nbsp;</b></p>

Observed result: <p><b></b></p>

Consequences: The line you intended to add after the bolded line will not appear when the page is saved and viewed.

Note: This occurs with other style tags as well.

Standard ticket submission mantra: I searched but did not find, if I erred, the fault is mine.

Change History

Changed 2 years ago by w.olchawa

  • keywords Discussion added; return, nbsp removed
  • version set to FCKeditor 2.6 Beta

Confirmed in FF2 in 2.6 beta. IE shows a different behaviour. The reproduction result is:

<p>&nbsp;</p>
<p>&nbsp;</p>

so no <b> tag is added at all.

The same thing as above happens when trying to reproduce using the SVN version both in IE and FF2.

As "&nbsp" is added in the current SVN release the reported bug isn't valid in this sense. However it rises the question - should the "<b>" tag be added to an empty line, so the result would be:

<p><b>&nbsp;</b></p>

For me it owuld be the expected behaviour however other users may think differently so I'm opening a discussion due to this issue.

Note: See TracTickets for help on using tickets.