Forums / All Other Contributions/Addons / TinyMCE editor does something odd with image URLs

TinyMCE editor does something odd with image URLs

Locked
Results 1 to 3 of 3
This thread is locked. New replies are disabled.
07 Jul 2010, 14:31
#1
kachana avatar

kachana

New Zenner

Join Date:
Oct 2008
Posts:
24
Plugin Contributions:
0

TinyMCE editor does something odd with image URLs

I am using 1.39d with TinyMCE 3.6.6, and unable to upload images. But I noticed something really odd when I used it to open the define_main_page.php. The default image that's supposed to be in the images/large/e-start-book.gif of the catalog side, is changed to /ADMINFOLDERNAME/images/large/e-start-book.gif after I saved the file. I have no idea why that is...please help. Maybe this is why I am unable to upload images to the server?

Any help is greatly appreciated. Thanks,

Kachana
07 Jul 2010, 15:42
#2
kachana avatar

kachana

New Zenner

Join Date:
Oct 2008
Posts:
24
Plugin Contributions:
0

Re: TinyMCE editor does something odd with image URLs

I just installed CKEditor, and this one does the same thing. It automatically appends the admin folder to the image urls. I am running fresh 1.39d install, and the only add-ons are these editors. I also changed the admin folder, do you think I messed it up somewhere???
19 Sep 2010, 06:17
#3
nigelt74 avatar

nigelt74

Totally Zenned

Join Date:
Sep 2005
Posts:
1,558
Plugin Contributions:
1

Re: TinyMCE editor does something odd with image URLs

No you didn't mess it up

thats the default behaviour, or at least it was for me

what i did was change the below around line 37? of

admin/includes/tinymce.php



relative_urls : false,



to



// relative_urls : false,
// added Nigel
convert_urls : false,



apparently some versions of IE may ignore the rule, but that is what fixed it for me

have a read here for other solutions

http://wiki.moxiecode.com/index.php/TinyMCE:FAQ#Paths.2FURLs_are_incorrect.2C_I_want_absolute.2Frelative_URLs.3F