sstur / react-rte

Pure React rich text WYSIWYG editor based on draft-js.
https://react-rte.org
ISC License
2.86k stars 431 forks source link

Appending custom html in the editor #435

Open haresh6x opened 2 years ago

haresh6x commented 2 years ago

I am currently using react-rte version 0.16.3 and having a bit of difficulty as to how can I append custom html string after the current cursor position.

For example I have the string which is basically a button. `

`

How do I approach towards it? I can't seem to find any documentation regarding it. I'd appreciate the help!