Copied to clipboard

Flag this post as spam?

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


  • Rajeev 126 posts 154 karma points
    Jul 22, 2011 @ 09:02
    Rajeev
    0

    Simple editor displays html tags for links instead of Links

    I am trying to use the embedded content using Razor Script.

    But the simple editor renders html tags instead of links.

    <pre>

    @inherits umbraco.MacroEngines.DynamicNodeContext
    @using umbraco.MacroEngines;
    @{
      <div>
      <strong>@Model.Name </strong> <br/>
       @foreach(var item in @Model.eventControl)
       {
        dynamic image=new DynamicMedia(item.eventImage);
        <img src="@image.umbracoFile"/>  @item.eventWriteUp <br/>
         @item.eventSimpleEditor
       }
      
      </div>
     }

     

     

    </pre>

     

    How to access the simple editor value of the embedded control in Razor. Could anyone please help me?

    Thanks,

    -Rajeev

  • Rajeev 126 posts 154 karma points
    Jul 22, 2011 @ 09:06
    Rajeev
    0

    ok, I got it I had to use  @Html.Raw(@item.eventSimpleEditor)

    Thanks,

    Rajeev

Please Sign in or register to post replies

Write your reply to:

Draft