Topic: WYSIWYG Editor Content height

efilippi priority asked 2 years ago


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 2 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 priority commented 2 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 2 years ago

WYSIWYG is set to min-height: 450px;. Check the snippet again. I made the appropriate changes.


efilippi priority answered 2 years ago


Great !

It's perfect, thank you !



Please insert min. 20 characters.

FREE CONSULTATION

Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.

Status

Resolved

Specification of the issue

  • User: Priority
  • 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