diff --git a/src/components/editor/TextSettings.vue b/src/components/editor/TextSettings.vue index 536f6aa..dc4b309 100644 --- a/src/components/editor/TextSettings.vue +++ b/src/components/editor/TextSettings.vue @@ -468,7 +468,7 @@ watch(font, (val) => { watch(italic, (val) => { if (isUpdatingFromStore) return; - updateStyle('body', 'font-style', val ? 'italic' : 'normal'); + updateStyle('p', 'font-style', val ? 'italic' : 'normal'); }); watch(alignment, (val) => { @@ -659,7 +659,7 @@ const syncFromStore = () => { isUpdatingFromStore = true; // Body styles - const fontStyle = extractValue('body', 'font-style'); + const fontStyle = extractValue('p', 'font-style'); if (fontStyle) italic.value = fontStyle === 'italic'; const textAlign = extractValue('body', 'text-align');