Could you inject a script into a React page (with Draft.js editor) to append HTML to the existing contents of the editor?

一笑奈何 提交于 2019-12-24 20:01:31

问题


I'm looking to mash up Chrome Extension's ability to inject scripts with Draft.js's ability to add content to the editor.

Would it be possible to inject a script like this into a React/Draft.js page, pass it a string (from the Chrome Extension), and have the script update the page?

Many thanks for any thoughts/guidance...

来源:https://stackoverflow.com/questions/51845654/could-you-inject-a-script-into-a-react-page-with-draft-js-editor-to-append-htm

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!