CMS MADE SIMPLE FORGE

TinyMCE

 

[#8086] filemanager: ignores relativeurl preference

avatar
Created By: Stefan (Staeff)
Date Submitted: Wed Jun 27 15:18:39 -0400 2012

Assigned To:
Version: 2.9.9
CMSMS Version: None
Severity: Minor
Resolution: None
State: Closed
Summary:
filemanager: ignores relativeurl preference
Detailed Description:
When you add an image (with "use relative path" option enabled) the image path
will be written relative. But when you set an alternative image, in the advanced
tab, and save everything, the alternative path will be written absolute.

UPDATE:

I found the error, it's in 'action.filepicker.php' at line 247. Replace the
Commentsection with this:

  if ($this->GetPreference("relativeurls")==1) {
    $file["fullurl"]=str_replace($config["root_url"],"",$thisurl.$entry);
    if ($file["fullurl"][0]=="/") {
      $file["fullurl"]=substr($file["fullurl"],1);
    }
 }


History

Comments
avatar
Date: 2012-06-30 21:43
Posted By: Stefan (Staeff)

Can finally somebody at least accept this as a bug? I'm giving you the solution
      
avatar
Date: 2016-02-12 13:26
Posted By: Rolf (rolf1)

TinyMCE version 3.x is released, the module is a complete rewrite of all code.

Because of this, bug reports related to the old version are not relevant anymore
and will be closed. Please use the latest and finest release at your CMSMS 2.x
website and test again. If you feel like your issue still isn't fixed create a
new report. Thanks.
      
Updates

Updated: 2016-02-12 13:26
cmsms_version_id: 29495 => -1
state: Open => Closed

Updated: 2012-06-30 21:42
summary: filemanager: alternative image on mouseenter links are not relative => filemanager: ignores relativeurl preference

Updated: 2012-06-30 21:40
description: When you add an image (with "use relative path" option enabled) the image path will be written relative. But when you set an alternative image, in the advanced tab, and save everything, the alternative path will be written absolute. => When you add an image (with "use relative path" option enabled) the image path will be written relative. But when you set an alternative image, in the advanced tab, and save everything, the alternative path will be written absolute. UPDATE: I found
summary: advimage: alternative image on mouseenter links are not relative => filemanager: alternative image on mouseenter links are not relative

Updated: 2012-06-28 14:50
description: When you add an image (with use relative path option enabled) the image path will be written relative. But when you set an alternative image, in the advanced tab, and save everything alternative path will be written absolute. => When you add an image (with "use relative path" option enabled) the image path will be written relative. But when you set an alternative image, in the advanced tab, and save everything, the alternative path will be written absolute.
resolution_id: => 5