dont append to body directly but c4k-content div instead
This commit is contained in:
parent
43bf0433dd
commit
494241a15a
1 changed files with 3 additions and 4 deletions
|
@ -73,10 +73,9 @@
|
|||
.createRange
|
||||
(.createContextualFragment html-string)))
|
||||
|
||||
(defn append-to-body
|
||||
(defn append-to-c4k-content
|
||||
[js-obj]
|
||||
(-> js/document
|
||||
.-body
|
||||
(-> (get-element-by-id "c4k-content")
|
||||
(.appendChild js-obj)))
|
||||
|
||||
(defn append-hickory
|
||||
|
@ -84,7 +83,7 @@
|
|||
(-> hickory-obj
|
||||
(hr/hickory-to-html)
|
||||
(create-js-obj-from-html)
|
||||
(append-to-body)))
|
||||
(append-to-c4k-content)))
|
||||
|
||||
(defn generate-feedback-tag
|
||||
[id]
|
||||
|
|
Loading…
Reference in a new issue