#647 closed Bug (fixed)
[EK] In RC2, using IE6 issues with UseBROnCarriageReturn
Reported by: | anonymous | Owned by: | |
---|---|---|---|
Priority: | Normal | Milestone: | FCKeditor 2.5 Beta |
Component: | Core : Lists | Version: | |
Keywords: | SF | Cc: | Frederico Caldeira Knabben, andrwo@…, cluestream@… |
Description
I enabled the UseBROnCarriageReturn option in RC2 and then went to experiment with the editor in IE6. Some weird behavior started showing up with the bulleted list functionality. When I tried to create a list, it put all the content in the text box into a single list item. This occured even if I hit return several times, typed something else, highlighted only the new text, and then hit the button. I'm guessing the function was trying to seperate things by <p> tags, instead of <br> ones. The same problem showed up with the numbered list.
Moved from SF:
http://sourceforge.net/tracker/index.php?func=detail&aid=1104098&group_id=75348&atid=543653
Change History (2)
comment:1 Changed 17 years ago by
Cc: | Frederico Caldeira Knabben andrwo@… cluestream@… added |
---|---|
Reporter: | changed from Martin Kou to anonymous |
comment:2 Changed 17 years ago by
Component: | General → Core : Lists |
---|---|
Milestone: | → FCKeditor 2.5 |
Resolution: | → fixed |
Status: | new → closed |
This one has been fixed for version 2.5.
Marking it as Enter Key [EK]
Moved from SF. Original poster: fredck
Thanks for the patch, andrwo ... I see some new evidence of it in 2.0FC but the guts are removed and it's commented out ... guess somebody tried it at least ... ? A fix should really get in there ... the default behavior is sufficiently awful that nobody could really want it to work that way.
My tweaked version follows ... by defaulting to the normal behavior for un-handled cases, it allows you to switch an OL to a UL and vice versa, and other important cases. The original version also contained a risk of infinite loop by calling FCK.ExecuteNamedCommand(...) at the end ... which would in turn again call ExecuteRedirectedNamedCommand ... etc. -- if the conditionals and the list of commands redirected got out of sync. This way is a little safer for further evolution.
I also added the following at line 85 in fck_1_ie.js, which implements the tab-indent, shift-tab-outdent behavior familiar to Word users. I figure since we are already subverting OnKeyDown we might as well go all the way.
This behavior would be nice even outside of UseBROnCarriageReturn, but then we're not necessarily intercepting keypresses. I will probably be working on this issue some more due to other top-case problems in the IE6 list implementation, so I may post further ideas ...
Moved from SF. Original poster: cluestream
Facing the same problem.
I've approximated a better behaviour with a change in the script, not ideal, but better than the default. Add the following code at the start of fck_2_ie.js (or for the compressed version, before the FCK.Paste=function()... line in fckeditorcode_ie_2.js):
Moved from SF. Original poster: andrwo