diff --git a/ux/src/stores/page.js b/ux/src/stores/page.js index 3b158c7f..5185d9cb 100644 --- a/ux/src/stores/page.js +++ b/ux/src/stores/page.js @@ -538,7 +538,11 @@ export const usePageStore = defineStore('page', { const editorStore = useEditorStore() const siteStore = useSiteStore() - // Ensure content is not null before saving + // For WYSIWYG editor: save HTML as content (not Tiptap JSON) + // The server rendering pipeline expects HTML/markdown, not JSON + if (editorStore.editor === 'wysiwyg' && this.render) { + this.content = this.render + } if (!this.content && this.render) { this.content = this.render }