Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
The code uses path_to_theme()
to check and load the fckeditor.config.js from the default theme directory when the "use config from theme path" option is on.
However, due to the nature of how the path_to_theme()
function works, the path returned may not be always the path to the actual theme of the site/user.
This will prevent the module from loading the theme specific fckeditor.config.js in a seemingly random way.
Please see #194098: path_to_theme() returns path to module that calls it for more info, and also the path_to_theme() function description.
Two solutions comes to mind:
- Get the path to current theme using other methods. See http://drupal.org/node/194098#comment-1042283 and http://drupal.org/node/143885#comment-232587 for some alternative ways that may work. This may be also done using
drupal_get_path('theme', $conf['theme_default'])
- Replace the true/false switch with a text field where the admin can specify the URL path to the .js they want to use
Comments
Comment #1
flaviovs CreditAttribution: flaviovs commentedDid some basic research and found the following workaround: disable "Load fckeditor.config.js from theme path" and put the following snippet in "Custom javascript configuration":
Change the value inside the quotes to point to your fckeditor.config.js inside your theme directory (or any other .js that contains your FCKEditor configuration).
Comment #2
Jorrit CreditAttribution: Jorrit commentedWill be fixed in CVS, for version 6.x-2.x
Comment #4
don@robertson.net.nz CreditAttribution: don@robertson.net.nz commentedI am getting this problem in 6.x-2.1 - so does not appear to be fixed.
Comment #5
don@robertson.net.nz CreditAttribution: don@robertson.net.nz commentedHmm - maybe it is fixed. Been clearing caches I did not know I had, and I think it is now working as expected. Doing some more testing - if you do not hear back, it is okay.
Sorry if I caused any panic attacks :-)
Don