Yes, of course it has to do with CuteEditor. CuteEditor is a text editor and part of the basic requirement is to provide code to position the cursor.
I can get the position easily in CE using IE, but not with FF because I need these properties.
Other editors provide access to these properties so that the cursor can be placed at a specific location.
Also, if I want to select a range based on position, I need these properties.
This is a common function:
function getCaretPos(el) {
if (typeof el.selectionStart != “undefined”)
return el.selectionStart;
else if (document.selection)
return Math.abs(document.selection.createRange().moveStart(”character”, -1000000));
}
Most editors enable this property. How can we get it in CE?