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

using multiple editors and toolbar PageTop position

3 Answers 126 Views
Editor
This is a migrated thread and some comments may be shown as answers.
Stephan
Top achievements
Rank 1
Stephan asked on 20 Aug 2009, 12:39 PM
Hi, in the documantion I read I can use multiple RadEditors on my page. I want to show only one toolbar at the time and it should show at the top op the editors.Not of the page.There is an option PageTop, this option shows the toolbar at the top of the page. The problem is, I designed my page using a masterpage and the RadSplitters. So I have a PageTop secion, content section and PageFooter.

Is it possible to configure the editor to show only on toolbar, but this toolbar should show at the top of the content section, not of the page, because then it wil overwrite the menu of my page.


3 Answers, 1 is accepted

Sort by
0
Rumen
Telerik team
answered on 25 Aug 2009, 12:25 PM
Hi Stephan,

With each Telerik.Web.UI update we improve and extend the RadEditor API to cover ever more scenarios.
So, while the functionality is not built in yet, we have extended the RadEditor API prepared a small code sample that pretty much does what you need, with the added benefit that since it is not a part of the editor code, you can tweak it further and customize it to fit your needs.

I am attaching the sample, which demonstrates how to display the toolbar of the selected editor in a DIV that you can place on the desired page position. Please give it a try and let us know if there is any problem or you need extra help for your scenario.

All the best,
Rumen
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.
0
Michael
Top achievements
Rank 1
answered on 01 Mar 2010, 04:20 PM

Hi Rumen,

I found this thread as I have a similiar requirement.

http://www.telerik.com/community/forums/aspnet-ajax/editor/using-multiple-editors-and-toolbar-pagetop-position.aspx

I used the example you provided from that thread and tried to use the same toolbar from an xml file for each editor.

The problem I have is when I click into each editor, it doesnt seem to show the toolbar correctly. Sometimes it ends up having more then one toolbar in the div I have specified or the toolbar is not positioned correctly.

Also, I am trying to make the editor appear as a textbox. I had that working correctly before, but can't seem to get it to work using your example.

What I am wanting is to have multiple editors on the page pointing to one toolbar which is positioned inside a div on the page and each editor will look like a normal textbox. Also is it possible to have an html module positioned inside a div, instead of being directly under each editor?

Mike

0
Rumen
Telerik team
answered on 03 Mar 2010, 03:51 PM
Hi Michael,

Please, find attached the modified aspx file. I noticed that you have not set the OnClientLoad property in the RadEditor declaration and set it.

You should also not use a ToolsFile, but declare the RadEditor tools inline. This will fix the duplicating toolbar problem.

RadEditor does not offer the ability to position its modules inside a div placed somewhere on the page. If you would like you can hide the modules.


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.
Tags
Editor
Asked by
Stephan
Top achievements
Rank 1
Answers by
Rumen
Telerik team
Michael
Top achievements
Rank 1
Share this question
or