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.

We're retiring the forums!

The SilverStripe forums have passed their heyday. They'll stick around, but will be read only. We'd encourage you to get involved in the community via the following channels instead:

Customising the CMS /

Moderators: martimiz, Sean, Ed, biapar, Willr, Ingo, swaiba

Setting height of HTMLEditor not working?


Go to End


4 Posts   3398 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!