Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • ianhoughton 241 posts 490 karma points c-trib
    Oct 29, 2013 @ 13:29
    ianhoughton
    0

    V6 API Create content - Adding HTML into RTE

    Umbraco V6.1.5

    I'm trying to insert some HTML from some old blog posts into the bodyText field (RTE), but all of the tags, spaces and line returns are getting stripped out. The tags are the normal <b> so nothing that tinyMce should be stripping.

    var contentService = new ContentService();
    
    var post = contentService.CreateContent(postTitle, blogSection, "NewsArticle");
    
    post.SetValue("bodyText", postData);
    post.SetValue("articleDate", postDate);
    contentService.SaveAndPublish(post);
  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies