Opened 17 years ago

Closed 17 years ago

Last modified 17 years ago

#285 closed Bug (duplicate)

Disappearing <br /> in a block tag (p or div)

Reported by: Michael Bu Owned by:
Priority: Normal Milestone:
Component: UI : Enter Key Version: FCKeditor 2.4.1
Keywords: SD-COE Cc: pkdille, Jean-Marc Libs, Nyloth


  1. Load demo @ or from SVN
  1. Switch to source mode and enter the following:
  1. Switch back to normal mode
  1. Use Shift-Enter to place a couple of <br /> at the end of line1
  1. Switch to source mode again
  1. the line breaks entered in normal mode was gone

This scenario happens very easily since I have both EnterMode and ShiftEnterMode set to 'br'. It's quite confusing to users since they thought the line breaks were already entered.

Change History (6)

comment:1 Changed 17 years ago by Frederico Caldeira Knabben

Milestone: FCKeditor 2.4.2
Resolution: duplicate
Status: newclosed

DUP of #205

comment:2 Changed 17 years ago by Michael Bu

Resolution: duplicate
Status: closedreopened

I wouldn't say this is a dup of #205 since it happens for Firefox as well.

In addition, the fact that it behaves differently in normal mode and source mode is REALLY confusing. If you were to insist on this behavior (silently remove line breaks), you shouldn't allow user to enter them in normal mode in first place!

The main reason for these line breaks to stay is sometimes you want to enter line breaks and sometimes you want paragraphs. But an average user have no idea about the differece of these two and not to mention the difference of "Enter" vs "Shift-Enter". The safer way to do was to enforce the "br" mode on both EnterMode and ShiftEnterMode settings so user would get a "consistent" behavior they expacted.

Therefore, empty line breaks at the end of a paragraph simply represents the result of an user's act and that's exactly what they wanted, doesn't matter if that's useful to us or anybody else.

comment:3 Changed 17 years ago by Frederico Caldeira Knabben

Resolution: duplicate
Status: reopenedclosed

Again, this is a DUP of #205.

If if it also happens with Firefox, just go to #205 and add that information. This is important so we don't have two different tickets discussing about the same thing (possibly producing conflicting results).

So, add your comments to that ticket (considering the comments you will already found there), so we can continue the discussion there.

comment:4 Changed 17 years ago by Frederico Caldeira Knabben

Cc: Pascal.KUSTNER@… added
Keywords: SD-COE added

comment:5 Changed 17 years ago by Frederico Caldeira Knabben

Cc: jean-marc.libs@…… added

comment:6 Changed 17 years ago by Frederico Caldeira Knabben

Cc: pkdille Jean-Marc Libs Nyloth added; Pascal.KUSTNER@… jean-marc.libs@…… removed
Note: See TracTickets for help on using tickets.
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy