title: How to prevent CKEditor from converting width,height attributes of img to inline style?
body: <p>Sorry if it seems an old problem, But right now, it is more than 3 hours that I am stucked in this problem and can not solve it, So please tell me how I can solve this.</p>
  
  <p>I have recently added a CKEditor to a webpage. The problem is that it converts <code>width</code> and <code>height</code> <code>attributes</code> of the <code>img</code> elements to inline style. These attributes are set in server-side and I wish I keep them. I tried many possible solution, but they seems to be old.</p>
  
  <p>Here is the script I used:</p>
  
  <pre><code>&lt;script language="JavaScript"  type="text/javascript"&gt;
   CKEDITOR.config.toolbar = [
      { name: 'document', items : [ 'Source','-','Save','DocProps','Preview' ] },
      { name: 'clipboard', groups: [ 'clipboard', 'undo' ], items: [ 'Cut', 'Copy', 'Paste', 'PasteText', '-', 'Undo', 'Redo' ] },
      { name: 'editing', groups: [ 'find', 'selection', 'spellchecker' ], items: [ 'Find', 'Replace', '-', 'SelectAll', ] },
      { name: 'basicstyles', groups: [ 'basicstyles', 'cleanup' ], items: [ 'Bold', 'Italic', 'Underline', 'Strike', 'Subscript', 'Superscript', '-', 'RemoveFormat' ] },
      { name: 'paragraph', items : [ 'NumberedList','BulletedList','-','Outdent','Indent','-','Blockquote','CreateDiv',
      '-','JustifyLeft','JustifyCenter','JustifyRight','JustifyBlock','-','BidiLtr','BidiRtl' ] },
      { name: 'insert', items: [ 'Image', 'Table', 'HorizontalRule', 'SpecialChar',  ] },
      { name: 'styles', items: ['Format', 'Font', 'FontSize' ] },
      { name: 'colors', items: [ 'TextColor' ] },
      { name: 'tools', items: ['Maximize', 'About' ] }
  ];
  CKEDITOR.config.height = 500;
  CKEDITOR.config.contentsLangDirection = 'rtl';
  
  CKEDITOR.replace( 'htmlp1', {
      allowedContent:
          'img(left,right)[!src,alt,width,height];' 
  } );
              &lt;/script&gt;
  </code></pre>
  
  <p>Please, would you clearly tell me what should I do?</p>
  
  <p>Thank you very much.</p>