     [dmohs.react :as react]
     [broadfcui.common.style :as style]
     [broadfcui.utils :as utils]
+    [goog.dom :as gdom]
     ))
 
 (def ^:private CodeMirror-js (aget js/window "webpack-deps" "CodeMirror"))

   (fn [{:keys [props]}]
     [:div {:style {:border style/standard-line}}
      [:textarea {:ref "ref" :defaultValue (:text props)}]])
   :component-did-mount
   (fn [{:keys [refs props locals]}]
     (swap! locals assoc :code-mirror-component
            (js-invoke CodeMirror-js "fromTextArea" (@refs "ref")
               #js{:mode "wdl" :lineNumbers (:line-numbers? props) :readOnly (:read-only? props)})))})

                   :else
                   (do (.next stream) nil)))}))


(react/defc CodeMirror
  {:add-listener
   (fn [{:keys [this]} event-type listener]
