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)
- Go to http://www.fckeditor.net/nightly/fckeditor/_samples/default.html and switch to the "Enter key behaviour" editor
- Switch "When [Enter] is pressed" to "Create new <div>"
- Type a<enter>b<enter>c<enter>
- Go to view source mode. Note lines are correctly created with divs (eg. <div>a</div>, etc)
- Switch back to wysiwig mode
- Ctrl-A to select all
- Click the "center text" toolbar icon (nothing happens)
- 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
- 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
Component: | General → Core : Styles |
---|---|
Keywords: | Confirmed Firefox added |
Milestone: | → FCKeditor 2.5 |
Priority: | High → Normal |
comment:2 Changed 17 years ago by
Resolution: | → fixed |
---|---|
Status: | new → closed |
Click here for more info about our SVN system.
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:
The work to be done for the new style system (v 2.5) will be handy to fix it.