Uploaded image for project: 'phpBB3'
  1. phpBB3
  2. PHPBB3-10971

editor.js does not acknowledge the phpbb_root_path variable

    XMLWordPrintable

Details

    Description

      Reference post: http://www.phpbb.com/community/viewtopic.php?p=13162495#p13162495

      It seems editor.js (the file responsible for the color palette) does not take into account MODs that may add their own posting files NOT in the phpBB root directory. I have a MOD that has a posting file inside a directory in the phpBB root directory. The phpbb_root_path variable was set correctly, however I ran into an issue where the color palette would stretch the screen in FireFox and distort the palette in IE. After much testing (and hair pulling ), I decided to look in editor.js and see what I could dig up.

      document.write('<a href="#" onclick="bbfontstyle(\'color=#' + color + '\', \'[/color]\'); return false;"><img src="images/spacer.gif" width="' + width + '" height="' + height + '" alt="#' + color + '" title="#' + color + '" /></a>');

      As you can see, the img src does not check for the phpbb_root_path variable. Since this is not a bug (because it doesn't affect any phpBB functionality), I'm requesting an improvement to the code to check for such a variable.

      Attachments

        Activity

          People

            prototech prototech [X] (Inactive)
            t_backoff Tabitha Backoff [X] (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: