Re: [elm-discuss] Elm and contenteditable

2017-02-26 Thread Vincent Jousse
an help, I'd love to know >>> >>> Simon >>> >>> On Tuesday, 27 September 2016 16:35:04 UTC+2, Girish Sonawane wrote: >>>> >>>> Instead of onChange, you can try using Events.on http://package.elm-l >>>> ang.org/pac

[elm-discuss] Re: Pure Elm contenteditable rich text editor

2016-10-14 Thread Vincent Jousse
Just for the record, we discussed something similar here: https://groups.google.com/forum/#!msg/elm-discuss/YKz8rgffoWc/k6WIihXRBAAJ;context-place=forum/elm-discuss Le jeudi 13 octobre 2016 10:09:58 UTC+2, Bulat Shamsutdinov a écrit : > > Thank you everyone! I'm currently studying Draft.js to see

Re: [elm-discuss] Elm and contenteditable

2016-09-27 Thread Vincent Jousse
t; >> Thanks >> >> On Tuesday, September 27, 2016 at 4:56:48 AM UTC-4, Vincent Jousse wrote: >>> >>> The main "hack" I had to do was to wait on the Javascript side for the >>> DOM element to be rendered by ELM. >>> >>> A

Re: [elm-discuss] Elm and contenteditable

2016-09-27 Thread Vincent Jousse
ound a lot of people doing this sort of thing successfully, > so I'm mostly trying to determine what's been done. > > Quill gives me "Invalid Quill container". And tinymce just silently fails > to do anything. > > > On Monday, September 26, 2016 at 7:01:16 PM UTC

Re: [elm-discuss] Elm and contenteditable

2016-09-26 Thread Vincent Jousse
. I have tried > CKeditor yet though. > > On Friday, September 2, 2016 at 9:34:19 AM UTC-4, Vincent Jousse wrote: >> >> Nice trick :D >> >> I think I'll stay with my CKeditor solution for the moment, but thanks a >> lot anyway. >> >> L

Re: [elm-discuss] Elm and contenteditable

2016-09-02 Thread Vincent Jousse
out of sync until blur happens. It's not nice but there > where no problems with implementation so far. > > Dana utorak, 30. kolovoza 2016. u 17:18:37 UTC+2, korisnik Vincent Jousse > napisao je: >> >> I didn't but it's a very good idea :-) >> >&g

Re: [elm-discuss] Elm and contenteditable

2016-08-30 Thread Vincent Jousse
l span? > This should allow for single word editing and for individual double > clicks. > > > On Tue, Aug 30, 2016 at 5:43 PM, Vincent Jousse > wrote: > >> I mainly need double click events. I'm doing a transcription editor: I'm >> using a Speech To Tex

Re: [elm-discuss] Elm and contenteditable

2016-08-30 Thread Vincent Jousse
t 2016 16:36:10 UTC+2, Peter Damoc a écrit : > > Well, it was a naive approach. ^_^ > > As for events inside the contenteditable div, I have no idea but what kind > of events do you want to handle in this kind of a scenario? > > > > On Tue, Aug 30, 2016 at 5:11 PM, Vincent

Re: [elm-discuss] Elm and contenteditable

2016-08-30 Thread Vincent Jousse
ng (..) >>>> import Html.App exposing (beginnerProgram) >>>> import Html.Events exposing (on) >>>> import Json.Encode as JE >>>> import Json.Decode as JD exposing ((:=)) >>>> >>>> >>>> main = >>>> begin

[elm-discuss] Elm and contenteditable

2016-08-30 Thread Vincent Jousse
Hello, I'm writing an application where the user needs to edit some HTML content. When I first wrote this application in JS, I was using some contenteditable fields to do so. How should I handle this with Elm? My problem is that if I set a div with contenteditable=true in elm, and that the con