Forum closed. New forum available at http://community.wymeditor.org/

Setting initial height

Support forum for WYMeditor.

Setting initial height

Postby littis on Mon May 04, 2009 3:00 am

I have tried quite a few different options to set the initial height of the editor (and iframe?) but have not had any success. I have tried modifying the height for the dialogFeatures in the js file, setting height while creating the wymeditor object, setting the height in preInit and postInit and also trying to set the height for the iframe and editor such as:

$(wym._box).find(".wym_iframe").find('iframe').get(0);
$(iframe).height('600px');

But I get wym undefined. I've also tried:

.wym_iframe html textarea {height: 500px}
.wym_iframe iframe {height: 500px}

But it doesn't do anything. I know it's something really simple but I can't figure it out. Please help! Thanks.
littis
 
Posts: 1
Joined: Mon May 04, 2009 2:56 am

Re: Setting initial height

Postby mar7t1n on Tue May 19, 2009 5:55 pm

I've found that you can set the height in the CSS appropriate to the skin you are using. So for default that's skins/default/skin.css

/*WYM_HTML*/
.wym_skin_default .wym_html { width: 98%;}
.wym_skin_default .wym_html textarea { width: 100%; height: 600px; border: 1px solid gray; background: white; }


/*WYM_IFRAME*/
.wym_skin_default .wym_iframe { width: 98%;}
.wym_skin_default .wym_iframe iframe { width: 100%; height: 600px; border: 1px solid gray; background: white }
mar7t1n
 
Posts: 2
Joined: Tue May 19, 2009 5:51 pm


Return to Support

Who is online

Users browsing this forum: No registered users and 3 guests