I've started building a rich text editor with DraftJS and have made decent progress. Now I am stuck on adding embedded content. I tried manually adding script tags by editing html separately and calling convertFromHTML with the new html, but that did not work.

I would like to add content like gists to my rich text editor, but am not sure how.

Any help is appreciated!