Opened 17 years ago

Closed 17 years ago

#246 closed Bug (fixed)

EnterMode=div can lose tags in Firefox

Reported by: robmueller Owned by:
Priority: Normal Milestone: FCKeditor 2.5 Beta
Component: Core : Styles Version: FCKeditor 2.4
Keywords: Confirmed Firefox Cc:


Browser: Firefox

The following causes <div> tags to be lost when EnterMode=div and text to be corrupted (eg whitespace is lost and lines are joined together)

  1. Go to and switch to the "Enter key behaviour" editor
  2. Switch "When [Enter] is pressed" to "Create new <div>"
  3. Type a<enter>b<enter>c<enter>
  4. Go to view source mode. Note lines are correctly created with divs (eg. <div>a</div>, etc)
  5. Switch back to wysiwig mode
  6. Ctrl-A to select all
  7. Click the "center text" toolbar icon (nothing happens)
  8. Go to view source mode. Note that there is only 1 div, and after "a" there is a <br />, and b and c are now together with no tags between them
  9. Go back to wysiwyg mode. Note that b and c are now together on the same line with no spacing between them.

It basically seems that some editor commands completely break the <div>'s. From some testing this appears related to alignment (left/right/center/justify) and changing to list items/back from list items.

Change History (2)

comment:1 Changed 17 years ago by Frederico Caldeira Knabben

Component: GeneralCore : Styles
Keywords: Confirmed Firefox added
Milestone: FCKeditor 2.5
Priority: HighNormal

Even if having a different result, I confirm there is some issues with alignment and <div>.

This is what I'm having at step 8:

<div align="center">&nbsp;</div>
<div align="center">&nbsp;</div>
<div align="center">&nbsp;</div>

The work to be done for the new style system (v 2.5) will be handy to fix it.

comment:2 Changed 17 years ago by Martin Kou

Resolution: fixed
Status: newclosed

Fixed with [862] and [863].

Click here for more info about our SVN system.

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