Drupal and CKEditor, setting default values in the image properties dialog

Copy this file to the root of your theme directory:


Edit the file and add the following code which will give a default value to HSpace, VSpace and ensure Bootstrap’s “img-responsive” class will be added to all images:

Lastly, edit your CKEditor profiles and set “Load ckeditor.config.js from theme path” to “Yes”: