title: Force CKEditor image2 plugin to set width and heigth inside the syle
body: <p>I'm using CKEditor 4.4, and I tried to use ACF to force the <a href="http://ckeditor.com/addon/image2" rel="nofollow noreferrer">image2</a> plugin to set <code>width</code> and <code>height</code> as CSS properties (in the <code>style</code> attribute), instead to use the corresponding <code>&lt;img&gt;</code> tag attributes.</p>
  
  <p>In other terms, what I get now using the <code>editor.getData()</code> method is something like that:</p>
  
  <pre><code>&lt;img src="text.jpg" width="100" height="100" /&gt;
  </code></pre>
  
  <p>but I want this other form:</p>
  
  <pre><code>&lt;img src="text.jpg" style="width:100px;height:100px" /&gt;
  </code></pre>
  
  <p>I tried to reach this result using <code>allowedContent</code> and <code>disallowedContent</code> in the <code>config.js</code> file. This is what I tried (see <a href="http://docs.ckeditor.com/#!/guide/dev_disallowed_content-section-how-to-allow-everything-except..." rel="nofollow noreferrer">this</a> for references):</p>
  
  <pre><code>//Allow everything
  config.allowedContent = {
      $1: {
          // Use the ability to specify elements as an object.
          elements: CKEDITOR.dtd,
          attributes: true,
          styles: true,
          classes: true
      }
  };
  
  config.disallowedContent = "img[width,height]";
  </code></pre>
  
  <p>With this, the result is simply that <code>width</code> and <code>height</code> are no more set (neither as attributes nor in the style), the image cannot be resized and the Image Properties dialog no longer include the input boxes related to image size.</p>
  
  <p>I also tried to reverse the solution propesed by <a href="https://stackoverflow.com/users/760819/marco-cortellino">Marco Cortellino</a> in <a href="https://stackoverflow.com/questions/2051896/ckeditor-prevent-adding-image-dimensions-as-a-css-style/6056896#6056896">this StackOverflow answer</a>, without positive results.</p>
  
  <p>Can someone help me?</p>