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:

  1. Open sample01.html.
  2. Press Ctrl-A inside the editing area to select all.
  3. Press the Justify Center button, or the Indent button.
  4. 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.

Change History (1)

comment:1 Changed 17 years ago by Frederico Caldeira Knabben

Resolution: fixed
Status: newclosed

Fixed with [862] and [863].

Note: See TracTickets for help on using tickets.
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy