# autumnnote-vue

> Official Vue 3 wrapper for Autumn Note — zero-dependency WYSIWYG editor. Mount the editor with a single component and access the full Context API via ref.

Latest version **3.3.0** (published 2026-11-01) · MIT license · 0 weekly downloads

## Install

```sh
npm install autumnnote-vue
pnpm add autumnnote-vue
yarn add autumnnote-vue
bun add autumnnote-vue
```

## Health

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

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

Warnings: low downloads.

## Facts

| | |
|---|---|
| Version | 3.3.0 |
| Published | 2026-11-01 |
| First published | 2026-05-20 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 0 |
| Unpacked size | 10.2 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Provenance | attested (GitHub Actions) |
| GitHub stars | 11 |
| Author | Minh Pham |
| Maintainers | cmm_cmm |
| Keywords | wysiwyg, wysiwyg-editor, rich-text, rich-text-editor, vue, vue3, vue-wysiwyg, vue-editor, vue-rich-text, vue-component, contenteditable, no-jquery, vanilla-js, dark-mode, markdown, mention, bubble-toolbar, toolbar, autumnnote, summernote-alternative, quill-alternative, tinymce-alternative |

## Links

- npm: https://www.npmjs.com/package/autumnnote-vue
- Repository: https://github.com/cmm-cmm/Autumn-Note
- Homepage: https://autumn.konexforge.com/
- Issues: https://github.com/cmm-cmm/Autumn-Note/issues
- npm.io page: https://npm.io/package/autumnnote-vue

## 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

- 3.3.0 (latest) — 2026-11-01
- 3.2.0 — 2026-11-01
- 3.1.0 — 2026-09-19
- 3.0.1 — 2026-09-19
- 3.0.0 — 2026-09-19
- 2.7.1 — 2026-08-20
- 2.7.0 — 2026-08-20
- 2.6.0 — 2026-08-18
- 2.5.0 — 2026-08-18
- 2.4.0 — 2026-08-16
- 2.3.0 — 2026-08-15
- 2.2.0 — 2026-08-15
- 2.1.0 — 2026-08-11
- 2.0.0 — 2026-07-30
- 1.16.0 — 2026-07-22
- … 21 more at https://npm.io/package/autumnnote-vue/versions

## README

# autumnnote-vue

[![npm version](https://img.shields.io/npm/v/autumnnote-vue?color=e8751a)](https://www.npmjs.com/package/autumnnote-vue)
[![npm downloads](https://img.shields.io/npm/dm/autumnnote-vue?color=e8751a)](https://www.npmjs.com/package/autumnnote-vue)
[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)

Official **Vue 3 wrapper** for [Autumn Note](https://autumn.konexforge.com/) — the zero-dependency WYSIWYG rich-text editor built with vanilla JavaScript.

## Installation

```bash
npm install autumnnote autumnnote-vue
```

Import the stylesheet once in your app:

```js
import 'autumnnote/dist/autumnnote.css';
```

## Quick Start

```vue
<script setup>
import { ref } from 'vue';
import AutumnNoteEditor from 'autumnnote-vue';
import 'autumnnote/dist/autumnnote.css';

const editorRef = ref(null);

function handleSave() {
  const html = editorRef.value.editor?.getHTML();
  console.log(html);
}
</script>

<template>
  <AutumnNoteEditor
    ref="editorRef"
    :options="{
      placeholder: 'Start typing…',
      height: 300,
      bubbleToolbar: true,
    }"
  />
  <button @click="handleSave">Save</button>
</template>
```

## Props

| Prop | Type | Description |
|---|---|---|
| `options` | `AsnOptions` | Editor configuration. See [all options](https://autumn.konexforge.com/docs.html#options). |

## Accessing the editor instance

The component exposes the current `Context` as `editor`. Vue automatically unwraps the internal shallow ref on the public component instance:

```js
editorRef.value.editor?.getHTML();
editorRef.value.editor?.setHTML('<p>Hello <strong>world</strong></p>');
editorRef.value.editor?.getMarkdown();
editorRef.value.editor?.invoke('toolbar.rebuild');
editorRef.value.editor?.on('change', (html) => console.log(html));
```

The exposed `editor` property is `null` before mount — use it inside `onMounted` or after the component is mounted.

## Reinitialising with new options

The editor initialises once in `onMounted`. To reinitialise with a new configuration, toggle `v-if` — Vue will unmount and remount the component:

```vue
<script setup>
import { ref } from 'vue';

const ready = ref(true);
const options = ref({ theme: 'light' });

async function switchToDark() {
  options.value = { theme: 'dark' };
  ready.value = false;
  await nextTick();
  ready.value = true;
}
</script>

<template>
  <AutumnNoteEditor v-if="ready" :options="options" />
</template>
```

## Dark mode

```vue
<AutumnNoteEditor :options="{ theme: 'dark', placeholder: 'Start typing…' }" />
```

## Using plugins

```js
import AutumnNote from 'autumnnote';

// Register globally before any component mounts
AutumnNote.use(MyPlugin, { limit: 500 });
```

```vue
<AutumnNoteEditor :options="{ toolbar: [[boldBtn, 'myButton']] }" />
```

## TypeScript

The package ships hand-crafted TypeScript declarations (`index.d.ts`). No `@types` package needed:

```vue
<script setup lang="ts">
import { ref } from 'vue';
import type { Context, AsnOptions } from 'autumnnote';
import AutumnNoteEditor from 'autumnnote-vue';

const editorRef = ref<{ editor: { value: Context | null } } | null>(null);
const options: AsnOptions = { height: 300, bubbleToolbar: true };
</script>

<template>
  <AutumnNoteEditor ref="editorRef" :options="options" />
</template>
```

## Links

- [Documentation](https://autumn.konexforge.com/docs.html)
- [Playground](https://autumn.konexforge.com/playground.html)
- [GitHub](https://github.com/cmm-cmm/Autumn-Note)
- [npm — autumnnote](https://www.npmjs.com/package/autumnnote)
- [npm — autumnnote-react](https://www.npmjs.com/package/autumnnote-react)

## License

MIT © [Minh Pham](https://github.com/cmm-cmm)

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