Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Author Andi Dittrich

    (@andi-dittrich)

    in the same way as max-width.

    just set the max-height value of the outer container together with overflow: scroll

    Thread Starter kaylahmalillos

    (@kaylahmalillos)

    Where can I find that? I only see “Automatic Width (max)” in the Visual Editor?

    Plugin Author Andi Dittrich

    (@andi-dittrich)

    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

    Thread Starter kaylahmalillos

    (@kaylahmalillos)

    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.

    Plugin Author Andi Dittrich

    (@andi-dittrich)

    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;
    }
    
    Thread Starter kaylahmalillos

    (@kaylahmalillos)

    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

    Plugin Author Andi Dittrich

    (@andi-dittrich)

    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

    Thread Starter kaylahmalillos

    (@kaylahmalillos)

    Okay, thank you!

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Max Height’ is closed to new replies.