@oh-new-editor/vue

Vue adapter for Oh New Editor
165
Install
npm install @oh-new-editor/vue
Latest Version:1.0.0
Vue:3
License:MIT
Last Updated:Oct 21, 2026
Links: GitHub  ·  npm
Maintainer: choiyoh

@oh-new-editor/vue

Vue 3 adapter for Oh New Editor.

Install

pnpm add @oh-new-editor/vue @oh-new-editor/core

Vue is a peer dependency.

Use

<script setup lang="ts">
import { ref } from 'vue';
import { OhNewEditor } from '@oh-new-editor/vue';
import { createToolbarSupport } from '@oh-new-editor/core/toolbar';
import '@oh-new-editor/core/style.css';

const value = ref('<p>Hello</p>');
const options = { toolbar: createToolbarSupport() };
</script>

<template>
  <OhNewEditor v-model="value" :options="options" />
</template>

Use v-model (modelValue / update:modelValue) for controlled content, or value with the change event. External updates are deferred while focused and applied on blur; only the latest value is kept.

The editor is created in onMounted and destroyed on unmount. Imports and the empty host support server rendering, including Nuxt; the editor and HTML processing run on the client.

options.readOnly and options.outputFormat update live. Structural options (schema, plugins, toolbar, tables, Markdown, image upload, placeholder, messages) are read on mount; change key to recreate the editor. Markdown requires createMarkdownSupport() from @oh-new-editor/core/markdown.

Core API and optional features

License

MIT.

Related Packages

@abhinavakhil/penna-vue

Vue 3 bindings for @abhinavakhil/penna-core

307 0
@orilight/editor

基于 Tiptap 3 的 Vue 3 富文本编辑器组件:Word 粘贴还原、图片 / 附件上传、表格与...

0
tiptap-vue-pro-core

Tiptap Vue Pro 的 UI 无关核心层:封装 Tiptap v3,提供 composable 与类型契约

3,174 8
tiptap-vue-pro-element-plus

Tiptap Vue Pro 的 Element Plus 适配:开箱即用的富文本编辑器组件

2,698 9
tiptap-vue-pro-naive

Tiptap Vue Pro 的 Naive UI 适配:开箱即用的富文本编辑器组件

2,657 9

Version History

Version Released License
1.0.0 MIT
0.1.1 MIT
Pre-releases (1)
Version Released License
0.0.0-stage