diff --git a/src/modules/contents/pages/SinglePageEditor.vue b/src/modules/contents/pages/SinglePageEditor.vue index 9881ed63..410bf04e 100644 --- a/src/modules/contents/pages/SinglePageEditor.vue +++ b/src/modules/contents/pages/SinglePageEditor.vue @@ -208,6 +208,8 @@ const handleFetchContent = async () => { name: formState.value.page.metadata.name, }); + formState.value.content = Object.assign(formState.value.content, data); + // get editor provider if (!currentEditorProvider.value) { const preferredEditor = editorProviders.value.find( @@ -249,8 +251,6 @@ const handleFetchContent = async () => { } await nextTick(); } - - formState.value.content = Object.assign(formState.value.content, data); }; // SinglePage settings diff --git a/src/modules/contents/posts/PostEditor.vue b/src/modules/contents/posts/PostEditor.vue index ca3812d5..1398d1eb 100644 --- a/src/modules/contents/posts/PostEditor.vue +++ b/src/modules/contents/posts/PostEditor.vue @@ -213,6 +213,8 @@ const handleFetchContent = async () => { name: formState.value.post.metadata.name, }); + formState.value.content = Object.assign(formState.value.content, data); + // get editor provider if (!currentEditorProvider.value) { const preferredEditor = editorProviders.value.find( @@ -256,8 +258,6 @@ const handleFetchContent = async () => { await nextTick(); } - - formState.value.content = Object.assign(formState.value.content, data); }; const handleOpenSettingModal = async () => {