Hi!
I updated our web application from FCK 2.64 to CK 3.01. However on one screen I needed the function that allowed to toggle between CK and the standard textarea.
This feature used to be in the samples of 2.*. Of course it does not work with CK 3.0, however I would be glad to use this toggle function again.
Thank you for the help in advance.
Chris
I updated our web application from FCK 2.64 to CK 3.01. However on one screen I needed the function that allowed to toggle between CK and the standard textarea.
This feature used to be in the samples of 2.*. Of course it does not work with CK 3.0, however I would be glad to use this toggle function again.
Thank you for the help in advance.
Chris

Re: Toggle between CKEditor 3 and Texteare
Re: Toggle between CKEditor 3 and Texteare
Re: Toggle between CKEditor 3 and Texteare
if (ck) {
ck.destroy();
ck = false;
}else{
ck = CKEDITOR.replace(document.getElementById('id');
}
}
Re: Toggle between CKEditor 3 and Texteare
I tried using the toggleCKedit() function, but still am not able to toggle between plain text area and ckeditor.
Could you please lemme know how to go about it.
Thanks,
Shilpa
Re: Toggle between CKEditor 3 and Texteare
function disableCKEditor(textarea) { // We cannot use getEditor() since it will throw an exception. // http://ckeditor.com/blog/CKEditor_for_jQuery var ck = textarea.eq(0).data('ckeditorInstance'); if (ck) { ck.destroy(); ck = false; } }// NOTE: If the django-filebrowser app is not used, then remove the filebrowserBrowseUrl. // Using ckeditor() to replace a textarea does not call ckeditor/config.js, so we must // specify the config explicitly. content_field.ckeditor(function() { }, {width: '100%', filebrowserBrowseUrl: '/admin/filebrowser/browse?pop=3' });Re: Toggle between CKEditor 3 and Texteare