Detalhes do pacote

ug-jodit-editor

your-username0MIT1.1.1

基于 Jodit 的 Vue 3 富文本编辑器组件,支持中文和维吾尔语

vue, vue3, jodit, editor

readme (leia-me)

Ug Jodit Editor

基于 Jodit 的 Vue 3 富文本编辑器组件,支持中文和维吾尔语。

安装

  npm install ug-jodit-editor

使用方法

基本用法

<template>
  <UgJoditEditor
      v-model:value="content"
  />
</template>

<script setup>
import { ref } from 'vue'
import { UgJoditEditor } from 'ug-jodit-editor'
import 'ug-jodit-editor/style'

const content = ref('<p>Hello World!</p>')

</script>

高级配置

<template>
  <UgJoditEditor
    v-model:value="content"
    lang="ug_cn"
    :min-height="400"
  />
</template>

<script setup>
import { ref } from 'vue'
import { UgJoditEditor } from 'ug-jodit-editor'
import 'ug-jodit-editor/style'

const content = ref('')
</script>

Props

参数 类型 默认值 说明
value String '' 编辑器内容
lang String 'zh_cn' 语言配置 ,目前支持语言:zh_cn / ug_cn
min-height Number 300 最小高度
max-height Number 500 最大高度

贡献

欢迎提交 Issue 和 Pull Request!

更新日志

1.1.0

  • 初始版本发布
  • 支持 Vue 3
  • 支持中文和维吾尔语
  • TypeScript 支持