Opened 18 years ago

Closed 17 years ago

#284 closed Bug (worksforme)

Firefox: Additional <br /> tags removed from end of document

Reported by: Justin Marshall Owned by:
Priority: Normal Milestone: FCKeditor 2.6
Component: UI : Enter Key Version: FCKeditor 2.4.1
Keywords: Confirmed Firefox Cc:

Description

If additional <br /> tags are placed at end of document, they are removed one at a time each time you swap to Source view and back.
This problem occurs in Firefox 2.0.0.3 but works correctly in IE7.

I am using FCKeditor version 2.4.1 which is inserted into ASPX pages using FCKeditor.Net.

To replicate:

  • Set FCKConfig.EnterMode = 'br' ;
  • In the editor, type a word (eg. Hello)
  • Hit the Enter key numerous times (eg. 6 times)
  • Switch to Source view
  • Count the number of <br /> tags
  • Switch back to normal view
  • Switch back to Source view
  • Compare the number of <br /> tags to that above
  • Do this several times. Each time you switch to Source view and back, a <br /> tag will disappear.

In my case, I am inserting the html entered in the editor into another page dynamically and want to allow the <br /> tags to increase the distance between the html from the editor and the html in the rest of the page.

Change History (5)

comment:1 Changed 18 years ago by Justin Marshall

Also, if I have a string that contains html with 5 <br /> tags at the end, when I assign this string to the .Value property of a FCKeditor.Net control, it loses the last <br /> tag.

Perhaps this item should have been assigned to the General category. Sorry.

comment:2 Changed 18 years ago by Frederico Caldeira Knabben

Keywords: Confirmed Firefox added
Priority: HighNormal

Confirmed with FF2. Ok with IE6.

This one is related to #205.

comment:3 Changed 18 years ago by Frederico Caldeira Knabben

Milestone: FCKeditor 2.6

comment:4 Changed 17 years ago by Martin Kou

This issue seems to have been fixed, I can no longer reproduce the issue with the nightly build.

comment:5 Changed 17 years ago by Frederico Caldeira Knabben

Resolution: worksforme
Status: newclosed
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