 ;; (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 )
-)

;;;; TODO mark right margin
;;;; TODO line length should be part of state too

(defonce space-char (gstring/unescapeEntities "&nbsp;")) ;; \u00A0 ?

(defn get-slider-el   [] (dom/getElement "page-width"))
(defn get-checkbox-el [] (dom/getElement "preserve-paragraphs"))
(defn get-text-el     [] (dom/getElement "text"))

(defn get-text "get text to justify as string" []
  (.-value (get-text-el)))



;; place react component
(if-let [el (get-result-view-el)]
  (reagent/render-component [text-justified-component] el))


; (defn on-js-reload []
