I'm used to updating input, textarea etc. elements with text content from my Chrome Extension.
But adding/updating text to a draft.js text editor is a new beast.
Since a content script exists ON the page, it can use whatever frameworks are already in use - right? So if I know a specific URL I'm interacting with uses jQuery, my Extension can use jQuery. Otherwise I need to use plain vanilla Javascript.
So if I know I'm on a react/draft.js page can I use the draft.js APIs to update the contents of the editor (https://draftjs.org/docs/quickstart-api-basics.html)? How would I access/initiate the editor? Or even know what it's ID is?
Any help/direction appreciated. I just want to append text programmatically to the text editor and update (event handler) React/Draft.js so it understands that the contents of the editor have changed.