You should read this article to see why existing solutions generally do not work very well: https://medium.engineering/why-contenteditable-is-terrible-122d8a40e480
I am pretty sure draft.js has a good underlying data model that copes with mapping to the DOM well. Perhaps looking into how that works could give you some direction. Like Luke says, you will need to use the selection API via a port. When I first started looking into Elm this was something that I was interested in creating so I am keen to see how you get on. Good luck. -- You received this message because you are subscribed to the Google Groups "Elm Discuss" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
