# dragon-editor

> Javascript WYSIWYG editor in Nuxt!

Latest version **4.1.3** (published 2026-11-18) · MIT license · 0 weekly downloads

## Install

```sh
npm install dragon-editor
pnpm add dragon-editor
yarn add dragon-editor
bun add dragon-editor
```

## Health

**Score 65/100 (B)** — status: active.

Positive: esm support; no vulnerabilities; has provenance; recently updated; high maintenance score.

Warnings: low downloads; no types.

## Facts

| | |
|---|---|
| Version | 4.1.3 |
| Published | 2026-11-18 |
| First published | 2023-05-31 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | ESM + CommonJS |
| Dependencies | 5 |
| Unpacked size | 346.4 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Provenance | attested (GitHub Actions) |
| GitHub stars | 20 |
| Author | Lovefields |
| Maintainers | lovefields |
| Keywords | editor, wysiwyg-editor, korean, language, nuxt4 |

## Links

- npm: https://www.npmjs.com/package/dragon-editor
- Repository: https://github.com/lovefields/dragonEditor
- Homepage: https://github.com/lovefields/dragonEditor#readme
- Issues: https://github.com/lovefields/dragonEditor/issues
- npm.io page: https://npm.io/package/dragon-editor

## Dependencies (5)

- [pinia](https://npm.io/package/pinia.md) ^3.0.4
- [@nuxt/kit](https://npm.io/package/@nuxt/kit.md) ^4.4.8
- [@pinia/nuxt](https://npm.io/package/@pinia/nuxt.md) ^0.11.3
- [@vueuse/nuxt](https://npm.io/package/@vueuse/nuxt.md) ^14.3.0
- [highlight.js](https://npm.io/package/highlight.js.md) ^11.12.0

## Alternatives

- [ext-list](https://npm.io/package/ext-list.md) — 6.3M weekly downloads
- [@lexical/selection](https://npm.io/package/@lexical/selection.md) — 3.8M weekly downloads
- [@lexical/text](https://npm.io/package/@lexical/text.md) — 3.6M weekly downloads
- [@lexical/clipboard](https://npm.io/package/@lexical/clipboard.md) — 3.0M weekly downloads
- [@tiptap/extension-mention](https://npm.io/package/@tiptap/extension-mention.md) — 3.0M weekly downloads

## Recent versions

- 4.1.3 (latest) — 2026-11-18
- 4.1.2 — 2026-11-10
- 4.1.1 — 2026-10-21
- 4.1.0 — 2026-09-10
- 4.0.7 — 2026-07-27
- 4.0.6 — 2026-07-23
- 4.0.5 — 2026-07-22
- 4.0.4 — 2026-07-10
- 4.0.3 — 2026-07-10
- 4.0.2 — 2026-07-10
- 4.0.1 — 2026-07-10
- 4.0.0 — 2026-07-10
- 3.8.7 — 2026-03-14
- 3.8.6 — 2026-02-23
- 3.8.5 — 2026-02-01
- … 61 more at https://npm.io/package/dragon-editor/versions

## README

[stars-src]: https://img.shields.io/github/stars/lovefields/dragonEditor
[stars-href]: https://github.com/lovefields/dragonEditor/stargazers
[issues-src]: https://img.shields.io/github/issues/lovefields/dragonEditor
[issues-href]: https://github.com/lovefields/dragonEditor/issues
[forks-src]: https://img.shields.io/github/forks/lovefields/dragonEditor
[forks-href]: https://github.com/lovefields/dragonEditor/forks
[language-src]: https://img.shields.io/github/languages/top/lovefields/dragonEditor
[language-href]: https://github.com/lovefields/dragonEditor/
[npm-version-src]: https://img.shields.io/npm/v/dragon-editor/latest.svg?style=flat&colorA=18181B&colorB=28CF8D
[npm-version-href]: https://www.npmjs.com/package/dragon-editor
[npm-downloads-src]: https://img.shields.io/npm/dm/dragon-editor.svg?style=flat&colorA=18181B&colorB=28CF8D
[npm-downloads-href]: https://www.npmjs.com/package/dragon-editor
[license-src]: https://img.shields.io/npm/l/dragon-editor
[nuxt-src]: https://img.shields.io/badge/Nuxt-18181B?logo=nuxt.js
[nuxt-href]: https://nuxt.com
[sponsors-src]: https://img.shields.io/github/sponsors/lovefields
[sponsors-href]: https://github.com/sponsors/lovefields

[![stars-src]][stars-href]
[![forks-src]][forks-href]
[![language-src]][language-href]
[![issues-src]][issues-href]
[![npm-version-src]][npm-version-href]
[![npm-downloads-src]][npm-downloads-href]
![NPM][license-src]
[![sponsors-src]][sponsors-href]
[![Nuxt][nuxt-src]][nuxt-href]

# DragonEditor

I just made the DragonEditor because I needed the WYSIWYG Editor to write on my [blog](https://dico.me).

This module support only Nuxt.

# Font

If you use Codeblock. I recommented use `Inconsolata` font. [(link)](https://fonts.google.com/specimen/Inconsolata?query=Inconsolata)

# Install

This Module Has Dependencies Next List:
- highlight.js 
- @pinia/nuxt 
- @vueuse/nuxt

You Must Add All Dependencies To Your Project.

```shell
npm i dragon-editor
# or
yarn add dragon-editor
# or
bun add dragon-editor

# If You don't have these dependencies
npm i dragon-editor highlight.js @pinia/nuxt @vueuse/nuxt
# or
yarn add dragon-editor highlight.js @pinia/nuxt @vueuse/nuxt
# or
bun add dragon-editor highlight.js @pinia/nuxt @vueuse/nux
```

# How to Use

## Config

```typescript
export default defineNuxtConfig({
    modules: [
        "dragon-editor",
        // or
        [
            "dragon-editor",
            {
                componentNameList: ["MyComponent"], // If you use specific component, Set component name
            },
        ],
    ],

    vite: {
        optimizeDeps: {
            include: ["highlight.js/lib/*"], // highlight module Optimize
        },
    },
});
```

## Edit Page

```html
<template>
    <div class="editor-area">
        <DragonEditor v-model="contentData" />
    </div>
</template>

<script
    setup
    lang="ts"
>
    const contentData = ref<DEContentData>([]);
</script>
```

## View Page

```html
<template>
    <div class="view-area">
        <DragonEditorViewer :content="data" />
    </div>
</template>

<script
    setup
    lang="ts"
>
    const data = ref<DEContentData>([]);
</script>
```

## Link

- [Document](https://lovefields.github.io/dragonEditor-doc/)
- [Demo](https://lovefields.github.io/dragonEditor-doc/demo)

# Sponsors

Support this project by becoming a sponsor. [GitHub Sponsors](https://github.com/sponsors/lovefields)

<!-- <div align="center">
    <a href="https://github.com/{id}">
        <img src="https://github.com/{id}.png" width="50" title="{id}" />
    </a>
</div> -->

---
_Source: https://npm.io/package/dragon-editor · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
