title: CKEditor 5 – get editor instances
body: <p>I am migrating from CKEditor 4.7 to 5.</p>
  
  <p>In CKE4, I would do something like this:
  <code>CKEDITOR.replace('text_area');</code>
  and then in another JS function I could get the data by
  <code>CKEDITOR.instances.text_area.getData()</code>.</p>
  
  <p>But it doesn't appear that CKE5 has a function <code>ClassicEditor.instances</code> or something analogous.</p>
  
  <p>I know I can store the editor instance as a global JS variable, but the code I am working with creates the editors in a general function, so I can't just create a global variable since I don't know the name of the editor a priori. There can also be several editors active on the screen at the same time.</p>
  
  <p>Is there no analog in CKE5 to the old <code>instances</code> that would allow me to get an editor instance from just the <code>id</code> of the textarea it replaced?</p>
  
  <p>I guess I could create my own global array to hold the editor instances, but I would rather not if there is something built in and better-supported</p>