feat: highlight active line in codemirror when focused

This commit is contained in:
liyasthomas
2021-09-11 09:19:16 +05:30
parent 108f228edf
commit b2f93aa549
5 changed files with 13 additions and 9 deletions

View File

@@ -53,7 +53,6 @@
import { ref, useContext, computed, reactive } from "@nuxtjs/composition-api"
import { useCodemirror } from "~/helpers/editor/codemirror"
import { copyToClipboard } from "~/helpers/utils/clipboard"
import "codemirror/mode/yaml/yaml"
import { HoppRESTResponse } from "~/helpers/types/HoppRESTResponse"
const props = defineProps<{
@@ -100,7 +99,7 @@ useCodemirror(
responseBodyText,
reactive({
extendedEditorConfig: {
mode: "text/x-yaml",
mode: "text/plain",
readOnly: true,
lineWrapping: linewrapEnabled,
},