Topic: WYSIWYG Editor Content height
Hello,
Currently, WYSIWYG editor seems to have a fixed height, but it's not very usefull in modals or in small pages.
Is it possible to set the WYSIWYG editor height just as we do with textearea inputs (with a row=4 attribute), and then use the mouse/scroll bar to adapt size ?
Eric
Grzegorz Bujański staff answered 4 years ago
Hi.
You can set height
or max-height
and overflow-y: auto
to .wysiwyg-content
. Look at this example: https://mdbootstrap.com/snippets/standard/grzegorz-bujanski/3003691#css-tab-view
Keep coding,
Grzegorz
efilippi pro premium priority commented 4 years ago
Thank you for youe answer,
but changing max-height: 200px; instead of 600 in you snippet doesn't change the editor height ...
What did I miss ?
Eric
Grzegorz Bujański staff commented 4 years ago
WYSIWYG is set to min-height: 450px;
. Check the snippet again. I made the appropriate changes.
efilippi pro premium priority answered 4 years ago
FREE CONSULTATION
Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.
Resolved
- User: Pro
- Premium support: Yes
- Technology: MDB Standard
- MDB Version: 3.2.0
- Device: computer / smartphone
- Browser: firefox / chrome
- OS: debian
- Provided sample code: No
- Provided link: No