Completed
Last Updated: 29 Sep 2015 11:10 by ADMIN
ADMIN
Ianko
Created on: 31 Aug 2015 12:56
Category: Editor
Type: Bug Report
0
Pressing Toggle Floating Toolbar button scrolls the page to the top
The click event of the button is not prevented and the native anchor behavior occurs. This causes the page to scroll to the top and a # to appear in the URL. 

You can use the following code snippet to prevent the native click behavior of the anchor element and workaround the issue:

<telerik:RadEditor runat="server" ID="RE1" ToolbarMode="Floating" OnClientLoad="OnClientLoad"></telerik:RadEditor>

<script>
    function OnClientLoad(sender, args) {
        $telerik.$(".RadEditor a[title='Toggle Floating Toolbar']").attr("href", "javascript:void(0);")
    }
</script>
0 comments