Posted By

fahrenx on 12/07/10


Tagged

javascript ckeditor


Versions (?)

tracking focus in CKEDITOR


 / Published in: JavaScript
 

tested with CKEDITOR 3.0 and Firefox 3.6.12 and IE 8

  1. //check if any ckeditor instance has focus
  2. if(CKEDITOR.currentInstance)
  3. console.log('editor has focus!');
  4.  
  5. //adding on focus handler
  6. CKEDITOR.instances.ckeditor.on('focus', function(){
  7. console.log('focus')
  8. });

Report this snippet  

You need to login to post a comment.