Try Now
More in this section

Forums / General Discussions / RadEditor: EMail HTML Unicode

RadEditor: EMail HTML Unicode

2 posts, 0 answered
  1. thomas3577
    thomas3577 avatar
    22 posts
    18 Feb 2007
    10 Jan 2010
    Link to this post
    I want to write EMail in Unicode.

    email@email.net convert to: Mein Text ...

    But the RadEditor convert back to email@email.net

    What can I do?
  2. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    25 Oct 2016
    10 Jan 2010
    Link to this post
    Hi thomas3577,

    You can create a custom function that gets the Unicode and converts it/not coverts it to the preferred notation

    <script type="text/javascript">   
        function OnClientLoad(editor, args)   
           editor.get_filtersManager().add(new RadEditorCustomFilter());   
        RadEditorCustomFilter = function()   
           this.set_name("RadEditor filter");   
           this.set_description("RadEditor filter description");   
        RadEditorCustomFilter.prototype =   
           getHtmlContent : function(content) {   
                //Make changes to the content and return it   
                //Convert all symbols to their numeric HTML entities
           newContent = content.replace(/test/, "&#0116;&#0101;&#0115;&#0116;");    
             return newContent;   
        RadEditorCustomFilter.registerClass('RadEditorCustomFilter', Telerik.Web.UI.Editor.Filter);   

    Ivan Dimitrov
    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.
2 posts, 0 answered