 
 
 ;; place react component
-(reagent/render-component [text-justified-component]
-                          (. js/document (getElementById "justified-text")))
+(if-let [el (get-result-view-el)]
+  (reagent/render-component [text-justified-component] el))
 
 
 ; (defn on-js-reload []

;; (model/text-justification "halo !\nLorem" false 25 )
;; (model/text-justification "11111222223333344444555556666677777888889999900" false 25 )
(model/text-justification "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nullam cursus ornare nunc eu tincidunt." false 25 )
)

    (not (contains? #{37 38 39 40} (.-keyCode e))) )) ;; arrows


(if-let [el (get-text-el)]
  (reload-element el
    #(.addEventListener % "keyup" (utils/call-if char-keypress? notify-model))) )
(if-let [el (get-slider-el)]
  (reload-element el
    #(.addEventListener (.-parentNode %) "mouseup" notify-model)) )
(if-let [el (get-checkbox-el)]
  (reload-element el
    #(.addEventListener % "change" notify-model)) )


;;;;
