@kungal/editor-nuxt

KunEditor Nuxt Layer — wraps @kungal/editor-vue and auto-imports so an existing Nuxt app keeps its exact DX (no import needed).
8,054 1
Install
npm install @kungal/editor-nuxt
Latest Version:0.38.4
Vue:3
License:AGPL-3.0-only
Last Updated:Oct 21, 2026
Links: GitHub  ·  npm
Maintainer: moekun

@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-nuxt too — <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.css to your app's stylesheet next to the @kungal/ui-tokens + @kungal/ui-vue setup. This layer intentionally owns no Tailwind entry — the @source scan path is node_modules-layout-specific, so only the app can write it correctly.
  • Rendering the editor inside a KunModal / KunDrawer needs @kungal/ui-vue >= 2.26.0. The toolbar's link and sticker panels are KunPopovers, 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
@friendlyinternet/nuxt-crouton

Base CRUD layer for FYIT scaffolded collections

2,816 10
@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