create editor canvas toolbar
This commit is contained in:
@@ -64,6 +64,7 @@ const TextInstruction: FC = () => {
|
||||
// اعمال تغییرات به صورت لایو
|
||||
const newState = { ...formState, [field]: value };
|
||||
setFormState(newState);
|
||||
useEditorStore.getState().commitObjectHistoryBeforeChange();
|
||||
updateObject(selectedObject.id, { [field]: value });
|
||||
} else {
|
||||
// text فقط برای حالت ویرایش است و نباید در defaults ذخیره شود
|
||||
|
||||
Reference in New Issue
Block a user