﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc
2757	Selection is not restored properly from bookmark2 in this case.	jorenm@…	Martin Kou	"If you have a non-intrusive bookmark of a text selection that has a previous sibling that is not a text node FCK will not re-select it properly. The problem is that the bookmark creation code assumes the previous sibling will be a text node and it will break the bookmark if it is not.

These changes to the while loops fix it (fckdomrange.js line 477):

Old:
{{{
while ( curStart && addrStart.nodeType == 3 )
while ( curEnd && addrEnd.nodeType == 3 )
}}}

New:
{{{
while ( curStart && curStart.nodeType == 3 && addrStart.nodeType == 3 )
while ( curEnd && curEnd.nodeType == 3 && addrEnd.nodeType == 3 )
}}}
"	Bug	closed	Normal	FCKeditor 2.6.4	General	FCKeditor 2.6.3 Beta	fixed	Confirmed Review+	
