Opened 18 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:

Description

Browser: Firefox 2.0.0.2

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 http://www.fckeditor.net/nightly/fckeditor/_samples/default.html 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 18 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>a</div>
<div align="center">&nbsp;</div>
<div>b</div>
<div align="center">&nbsp;</div>
<div>c</div>
<div align="center">&nbsp;</div>
<div>&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