Re: [elm-discuss] textarea selection

2016-07-31 Thread OvermindDL1
That sounds horrifyingly wonderfully hacky. ^.^ Good idea to keep in mind for the future, though I think keeping with my port right now is good. I have a growing PortHelper module that I am stuffing all my port helpers into with a single javascript file that I can call a function in passing

Re: [elm-discuss] textarea selection

2016-07-27 Thread OvermindDL1
Correction, does not seem to work, I cannot find a way to access the textarea element from the button callback... On Wednesday, July 27, 2016 at 8:37:05 AM UTC-6, OvermindDL1 wrote: > > I already use custom 'on' things to override default propagation (more > interaction with the legacy

Re: [elm-discuss] textarea selection

2016-07-27 Thread OvermindDL1
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

Re: [elm-discuss] textarea selection

2016-07-27 Thread Atamert Ölçgen
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 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