浏览代码

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

close #9100
Tienson Qin 2 年之前
父节点
当前提交
b1b4f17f7e
共有 1 个文件被更改,包括 2 次插入1 次删除
  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