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 /

TextareaField with 100% width


Reply


3 Posts   420 Views

Avatar
cybesun

Community Member, 9 Posts

22 March 2014 at 9:41pm

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.

Avatar
Devlin

Community Member, 215 Posts

25 March 2014 at 4:07am

TextareaField::create('test')
   // move label above the field
   ->addExtraClass('stacked')
   // overwrite max-width from screen.css
   ->setAttribute('style', 'max-width:100%')

Avatar
cybesun

Community Member, 9 Posts

25 March 2014 at 8:09am

Thanks a lot!