I already use custom 'on' things to override default propagation (more interaction with the legacy javascript that I am stopping in this case), but you just gave me a fantastic idea... I might be able to get rid of my `surroundSelectionWith` javascript port...
On Wednesday, July 27, 2016 at 12:56:24 AM UTC-6, Atamert Ölçgen wrote: > > Have you tried this: > > http://package.elm-lang.org/packages/elm-lang/html/1.1.0/Html-Events#on > > On Tue, Jul 26, 2016 at 11:02 PM, OvermindDL1 <overm...@gmail.com > <javascript:>> wrote: > >> When a user clicks a button I am needing to take the text that is >> currently *selected* in a textarea and surround it with other text while >> retaining what is selected. What is the method to do this in Elm. Is >> there an onSelectionChanged callback or something that I am missing? >> >> -- >> 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 elm-discuss...@googlegroups.com <javascript:>. >> For more options, visit https://groups.google.com/d/optout. >> > > > > -- > Kind Regards, > Atamert Ölçgen > > ◻◼◻ > ◻◻◼ > ◼◼◼ > > www.muhuk.com > -- 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 elm-discuss+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.