Is there a way to remove the ckeditor on checking a checkbox?
I need to change the ckeditor to a normal textarea with all the text-content from ckeditor, if a checkbox is clicked. How can I do this?
Here is my part of jQuery code:
any ideas?
I need to change the ckeditor to a normal textarea with all the text-content from ckeditor, if a checkbox is clicked. How can I do this?
Here is my part of jQuery code:
$(document).ready(function(){
$("input[name=template_type]").click(function(){
if($(this).val()=="pdf"){
/* THE TEXTAREA SHOULD BE TRANSFORMED TO THE CKEDITOR */
}else{
/* THE CKEDITOR SHOULD BE TRANSFORMED TO A TEXTAREA */
}
});
});
any ideas?
