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

Is there scrollIntoView for the RadEditor?

1 Answer 58 Views
Editor
This is a migrated thread and some comments may be shown as answers.
sitefinitysteve
Top achievements
Rank 2
Iron
Veteran
sitefinitysteve asked on 02 Mar 2009, 04:41 PM
I want to have a "Reply" link which scrolls the window down to my radeditor...kind of works now with this

    function ReplyClick(sender) {
        var editor = $find("<%=txtComment.ClientID%>");

        editor.setFocus();
    }

Once the user starts to type it moves down...but I dont think they'll know the cursor is in the radeditor unless the entire window moves.

Any ideas?



1 Answer, 1 is accepted

Sort by
0
Tervel
Telerik team
answered on 05 Mar 2009, 05:08 PM
Hello Steve,

I am not 100% sure what you are trying to accomplish, but perhaps you can try calling scrollIntoView upon the editor's content iframe, e.g.

editor.get_contentAreaElement().scrollIntoView();

Best regards,
Tervel
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
Tags
Editor
Asked by
sitefinitysteve
Top achievements
Rank 2
Iron
Veteran
Answers by
Tervel
Telerik team
Share this question
or