@kungal/editor-nuxt
@kungal/editor-nuxt
The Nuxt Layer for KunEditor. It wraps @kungal/editor-vue
and auto-imports <KunEditor>, so an existing Nuxt app uses the editor with no
import line — the same DX the forum has today with its in-repo Milkdown
component.
Usage
// nuxt.config.ts
export default defineNuxtConfig({
extends: ['@kungal/ui-nuxt', '@kungal/editor-nuxt']
})
Then, anywhere in a template:
<KunEditor v-model="markdown" :adapters="adapters" />
Requirements
- Extend
@kungal/ui-nuxttoo —<KunEditor>renders KunUI chrome (KunButton,KunIcon,KunPopover, …). - Install the Milkdown peers in the app (single ProseMirror instance):
@milkdown/kit @milkdown/prose @milkdown/vue. - Add
@kungal/editor-vue/style.cssto your app's stylesheet next to the@kungal/ui-tokens+@kungal/ui-vuesetup. This layer intentionally owns no Tailwind entry — the@sourcescan path is node_modules-layout-specific, so only the app can write it correctly. - Rendering the editor inside a
KunModal/KunDrawerneeds@kungal/ui-vue>= 2.26.0. The toolbar's link and sticker panels areKunPopovers, which teleport to<body>; before 2.26.0 an overlay's focus trap did not know about them and pulled focus straight back to the trigger, so those panels could not be typed into. 2.26.0 registers a popover with the overlay that opened it. Nothing to configure on the editor side.
Status
Scaffold — see ../../docs/architecture.md.
Related Packages
@kungal/editor-vue
KunEditor Vue 3 layer — the headless component (dual WYSIWYG / markdown-source),...
8,482
1
@kungal/ui-nuxt
KunUI Nuxt Layer — wraps @kungal/ui-vue, auto-imports the components, and inject...
30,937
46
@minch/bentolio
A minimal portfolio template and layer built with Nuxt 4, Tailwind CSS 4, and GS...
4,130
11
@uxfront/layer-ui
Nuxt layer for the uxfront.com family of homepages: registers @uxfront/ui, self-...
1,671
Version History
| Version | Released | Vue | License |
|---|---|---|---|
| 0.38.4 | ^3.5.0 | AGPL-3.0-only | |
| 0.38.3 | ^3.5.0 | AGPL-3.0-only | |
| 0.38.2 | ^3.5.0 | AGPL-3.0-only | |
| 0.38.1 | ^3.5.0 | AGPL-3.0-only | |
| 0.38.0 | ^3.5.0 | AGPL-3.0-only | |
| 0.37.0 | ^3.5.0 | AGPL-3.0-only | |
| 0.36.0 | ^3.5.0 | AGPL-3.0-only | |
| 0.35.0 | ^3.5.0 | AGPL-3.0-only | |
| 0.34.0 | ^3.5.0 | AGPL-3.0-only | |
| 0.33.0 | ^3.5.0 | AGPL-3.0-only | |
| 0.32.1 | ^3.5.0 | AGPL-3.0-only | |
| 0.32.0 | ^3.5.0 | AGPL-3.0-only | |
| 0.31.1 | ^3.5.0 | AGPL-3.0-only | |
| 0.31.0 | ^3.5.0 | AGPL-3.0-only | |
| 0.30.0 | ^3.5.0 | AGPL-3.0-only | |
| 0.29.0 | ^3.5.0 | AGPL-3.0-only | |
| 0.28.0 | ^3.5.0 | AGPL-3.0-only | |
| 0.27.0 | ^3.5.0 | AGPL-3.0-only | |
| 0.26.0 | ^3.5.0 | AGPL-3.0-only | |
| 0.25.2 | ^3.5.0 | AGPL-3.0-only | |
| 0.25.1 | ^3.5.0 | AGPL-3.0-only | |
| 0.25.0 | ^3.5.0 | AGPL-3.0-only | |
| 0.24.0 | ^3.5.0 | AGPL-3.0-only | |
| 0.23.0 | ^3.5.0 | AGPL-3.0-only | |
| 0.22.0 | ^3.5.0 | AGPL-3.0-only | |
| 0.21.0 | ^3.5.0 | AGPL-3.0-only | |
| 0.20.0 | ^3.5.0 | AGPL-3.0-only | |
| 0.19.0 | ^3.5.0 | AGPL-3.0-only | |
| 0.18.0 | ^3.5.0 | AGPL-3.0-only | |
| 0.17.0 | ^3.5.0 | AGPL-3.0-only |
Showing the latest 30 of 45. See every release on npm