How to know which toolbar button is clicked in ckeditor
please let me know is there any event is available to know which tool bar button is clicked, because i am doing
blur functionality , it is giving problem when i am trying to add link or image and also i am trying to change
foreground colour and back ground colour the blur event is calling .
So i want to restrict the blur event only for all the tool bar items.
Thats why i am trying to find is there any event to identity in ckeditor i clicked on toolbar button
sample code
jQuery('textarea').each(function(){
try{
console.log(jQuery(this)[0].id);
var myeditor = jQuery(this)[0].id;
var editor = CKEDITOR.instances[myeditor];
if (editor) {
var surbutn='';
editor.on('blur', function(e) {
alert('blur');
});
}
}catch(err)
{
}
});
let me know asap thanks and regards surya
please let me know is there any event is available to know which tool bar button is clicked, because i am doing
blur functionality , it is giving problem when i am trying to add link or image and also i am trying to change
foreground colour and back ground colour the blur event is calling .
So i want to restrict the blur event only for all the tool bar items.
Thats why i am trying to find is there any event to identity in ckeditor i clicked on toolbar button
sample code
jQuery('textarea').each(function(){
try{
console.log(jQuery(this)[0].id);
var myeditor = jQuery(this)[0].id;
var editor = CKEDITOR.instances[myeditor];
if (editor) {
var surbutn='';
editor.on('blur', function(e) {
alert('blur');
});
}
}catch(err)
{
}
});
let me know asap thanks and regards surya