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

About Custom tool questions

1 Answer 44 Views
WebParts for SharePoint
This is a migrated thread and some comments may be shown as answers.
Yazhou
Top achievements
Rank 1
Yazhou asked on 04 Mar 2009, 03:49 PM

Hi,

I already have a custom tool on my editor's toolbar.Now I have two questions ,first one is, can I open a page not use editor.ShowDialog() method but can return value to the editor or paste html to the editor from pop up page? 
And second one is, can I add command list for my custom tool in other place,not in the  MOSSEditorTools.js file?
I'm looking forward to your reply.

Thanks,
Ya Zhou

1 Answer, 1 is accepted

Sort by
0
Stanimir
Telerik team
answered on 09 Mar 2009, 08:40 AM
Hi Yazhou,

You can paste HTML code in the RadEditor form any where in you code as long as you have a reference to the control. You can use the PasteHtml client side method of the RadEditor. There is more information on the matter in the following help article http://www.telerik.com/help/aspnet/editor/pastehtml.html .

Now regarding your second question, by using SharePoint designer or some other tool,  You can put your javascript code in the page where you are using the RadEditor or even at the bottom of your master page. What I suggest to you is to check if you have the RadEditorNamespace registered though. This way you will not load the script if you have no RadEditor on the page. You can make the following check:
if (typeof(RadEditorNamespace) != "undefined"
    //enter your code here. 


I hope this helps.


Greetings,
Stanimir
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.
Tags
WebParts for SharePoint
Asked by
Yazhou
Top achievements
Rank 1
Answers by
Stanimir
Telerik team
Share this question
or