처음으로 대화 상자가 열리면 JQuery UI 대화 상자에서 CKEditor를 구현하려고합니다.JQuery UI 대화 상자가있는 CKEditor - 두 번째 시간이 표시되지 않습니다.
두 번째로 대화 상자를 열면 "스타일 : 숨김"으로 텍스트 영역이로드되고 편집기가로드되지 않습니까? 내 관리자 페이지에
대화
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을 사용하면 두 번째로 시작되지 않은 편집기 문제를 얻지 못했지만 두 번째 작업에는 툴바의 드롭 다운 요소가 있습니다. 이 솔루션으로 해결되었습니다. 감사. – frank