mirror of
https://github.com/penpot/penpot.git
synced 2026-05-13 03:53:51 +00:00
21 lines
561 B
Clojure
21 lines
561 B
Clojure
;; This Source Code Form is subject to the terms of the Mozilla Public
|
|
;; License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
;; file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
|
;;
|
|
;; Copyright (c) KALEIDOS INC
|
|
|
|
(ns app.util.text.content
|
|
(:require
|
|
[app.util.text.content.from-dom :as fd]
|
|
[app.util.text.content.to-dom :as td]))
|
|
|
|
(defn dom->cljs
|
|
"Gets the editor content from a DOM structure"
|
|
[root]
|
|
(fd/create-root root))
|
|
|
|
(defn cljs->dom
|
|
"Sets the editor content from a CLJS structure"
|
|
[root]
|
|
(td/create-root root))
|