fix: cut paste inline tags

pull/11483/head
Tienson Qin 2024-08-15 21:07:07 +08:00
parent 8f3cdc9d94
commit c21e8c5545
1 changed files with 7 additions and 5 deletions

View File

@ -9,14 +9,16 @@
[goog.object :as gobj] [goog.object :as gobj]
[goog.dom :as gdom] [goog.dom :as gdom]
["ignore" :as Ignore] ["ignore" :as Ignore]
[goog.functions :refer [debounce]])) [goog.functions :refer [debounce]]
[frontend.db :as db]))
(defn copy-to-clipboard-without-id-property! (defn copy-to-clipboard-without-id-property!
[repo format raw-text html blocks] [repo format raw-text html blocks]
(let [blocks' (map (fn [b] (assoc b :block/title (:block/raw-title (db/entity (:db/id b))))) blocks)]
(util/copy-to-clipboard! (property-handler/remove-id-property repo format raw-text) (util/copy-to-clipboard! (property-handler/remove-id-property repo format raw-text)
:html html :html html
:graph repo :graph repo
:blocks blocks)) :blocks blocks')))
(defn config-with-document-mode (defn config-with-document-mode
[config] [config]