diff --git a/frontend/src/app/main/data/workspace/texts_v3.cljs b/frontend/src/app/main/data/workspace/texts_v3.cljs index 7bda952571..c0b27abe95 100644 --- a/frontend/src/app/main/data/workspace/texts_v3.cljs +++ b/frontend/src/app/main/data/workspace/texts_v3.cljs @@ -15,8 +15,11 @@ (ptk/reify ::v3-update-text-editor-styles ptk/UpdateEvent (update [_ state] - (let [merged-styles (merge (txt/get-default-text-attrs) - (fonts/valid-default-font - (get-in state [:workspace-global :default-font])) - new-styles)] - (update-in state [:workspace-wasm-editor-styles id] (fnil merge {}) merged-styles))))) + (if (not= id (get-in state [:workspace-local :edition])) + state + (let [defaults (merge (txt/get-default-text-attrs) + (fonts/valid-default-font + (get-in state [:workspace-global :default-font])))] + (update-in state [:workspace-wasm-editor-styles id] + (fn [current-styles] + (merge defaults current-styles new-styles))))))))