title: instance of CKeditor already exists
body: <p>I have found a few similar posts on this on Stack overflow but there are none with an answer that is working. </p>
  
  <p>I have a few tabs on a page, depending on that li they click on they will see a specific tab. In one of the tabs there is a CKeditor which is initiated on the click of the li. When they user clicks off that specific tab onto another one, and then returns there is this error: </p>
  
  <blockquote>
    <p>Uncaught The editor instance "employDesc" is already attached to the
    provided element.</p>
  </blockquote>
  
  <p>Here is the JS:</p>
  
  <pre><code>    $('.addVacancy').click( function() {
          if(CKEDITOR.instances.employDesc)  {
              alert('instance exists');
              var editor = CKEDITOR.instances[employDesc];
              if (editor) { 
                  editor.destroy(true); 
              } 
              alert('distroyed');
          }   
          CKEDITOR.replace('employDesc');
      });
  </code></pre>
  
  <p>Both of the alerts appear but then it breaks as the error comes on in the console. Can anyone help with this?</p>
  
  <p>Thanks</p>