ダイアログが初めて完全に動作するときに、JQuery UIダイアログ内にCKEditorを実装しようとしています。CKEditor with JQuery UIダイアログ - 2回目に表示されません。
2回目にダイアログを開くと、「スタイル:非表示」のテキスト領域が読み込まれず、エディタが読み込まれません。私の管理ページで
ダイアログ
MyApp.Dialog = $('<div></div>');
MyApp.Dialog
.dialog({
modal: true,
autoOpen: false,
title: title,
width: width,
height: height,
close:function(){
$(this).find('textarea').ckeditorGet().destroy();
},
buttons: {
'OK': function() {
form = $(this).find('form');
if (form.validate().form() == true) {
MyApp.submitFormWithAjax(form, $(this));
} else {
return false;
}
},
Cancel: function() {
$(this).dialog('close');
}
}
});
MyApp.Dialog.load(url, function() {
EventManager.publish('showFormDialogLoaded');
});
MyApp.Dialog.dialog('open');
私は、ダイアログがロードされていることをお待ちしております。..
$('.admin-create-article').click(function(event) {
MyApp.showFormDialog($(this).attr('href'), 'Neuer Artikel', 700, 630);
EventManager.subscribe('showFormDialogLoaded', function() {
$('.editor').ckeditor(function() {}, { skin : 'v2' });
});
event.preventDefault();
});
ckeditor v4.3では、2度目の起動ではないエディタの問題はありませんでしたが、2度目にはツールバーのドロップダウン要素が機能しませんでした。この解決策はそれを解決しました。ありがとう。 – frank