我在JQuery UI模態對話框中運行tinyMCE編輯器。一切工作正常,除了tinyMCE自己打開一個新模式的功能(例如鏈接)。這些模式顯示正常,但輸入區域不可編輯。 根據Firebug的js代碼是可以的,HTML非常簡單。JQuery模式中的TinyMCE模態不可編輯
任何線索可能來自哪裏?
編輯:
<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>
這將如何解決OP的問題? – alex