I have text widgets that can be added on the page. A click should activate the div into a wysiwyg editor. A click anywhere outside of the editor should destroy the editor wi
This is the code you would need to place on a button onclick action to close CKEditor
CKEDITOR.instances.editor1.destroy();