Closed (fixed)
Project:
BUEditor
Version:
6.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
2 Jan 2009 at 08:47 UTC
Updated:
4 Apr 2009 at 00:40 UTC
If you have an admin theme, the %THEME placeholder for icons makes the editor look into the admin theme for the icons. As a self-respecting Drupal citizen, you are not putting stuff under an existing theme however, so bueditor will not find icons there, and therefore will think that there are no icons, and would anull the icon setting altogether. From there, since your admin page displays in the admin theme, there is no way to set up the icons for the non-admin theme. Not good.
Comments
Comment #1
ufku commentedThe purpose of using %THEME is to switch button images when a theme is switched. One should configure the buttons using one of the switchable themes. If there is only single theme option for users of the editor, specifying the path explicitly or using %THEME placeholder are the same.
Comment #2
gábor hojtsyAs I've said, it looks into the admin theme, and does not allow you to set with %THEME, if you don't have copies of the icons in the admin theme but only on the frontend theme, since it validates the existence of the icons. Is it by design, that you need to have icons in a theme which will never be used on the site, so that it can set it up? I hardly believe.
Comment #3
ufku commentedit is by desing that you have to switch to your desired theme or set its path explicitly, e.g. sites/all/themes/example_theme/bueditor_icons
Comment #4
ufku commentedMoreover, %THEME or %FILES placeholders can be used in explicit path declaration,e.g %THEME/../example_theme/icons or %FILES/../themes/example_theme/icons
Comment #5
gábor hojtsyHah, funny. That totally goes against the reason to have %THEME and %FILES at all. Sorry. I understand you don't care about this, so will not keep reopening the issue, but consider this feature useless instead.
Comment #6
ufku commentedDo you think there is a solution for this? How should BUEditor resolve %THEME when you're configuring an editor that is assigned to a user role having many theme options. Will that be your(admin's) preferred theme or preferred theme of a random user of that role.
Comment #7
gábor hojtsyI would not validate the value when the setting is on. Maybe validate that the default theme has that folder, so if the theme in the runtime does not have that folder, the module can fall back on the default theme. As said, validating it with the admin theme requires it to be in the admin theme, even if it is never going to be used, while it does not provide any fallback for the live theme, if it is at the end not in the live theme.
Comment #8
ufku commentedI discovered another bug where %THEME is replaced with bueditor path. It happens inside form theming functions as the global theme_path is temporarily pointed to the bueditor path. Besides fixing this, I implemented a generic approach for paths including %THEME, in which the default theme(as you suggested) is the alternate when an icon or library directory is missing for a specific theme. This should also work for administrator themes.
Sorry, no patch. Changes went directly to the 6.x-1.x branch.
Comment #9
ufku commentedComment #10
ufku commented