in the same way as max-width.
just set the max-height value of the outer container together with overflow: scroll
Where can I find that? I only see “Automatic Width (max)” in the Visual Editor?
the automatic width option is only related to TinyMCE (the code block during editing) – what do you want to achieve ?
there is no build-in option for automatic height of the editor because the size is already dynamically increased by TinyMCE itself
I want to achieve a maximum height, so that if the code is long, it becomes a scroll bar. For example, if the code snippet is beyond 100 lines, it becomes a scroll bar instead of 300+ lines.
you have to add some custom css rules including the max-height attribute as well as overflow: scroll
there is currently no build-in option available to do this automatically.
ol.EnlighterJS, ul.EnlighterJS{
max-height: 500px;
overflow-y: scroll;
}
Great, thank you!
I’m trying to get the Enlighter-CSS but all the links I’ve been clicking are not going anywhere.
ie. https://github.com/EnlighterJS/Plugin.WordPress/docs
Please do not alter the EnlighterJS css file….just add the rules to your themes css (additional css rules)
btw. thanks for that hint..the link is invalid