In FCKeditor 2.5 EditorAreaCSS accepts a single path string, a list of paths separated by a comma and array of paths. In FCKeditor 2.4.3 EditorAreaCSS accepts an array of paths or a single path.
Ok, figured out the problem for anyone that may encounter this in the future. I followed the code to find out how the fck.js handles the EditorAreaCSS and found that the way I was implementing it was changing the EditorAreaCSS into a string separated by commas (i.e. the array.toString). Although I don't know why this is and this is apparently fixed in 2.5, I ended up going into _source/internals/fckconfig.js Searching for EditorAreaCSS And then added a small bit of code to handle it:
// EditorAreaCSS accepts an array of paths or a single path (as string).
// In the last case, transform it in an array.
if ( typeof( oConfig.EditorAreaCSS ) == 'string' )
oConfig.EditorAreaCSS = oConfig.EditorAreaCSS.split(/,/) ;
var css = new Array(2);
css[0]='../../css/ns4.css';
css[1] = '../../css/mod.css';
var diva = new Array(2);
diva[0]='wrap';
diva[1]='main';
FCKConfig.EditorAreaCSS =css;
//set up main div 2 trigger stylesheets
FCKConfig.BodyId = diva[1];
Re: css in editing area?
Wiktor Walc
CTO, CKSource - http://cksource.com
--
Follow CKEditor on: Twitter | Facebook | Google+
Re: css in editing area?
Re: css in editing area?
Re: css in editing area?
In FCKeditor 2.4.3 EditorAreaCSS accepts an array of paths or a single path.
Wiktor Walc
CTO, CKSource - http://cksource.com
--
Follow CKEditor on: Twitter | Facebook | Google+
Re: css in editing area?
Re: css in editing area?
This code removes all styles from the content edit area. But when I change it to:
it works fine and uses the styles. Does anyone have any idea why this may be?
I'm using 2.4.3.
Thanks in advance
Re: css in editing area?
I ended up going into _source/internals/fckconfig.js
Searching for EditorAreaCSS
And then added a small bit of code to handle it:
Hope this will help anyone in the future.
Re: css in editing area?
Re: css in editing area?
ns4.css mod.csscontent.htmwrap main
myconfig.js
wrap
FCKConfig.BodyId = diva;
docs/sample
<?php include_once("fckeditor/fckeditor.php") ; ?> <?php $oFCKeditor = new FCKeditor('FCKeditor1') ; $oFCKeditor->Width = '800'; $oFCKeditor->Height = '600'; $oFCKeditor->BasePath = '/fckeditor/' ; $oFCKeditor->Value = file_get_contents("includes/home/content.htm/") ; $oFCKeditor->Config["CustomConfigurationsPath"] = "/fckeditor/myconfig.js" ; $oFCKeditor->Create() ; ?>Re: css in editing area?
body { font-size:10px; } .wrap { font-size:15px; } .fck-div { font-color:#000; }http://webandpeople.com/cms-section/info/fck_editor_features/installation-guide.html
Re: css in editing area?
keyword researchkeyword toolkeyword trackingaffiliate elite