Forums / All Other Contributions/Addons / TinyMCE and images path

TinyMCE and images path

Views: 1,588

Results 1 to 2 of 2
12 Oct 2011, 5:25 PM
#1
incircolo avatar

incircolo

New Zenner

Join Date:
Aug 2009
Posts:
50
Plugin Contributions:
0

TinyMCE and images path

I'd like to have absolute path for links remain and not converted to relative ones.
Do you know how and where configure it through TinyMCE editor?

12 Oct 2011, 9:01 PM
#2
incircolo avatar

incircolo

New Zenner

Join Date:
Aug 2009
Posts:
50
Plugin Contributions:
0

Re: TinyMCE and images path

I have found the solution, maybe this could be useful for someone else

on

/admin/includes/tinymce.php

you have approx line 36

          // Location of TinyMCE script
          script_url : '../<?php echo DIR_WS_EDITORS ?>/tiny_mce/tiny_mce.js',
	  relative_urls : false,

change it with

          // Location of TinyMCE script
          script_url : '../<?php echo DIR_WS_EDITORS ?>/tiny_mce/tiny_mce.js',
	  remove_script_host : false,
          relative_urls : false,

Simply add remove_script_host : false to keep the absolute URL