More in this section

Forums / Developing with Sitefinity / Editor Symbols

Editor Symbols

3 posts, 0 answered
  1. andrew
    andrew avatar
    7 posts
    Registered:
    05 Jun 2008
    22 Sep 2009
    Link to this post
    Hello, I want to add more symbols to the 'insert symbols' drop down in RadEditor but have no idea where to start. Any pointers?

    Thanks
  2. Radoslav Georgiev
    Radoslav Georgiev avatar
    3370 posts
    Registered:
    01 Feb 2016
    22 Sep 2009
    Link to this post
    Hi andrew,

    Thank you for using our services.

    In order to add more symbols to the RadEditor you have three options. The first two are adding them either declaratively to the markup of your control templates that are using the RadEditor:
     <telerik:RadEditor runat="server" ID="RadEditor1" ...> 
      ... 
     <Symbols> 
           <telerik:EditorSymbol Char="\u20AC" /> 
           <telerik:EditorSymbol Char="\u00A2" /> 
       </Symbols> 
    </telerik:RadEditor>  

    or programmatically to the code of your control templates:
    // Use the unicode escape character "\u" 
    RadEditor1.Symbols.Add("\u00A2"); 

    However this approach will make the symbols available just for  that particular control template. If you wish to add them to more than one control template a better approach would be using the editor tools file, and adding symbols there:
     <root> 
     <tools name="MainToolbar" enabled="true"
       <tool name="InsertSymbol" /> 
     </tools> 
     <symbols> 
       <symbol value="\u20AC" /> 
     </symbols> 
    </root>  

    For more information on adding symbols you can take a look at this article.

    If you have more questions, please feel free to contact us.

    Best wishes,
    Radoslav Georgiev
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
  3. andrew
    andrew avatar
    7 posts
    Registered:
    05 Jun 2008
    22 Sep 2009
    Link to this post
    Thank you, much appreciated
Register for webinar
3 posts, 0 answered