If I enter one on my theme's css files, then the editor uses it. But if I enter two (%tcss/style.css,%tcss/ckstyles.css), then I see this in page source:
"contentsCss": [ "/sites/all/modules/ckeditor/ckeditor.css", "/sites/test6/themes/basic/css/style.css,/sites/test6/themes/basic/css/ckstyles.css" ]
See attached full page source.
Notice that my two css files are both inside one set of quotes? Is this why "a list of css files separated by a comma" isn't working for me?

CommentFileSizeAuthor
#3 ckeditor-662590.patch1.05 KBmephir
node-1-edit.txt31.45 KBkendouglass
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

kendouglass’s picture

Title: If more than one editor css file entered in "Edit CKEditor profile" > "Define CSS path", then NONE are used. » Additional info re my version

Additional info:

I'm using your latest dev version from here yesterday:
cvs/drupal-contrib/contributions/modules/ckeditor/DRUPAL-6--1
(ckeditor.module revision 1.4.2.3)

And I'm using Drupal 6.14

kendouglass’s picture

.

mephir’s picture

Title: Additional info re my version » If more than one editor css file entered in "Edit CKEditor profile" > "Define CSS path", then NONE are used.
Status: Active » Needs review
FileSize
1.05 KB
wwalc’s picture

Status: Needs review » Needs work

There is one litle problem with this patch.
Previously $module_full_path .'/ckeditor.css' was added at the very beginning of the list.
With the attached patch, $conf['css_path'] styles are added first to the array and ckeditor.css is added at the end. ckeditor.css should stay at the beginning as it was before.
In other words, before doing foreach, this should be called:

        if (file_exists($module_drupal_path .'/ckeditor.css')) {
          $css_files[] = $module_full_path .'/ckeditor.css';
        }

One extra comment - when looping through all elements it would be nice to call trim() to strip whitespaces just in case someone used them after a comma.

mephir’s picture

Status: Needs work » Fixed

changes commited to cvs

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

ademskiadov’s picture

Title: If more than one editor css file entered in "Edit CKEditor profile" > "Define CSS path", then NONE are used. » Ckeditor chopping out my CSS code from editor area
Priority: Normal » Critical

I want to make a CSS/HTML image gallery. I am trying to emulate the gallery demonstrated on this website:

http://www.dynamicdrive.com/style/csslibrary/item/css-image-gallery/

When I paste the two peices of code (first CSS, then HTML), and save it works! BUT, if you further re-edit the page and subsequently save again, the CSS code is chopped out, and the HTML code is compressed.

How can I tell CKeditor to leave my code alone?

 I do not want to have to repeatedly paste the deleted code everytime I edit the page.


Cheers.

ademskiadov’s picture

Title: Ckeditor chopping out my CSS code from editor area » If more than one editor css file entered in "Edit CKEditor profile" > "Define CSS path", then NONE are used.
wwalc’s picture

@ademskiadov - please create a new issue for this problem and give us some sample code with which you have this problem.