💚
Vue 2.7 & Vue 3
Built on vue-demi, so the same component works in both Vue 2.7 and Vue 3 projects.
A lightweight wrapper component that brings the CodeMirror 6 editor to Vue 2.7 and Vue 3.


Built on vue-demi, so the same component works in both Vue 2.7 and Vue 3 projects.
Bind the document with v-model just like a native input. External updates can keep the scroll position.
Pass any CodeMirror LanguageSupport, LintSource, or theme through props, or add raw extensions.
CodeMirror is only initialized on the client, so the component renders safely in Nuxt and other SSR frameworks.
The same component is also exported as a custom element for use outside Vue.
Access the EditorView, selection, and CodeMirror 5 style helper methods through a template ref.