#1592 closed Bug (fixed)
Remove blockquote command may leave empty blockquotes in IE.
Reported by: | Martin Kou | Owned by: | Martin Kou |
---|---|---|---|
Priority: | Normal | Milestone: | FCKeditor 2.5 |
Component: | General | Version: | SVN (FCKeditor) - Retired |
Keywords: | Confimed IE | Cc: |
Description
Reproduction procedure:
- Open sample01.html in IE.
- Ctrl-A, Backspace to delete everything.
- Press blockquote button to insert blockquote.
- Press blockquote button to delete blockquote.
Expected results:
The blockquote should be removed, and the empty paragraph should be restored to its original position.
Observed results:
An empty blockquote is left before the restored paragraph.
Change History (3)
comment:1 Changed 17 years ago by
comment:2 Changed 17 years ago by
Resolution: | → fixed |
---|---|
Status: | new → closed |
Fixed with [1139].
Click here for more info about our SVN system.
comment:3 Changed 17 years ago by
Based on your comments, it sounds like FCKDomRangeIterator is the problem here.
Anyway, lets leave it as is. We should find a cleaner solution in the future, possibly trying to avoid bookmark nodes interfering in all editor operations in a more generic way. I've just made some cleanup with [1141].
The bug was caused by the bookmark nodes left behind by FCKDomRange.CreateBookmark() prior to removing the blockquote.
This is what was seen in document.body.innerHTML before removing the blockquote in step 4:
When FCKDomRangeIterator runs, it sees the bookmark span and tries to split it up into a different block. So we have...
After that, even thought he blockquote command correctly removes the <BLOCKQUOTE> around the <P> block, there's still one more blockquote left above it.