edentext-vue
v0.1.3
Published
A browser-only Vue 3 rich-text document editor with ODT, DOCX and PDF export.
Readme
edentext-vue
Vue 3 thin wrapper for the original EdenText browser editor. It mounts the native EdenText UI and exposes host commands for open/replace, byte export, save requests, author identity, and language settings. It does not recreate the toolbar or expose TipTap, ProseMirror or Svelte APIs.
<script setup lang="ts">
import { EdentextEditor } from 'edentext-vue';
import 'edentext-vue/style.css';
</script>
<template>
<div style="height: 100vh">
<EdentextEditor
locale="zh-Hans"
document-language="zh-CN"
embedded
initial-new-document
asset-base-url="/edentext-assets"
/>
</div>
</template>Copy the package's dist/assets/* into /edentext-assets (or another static
directory) and set asset-base-url to that path. The default package build is
optimized for Chinese and English documents: it includes US/UK English spelling
dictionaries, their shared English thesaurus, fonts, and the grammar-checking
WASM loaded on demand. Other document-language tags are still preserved, but
their spell-check data is marked unavailable. The package scopes its editor CSS
and theme to the host container. embedded hides native file actions and emits
save-request when the user presses Ctrl/Cmd+S.
The package is browser-only, supports Vue 3, contains no React entry or React
dependency, and is licensed under AGPL-3.0-only. See the repository guide at
docs/edentext-vue.md for the complete API and
npm publishing workflow.
