We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 33969
    • 60 Posts
    I am running a subdomain in a 'Context' and have a problem inserting images using tinyMCE.

    When I open the 'Insert Image' dialog box, the directory tree opens to the base of the parent domain, not the base of the sub-domain. When I insert the image, the path is realtive to the base of the parent domain. Is there any way I can fix this, other than creating a symbolic link between the two directories?
      Michael Regan
      TIMR Web Services
      Phone: 250.218.5284
      Eamil: [email protected]
      Website: timr.ca
      • 17403 ☆ A M B ☆
      • 183 Posts
      Go to Tools > Media Source. There you find a list of Media Source, by default there is only one Media Source.

      Update existing Media Source.

      If you have more than one Media Source, you could change default media source for all user by going to System Setting > Core > [Filter by] Back-End Manager, then find "Default Media Source".

      Related issue https://forums.modx.com/thread/81296/contexts-images-and-media-sources.
        zaenal.lokamaya
        • 33969
        • 60 Posts
        Thanks - I tried that, but inserting an image using tinyMCE still opens the dialog box in the base of the parent domain, the same as if I were in the 'web' context. I tried the 'ContextRouter' but that didn't seem to help.

        I switched tinyMCE 'tiny.path_options' to fullpathurl, so I can insert images into pages in the sub-domain using tinyMCE. Not the best solution - but I can live with it for now.
          Michael Regan
          TIMR Web Services
          Phone: 250.218.5284
          Eamil: [email protected]
          Website: timr.ca