Hello,
Can someone please tell me the correct syntax to add multiple CSS with a PHP code.
I tried this but it doesnt really not the right one :
$editor->Config['EditorAreaCSS'] = "[/styles/site_1_contenu.css,/styles/site_1_contenu_base.css]" ;
Thanks in advance for the tip !
Fred
Can someone please tell me the correct syntax to add multiple CSS with a PHP code.
I tried this but it doesnt really not the right one :
$editor->Config['EditorAreaCSS'] = "[/styles/site_1_contenu.css,/styles/site_1_contenu_base.css]" ;
Thanks in advance for the tip !
Fred
RE: Multiple CSS with PHP
This might help.
SelfMan
RE: Multiple CSS with PHP
the relevant files are editor/_source/internals/fck_1_ie.js and editor/_source/internals/fck_1_gecko.js:
In editor/_source/internals/fck_1_ie.js look for the function 'FCK.SetHTML' and in that for the else-block for 'if ( FCKConfig.FullPage )'. This else block should be like this:
<pre>
sHtml =
FCKConfig.DocType +
'<html dir="' + FCKConfig.ContentLangDirection + '"' ;
if ( FCKConfig.IEForceVScroll )
sHtml += ' style="overflow-y: scroll"' ;
sHtml +=
'><head><title></title>';
var CSSs = FCKConfig.EditorAreaCSS.split(',');
for( var i = 0; i < CSSs.length; i++ )
sHtml += '<link href="'+CSSs[i]+'" rel="stylesheet" type="text/css" />';
sHtml += '<link href="' + FCKConfig.FullBasePath + 'css/fck_internal.css' + '" rel="stylesheet" type="text/css" _fcktemp="true" />';
sHtml += FCK._BehaviorsStyle ;
sHtml += FCK.TempBaseTag ;
sHtml += '</head><body>' + html + '</body></html>' ;
</pre>
In editor/_source/internals/fck_1_gecko.js it is a bit more complicated. The function is written down twice, once for safari and once for real gecko-Engines. I haven't changed the safari-Version. In the other version look for the usage of 'FCKConfig.EditorAreaCSS'. Insert FCKConfig.EditorAreaCSS.split(',') and replace the original usage with a loop that prints out multiple <link>-tags.