I\'m using CKEditor version 3.6
I want to automatically add class=\"newsleft\" to any image tag added through the WYSIWYG.
class=\"newsleft\"
I\'ve seen a few post
Here's another approach:
CKEDITOR.on( 'instanceReady', function( evt ) { evt.editor.dataProcessor.htmlFilter.addRules( { elements: { img: function(el) { el.addClass('img-responsive'); } } }); });