RadEditor events/methods onkeyup

3 posts, 0 answers
  1. Tom
    Tom avatar
    2 posts
    Member since:
    Aug 2014

    Posted 22 Aug 2014 Link to this post

    “This event is fired before the initialization of the editor's content area. ” - i say no

    If I wait until the page loads and then start typing in the text area nothing happens. I have to first press enter (or some other command like insert image or change text to bold) then the onkeyup gets triggered when i type. So why and how can I get round this problem?  I want the onkeyup event handler to start listening as soon as i can start editing the content - not after i have already typed out a paragraph. (note: i have tried OnClientLoad like the example shows and get same behavior)

    My code:

    function OnClientInit(editor, args) {
        editor.attachEventHandler("onkeyup", function (e) {   



    Article: http://www.telerik.com/help/aspnet-ajax/editor-onclientinit.html

  2. Tom
    Tom avatar
    2 posts
    Member since:
    Aug 2014

    Posted 22 Aug 2014 in reply to Tom Link to this post

    In dotnetnuke i set the "Command Executing:" to OnClientInit. So this is why i am getting this behavior. However i do not know how to use the OnClientInit event in DotNetNuke. The following does not work:

    <dnn:TextEditor ID="textEditor" OnClientInit="OnClientInit" runat="server" height="500" width="510" />
  3. Marin Bratanov
    Marin Bratanov avatar
    3899 posts

    Posted 26 Aug 2014 Link to this post

    Hello Tom,

    I advise that you use the OnClientLoad event: http://www.telerik.com/help/aspnet-ajax/editor-onclientload.html. This article also shows how to attach an event handler in the content area. I am attaching a sample and a short video that demonstrate the correct behavior.

    As for DNN - we do not support this environment and the wrappers they have over our controls, so I advise that you reach out to their support team or forums for assistance with changed event handlers and property names.


    Marin Bratanov

    Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

Back to Top