I am migrating from CKEditor 4.7 to 5.

In CKE4, I would do something like this:
`CKEDITOR.replace('text_area');`
and then in another JS function I could get the data by
`CKEDITOR.instances.text_area.getData()`.

But it doesn't appear that CKE5 has a function `ClassicEditor.instances` or something analogous.

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.

Is there no analog in CKE5 to the old `instances` that would allow me to get an editor instance from just the `id` of the textarea it replaced?

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