Closed (fixed)
Project:
Wysiwyg
Version:
6.x-2.x-dev
Component:
Editor - TinyMCE
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
30 Apr 2009 at 00:43 UTC
Updated:
31 May 2009 at 02:50 UTC
Jump to comment: Most recent file
Comments
Comment #1
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.