editor.tinymce.js not auto-resizing on init with tinymce version 8

editor.tinymce.js not auto-resizing on init with tinymce version 8

online student registration - Germanyonline student registration - Germany Posts: 8Questions: 4Answers: 0

autosize on initialization worked with the plugin and tinymce 5

now with tinymce 8 the editor does not expand when displayed, only when users add a line break

AI could not provide a fix

Answers

  • online student registration - Germanyonline student registration - Germany Posts: 8Questions: 4Answers: 0

    I found a solution.

    In the plugin code add this, because the problem arises only, if autoresize_bottom_margin in the setup options is not defined or 0.
    If it is not defined it is automatically set to 0 so you can catch it like this:

            if(conf.opts.autoresize_bottom_margin == 0){
                conf.opts.autoresize_bottom_margin = 1;
            }
    

    Insert it here in editor.tinymce.js :

        setTimeout(function () {
                if(conf.opts.autoresize_bottom_margin == 0){
                conf.opts.autoresize_bottom_margin = 1;
            }
                 tinymce.init( $.extend( true, {}, {...
    
  • allanallan Posts: 65,368Questions: 1Answers: 10,846 Site admin

    That's fantastic - many thanks for posting back with your findings!

    Allan

Sign In or Register to comment.