Completed
Last Updated: 02 Oct 2015 13:40 by Danny
ADMIN
Slav
Created on: 07 Feb 2014 13:29
Category: Editor
Type: Feature Request
1
The cursor does not appear in RadEditor on Chrome when its content area is clicked or when setFocust is invoked
When the RadEditor is used on Chrome, it is not focused and you click on the empty space in the content area or call the client-side function 'setFocus', the cursor in the content area will not appear, because the editor does not get the focus.

You can use the following workaround to avoid the problem when the editor's content is clicked:
        <telerik:RadEditor runat="server" ID="RadEditor1" OnClientLoad="OnClientLoad">
        </telerik:RadEditor>

        <script type="text/javascript">
            function OnClientLoad(editor, args) {
                if ($telerik.isChrome) {
                    setTimeout(function () {
                        var body = editor.get_contentArea();
                        var contentElm = editor.get_contentAreaElement();

                        body.style.height = (contentElm.offsetHeight - 10) + "px";
                    }, 0);
                }
            }
        </script>
2 comments
Danny
Posted on: 19 Jun 2014 14:05
Thanks, that works!  
www.BlueCanyonSoftware.com 
Ikbum Kim
Posted on: 17 Feb 2014 02:30
Thanks for this tip, script works fine.