Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

how add class to ckeditor image

editor.on('insertElement', function(event) {
	var element = event.data;
	if (element.getName() == 'img') {
		element.addClass('contentimage');
	}
});
Source by ckeditor.com #
 
PREVIOUS NEXT
Tagged: #add #class #ckeditor #image
ADD COMMENT
Topic
Name
9+1 =