Copied to clipboard

Flag this post as spam?

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


  • Claus Jessing 9 posts 100 karma points
    Oct 01, 2021 @ 08:31
    Claus Jessing
    0

    How do I get absolute urls when inserting images in TinyMCE?

    I have tried all combinations of

        <config key="convert_urls">true</config>
        <config key="relative_urls">false</config>
        <config key="remove_script_host">false</config>
    

    in tinyMceConfig.config but no matter what, all image sources are relative like this:

    <img src="/media/oejeu3gj/logo.png?width=246&amp;height=49"  width="246" height="49" data-udi="umb://media/744a1277a0c944e1bbf07b25b5ac74d1" />
    

    Those 3 switches seems to have no effect at all...

    Please advice :-)

  • Paul 89 posts 167 karma points
    Oct 01, 2021 @ 08:57
    Paul
    100

    I believe you can set the urlProviderModel to Absolute in umbracoSettings.config file.

    Read more here: https://our.umbraco.com/Documentation/Reference/Config/umbracoSettings/index-v8#urlprovidermode

  • Claus Jessing 9 posts 100 karma points
    Oct 01, 2021 @ 09:28
    Claus Jessing
    1

    As it turns out the combination of

    urlProviderModel="Absolute"
    

    and

    <config key="convert_urls"></config>
    

    gives me the result I was after so THANK YOU! :-)

Please Sign in or register to post replies

Write your reply to:

Draft