The example here does not work on most anything but IMG and TABLE tags, instead something like:
if ( FCKSelection.HasAncestorNode('SPAN') && FCKSelection.MoveToAncestorNode('SPAN')._fckplaceholder )
This is a much more solid solution to this problem