javascript - tinymce autoresize with chrome when readonly -
hi guys tried full day, did not it.
i use tinymce editor , in browsers works fine, except in ** chrome. use autoresize in readonly mode , have problem in chrome editor iframe ~20px small, text missing.
i not jquery or javascript crack , did not find solution it. there row setting style h.setstyle(h.get(a.id + "_ifr"), "height", k + "px");
when add +20 have problem in editor mode adds 20 px when keydown. not solution.
add pixeld css? how access iframe element? maybe of have idea can here add there pixels.
edit
ok seems no 1 has interest workaround. in plugin file following, maybe helps people, having same problem:
if (tinymce.iswebkit && tinymce.activeeditor.settings.readonly == true) {
then can add pixels, in case 20px. maybe there better solutions, works.
i had similiar problem chrome, tinymce 3.5.6 , autoresize plugin. helped manually calling resize plugin in init_instance_callback
. i'm calling tinymce (jquery version) when window 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'); } });
Comments
Post a Comment