mirror of
https://github.com/penpot/penpot.git
synced 2025-02-10 17:18:21 -05:00
🐛 Fix center alignment with new lines
This commit is contained in:
parent
080139cd56
commit
a2de5f8fb4
1 changed files with 4 additions and 1 deletions
|
@ -152,7 +152,10 @@
|
|||
(let [old-state (mf/ref-val prev-value)]
|
||||
(if (and (some? state) (some? old-state))
|
||||
(let [block-changes (ted/get-content-changes old-state state)
|
||||
prev-data (ted/get-editor-current-inline-styles old-state)
|
||||
|
||||
prev-data (-> (ted/get-editor-current-inline-styles old-state)
|
||||
(dissoc :text-align :text-direction))
|
||||
|
||||
block-to-setup (get-blocks-to-setup block-changes)
|
||||
block-to-add-styles (get-blocks-to-add-styles block-changes)]
|
||||
(-> state
|
||||
|
|
Loading…
Add table
Reference in a new issue