Browse Source

fix(copy): property text deleted when its value mixes [[]] and others

close #9100
Tienson Qin 2 years ago
parent
commit
b1b4f17f7e
1 changed files with 2 additions and 1 deletions
  1. 2 1
      src/main/frontend/handler/editor.cljs

+ 2 - 1
src/main/frontend/handler/editor.cljs

@@ -904,7 +904,8 @@
                                      distinct
                                      vec)
                     content (property/remove-properties format content)
-                    kvs (for [key property-ks] [key (get properties key)])
+                    kvs (for [key property-ks] [key (or (get properties-text-values key)
+                                                        (get properties key))])
                     content (property/insert-properties format content kvs)
                     content (property/remove-empty-properties content)
                     block {:block/uuid block-id