When I try to insert text into the infragistics web editor it fails in the javascript for the method insertAtCaret. The error is 'Unable to get property 'startContainer' of undefined or null reference'. It is occurring at line 428 when I debug the javascript
var src,afterNode,cont=range.startContainer,pos=range.startOffset;
Is there any way to use this method in IE11?
Thanks
Hello,
Thank you for your feedback and for sharing this with us.
I believe that the other community members could benefit from such threads.
I wasn't able to get the set cursor position to work, I wrote a workaround where I place some placeholder text at the position of the cursor before it loses focus then I replace that text with the value that I need.
Hi,
If you need further assistance regarding this, contact me
Viktor is right about loosing of the focus and setting the caret at the beginning. I can suggest you to have a look at this forum thread, regarding "Set cursor position in WebHTMLEditor".
http://es.infragistics.com/community/forums/p/14477/267855.aspx
I read in another post "Since IE9 the functionality of selection/activation/focus in IE changed. Old selection in previous active element is not maintained and it gets reset after lost focus. That means that if end user changed focus (clicked on INPUT or similar element located outside of editing area of WebHtmlEditor), then selection/caret in WebHtmlEditor is lost and browser inserts text at different place (mostly at the beginning). Unfortunately WebHtmlEditor is not able to get around that feature of IE."
Is there a way to set the caret position in the editor?