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(/,/) ;
im on 2.6.4 & after alot of error not 2say trial got this 2 work I just had a pure html (bodyless) file to work with; this was controlled by two styleheets (ns4.css & mod.css) furthermore this html file (content.htm)was embedded inside wrap & main divs. this works in myconfig.js
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];
How do I make my CSS look good in different browsers? My CSS looks good in Mozilla..but looks terrible in IE....is there a code to make it look the same or do I have to lose my mind and keep guessin the pixel margins so that it looks good in both? _________________ keyword research ~ keyword tool ~ keyword tracking ~ affiliate elite
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?
hi,
im on 2.6.4 & after alot of error not 2say trial got this 2 work
I just had a pure html (bodyless) file to work with;
this was controlled by two styleheets (ns4.css & mod.css) furthermore this html file (content.htm)was embedded inside wrap & main divs.
this works in myconfig.js
Re: css in editing area?
BodyId will not solve any problem with css... Here is the idea why.
We have this css:
Re: css in editing area?
How do I make my CSS look good in different browsers? My CSS looks good in Mozilla..but looks terrible in IE....is there a code to make it look the same or do I have to lose my mind and keep guessin the pixel margins so that it looks good in both?
_________________
keyword research ~ keyword tool ~ keyword tracking ~ affiliate elite