I can't wrap my head around how to get this to work.
What do I need to change to get slimmage to work on all images added either through Images in the RTE in a Grid, or through the Image selector in the Grid?
I've tried changing settings in the tinymce umbracoimg image.js, to include class="slimmage" but that didn't work, didn't even add the test <p></p> tag I added. So not sure what's going on there, maybe I'm editing the wrong file.
RTE, Image, Grid
I can't wrap my head around how to get this to work.
What do I need to change to get slimmage to work on all images added either through Images in the RTE in a Grid, or through the Image selector in the Grid?
I've tried changing settings in the tinymce umbracoimg image.js, to include class="slimmage" but that didn't work, didn't even add the test
<p></p>
tag I added. So not sure what's going on there, maybe I'm editing the wrong file.Any pointers would be highly appreciated.
So I found the grid image part. That was located in Views/Partials/Grid/Editors/Media.cshtml
Now it's only the RTE image stuff left. More hacking!
Hi Rune!
Try this:
File: /Umbraco/Js/umbraco.services.js
Code Line: 6306 Note: This is Umbraco 7.4.1 so the line might be different, but just search for the funtion in that js file.
Function: insertMediaInEditor
YES! Thanks a lot Dennis!
Been spending hours trying to figure out this!
Again, THANK YOU! :D
Hi Rune! Awsome that it worked for you!! Always happy to help!
Good luck with the rest of yout Umbraco site and have a great day. :)
is working on a reply...