Hi Jun,

Config.width and config.height are set in the Javascript function that
you call as HTMLArea. If you look at the default configuration (file is
located at editor/src/site/editing/cf2/resources/js/htmlarea.js) you'll
find config.height = "200px"; and config.width = "600px";
The location of the Javascript can be changed in you business logic. The
default is:
  <libs>
    <lib src="/editing/cf2/js/htmlarea.js"/>
  </libs>

Regards,


Jasha Joachimsthal 
 
[email protected] - [email protected]
 
www.onehippo.com
Amsterdam - Hippo B.V. Oosteinde 11 1017 WT Amsterdam +31(0)20-5224466 
San Francisco - Hippo USA Inc. 101 H Street, suite Q Petaluma CA
94952-5100 +1 (707) 773-4646




> -----Original Message-----
> From: [email protected] 
> [mailto:[email protected]] On Behalf Of 
> [email protected]
> Sent: maandag 26 januari 2009 23:33
> To: [email protected]
> Subject: [HippoCMS-dev] htmlarea configuration
> 
> Hi guys,
> 
> I am trying to configure the width & height of a htmlarea. I 
> dug into the xslt and found that I should probably be able to 
> do it by adding a conf attribute in layout.xml like this:
> 
> Eg: <htmlfield id="/root/myhtml" class="myDemoHtmlArea"
> conf="conf.width='600px';conf.height='300px'"
> initFunc="myHtmlArea"/></cell>
> 
> 
> I thought it would work but it didn't. And I approaching it correctly?
> It seems the match for <xsl:when test="fi:styling/conf">
> 
> in editing/cf2/transformers/cforms-hippocms-styling.xsl 
> wasn't able to pick up conf. Any suggestions?
> 
>  
> 
> Thanks
> 
> Jun 
> 
> ********************************************
> Hippocms-dev: Hippo CMS development public mailinglist
> 
> Searchable archives can be found at:
> MarkMail: http://hippocms-dev.markmail.org
> Nabble: http://www.nabble.com/Hippo-CMS-f26633.html
> 
> 
********************************************
Hippocms-dev: Hippo CMS development public mailinglist

Searchable archives can be found at:
MarkMail: http://hippocms-dev.markmail.org
Nabble: http://www.nabble.com/Hippo-CMS-f26633.html

Reply via email to