CMS MADE SIMPLE FORGE

CMS Made Simple Core

 

[#6234] If TinyMCE has relative URLs turned off, adds domain to all links

avatar
Created By: Daniel Griscom (dtgriscom)
Date Submitted: Tue Mar 08 21:06:18 -0500 2011

Assigned To: Morten Poulsen (silmarillion)
Version: 1.9.4
CMSMS Version: None
Severity: Major
Resolution: Awaiting Response
State: Closed
Summary:
If TinyMCE has relative URLs turned off, adds domain to all links
Detailed Description:
If TinyMCE's "Generate relative urls" option is turned off, then it will add the
current domain name to every link. This is nasty, because it prevents editing a
site under one domain and publishing it under another.

Solution is to modify "modules/TinyMCE/templates/tinyconfig.tpl". This is the
template which (I think) converts the settings on the TinyMCE Advanced
configuration tab to TinyMCE configuration values.

Starting at line 65, you'll see:

{if $relativeurls=="true"}
  relative_urls : true,
  remove_script_host : true,
{else}
  relative_urls : false,
  remove_script_host : false,
{/if}

Change the second occurrence of remove_script_host from false to true, so that
the script host is always removed.


History

Comments
avatar
Date: 2011-07-14 07:53
Posted By: Morten Poulsen (silmarillion)

Hmm.... well, the current behavior is actually what I aimed at, making it
"really absolute"...  perhaps it should be even more finegrained then...
Options:
  relative urls
  absolute, no host
  absolute, with host

Any thoughts for or against this?
      
avatar
Date: 2011-10-29 14:32
Posted By: Robert Campbell (calguy1000)

TinyMCE is no longer in the core.
MicroTiny uses {cms_selflink} format.
No response in ~4 months.
      
Updates

Updated: 2011-10-29 14:32
cmsms_version_id: => -1
state: Open => Closed

Updated: 2011-07-14 07:53
resolution_id: 5 => 10

Updated: 2011-06-15 16:27
resolution_id: => 5
assigned_to_id: 100 => 113