[refactor] support React change event for set-edit-content! & fix image style of block conent

This commit is contained in:
charlie
2020-12-01 15:56:38 +08:00
parent 66a24e99d3
commit eb651cfe81
7 changed files with 81 additions and 46 deletions

View File

@@ -286,7 +286,7 @@
[input-id value]
(when input-id
(when-let [input (gdom/getElement input-id)]
(gobj/set input "value" value))
(util/set-change-value input value))
(update-state! :editor/content (fn [m]
(assoc m input-id value)))
;; followers