KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
I have a ckeditor plugin and inside the init: I want to capture the click event so I can do something. CKEDITOR.plugins.add('Columns',{ init : function(editor) { editor.on('doubleclick', function(ev) {console.log('hello');}); // Works editor.on('focus', function(ev) {console.log('hello');}); // Works editor.on('click', function(ev) {console.log('hello');}); // Does not work editor.on('mousedown', function(ev) {console.log('hello');}); // Does not work } }); Any Ideas??? EDIT: OK could not get click working, I believe we need to create an event for that. However thanks to this post: http://alfonsoml.blogspot.com.au/2011/03/onchange-event-for-ckeditor.html I managed to use 'saveSnapshot' which seems to fire each time I click so this now works editor.on('saveSnapshot', function(ev) {console.log('hello');}); // Works
Tags (comma-separated)
Save Edits
Cancel