Hi All,
I've a DataObject which has a field "welcomeMessage" of type "Text".
Now in the CMS you see a text-area field, but I'd like to have 100% width ( like the HTML editor ).
It doesn't work if I increase the columns field on TextareaField.
This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.
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.
Hi All,
I've a DataObject which has a field "welcomeMessage" of type "Text".
Now in the CMS you see a text-area field, but I'd like to have 100% width ( like the HTML editor ).
It doesn't work if I increase the columns field on TextareaField.
TextareaField::create('test')
// move label above the field
->addExtraClass('stacked')
// overwrite max-width from screen.css
->setAttribute('style', 'max-width:100%')
Thanks a lot!