FCKeditor - JavaScript - Sample 1

This sample displays a normal HTML form with an FCKeditor with full features enabled.

Press "Select all", the info above will say that the current node is P and its parent node is HTML.
the problem is in FCKSelection.GetParentElement, oSel is BODY, not P
	// make the common case fast - for collapsed/nearly collapsed selections just return anchor.parent.
	if ( oSel.anchorNode && oSel.anchorNode == oSel.focusNode )
		return oSel.anchorNode.parentNode ;