 
         :else
         (do
-          (swap! app-state assoc-in [:ui :ui :editor :mode] "text")
+          (swap! app-state assoc-in [:ui :editor :mode] "text")
           (js/populateEditor app-code-value)
 
           (if user-can-edit-app

              ))}


  (div {:style {:display (if (= (read-ui app [:ui :ui :editor :mode]) "text") "inline-block" "none")}}
         (textarea {:id "cm" :style {:width "600px" :height "800" :display "inline-block" }} "TEXT EDITOR")

       ))

                                )))))

       (div {:style {:display "inline-block"}}
            (component  blockly-editor-component  app  [:ui :editor])
            (component  text-editor-component  app  [:ui :editor])
            )


       ))

