1-888-365-2779
+1-888-365-2779
Try Now
More in this section

Forums / Developing with Sitefinity / Client method to encode\decode rich text content?

Client method to encode\decode rich text content?

2 posts, 0 answered
  1. Steve
    Steve avatar
    3037 posts
    Registered:
    03 Dec 2008
    22 Feb 2012
    Link to this post
    How is it that I can take rich HTML content from the RadEditor and encode it so it'll properly save up to my json service?

    ...there's gotta be a helper or something to do that right? :)

    Steve
  2. Svetoslav Petsov
    Svetoslav Petsov avatar
    456 posts
    Registered:
    24 Sep 2012
    27 Feb 2012
    Link to this post
    Hello Steve,

     You can use the client-side API of the editor to get its content and then pass it to the service as HTML. If you want to perform any encoding/decoding, you will have to do it manually (there are no helpers that I am aware of). Here's a demo that demonstrated the client-side API of the RadEditor:
    http://demos.telerik.com/aspnet-ajax/editor/examples/clientsideapi/defaultcs.aspx 

    Regards,
    Svetoslav Petsov
    the Telerik team
    Do you want to have your say in the Sitefinity development roadmap? Do you want to know when a feature you requested is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
2 posts, 0 answered