About Custom tool questions

2 posts, 0 answers
  1. Yazhou
    Yazhou avatar
    4 posts
    Member since:
    Feb 2009

    Posted 04 Mar 2009 Link to this post


    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.

    Ya Zhou
  2. Stanimir
    Stanimir avatar
    1654 posts

    Posted 09 Mar 2009 Link to this post

    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.

    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.
Back to Top