This is a migrated thread and some comments may be shown as answers.

Strange behaviour with RadEditor?

1 Answer 71 Views
Editor
This is a migrated thread and some comments may be shown as answers.
bvsrao
Top achievements
Rank 1
bvsrao asked on 22 Dec 2010, 05:04 PM
Hi,
i am using Telerik RadEditor in one of my project. i am facing the following problem with the RadEditor.
problem is
i have aspx page in that some controls were there among them linkbutton & RadEditor are present.
linkbutton has the accesskey (a). for example if i press the alt+a then focus will move onto the linkbutton, after that if i press the enter key then the linkbutton server side event (click) will be fired this is normal behaviour of the linkbutton.

but the thing is for example i was in the RadEditor contentarea i type some content in that ( i stayed in the contentarea only) after that i pressed the alt+a(this is the accesskey of the linkbutton) after that i am pressing the enterkey to fire the linkbutton click event then that event is not getting fired.instead of that i am going to the next line in the RadEditor.
so, what is the workaround for this?
thanks,
Burepalli V S Rao.

1 Answer, 1 is accepted

Sort by
0
Stanimir
Telerik team
answered on 24 Dec 2010, 02:21 PM
Hi bvsrao,

Make sure that you attach the alt+a handler to the body of the content area of the Editor also. The content area of RadEditor is IFRAME. This means that has different document that the page in which the editor is loaded. You can attach the necessary handlers by setting the OnClientLoad property of the editor.

For example:
<telerik:RadEditor ID="RadEditor1" runat="server" ExternalDialogsPath="Dialogs" OnClientLoad="OnClientLoad"></telerik:RadEditor>

java script:
function OnClientLoad(editor, args)
{
    var iframeBody = editor.get_contentArea();
    //iframeBody is the body of the editor's content area. You can attach your handlers here
}


If you have problems in implementing the functionality, provide me with a sample project where the problem is reproducible and I will advise you further.

Greetings,
Stanimir
the Telerik team
Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.
Tags
Editor
Asked by
bvsrao
Top achievements
Rank 1
Answers by
Stanimir
Telerik team
Share this question
or