RadEditor Content

3 posts, 1 answers
  1. Nick
    Nick avatar
    23 posts
    Member since:
    Jan 2012

    Posted 11 Jun 2015 Link to this post

    HI Telerik

     I have htmlEcoded data coming from an external source. 

    If I set the radeditor's content to this htmlEncoded data, it doesn't display properly. If I htmldecode this data and then set it to radeditor's content... it displays properly..

    Can you pls explain why it is so. Also is it ok to htmldecode data and display in editor.

    Please reply..

    Thanks,

    Nick.

  2. Answer
    Ianko
    Admin
    Ianko avatar
    1535 posts

    Posted 16 Jun 2015 Link to this post

    Hello Nick,

    RadEditor is a text editor based on HTML, thus, you need proper HTML in order for the text to be rendered properly. When it is encoded, it is transformed to plain text, and it is no more markup that can be rendered by the browser. RadEditor has no capabilities to programmatically  capture and decode encoded HTML, moreover such behavior would be inappropriate.

    In order to properly add content to the editor, you should make sure it is proper HTML, therefore, when programmatically adding encoded HTML, you should first decode it.

    Regards,
    Ianko
    Telerik
    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 Feedback Portal and vote to affect the priority of the items
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Nick
    Nick avatar
    23 posts
    Member since:
    Jan 2012

    Posted 17 Jun 2015 Link to this post

    Thank you very much.  

    I appreciate your response

    Nick.

Back to Top