Tinymce Auto Resistant with Chrome Reading

Hi guys, I tried all day, but I did not understand.

I use the tinymce editor and it works fine in all browsers except ** chrome. I use autoresize in readonly mode, and I always have a problem that in chrome the iframe editor is ~ 20px in size, so often the text is missing.

I am not crack jquery or javascript and have not found a solution for it. There is a line in which it sets the style h.setStyle(h.get(a.id + "_ifr"), "height", k + "px");, but when I add +20, I have a problem that in editor mode it always adds 20 px when a key is pressed. So no solution.

Add css pixel? But how do I access the iframe element? Perhaps one of you has an idea of ​​what I can do here to add extra pixels there.

EDIT

Ok, nobody seems to be interested in helping, so I am doing this with a workaround. In the plugin file, I do the following, maybe this helps people having the same problem:

if (tinymce.isWebKit && tinymce.activeEditor.settings.readonly == true) {

Then you can add extra pixels, in my case 20px. There may be much better solutions, but it works.

+1
source share
1 answer

I had a similar problem with Chrome, tinyMCE 3.5.6 and the autoresize plugin. Which helped to manually call the resize plugin init_instance_callback. I call tinyMCE (jQuery version) as it is now when the window loads:

$('.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'); }
});
+1
source

All Articles