I try to use FCKEditor in JQuery UI dialog. It works for Chrome, but I have some problems with Opera and FF. When I try to create FCKEditor, it submits page without any reason.
<div id="dialog" title="Basic dialog">
<form method="post" id="myform">
<script type="text/javascript">
//<![CDATA[
var oFCKeditor = new FCKeditor('FCKeditor1');
oFCKeditor.BasePath = '/Scripts/Shared/fckeditor/';
oFCKeditor.Height = 300;
oFCKeditor.Width = 720;
oFCKeditor.Create();
//]]>
</script>
</form>
</div>
JS
$(function () {
$('#dialog').dialog();
});
I've tried to move oFCKeditor.Create(); to another place (for example, before $('#dialog').dialog('open');). I've tried to use setTimeout (this question). There is no any results.
Is there any way to use FCKEditor inside JQuery UI Dialog?