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.

CommentFileSizeAuthor
#8 wysiwyg.master.stylesheets.901862.8.patch4.49 KBTwoD
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

mansspams’s picture

Status: Postponed (maintainer needs more info) » Active

a element is overriden in second problem.

With TinyMCE there is no First problem, second still there.

TwoD’s picture

Status: Active » Postponed (maintainer needs more info)

Which 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?

mansspams’s picture

Status: Active » Postponed (maintainer needs more info)

ok, 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)

TwoD’s picture

Ok, 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.

sun’s picture

Status: Postponed (maintainer needs more info) » Active
TwoD’s picture

I spent some time testing/investigating this tonight, using the settings from #3, and here are the results:

Support matrix for editing area stylesheets.
Editor Wysiwyg support Multiple file support Comment
CKEditor YES YES Versions below 3.0.1 could only handle one stylesheet.
FCKeditor YES YES
TinyMCE YES YES
YUI Editor YES YES
WYMeditor partial NO Loads only one stylesheet, using AJAX (warm.css)
jWysiwyg NO NO
NicEdit NO NO Editor supports a single stylesheet only if initialized in "iFrame mode", which appears to be triggered only in FF2.
openWYSIWYG NO NO Serverside support is there but clientside overrides it.
Whizzywig NO NO Serverside support is there but clientside global variable cssFile isn't set.
MarkItUp N/A N/A Possibly supported with builtin preview mode, but requires modifying its preview.html.
sun’s picture

Title: Editor CSS path bug » Editor does not load multiple CSS files
TwoD’s picture

Status: Active » Needs review
FileSize
4.49 KB

This 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.

pillarsdotnet’s picture