Ok, I am being stupid. I looked on http://dev.fckeditor.net/wiki/v3_status and editing area css should be available in 3.0 final. I've tried:
print "CKEDITOR.replace('editedFormHTML',{width:1000, height:500, contentsCss:'/mystyle.css'});\n";
Ok, I am being stupid. I looked on http://dev.fckeditor.net/wiki/v3_status and editing area css should be available in 3.0 final. I've tried:
print "CKEDITOR.replace('editedFormHTML',{width:1000, height:500, contentsCss:'/mystyle.css'});\n";
Re: using stylesheets
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.