Yeah, I’m aware of the various challenges of contentEditable. I was hoping that I might be able to leverage ClojureScript/React/Om to make them at least slightly more palatable.
Consider me suitably warned ;-) -- paul.butcher->msgCount++ Silverstone, Brands Hatch, Donington Park... Who says I have a one track mind? http://www.paulbutcher.com/ LinkedIn: http://www.linkedin.com/in/paulbutcher Skype: paulrabutcher Author of Seven Concurrency Models in Seven Weeks: When Threads Unravel http://pragprog.com/book/pb7con On 22 April 2014 at 13:02:58, David Nolen ([email protected]) wrote: contentEditable in regular JavaScript is challenging / difficult - https://vimeo.com/76219173. Getting it to work under React / Om is like to be even more challenging / difficult. I would probably spend quite a bit of time prototyping / testing before making any assumptions that it can be accomplished in a reasonable amount of time. David On Tue, Apr 22, 2014 at 6:58 AM, Paul Butcher <[email protected]> wrote: After working my way through the various samples and tutorials out there, I’m about to start on my first Om app (yay!). Possibly foolishly, I’m planning to make heavy use of contentEditable. In essence, what I need to do is replicate something similar to Word’s “track changes” functionality. Ideally, I’d like to get this to play nicely with Om’s undo - the complication being that as well as changes made by the app, I’d also need to undo changes made by the user (ideally wrapping changes made by both into a single logical undo). I’ve done quite a bit of searching, and getting React to play nicely with contentEditable seems to be a largely unexplored area? Chas Emerick’s message on the React mailing list seems to capture the current state of the art: https://groups.google.com/d/msg/reactjs/ff5YlPKiqmc/ngDTsk_i2mYJ Although this looks promising: http://stackoverflow.com/a/22678516/268371 Is there anything else that I should be aware of? Any words of wisdom or advice before I dive into this (including “don’t use Om for this - it’s the wrong tool for the job” :-)? -- paul.butcher->msgCount++ Silverstone, Brands Hatch, Donington Park... Who says I have a one track mind? http://www.paulbutcher.com/ LinkedIn: http://www.linkedin.com/in/paulbutcher Skype: paulrabutcher Author of Seven Concurrency Models in Seven Weeks: When Threads Unravel http://pragprog.com/book/pb7con -- Note that posts from new members are moderated - please be patient with your first post. --- You received this message because you are subscribed to the Google Groups "ClojureScript" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/clojurescript. -- Note that posts from new members are moderated - please be patient with your first post. --- You received this message because you are subscribed to the Google Groups "ClojureScript" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/clojurescript. -- Note that posts from new members are moderated - please be patient with your first post. --- You received this message because you are subscribed to the Google Groups "ClojureScript" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/clojurescript.
