Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at

  • Patrick van Kemenade 97 posts 325 karma points
    May 08, 2020 @ 10:06
    Patrick van Kemenade

    Image handling Umbraco in the RTE editor

    It's a complete mystery to me what Umbraco is doing with pictures in the RTE edittor and how I can configure things to be useable.

    I currently upload every image via FTP and put in the manually but since I want other people to use the CMS that is not a feasable solution anymore.

    For istance when using the RTE grid when I select an image (2700 pixels wide) it generates the following

    <img src="/media/53qnll3t/piramide-cestius.jpg?width=1200&amp;height=713.7777777777777" alt="" width="1200" height="713.7777777777777" data-udi="umb://media/afd560f953b34b3cbf70781096fd6ef2" />

    Note I don't have any Crop sizes defined.

    Developer->Data Types->Rich Text Editor the Maximum size is set to 500px guess this setting is ignore right ?

    So where is this 1200px coming from ???

    Also do I have any control of all the "crap" umbraco is adding, can I configure to remove "?width=1200&height=713.777777" and remove the width/height properties all together if I just want the original size ?

    And is there an option to remove the data-udi so I get a clean result.

    Also tried to create and AddImage macro with an Image Picker as 1 of the arguments but that gives other issues like that it always puts a div around the result breaking the WHYSIWYG.

    Any thoughts how I could use Umbraco RTE and keep in control of my images. Or how I could best implement my own AddImage button to the RTE in which I can control the behaviour ?

Please Sign in or register to post replies

Write your reply to: