http://dev.fckeditor.net/wiki/v3_status
print "CKEDITOR.replace('editedFormHTML',{width:1000, height:500, contentsCss:'/mystyle.css'});\n";print "CKEDITOR.replace('editedFormHTML',{width:1000, height:500, contentsCss:'/mystyle.css'});\n";
Re: using stylesheets
#one { color:red; } #two { font-size: 24pt; } #three { background-color:yellow; } #one #two #three p { font-style:italic; }The body was something like:
This would display "Hello World!" in red text on a yellow background, italicized, and in 24 point type. I've simplified things a lot, but this is nice, normal, valid css.
I configured ckeditor to use the stylesheet and made my code like this:
The problem was that the text was the plain default text. What I had to do to fix it was to duplicate the divs inside the text area, like so:
Then in the javascript for the submit validation I chopped the redundant divs from the textarea from the beginning and end of the content.
I think this is a limitation of the way textareas work, not ckeditor. I ran into exactly the same problem, and fix, with the xinha editor.