TinyMCE inside hidden div are not displayed as enabled when we put the div visible

前端 未结 2 1275
夕颜
夕颜 2021-01-19 02:56

I am having an issue with tinyMCE (WYSIWYG editor). I am actually adding the textarea inside a HTML element like a DIV which is currently having the style attribute \"displa

相关标签:
2条回答
  • 2021-01-19 03:03

    This question it's quite old, but I had this problem too. I fixed with inline styles.

    <textarea class="tinymce" style="width: 300px; height: 400px"></textarea>
    

    To make it easier I build this simple script to do ir for me before the init()

    $('textarea.tinymce').each(function(){
        $(this).css({
            width: $(this).width(),
            height: $(this).height()
        });
    })
    
    0 讨论(0)
  • 2021-01-19 03:26

    Try calling tinyMCE.init(...) after you unhide the containing div.

    0 讨论(0)
提交回复
热议问题