I am running a tinyMCE editor inside a JQuery UI modal dialog. Everything works fine, except for those functions of tinyMCE which themselves open a new modal (links, for example). These modals are displayed fine but the input areas are not editable. The js code is OK according to Firebug and the HTML is pretty straightforward.
Any clue where it might come from?
Edit:
<script type="text/javascript">
tinymce.init({
selector: "textarea",
plugins: "autolink link table textcolor",
menubar: false,
toolbar: "undo redo | styleselect | forecolor backcolor | bold italic | link unlink | table"
});
$(document).ready(function(){
$(".sendmail")
.button({
icons: {
primary: "ui-icon-mail-closed"
},
text: false
})
.click(function(){
$("#sendmailform").dialog("open");
})
;
$(function(){
$("#sendmailform")
.dialog({
autoOpen: false,
title: "Send mail confirmation",
modal:true,
width: 750,
[buttons & ajax]
})
;
});
});
</script>