This module is a Nuxt wrapper for CodeMirror, a runtime editor similar to Monaco.
It provides a component called which renders a basic editor and can sync through emits with everything the user want to do. It supports almost all CodeMirror extensions on the market.
The module also provides a composable useNuxtCodeMirror which is the magic behind the editor wrapper.
Both are auto imported and there are extra types provided for the Template ref of the NuxtCodeMirror component.
Description
This module is a Nuxt wrapper for CodeMirror, a runtime editor similar to Monaco.
It provides a component called which renders a basic editor and can sync through emits with everything the user want to do. It supports almost all CodeMirror extensions on the market.
The module also provides a composable useNuxtCodeMirror which is the magic behind the editor wrapper.
Both are auto imported and there are extra types provided for the Template ref of the NuxtCodeMirror component.
Repository
https://github.com/ThimoDEV/nuxt-codemirror
npm
https://www.npmjs.com/package/nuxt-codemirror
Nuxt Compatibility
Nuxt 3