jsPanel.create({
content: '<textarea name="editor1" id="editor1"></textarea>',
contentSize: '750 auto',
headerTitle: 'jsPanel with CKEditor',
position: 'center-top 0 100',
theme: '#8100BA',
callback: function () {
CKEDITOR.replace('editor1', {
height: 300
});
$('#btn-1').attr('disabled', 'disabled');
this.style.height = 'auto';
},
onclosed: function () {
$('#btn-1').attr('disabled', false);
}
});