title: CKEditor is duplicating a field
body: <p>So my original problem was that I needed to get rid of the img style attribute on images in CKeditor.</p>
  
  <p>I found that this code does the trick:</p>
  
  <pre><code>if (CKEDITOR.instances['field_id_4']) {
      CKEDITOR.remove(CKEDITOR.instances['field_id_4']);
  }        
  CKEDITOR.replace('field_id_4',{
      allowedContent: 
          'img[!src,alt,width,height]{float};' + 
          'h1 h2 div'
      });
  </code></pre>
  
  <p>But only when the top condition is there.</p>
  
  <p>Now I see though, that the CKeditor is duplicated...</p>
  
  <p>Anyone know how to fix this?</p>