diff --git a/src/modules/contents/pages/SinglePageEditor.vue b/src/modules/contents/pages/SinglePageEditor.vue index 410bf04e..e0f1f076 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 1398d1eb..6c9da26f 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