mirror of
https://github.com/penpot/penpot.git
synced 2025-05-24 21:26:11 +02:00
🐛 Fix text editor selection
This commit is contained in:
parent
1e2d9a15a3
commit
68397edd4d
3 changed files with 5 additions and 4 deletions
|
@ -171,6 +171,7 @@
|
|||
(and (some? drawing-obj) (= :path (:type drawing-obj))))
|
||||
node-editing? (and edition (= :path (get-in base-objects [edition :type])))
|
||||
text-editing? (and edition (= :text (get-in base-objects [edition :type])))
|
||||
|
||||
grid-editing? (and edition (ctl/grid-layout? base-objects edition))
|
||||
|
||||
mode-inspect? (= options-mode :inspect)
|
||||
|
|
|
@ -16,7 +16,7 @@
|
|||
|
||||
(defn v2-closest-text-editor-content
|
||||
[target]
|
||||
(.closest ^js target ".text-editor-content"))
|
||||
(.closest ^js target "[data-itype=\"editor\"]"))
|
||||
|
||||
(defn closest-text-editor-content
|
||||
[target]
|
||||
|
@ -34,7 +34,7 @@
|
|||
|
||||
(defn v2-get-text-editor-content
|
||||
[]
|
||||
(dom/get-element-by-class "text-editor-content"))
|
||||
(dom/query "[data-itype=\"editor\"]"))
|
||||
|
||||
(defn get-text-editor-content
|
||||
[]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue