This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2018-11-26
Channels
- # adventofcode (2)
- # announcements (9)
- # bangalore-clj (1)
- # beginners (158)
- # calva (32)
- # cider (2)
- # clara (4)
- # cljdoc (40)
- # cljs-dev (3)
- # cljsrn (6)
- # clojure (45)
- # clojure-brasil (2)
- # clojure-dev (35)
- # clojure-europe (9)
- # clojure-italy (7)
- # clojure-nl (2)
- # clojure-uk (29)
- # clojurescript (144)
- # code-reviews (3)
- # core-logic (9)
- # cursive (11)
- # datascript (8)
- # datomic (9)
- # duct (1)
- # figwheel (6)
- # fulcro (11)
- # hyperfiddle (27)
- # kaocha (23)
- # luminus (1)
- # off-topic (7)
- # onyx (2)
- # pathom (3)
- # re-frame (61)
- # reagent (12)
- # remote-jobs (10)
- # shadow-cljs (40)
- # spacemacs (4)
- # sql (27)
- # tools-deps (6)
- # unrepl (3)
- # vim (47)
Hello guys. I'm trying to use Draft.js, however sometimes the cursor jumps to the beginning of the line. Has anyone managed to make it work properly? Is there a WYSIWYG component that works "out of the box" with reagent?
@jlucas.nsilva that’s a common issue
2 useful links are https://github.com/reagent-project/reagent/issues/265#issuecomment-397895508 and https://github.com/reagent-project/reagent/blob/e53be656073af9209c4fe8bc9119635953311d42/examples/material-ui/src/example/core.cljs#L34
@jlucas.nsilva Perhaps roughly this outline https://gist.github.com/mrrodriguez/721963b37e8afc53ce6d06b8e58907ff
Thank you, @mikerod. I've being working with Material UI, my problem with Draft.js is that
I couldn't find a way to make reagent draw the root component (which is not a 'input' element).
@jlucas.nsilva you may need to do a form-3 style component, but not sure what you have setup
but still, I don’t think I’d know enough of what you have to help without an example I think
I’ve worked with ace editor in reagent before by using a form-3 component. I don’t believe the cursor jumping was an issue, but I think it was uncontrolled at the text level
I see. I'll try it. Thank you very much, @mikerod.