diff --git a/components/http/RawBody.vue b/components/http/RawBody.vue
index 308db5dfa..6a440f464 100644
--- a/components/http/RawBody.vue
+++ b/components/http/RawBody.vue
@@ -56,81 +56,82 @@
-
diff --git a/helpers/editorutils.js b/helpers/editorutils.js
index 0955bbf37..9dd46a4bf 100644
--- a/helpers/editorutils.js
+++ b/helpers/editorutils.js
@@ -1,12 +1,12 @@
const mimeToMode = {
- "text/plain": "plain_text",
- "text/html": "html",
- "application/xml": "xml",
- "application/hal+json": "json",
- "application/vnd.api+json": "json",
- "application/json": "json",
+ "text/plain": "text/x-yaml",
+ "text/html": "htmlmixed",
+ "application/xml": "application/xml",
+ "application/hal+json": "application/ld+json",
+ "application/vnd.api+json": "application/ld+json",
+ "application/json": "application/ld+json",
}
export function getEditorLangForMimeType(mimeType) {
- return mimeToMode[mimeType] || "plain_text"
+ return mimeToMode[mimeType] || "text/x-yaml"
}