remove redundant ! on property-related funcs & add some tests

enter the commit message for your changes. Lines starting
This commit is contained in:
rcmerci
2021-05-14 16:10:27 +08:00
committed by Tienson Qin
parent 4414aa773a
commit a7a9f649c2
9 changed files with 73 additions and 45 deletions

View File

@@ -1392,7 +1392,7 @@
(editor-handler/unhighlight-blocks!)
(let [block (or (db/pull [:block/uuid (:block/uuid block)]) block)
f #(let [cursor-range (util/caret-range (gdom/getElement block-id))
content (property/remove-built-in-properties! (:block/format block)
content (property/remove-built-in-properties (:block/format block)
content)]
(state/set-editing!
edit-input-id