tinymce autoresize with chrome when readonly

前端 未结 1 1120
[愿得一人]
[愿得一人] 2021-01-25 01:49

Hi guys i tried the full day, but i did not get it.

I use the tinymce editor and in all browsers it works fine, except in ** chrome. I use the autoresize in re

相关标签:
1条回答
  • 2021-01-25 01:57

    I had a similiar problem with Chrome, tinyMCE 3.5.6 and the autoresize plugin. What helped was manually calling the resize plugin in the init_instance_callback. I'm calling tinyMCE (jQuery version) like this now when the window is loaded:

    $('.tinymce').tinymce({
      theme : 'advanced',
      plugins : 'autoresize',
      width: '100%',
      height: 400,
      autoresize_min_height: 400,
      autoresize_max_height: 800,
      init_instance_callback: function (inst) { inst.execCommand('mceAutoResize'); }
    });
    
    0 讨论(0)
提交回复
热议问题