Holiday Notice: Support will be provided on a limited scale from December 24th, 2024, to January 2nd, 2025. Happy holidays and a wonderful New Year!


Topic: WYSIWYG Editor Content height

efilippi priority asked 3 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 3 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 3 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 3 years ago

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


efilippi priority answered 3 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

  • ForumUser: 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