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.
There are problems with Editor CSS: and CSS path: settings.
First - style sheets with minus sign in file name are ignored (two files with same content - test.css works, html-reset.css don't work). I don't want to change filenames, because those are set in Zen theme and I want to keep original structure in tact.
Second - something is overriding css files I set in CSS path: - my css file has clear definitions on color of element but in editor they are overriden with default blue underlined style.
Comment | File | Size | Author |
---|---|---|---|
#8 | wysiwyg.master.stylesheets.901862.8.patch | 4.49 KB | TwoD |
Comments
Comment #1
mansspams CreditAttribution: mansspams commenteda element is overriden in second problem.
With TinyMCE there is no First problem, second still there.
Comment #2
TwoDWhich editor are you using?
Which setting under "Editor CSS" are you using?
What does your style rules used to set the element (links?) color look like?
Comment #3
mansspams CreditAttribution: mansspams commentedok, second problem is firefox bug (http://tinymce.moxiecode.com/punbb/viewtopic.php?id=10601)
first problem so far...
works with tinymce, fails with others, ckeditor for sure. minus sign in file name triggers bug.
Editor CSS: Define CSS
CSS path: %b%t/css/html-reset.css,%b%t/css/warm.css (same with replacement patterns and full URLs)
Comment #4
TwoDOk, thanks. I'll look into this when I have some time. Our editor implementations don't do any processing which target or affect minus signs for those settings that I'm aware of so this is probably going to take some time to track down.
Comment #5
sunComment #6
TwoDI spent some time testing/investigating this tonight, using the settings from #3, and here are the results:
cssFile
isn't set.Comment #7
sunComment #8
TwoDThis should improve the situation for openWysiwyg and Whizzywig, allowing them to use multiple stylesheets in their iframes.
I haven't tested all the Whizzywig versions yet, only 61.
It would be possible to inject the Drupal theme's stylesheets into WYMeditor's iframe as well, but give that it doesn't aim to be a WYSIWYG editor I don't think that's the right thing to do. Probably better to just make use of the "Define CSS" option.
Comment #9
pillarsdotnet CreditAttribution: pillarsdotnet commented