Working with the Serendipity editor

Random stuff about serendipity. Discussion, Questions, Paraphernalia.
Post Reply
tkarp
Regular
Posts: 11
Joined: Mon Dec 18, 2006 3:00 pm

Working with the Serendipity editor

Post 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?
judebert
Regular
Posts: 2478
Joined: Sat Oct 15, 2005 6:57 am
Location: Orlando, FL
Contact:

Post 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.
Judebert
---
Website | Wishlist | PayPal
tkarp
Regular
Posts: 11
Joined: Mon Dec 18, 2006 3:00 pm

Post 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.
tkarp
Regular
Posts: 11
Joined: Mon Dec 18, 2006 3:00 pm

Here's a hack

Post 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.
Post Reply