I'm drawing two textareas with tiny mce, which are within two divs, one for english and one for french. I show/hide the english/french div based on an english/french drop down.
When I select french to hide the english div and show the french div, the french tiny mce textarea has minimum size. When i take away the show/hide, the textareas are both drawn fine. This seems like a tiny mce bug. anyway to get around this?
here's the code:
$(function () {
$('textarea').tinymce({
script_url: '/js/tiny_mce/tiny_mce.js',
theme: "advanced"
});
$("#ddlLocales").change(function () {
$(".localizedInput").hide();
//english or french
$("." + $("#ddlLocales option:selected").text()).show();
});
//this is to trigger the change function on load.
$("#ddlLocales").change();
});
<div class="localizedInput english">
<textarea class = "eventInputTextArea"></textarea>
</div>
<div class="localizedInput French">
//this textarea's height and width get wiped out by tinymce only when implementing show/hide
<textarea class = "eventInputTextArea"></textarea>
<div>
//below is the css class that specifies the width and height of textarea
.eventInputTextArea{
width:600px;
height:400px;
}