i made this post in the asp.net forum and that might have been the wrong place so i'm adding it here too....
I'm trying to enable drag and drop from RadTreeView to RadEditor following the demo, but i also need to be able to insert text in HTML view. When i call $telerik.getBounds() on the return of editor.get_textArea(), the .x and .y are incorrect, something like 0,1. I am checking prior to this that they are indeed in html mode. This works fine for the alternative in design view and get_contentAreaElement(). Is there a way to get the bounds of the textArea, or just the entire control when in HTML view? ( i dont care if they are over the text box or the entire radEditor).
version 2011 q1 sp2
visual studio 2010 premium/c#
IE9 in standard and compatibility mode, IE8, firefox all do the same thing
I'm trying to enable drag and drop from RadTreeView to RadEditor following the demo, but i also need to be able to insert text in HTML view. When i call $telerik.getBounds() on the return of editor.get_textArea(), the .x and .y are incorrect, something like 0,1. I am checking prior to this that they are indeed in html mode. This works fine for the alternative in design view and get_contentAreaElement(). Is there a way to get the bounds of the textArea, or just the entire control when in HTML view? ( i dont care if they are over the text box or the entire radEditor).
version 2011 q1 sp2
visual studio 2010 premium/c#
IE9 in standard and compatibility mode, IE8, firefox all do the same thing
function
isMouseOverEditorCodeView(editor, events) {
var
textFrame= editor.get_textArea();
var
textRect= $telerik.getBounds(textFrame);
var
mouseX = events.clientX;
var
mouseY = events.clientY;
if
(mouseX < (textRect.x + textRect.width) && mouseX > textRect.x &&
mouseY < (textRect.y + xtRect.height) && mouseY > textRect.y) {
return
true
;
}
return
false
;
}