#3283: 'CKEDITOR.dom.node.getPreviousSourceNode' bug
-------------------------------+--------------------------------------------
Reporter: garry.yao | Owner: garry.yao
Type: Bug | Status: assigned
Priority: Normal | Milestone: CKEditor 3.0
Component: General | Version:
Keywords: Confirmed Review- |
-------------------------------+--------------------------------------------
Changes (by martinkou):
* keywords: Confirmed Review? => Confirmed Review-
Comment:
It isn't possible to walk backwards in DFS order without using lastChild.
e.g. the following script, when executed within the replacebyclass.html
sample, will never give you the correct backwards walk no matter whether
you feed true or false to getPreviousSourceNode():
{{{
f = frames[0];
c = l = new CKEDITOR.dom.element(f.document.links[0]).
getNextSourceNode(); // The "FCKeditor" text node
while(c = c.getPreviousSourceNode(true))
console.log(c.getOuterHtml ? c.getOuterHtml() : c.getText());
}}}
--
Ticket URL: <http://dev.fckeditor.net/ticket/3283#comment:3>
FCKeditor <http://www.fckeditor.net/>
The text editor for Internet
------------------------------------------------------------------------------
_______________________________________________
FCKeditor-Trac mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/fckeditor-trac