Copied to clipboard

Flag this post as spam?

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


  • nug 11 posts 33 karma points
    Mar 28, 2012 @ 08:40
    nug
    0

    RTE - what's the point?

    Hi all,

    I'm new to umbraco and have come across a seemingly known issue where a field which is set to use the RTE datatype outputs raw html in the razor view.  I've found many answers to this question explaining how you can strip out the html tags. But what's the point of having a Rich Text Editor with no richness?

    eg. for an RTE field where I use this in razor:

    <span class="content">@Umbraco.Field("content")</span>

    or a suggested option:

    <span class="content">@(Html.Raw(@Umbraco.Field("content")))</span>

    I get this output:

    <p>I <strong>never</strong> thought much about getting richness</p>

    My preference is for users to use all features of the RTE including bold, italic, images, links, etc and output the formatted html in my razor view.

    What am I missing?

     

Please Sign in or register to post replies

Write your reply to:

Draft