JSFiddle - React, Tailwind, and code Playground

HTML

<script src="http://nightly.ckeditor.com/13-12-11-07-05/standard/ckeditor.js"></script>
<body>
<form>
    
   <textarea id="editor2" name="editor1" rows="10" cols="80">
    </textarea>
    
        <textarea id="editor1" name="editor1" rows="10" cols="80">
    </textarea>
</form>
</body>

JavaScript

(function() {
    
    var editor1, editor2;
    
       // this is ok
    editor2 = CKEDITOR.replace('editor2');
    var destroyCb = function() {
        editor2.destroy(false);
    };
    editor2.setData('', destroyCb);
    
    // this will cause error
    editor1 = CKEDITOR.replace('editor1');
    editor1.setData('');
    editor1.destroy(false); 
    

    
})();