Change tinyMce editor's height dynamically

后端 未结 8 758
庸人自扰
庸人自扰 2020-12-16 01:05

I am using tinymce editor in my page. What I want to do is to change the height of the editor dynamically. I have created a function:

function setComposeTex         


        
8条回答
  •  慢半拍i
    慢半拍i (楼主)
    2020-12-16 01:56

    It's a bit late but for Googler like me, check the autoresize plugin

    tinymce.init({
        plugins: "autoresize"
    });
    

    Options

    autoresize_min_height : Min height value of the editor when it auto resizes.

    autoresize_max_height : Max height value of the editor when it auto resizes.

提交回复
热议问题