diff --git a/src/main/frontend/handler/editor.cljs b/src/main/frontend/handler/editor.cljs index c691c3608..3af468a7c 100644 --- a/src/main/frontend/handler/editor.cljs +++ b/src/main/frontend/handler/editor.cljs @@ -205,8 +205,7 @@ (defn clear-selection! [] - (state/clear-selection!) - (util/select-unhighlight! (dom/by-class "selected"))) + (state/clear-selection!)) (defn- text-range-by-lst-fst-line [content [direction pos]] (case direction diff --git a/src/main/frontend/util.cljc b/src/main/frontend/util.cljc index fc464f31b..2098bde9e 100644 --- a/src/main/frontend/util.cljc +++ b/src/main/frontend/util.cljc @@ -1115,18 +1115,6 @@ (defn keyname [key] (str (namespace key) "/" (name key))) -#?(:cljs - (defn select-highlight! - [blocks] - (doseq [block blocks] - (d/add-class! block "selected noselect")))) - -#?(:cljs - (defn select-unhighlight! - [blocks] - (doseq [block blocks] - (d/remove-class! block "selected" "noselect")))) - #?(:cljs (defn drain-chan "drop all stuffs in CH, and return all of them"