Opened 17 years ago
Closed 17 years ago
#1279 closed Bug (fixed)
DOM range iterator incorrectly treats bookmark nodes as independent blocks
Reported by: | Martin Kou | Owned by: | Frederico Caldeira Knabben |
---|---|---|---|
Priority: | Normal | Milestone: | FCKeditor 2.5 Beta |
Component: | Core : Styles | Version: | SVN (FCKeditor) - Retired |
Keywords: | Cc: |
Description
Reproduction procedure:
- Open sample01.html.
- Press Ctrl-A inside the editing area to select all.
- Press the Justify Center button, or the Indent button.
- An unneeded, empty paragraph is created before the selected block.
After some investigation, it was found that the empty paragraph was created because the DOM range iterator in classes/fckdomrangeiterator.js is treating the empty <span> node created by FCKDomRange.CreateBookmark() as an independent block. The bookmark node is only a temporary node not meant to be part of the document, and so it should be ignored by the FCK DOM range iterator.
Fixed with [862] and [863].