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.
Hello, here is my problem :
- Install and configure wysiwyg api (with tinymce 3.2.3) and wysiwyg filter modules
- In wysiwyg api configuration, set the css to theme css
- Create a node with the input format which is set with tinymce
- Tinymce uses the theme css
- Write some content and preview the node
- The node is previewed BUT now tinymce doesn't use theme css anymore
Comment | File | Size | Author |
---|---|---|---|
#2 | wysiwyg-HEAD.preview.patch | 573 bytes | sun |
Comments
Comment #1
sinasquax CreditAttribution: sinasquax commentedOk, this problem appears with all editors because it's a problem of drupal :
- When we are in add / edit mode for a node, theme is initialized BEFORE wysiwyg_api module calls wysiwyg_get_css so drupal_add_css returns the correct array of css
- When we are in preview mode for a node, theme is initialized AFTER wysiwyg_api module calls wysiwyg_get_css so drupal_add_css returns an array of css without theme css
So here's a patch in wysiwyg.module to correct that (but i think this must be patched in drupal core) :
In wysiwyg_get_css of wysiwyg.module, replace :
by :
Comment #2
sunUgly bug.
Please test attached patch.
Comment #3
sunThanks for reporting, reviewing, and testing! Committed to all branches.
A new development snapshot will be available within the next 12 hours. This improvement will be available in the next official release.