-
Notifications
You must be signed in to change notification settings - Fork 2.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
V8.2 - RTE Inside Grid, does not render image URL #6763
Comments
I think the problem here is because that
this function does not replace the media url's. The RTE value converter also calls 2 additional methods Umbraco-CMS/src/Umbraco.Web/PropertyEditors/ValueConverters/RteMacroRenderingValueConverter.cs Lines 84 to 86 in 1d39a25
A possible workarround migth be to update @model dynamic
@using Umbraco.Web.Composing
@using Umbraco.Web.Templates
@{
var sourceString = Model.value.ToString();
sourceString = TemplateUtilities.ParseInternalLinks(sourceString, preview, Current.UmbracoContext.UrlProvider);
sourceString = TemplateUtilities.ResolveUrlsFromTextString(sourceString);
sourceString = TemplateUtilities.ResolveMediaFromTextString(sourceString);
}
@Html.Raw(sourceString) Please note that I've not tested the code so it might not work without some modifications |
@rasmusjp
|
@AndersBrohus-MySupport I've looked into the options here to see how we could solve the issue. As mentioned in the other issue the actual URL of the image file is (intentionally) removed from the This however brings up the issue you see where you simply do not get the result you'd expect (and a result that actually doesn't work out of the box for rendering in frontend). I've looked into trying to resolve and recreate the What @rasmusjp suggests above is the best solution we can provide for now. By default when rendering a grid, it parses internal links and outputs them as real links instead of the syntax Umbraco uses internally. The same thing needs to happen with images in order to recreate the If you are using this value in some other way, expecting to see the actual file path in the |
fixed here: #6810 |
I have an project which i upgraded from Umbraco 8.1.3 to 8.2 :)
In that project i have an Grid setup with some RTE's but when i use the "Insert Image" inside the RTE i do not get the URL out on the website only the ImageProcessor parameters, but inside the RTE's "View Source Code" i can see it :)
Steps to reproduce
Use the RTE inside an grid and insert an image and try to render it on the frontend.
Expected result
An img tag which has a source with an complete url
Actual result
An img tag which only has the imageprocessor parameters :)
This item has been added to our backlog AB#3256
The text was updated successfully, but these errors were encountered: