Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

Customising the CMS /

Setting height of HTMLEditor not working?


Reply


4 Posts   460 Views

Avatar
PattyOK

Community Member, 5 Posts

14 January 2014 at 10:21am

Edited: 14/01/2014 10:33am

Im using SS 3.1, I am trying to make some of my HTMLeditor boxes a little smaller, adding the height as an argument into HTMLEditor Field is not working...

$fields->addFieldToTab("Root.Main", new HTMLEditorField("Content", "Intro Text", 10));

Any ideas?

Avatar
StefanDpunkt

Community Member, 14 Posts

14 January 2014 at 10:47pm

Hi!
   
Other solution, try it with CSS?

have a nice day!

Avatar
soliddealer

Community Member, 5 Posts

21 January 2014 at 12:23am

Hi,

this was changed since 3x Versions...

Try this:

$fields->addFieldToTab('Root.Main', $myEditorField = new HTMLEditorField('Name', 'Description'));
$myEditorField->setRows(3);

greets

boo

Avatar
PattyOK

Community Member, 5 Posts

4 February 2014 at 10:37am

That works! Thanks!