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.
source
share