All the textareas that have the "wysiwyg" class get converted to CKEditors but somehow the $('.wysiwyg').change() event never gets detected. I did some googling but the keyword combination seems to bring up nothing but irrelevant results (my google-fu sucks).
Thanks for any help :)
Edit:
for (var i in CKEDITOR.instances) {
CKEDITOR.instances[i].on('click', function() {alert('test 1 2 3')});
}
I tried the code above and it doesn't work. It doesn't give me an error meaning that it finds the CKEditor objects but for some reason the listener isn't attached to it?
Also, if I replace the event attachment with just alert(CKEDITOR.instances[i].name); it'll alert the name of my textarea so I know I'm not trying to attach the click event to nothing :)
How to show an alert message Ckeditor on focus
All the textareas that have the "wysiwyg" class get converted to CKEditors but somehow the
$('.wysiwyg').change()
event never gets detected. I did some googling but the keyword combination seems to bring up nothing but irrelevant results (my google-fu sucks).Thanks for any help :)
Edit:
I tried the code above and it doesn't work. It doesn't give me an error meaning that it finds the CKEditor objects but for some reason the listener isn't attached to it?
Also, if I replace the event attachment with just
alert(CKEDITOR.instances[i].name);
it'll alert the name of my textarea so I know I'm not trying to attach the click event to nothing :)How to show an alert message Ckeditor on focus
The above code is not working..