We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 18436
    • 135 Posts
    Hi there, I’ve encountered a strange URL issue, whenever I insert either a link or an image I get the following prepended onto the url: "/development/swellguys.co.za/manager/" This is the path from the webserver html folder. Where or how do I fix this problem as I’m really keen to ditch F(insert vowel)CKEditor. This seems to be the same error as the previous post in this forum.

    I have my system setup in the following manner:

    • Rewrite Image Paths: No
    • File Manager Path: C:/WebServer/www/development/swellguys.co.za/
    • Enable Resource Browser: Yes
    • Resource Path: c:/WebServer/www/development/swellguys.co.za/assets/
    • Resource URL: assets/
    • Enable editor: Yes
    • Editor to Use: TinyMCE
    • Theme to Use: Full featured
    • Use friendly URLs: Yes
    • Prefix for friendly URLs: None
    • Suffix for friendly URLs: .html
    • Use friendly aliases: Yes
    • Use friendly alias path: Yes
    • .htaccess: RewriteRule ^(.*)$ /development/swellguys.co.za/index.php?q=$1 [L,QSA]
    I’ve tried this on my home installation as well as my localhost installation here at work and it behaves the same in both cases. Thanks for any light you can shed on the subject.
      • 18436
      • 135 Posts
      OK, I think I found the culprit, go to the plugin configuration tab and look for the following:

      <script language="javascript" type="text/javascript">
      	tinyMCE.init({
      		  theme : 'advanced',
      		  mode : "exact",
      		  relative_urls : false,
      


      Then change it to:

      <script language="javascript" type="text/javascript">
      	tinyMCE.init({
      		  theme : 'advanced',
      		  mode : "exact",
      		  relative_urls : true,
      


      Seems to have done the trick for me, don’t know if breaks anything else, gonna test it out at home tonight and will give some feedback tomorrow.
      • Seems to have fixed the link problems, it was also doing it in 2.0.5.1. Although in that version it was not in the "configuration" tab. It appeared twice in the plugin code.

        I have another question, TinyMCE 2.0.5.1 doesn’t use the Resource Browser for inserting images? That’s a show-stopper.
          Studying MODX in the desert - http://sottwell.com
          Tips and Tricks from the MODX Forums and Slack Channels - http://modxcookbook.com
          Join the Slack Community - http://modx.org
          • 4018
          • 1,131 Posts
          TinyMCE 2.5.1 does indeed use the Resource Browser for inserting images. If it’s not working for you then try clearing your browser cache and reload it. Also, I’ve noticed that TinyMCE’s call for the Resource Browser can get screwed up at times depending upon how your browser is configured. For instance, I’m using the AdBlock Plus extension for Firefox. If I don’t tell it to ignore the site where Modx is installed then it unintentionally screws up the way the javascript call to the Resource Browser works and thus it doesn’t work. So check for that as well and try disabling any browser plugins or extensions that might be screwing things up. smiley

          As stated in another thread, I probably need to revisit the relative_urls parameter and see if I can get it to recognize the setting for this in the manager. Shouldn’t be too difficult to fix. smiley
            Jeff Whitfield

            "I like my coffee hot and strong, like I like my women, hot and strong... with a spoon in them."
          • I don’t have AdBlockPlus, but I do have AdBlock. So maybe that has something to do with it.
              Studying MODX in the desert - http://sottwell.com
              Tips and Tricks from the MODX Forums and Slack Channels - http://modxcookbook.com
              Join the Slack Community - http://modx.org
              • 4018
              • 1,131 Posts
              Quote from: sottwell at May 01, 2006, 02:19 PM

              I don’t have AdBlockPlus, but I do have AdBlock. So maybe that has something to do with it.

              Has everything to do with it. When you first visit the site, click on the arrow right next to the AdBlock button to disable it on the current site. That should make everything work. I remember when I first installed AdBlock...drove me nuts! I kept thinking that there was something wrong with MODx! Turned out to be AdBlock doing all the screwy stuff! LOL!
                Jeff Whitfield

                "I like my coffee hot and strong, like I like my women, hot and strong... with a spoon in them."
              • Hm. Odd that it should work just fine with FCK. Well, I’ll go check it out.

                No go; this is what I get, with or without the entire site whitelisted. Even completely disabled adblock.
                  Studying MODX in the desert - http://sottwell.com
                  Tips and Tricks from the MODX Forums and Slack Channels - http://modxcookbook.com
                  Join the Slack Community - http://modx.org
                  • 4018
                  • 1,131 Posts
                  That is odd. Hmm...what version of Firefox are you using? Also, what other extensions do you have installed? Being that the words "Adblock" are on the bottom-left of that image still makes me wonder a bit.
                    Jeff Whitfield

                    "I like my coffee hot and strong, like I like my women, hot and strong... with a spoon in them."
                    • 16892
                    • 107 Posts
                    I am using Firefox 1.5.02 with the entire site whitelisted via Adblock and the resource browser does now show up when I choose the link or image buttons.

                    I’ve also tried it in IE6 and the resource browser does not show as well.

                    I am assuming that the resource browser being referenced is similar to the interface in FCKEditor where you can find files and images on the server.

                    I did make the fix to the code re relative paths which fixed the problem with the URLs I was having.

                    I am using TinyMCE with the Advanced toolbar set.

                    Any help appreciated.
                      • Studying MODX in the desert - http://sottwell.com
                        Tips and Tricks from the MODX Forums and Slack Channels - http://modxcookbook.com
                        Join the Slack Community - http://modx.org