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

[Solved] Open ShowOnFocus Toolbar under content area

1 Answer 125 Views
Editor
This is a migrated thread and some comments may be shown as answers.
Erick Burgess
Top achievements
Rank 1
Erick Burgess asked on 10 Feb 2010, 11:18 PM
Is it possible to specify that a ShowOnFocus toolbar show to show under the content area instead of above it?

1 Answer, 1 is accepted

Sort by
0
Dobromir
Telerik team
answered on 15 Feb 2010, 03:38 PM
Hi Erick,

RadEditor does not offer the possibility to predefine the position where the toolbar will be positioned, out-of-the box. However, the toolbar is a RadWindow object and this functionality can be achieved with the following Javascript code:
function OnClientLoad(editor, args) 
   var element = document.all ? editor.get_document().body : editor.get_document();
   $telerik.addExternalHandler(element, "click", function(e)
   {
           var oWnd = editor.get_toolAdapter().get_window(); //get reference to RadWindow based ShowOnFocus toolbar 
           oWnd.moveTo(5, 410);
   }); 
}
moveTo() is RadWindow client-side method which moves the window to x, y position.

I hope this information helps.

All the best,
Dobromir
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
Erick Burgess
Top achievements
Rank 1
Answers by
Dobromir
Telerik team
Share this question
or