create editor canvas toolbar

This commit is contained in:
hamid zarghami
2026-05-06 11:17:35 +03:30
parent 1518e83c1d
commit e15dc76468
9 changed files with 353 additions and 9 deletions
@@ -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 ذخیره شود