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've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

Customising the CMS /

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

Setting height of HTMLEditor not working?


Go to End


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