Opened 17 years ago
Closed 17 years ago
#1061 closed Bug (fixed)
Backspace and delete does not work under Firefox
Reported by: | Martin Kou | Owned by: | Martin Kou |
---|---|---|---|
Priority: | Normal | Milestone: | FCKeditor 2.5 Beta |
Component: | General | Version: | SVN (FCKeditor) - Retired |
Keywords: | Confirmed Firefox | Cc: |
Description
This bug is reproducible under both 2.4.3 and the SVN version, though with different procedures. They both seem to be related to the bogus <br> tags added by Mozilla Midas and by us.
Reproduction procedure on 2.4.3:
- Go to sample01.html, delete everything.
- Press Enter twice.
- Press Backspace twice.
- Press the up arrow, now the caret hangs above the document.
- Press the "Insert Special Character" button, and insert a "TM" character.
- Try to delete the "TM" character by backspace or delete.
- The "TM" character cannot be deleted, even select + delete does not work.
For the SVN version, I don't have a reliable way of reproducing it, but it seems to occur more often in the SVN version. The following is a more reliable method that I can get the bug to occur after a few trials:
- Clear the editor document, and insert a "TM" character with the "Insert Special Character" dialog.
- Press backspace to delete it. If you are lucky it wouldn't work.
- What if it worked? Undo with Ctrl-Z, and the game begins...
- Try any method to move the caret around the "TM" character, End, Home, Left, Up, Down, Right, etc. Open a new line or two below it and delete them. Just mess with the caret, and then try to delete the "TM" character.
- After a few trials, you find the "TM" character have gained immortality... if you don't switch to Source mode or refresh the page, that is.
Change History (4)
comment:1 Changed 17 years ago by
Owner: | set to Martin Kou |
---|---|
Status: | new → assigned |
comment:2 Changed 17 years ago by
comment:3 Changed 17 years ago by
It is certainly a Firefox bug. Do you think we can somehow change step 5 in the above comment, having the cursor inside the padding <p>? Maybe we could check that the padding <p> is the only thing in the document, when creating it, and so move the selection right inside of it.
comment:4 Changed 17 years ago by
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
Fixed with [716].
Click here for more info about our SVN system.
I've found a more reliable way (but not 100% reliable) of reproducing the bug in Firefox:
While having the caret in step 4 and 5 located before the <p> block seems to make it easier for the bug to manifest, this condition is definitely not the necessary condition for the bug to appear. I've seen "immortal" TM characters inside paragraphs, it's just that they appear less frequently.
I've also tried disabling FCKEnterMode.prototype.DoBackspace() and DoDelete(), by putting a return at the beginning of the functions. This does nothing in preventing the bug from appearing, so it is likely that this is a bug in Mozilla Midas.
Finally, I've found that, when you encounter the "immortal" special character, you can make it deletable again by typing an alphanumeric character after it and then pressing backspace. This looks very much like one of the selection workarounds we've got for IE.