Opened 18 years ago
Closed 18 years ago
#248 closed Bug (fixed)
Terminator backspace
Reported by: | Guillaume Outters | Owned by: | |
---|---|---|---|
Priority: | Normal | Milestone: | FCKeditor 2.4.1 |
Component: | UI : Enter Key | Version: | SVN (FCKeditor) - Retired |
Keywords: | Confirmed | Cc: |
Description (last modified by )
Summary: Backspace conglomerates blocks, without being smart.
Example: http://www.fckeditor.net/demo Source <div><br/><h1>Machin</h1></div> Source click before the « M » backspace
Effect: « Machin » disappears
Cause: fckenterkey.js, line 202 (revision 203): when hitting backspace, except in some rare cases, the current element is merged within the previous one. In the example "crasher", <div><br/><h1>Machin</h1></div> became <div><br>Machin</br></div> oops!
Same with an image, and so on.
Priority: if not for the line asking not to play on Priority on bug reports, I would have set this to High.
Change History (3)
comment:1 Changed 18 years ago by
comment:2 Changed 18 years ago by
Component: | General → UI : Enter Key |
---|---|
Description: | modified (diff) |
Keywords: | Confirmed added |
Milestone: | → FCKeditor 2.4.1 |
Version: | → SVN |
Confirmed with FF2 and IE6, which also throws an error on that case.
comment:3 Changed 18 years ago by
Resolution: | → fixed |
---|---|
Status: | new → closed |
Fixed with [218].
Click here for more info about our SVN system.
Quick patch:
(as in:
)
The Trim() would even better be replaced by a TotalTrim which would add to the list of blank characters, because user will be puzzled that his second paragraph gets the style of a preceding invisible char (yes, I have some <div> <br/><p>Machin</p></div>…).