After I found a solution to resize my tinyMCE instances ( they are readonly ). I faced a problem that I can't solve from hours... When I init the tinyMCE everything is OK, but in Internet Explorer and early versions of Chrome this doesn't work
tinyMCE.init({
mode: "textareas",
theme: "advanced",
readonly: true,
theme_advanced_path: false,
theme_advanced_resize_horizontal: false,
autoresize: true,
width: "870",
setup: function(ed) {
ed.onLoadContent.add(function(ed, o) {
var iFrameID = "#" + ($(this).attr('id')) + "_ifr";
$(iFrameID).height($(iFrameID).contents().find("html").height());
//iFrameID.height = iFrameID.contentWindow.document.body.scrollHeight + "px";
});
}
});
Also my Java Script attempt which is bellow the jQuery also not works. I will be more than happy if anyone got solution for this! Thanks in advance!