TinyMCE editor fixed size with no scrollers?

前端 未结 5 1981
长情又很酷
长情又很酷 2021-01-18 14:48

At the moment I have this:

    tinyMCE.init({
// General options
mode : \"exact\",
elements : \"fkField, lkField, ukcField, khField\",
theme : \"advanced\",
         


        
5条回答
  •  被撕碎了的回忆
    2021-01-18 15:25

    A lot simpler and easy solution would be:

    tinymce.init({
        selector: '#container',
        },
        init_instance_callback: function (ed) {
            tinymce.activeEditor.getBody().style.overflow = 'hidden'
        },
    });
    

    Explanation: In Init callback get the body for TinyMCE and change style as required.

    In this case to remove scrollbar overflow = 'hidden'.

提交回复
热议问题