how add class to ckeditor image code example
Example: how add class to ckeditor image
editor.on('insertElement', function(event) {
var element = event.data;
if (element.getName() == 'img') {
element.addClass('contentimage');
}
});
editor.on('insertElement', function(event) {
var element = event.data;
if (element.getName() == 'img') {
element.addClass('contentimage');
}
});