1.4.4 • Published 2 months ago

ekt-editor v1.4.4

Weekly downloads
-
License
-
Repository
-
Last release
2 months ago

NPM

npm i ekt-editor

main.js

import { createApp } from 'vue'
import App from './App.vue'
import VueEditor from 'ekt-editor'
import 'ekt-editor/lib/index.css'

const app = createApp(App)
app.use(VueEditor).mount('#app')

component

import { Editor } from 'ekt-editor'

组件使用方法

<template>
    <Editor v-model:content="content"></Editor>
</template>
<script lang="ts" setup>
  import { Editor } from 'ekt-editor'
  import { ref } from 'vue'
  const content = ref('')
</script>

组件属性

属性类型是否必填说明
contentstringtrue编辑器内容
min-heightstringfalse编辑器最小高度
min-heightstringfalse编辑器最大高度
excludeEditorMenuarrayfalse不显示的菜单项,可选值: bold italic underline strikethrough heading textStyle highlight blockquote codeBlock image left center right header justify bulletList orderedList horizontalRule table print undo redo
editorMenuarrayfalse自定义菜单选项,可选值:bold italic underline strikethrough heading textStyle highlight blockquote codeBlock image left center right header justify bulletList orderedList horizontalRule table print undo redo 注:当excludeEditorMenu和editorMenu同时存在时,excludeEditorMenu优先级更高
editorWordsbooleanfalse是否显示字数统计
editorImageUrlstringfalse图片上传地址