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
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
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 | |
| 4.0.4 | MIT | |
| 4.0.3 | MIT | |
| 4.0.2 | MIT | |
| 4.0.1 | MIT | |
| 4.0.0 | MIT | |
| 3.8.7 | MIT | |
| 3.8.6 | MIT | |
| 3.8.5 | MIT | |
| 3.8.4 | MIT | |
| 3.8.3 | MIT | |
| 3.8.2 | MIT | |
| 3.8.1 | MIT | |
| 3.8.0 | MIT | |
| 3.7.3 | MIT | |
| 3.7.2 | MIT | |
| 3.7.1 | MIT | |
| 3.7.0 | MIT | |
| 3.6.1 | MIT | |
| 3.6.0 | MIT | |
| 3.5.21 | MIT | |
| 3.5.20 | MIT | |
| 3.5.19 | MIT | |
| 3.5.18 | MIT | |
| 3.5.17 | MIT | |
| 3.5.16 | MIT |
Showing the latest 30 of 65. See every release on npm
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 | |
| 2.0.0-beta.1.4 | MIT | |
| 2.0.0-beta.1.3 | MIT | |
| 2.0.0-beta.1.1 | MIT | |
| 2.0.0-beta.1 | MIT |