From 46f7c76c0b4826fb043eb16d20eb2e35724631bc Mon Sep 17 00:00:00 2001 From: Bjarke Berg Date: Mon, 21 Jan 2019 07:54:35 +0100 Subject: [PATCH] Fixes for broken view.. - Create new UmbracoHelper (Missing parameter) - string.replace can't handle string and IHtmlString --- .../Views/Partials/Grid/Editors/TextString.cshtml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/Umbraco.Web.UI/Views/Partials/Grid/Editors/TextString.cshtml b/src/Umbraco.Web.UI/Views/Partials/Grid/Editors/TextString.cshtml index 4cf2e73658..e0db232086 100644 --- a/src/Umbraco.Web.UI/Views/Partials/Grid/Editors/TextString.cshtml +++ b/src/Umbraco.Web.UI/Views/Partials/Grid/Editors/TextString.cshtml @@ -1,12 +1,13 @@ @model dynamic +@using Umbraco.Web.Composing @using Umbraco.Web.Templates @if (Model.editor.config.markup != null) { string markup = Model.editor.config.markup.ToString(); - var umbracoHelper = new UmbracoHelper(UmbracoContext.Current); - markup = markup.Replace("#value#", umbracoHelper.ReplaceLineBreaksForHtml(HttpUtility.HtmlEncode(Model.value.ToString()))); - + var umbracoHelper = new UmbracoHelper(UmbracoContext.Current, Current.Services); + markup = markup.Replace("#value#", umbracoHelper.ReplaceLineBreaksForHtml(HttpUtility.HtmlEncode(Model.value.ToString())).ToString()); + if (Model.editor.config.style != null) { markup = markup.Replace("#style#", Model.editor.config.style.ToString());