Copied to clipboard

Flag this post as spam?

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


  • Jonas Eriksson 930 posts 1825 karma points
    Mar 19, 2010 @ 12:19
    Jonas Eriksson
    0

    Add tinyMCE configuration (disable relative urls)

    Hi!

    Whenever a user adds a link to the same site that link will be made into a relative one. http://www.whatever.com/mylink will be /mylink.

    To disable that feature I think one has to add a setting for tinyMCE init.

    "Go into your /modules directory and access the /TinyMCE directory where you have installed the TinyMCE module. There edit the file tinyconfig.php, search for the line that reads relative_urls : "true" (line 101 in version 2.2.5 of the TinyMCE basic module) and set it to “false”. That should be it."

    http://www.google.se/search?rlz=1C1GGLS_svSE366SE367&sourceid=chrome&ie=UTF-8&q=tinymce+strip+domain+name

    I saw the core team had added a nice feature in /settings/tinyMceSettings.config so that one can add a custom config key, but this does not seem to do the trick:

      <customConfig>
        <!--    <config key="myKey">mySetting</config>-->
          <config key="relative_urls">false</config>
      </customConfig>

    (I changed it and restarted the app-pool, but tinyMce still change the urls)

    Regards

    Jonas Eriksson

  • Jonas Eriksson 930 posts 1825 karma points
    Mar 19, 2010 @ 12:21
    Jonas Eriksson
    0

    http://wiki.moxiecode.com/index.php/TinyMCE:FAQ (the ref for TinyMce config)

  • Craig Nichols 3 posts 24 karma points
    Nov 23, 2010 @ 02:15
    Craig Nichols
    1

    Hi Jonas et all

    Adding convert_urls = false to the customConfig section of tinyMceConfig.config fixed this issue for me.

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

    Regards

    Craig

  • Eric Herlitz 97 posts 129 karma points
    Jun 12, 2011 @ 22:46
    Eric Herlitz
    0

    That seems to be broken in 4.7, nothing and I mean nothing will stop that damn editor from messing with my Urls.

  • Anders Brohäll 295 posts 561 karma points c-trib
    Mar 06, 2012 @ 12:20
    Anders Brohäll
    0

    I can confirm that it worked for me when having trouble with using '../whatever' relative links.

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

    #h5yr

  • Mikael Syska 24 posts 91 karma points
    Feb 06, 2013 @ 15:18
    Mikael Syska
    0

    @Anders Brohall

    What version are you using?

    I found this bug: http://issues.umbraco.org/issue/U4-374

    Exactly the same issue I'm seeing ... running 4.9.1

    mvh

  • Mihai Osvat 20 posts 40 karma points
    Aug 12, 2013 @ 11:27
    Mihai Osvat
    0

    Hi,

    I also cannot get rid of this "feature", I added converturls -> false, I added relativeurls -> false, I modified the web.config to force a restart, nothing ...

    I tested this with ver.6.0.0 and 6.1.3.

Please Sign in or register to post replies

Write your reply to:

Draft