From b01bde952523b7929cb72f43c3d9b2650d5dad74 Mon Sep 17 00:00:00 2001 From: "Gabriel Mowses (Mouse)" Date: Thu, 2 Apr 2026 18:38:22 -0300 Subject: [PATCH] fix: save HTML as content for WYSIWYG editor instead of Tiptap JSON --- ux/src/stores/page.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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 }