Return to Snippet

Revision: 37281
at December 7, 2010 22:53 by fahrenx


Initial Code
//check if any ckeditor instance has focus
if(CKEDITOR.currentInstance)
  console.log('editor has focus!');

//adding on focus handler
CKEDITOR.instances.ckeditor.on('focus', function(){
   console.log('focus')
});

Initial URL

                                

Initial Description
tested with CKEDITOR 3.0 and Firefox 3.6.12 and IE 8

Initial Title
tracking focus in CKEDITOR

Initial Tags
javascript

Initial Language
JavaScript