Page 1 of 1
Working with the Serendipity editor
Posted: Mon Dec 18, 2006 3:06 pm
by tkarp
Is there a way to change the height of the editor window? I'm working with images and other things and the height is very small.
Also, I see a second window that says "Extended body." What is this for?
Posted: Mon Dec 18, 2006 4:34 pm
by judebert
The height of the editor window should be editable in the templates/{your_template or default}/admin/style.css.
The extended body gives you a place to enter the "Read more" portion of the entry. You could, for instance, put a very small teaser in the entry body, and then the user would have to click "Read More" to see the rest of the article.
This is also the only way to get around the 64K limit of HTML. You can't put more than 64K in a single text field, so if you have any really big articles you need to split them into two portions.
Posted: Mon Dec 18, 2006 6:02 pm
by tkarp
Hi Judebert,
Thanks for the quick response.
I'm using the "mt-plainjane" theme. It doesn't have an admin folder.
I checked the style.css file in the /templates/default/admin folder and it doesn't seem to have an entry for the height of the editor window.
Any suggestions?
On edit: Never mind. I found the icon in the editor toolbar that opens a larger window.
Here's a hack
Posted: Mon Dec 25, 2006 6:00 am
by tkarp
Here's a hack to increase the height of the editor window.
In the /htmlarea directory, open htmlarea.js
Look for:
// size the IFRAME according to user's prefs or initial textarea
var height = (this.config.height == "auto" ? (this._ta_size.h + "px") : this.config.height);
Add this:
/* added by tk 12-24-06 - increase height to 1200px*/
this.config.height="1200px";
// size the IFRAME according to user's prefs or initial textarea
var height = (this.config.height == "auto" ? (this._ta_size.h + "px") : this.config.height);
There are probably better ways to do this, but this q&d hack solved the immediate problem.