diff --git a/src/modules/contents/pages/SinglePageEditor.vue b/src/modules/contents/pages/SinglePageEditor.vue index 09c1020f..8d57f2de 100644 --- a/src/modules/contents/pages/SinglePageEditor.vue +++ b/src/modules/contents/pages/SinglePageEditor.vue @@ -48,6 +48,7 @@ const handleChangeEditorProvider = (provider: EditorProvider) => { formState.value.page.metadata.annotations = { "content.halo.run/preferred-editor": provider.name, }; + formState.value.content.rawType = provider.rawType; }; // SinglePage form diff --git a/src/modules/contents/posts/PostEditor.vue b/src/modules/contents/posts/PostEditor.vue index 13ce019a..ee0ac9fe 100644 --- a/src/modules/contents/posts/PostEditor.vue +++ b/src/modules/contents/posts/PostEditor.vue @@ -48,6 +48,7 @@ const handleChangeEditorProvider = (provider: EditorProvider) => { formState.value.post.metadata.annotations = { "content.halo.run/preferred-editor": provider.name, }; + formState.value.content.rawType = provider.rawType; }; // Post form