Ionaru / easy-markdown-editor

EasyMDE: A simple, beautiful, and embeddable JavaScript Markdown editor. Delightful editing for beginners and experts alike. Features built-in autosaving and spell checking.
https://stackblitz.com/edit/easymde
MIT License
2.38k stars 314 forks source link

Can the preview pane go full-height? #468

Closed ryangjchandler closed 2 years ago

ryangjchandler commented 2 years ago

Describe your question At the moment, the preview pane / tab is fixed to the height of the editor. Is there any recommended way to get the preview to be the full height of the content to prevent scrolling?

Ionaru commented 2 years ago

You can style the editor to use as much height as it needs, but that includes both the edit and preview screens.

With some added CSS you can probably have the height change when the preview is shown, there's a class that is changed when previewing.