TinyMCE - relative image path?

Have a question or a suggestion about a 3rd party addon module or plugin?
Let us know here.
Post Reply
kris29
Forum Members
Forum Members
Posts: 53
Joined: Wed Dec 10, 2008 10:56 pm

TinyMCE - relative image path?

Post by kris29 »

I noticed since CMSMS 1.9.(?) TinyMCE shows absolute paths when inserting images. Having a long domain name and deep folder structure the name of the file gets cut off by the short address field :-[

Is there a way to change that to relative paths (like it was in the past)?

Image
geepers
Dev Team Member
Dev Team Member
Posts: 84
Joined: Thu Nov 22, 2007 10:41 pm

Re: TinyMCE - relative image path?

Post by geepers »

I've encountered the same problem, and definitely miss being able to change that setting in the TinyMCE settings.

You 'can' still access the setting within phpMyAdmin.

Run a search in the 'cms_siteprefs' table on the 'sitepref_name' field, search for 'TinyMCE_mapi_pref_relativeurls' - set the corresponding 'sitepref_value' to 1 to turn on relative urls, and to 0 to turn them off.

NOTE: I found that the insert/edit image dialogue window would show the absolute path initially, and but once saved and re-opened it showed the relative url in instead.

It's frustrating and hopefully it is resolved on the next iteration of TinyMCE.

Hope this helped.
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am

Re: TinyMCE - relative image path?

Post by Dr.CSS »

When you first add an image it does have the full long path but when you hit Insert it trims it down to relative path...
Post Reply

Return to “Modules/Add-Ons”