Permalink
Browse files

fix css issue in Klipse REPL

  • Loading branch information...
viebel committed Jan 7, 2018
1 parent 2509966 commit 656bf71c3ac07d82437136194d6f8dd072c29ed0
Showing with 7 additions and 6 deletions.
  1. +1 −1 project.clj
  2. +1 −1 resources/public/index-dev.html
  3. +5 −4 src/klipse/ui/editors/editor.cljs
View
@@ -1,4 +1,4 @@
(defproject klipse "7.3.1"
(defproject klipse "7.3.2"
:description "Embeddable multi-language WEB REPL"
:dependencies [[org.clojure/clojure "1.9.0-alpha14"]
[org.clojure/clojurescript "1.9.456"]
@@ -16,7 +16,7 @@
</div>
<div id="compiler" style="height: 100%;"></div>
<script async defer id="github-bjs" src="https://buttons.github.io/buttons.js"></script>
<script src="dev/js/klipse.js?version=7.2.0"></script>
<script src="dev/js/klipse.js?version=7.3.2"></script>
<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
@@ -85,10 +85,11 @@
(defn replace-element-by-editor [element value {:keys [mode] :as opts} & {:keys [klass indent? remove-ending-comments?] :or {indent? true remove-ending-comments? true}}]
(let [editor (js/CodeMirror (fn [elt]
(let [wrapping-div (gdom/createElement "div")]
(gdom/appendChild wrapping-div elt)
(gdom/replaceNode wrapping-div element)
(when klass
(if-not klass
(gdom/replaceNode elt element)
(let [wrapping-div (gdom/createElement "div")]
(gdom/appendChild wrapping-div elt)
(gdom/replaceNode wrapping-div element)
(add-class wrapping-div klass))))
(clj->js opts))]
(-> (set-value editor value)

0 comments on commit 656bf71

Please sign in to comment.