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

Toolbar Floats around on ToolbarMode="ShowOnFocus"

3 Answers 36 Views
Editor
This is a migrated thread and some comments may be shown as answers.
Rory
Top achievements
Rank 1
Rory asked on 18 Mar 2010, 01:47 AM
When we set the ToolbarMode="ShowOnFocus" the toolbar floats around the page when we scroll around on the page. We would like to be able to PIN this toolbar so it doesn't float over editor's text. Is this possible? Thanks.

3 Answers, 1 is accepted

Sort by
0
Rumen
Telerik team
answered on 18 Mar 2010, 01:51 PM
Hello Rory,

Here is an example how to pit the toolbar:

<telerik:RadEditor runat="server" ID="RadEditor1" ToolbarMode="ShowOnFocus" OnClientLoad="OnClientLoad"></telerik:RadEditor>   
<script type="text/javascript">
function OnClientLoad(editor, args)
{
     //Get a reference to the toolbar's RadWindow
    var wnd = editor.get_toolAdapter().get_window();
    wnd.add_show(function() {
        wnd.togglePin();
    });
}     
</script>


Kind regards,
Rumen
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
0
Rory
Top achievements
Rank 1
answered on 18 Mar 2010, 06:47 PM
When I tried to use this code I start getting this javascript error:
Line: 2858
Error: 'get_container()' is null or not an object

In this snippet of code:

if

 

(!a){return;}var b=a.get_container().clone(e.get_id()+"_toolbarMode");

 

0
Rumen
Telerik team
answered on 23 Mar 2010, 01:17 PM
Hi Rory,

It seems that you are using a very old version of RadEditor for ASP.NET AJAX. You should upgrade to the latest Q1 2010 version of RadEditor to be able to achieve your scenario.

For your convenience I have attached a sample working project and video demonstrating how the code  works with the latest editor.

Best regards,
Rumen
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
Tags
Editor
Asked by
Rory
Top achievements
Rank 1
Answers by
Rumen
Telerik team
Rory
Top achievements
Rank 1
Share this question
or