As far as I know Selection API ( https://developer.mozilla.org/en-US/docs/Web/API/Window/getSelection) is not present in Elm. So there is no way (no sane way) to do text editor in pure elm as of right now.
On Saturday, November 19, 2016 at 11:33:32 PM UTC+3, Joey Eremondi wrote: > > there is no way to implement rich text editor in pure elm > > > That's certainly not true, it's certainly possible, but you'd have to > write all the editor code yourself, and there aren't (I think) any good > libraries for doing it yet. > > On Sat, Nov 19, 2016 at 1:39 AM, Bulat Shamsutdinov < > [email protected] <javascript:>> wrote: > >> Hi! As far as I got into the same question, there is no way to implement >> rich text editor in pure elm, it misses some core functionality like >> selections. The only way is to use ports to JS code and that comes with >> it's nasty hacks too. >> >> On Monday, October 31, 2016 at 9:01:46 PM UTC+3, Haitao Zhang wrote: >>> >>> Can anyone point to an editor done in Elm? I am particularly interested >>> in seeing how mouse interaction (highlight, selection, copy, paste etc) is >>> handled. I looked through DreamWriter. I don't think it implements the part >>> I mentioned in Elm, though to be honest I am not quite sure how it >>> accomplishes the editing actions. >>> >> -- >> 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] <javascript:>. >> For more options, visit https://groups.google.com/d/optout. >> > > -- 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.
