Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
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
ok, I got it I had to use @Html.Raw(@item.eventSimpleEditor)
Rajeev
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
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
ok, I got it I had to use @Html.Raw(@item.eventSimpleEditor)
Thanks,
Rajeev
is working on a reply...