Reputation: 714
I am using tinyMCE, and have more than 100 texareas on the page. Iframe, which is created after initialization, has min-width=62px, even there is only a line inside. Can I somehow decrease this value?
And the second question, inside Iframe there is HTML page with body style="padding-bottom:50px". Is it possible to decrease it, otherwise textarea takes much place :/
Thanks in advance.
Upvotes: 2
Views: 2796
Reputation: 56
tinyMCE.init({
...
autoresize_bottom_margin : 10,
theme : 'advanced',
plugins : 'autoresize',
...
});
Upvotes: 4
Reputation: 50840
Yes, this is possible. Here it is:
tinyMCE.init({
...
setup : function(ed) {
ed.onInit.add(function(ed, evt) {
var new_val = '30px';
// adjust table element
var elem = document.getElementById(ed.id + '_tbl');
elem.style.height = new_val;
// adjust iframe element
var iframe = document.getElementById(ed.id + '_ifr');
iframe.style.height = new_val;
});
}
});
Upvotes: 2