Hi!
I want to load two different CSS files in the EditorArea. That's no problem if you know the name before, but i only know one of them. The other filename is generated with php an now i want to add the second css file to the editor configuration. But i dont know, how to add settings stored in an array.
I tested the obvious solutions, but it didnt work:
Thank you in advance
Speedy
I want to load two different CSS files in the EditorArea. That's no problem if you know the name before, but i only know one of them. The other filename is generated with php an now i want to add the second css file to the editor configuration. But i dont know, how to add settings stored in an array.
I tested the obvious solutions, but it didnt work:
$editor->Config['EditorAreaCSS'][] = "secondCSSfile.css";
$editor->Config['EditorAreaCSS'] = array("firstCSSfile.css", "secondCSSfile.css");
Thank you in advance
Speedy

Re: Setting two CSS-Files as EditorAreaCSS via PHP
Hope it helps
Re: Setting two CSS-Files as EditorAreaCSS via PHP
$editor->Config['EditorAreaCSS'] = array('URL1', 'URL2'); /* --------------------------------------------------------------- */ $editor->Config['EditorAreaCSS'] = 'URL1;URL2'; /* --------------------------------------------------------------- */ $editor->Config['EditorAreaCSS'][] = 'URL1'; $editor->Config['EditorAreaCSS'][] = 'URL2'; /* --------------------------------------------------------------- */ $editor->Config['EditorAreaCSS'] = 'URL1'; $editor->Config['EditorAreaCSS'] += ';URL2'; /* --------------------------------------------------------------- */ $editor->Config['EditorAreaCSS'][0] = 'URL1'; $editor->Config['EditorAreaCSS'][1] = 'URL2';Re: Setting two CSS-Files as EditorAreaCSS via PHP
The above is working on my site. Use " , " instead of " ; ".
Hope that's helpy,
Matthias