Files
Umbraco-CMS/src/Umbraco.Web.UI/Views/Partials/grid/editors/textstring.cshtml

24 lines
535 B
Plaintext
Raw Normal View History

2021-02-05 16:31:14 +01:00
@using System.Web
@model dynamic
@if (Model.editor.config.markup != null)
{
string markup = Model.editor.config.markup.ToString();
markup = markup.Replace("#value#", Html.ReplaceLineBreaks((string)Model.value.ToString()).ToString());
2021-02-05 16:31:14 +01:00
if (Model.editor.config.style != null)
{
markup = markup.Replace("#style#", Model.editor.config.style.ToString());
}
<text>
@Html.Raw(markup)
</text>
}
else
{
<text>
<div style="@Model.editor.config.style">@Model.value</div>
</text>
}