dragon-editor

Javascript WYSIWYG editor in Nuxt!
11,617 20
Install
npm install dragon-editor
Latest Version:4.1.1
Vue:3
License:MIT
Last Updated:Oct 21, 2026
Links: GitHub  ·  npm
Maintainer: lovefields

stars-src forks-src language-src issues-src npm-version-src npm-downloads-src NPM sponsors-src Nuxt

DragonEditor

I just made the DragonEditor because I needed the WYSIWYG Editor to write on my blog.

This module support only Nuxt.

Font

If you use Codeblock. I recommented use Inconsolata font. (link)

Install

This Module Has Dependencies Next List:

  • highlight.js
  • @pinia/nuxt
  • @vueuse/nuxt

You Must Add All Dependencies To Your Project.

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

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

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

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

View Page

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

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

Link

Sponsors

Support this project by becoming a sponsor. GitHub Sponsors

Related Packages

@codemirror/lang-vue

Vue template support for the CodeMirror code editor

71,371,417 29
@gaoding/collage-editor

An editor to help user to create collage photos easily

4,989
@qht/editor

富文本编辑器

1,360

Version History

Version Released License
4.1.1 MIT
4.1.0 MIT
4.0.7 MIT
4.0.6 MIT
4.0.5 MIT
Pre-releases (9)
Version Released License
3.0.0-beta MIT
2.0.0-beta.2.1.2 MIT
2.0.0-beta.2.1.1 MIT
2.0.0-beta.2.1 MIT
2.0.0-beta.2 MIT