Adding custom field via javascript

I would like create a field (let’s say of type “Text Editor”) that is not linked to the database, as I would like to use this field for other purposes. How would I go about doing that?

you can use an HTML field type and then create whatever type of field in that HTML field.

But how about complex field types like “Text Editor”? (which is what I need for my current use case)