Hi all
I have a radEditor which has suddenly for some reason developed the habit of displaying handles on the content area when the user clicks on the content area to start typing. Specifically, it appears that these are selection handles, for moving and /or resizing, which appear on the BODY element inside the Iframe of the content area. I'm not exactly sure what change could have been made to the radEditor code to cause the BODY element to begin behaving like this, but I'm assuming that I need to use Javascript on the radEditor elements to explicitly disable this behaviour.
I have so far been working on the basis that I need to use addExternalHandler on the Iframe element, to disable drag and drop behaviour of the BODY element within that IFrame, but I can't get this to work in the way I was expecting, using a client-side OnClientLoad event handler for the radEditor in question - and no amount of research has revealed a relevant answer. This is what I have so far, which I have found from piecing together other info on the forum etc, and which runs OK and gives no error ... but also seems to have no effect on the problem: the OnClientLoad function is as follows, with input parameters 'editor' and 'eventArgs' from the event:
var contentelement = editor.get_contentArea; //gets reference to content area BODY element
var myeditoriframe = contentelement.parentNode.parentNode; //navigates up to the iFrame object
var myevent = myeditoriframe.all ? "drop" : "dragstart"; // *** I think this is the problem line!! ****
$telerik.addExternalHandler(myeditoriframe, myevent, function(e) {
$telerik.cancelRawEvent(e);
return false;
});
But the 'addExternalHandler' function never appears to run when the content area is clicked, so it looks like I am either not constructing the external handler parameter object 'myevent' correctly, or that this is simply the wrong approach to addressing this issue!
Would it be possible for somebody to point me in the right direction with this problem. If you could help me out I would be enormously grateful!
Many regards