1.3.6 • Published 1 year ago

mhalo.vue-kindeditor v1.3.6

Weekly downloads
-
License
LGPL-2.1
Repository
-
Last release
1 year ago

MHalo.Vue-KindEditor

a component use mhalo.kindeditor for vue3.

注意:组件已强制禁用了flash及fileManager,编辑器初始化时,传入参数/ allowFlashUpload: true, allowFileManager: true, / 时是无法生效,请注意此限制。
如若受此影响,可以基于mhalo.kindeditor自行构建或修改。

更新日志

v1.3.6 (2023-05-08)
1. 更新mhalo.kindeditor版本至4.4.15,具体更新详情: mhalo.kindeditor@4.4.13

v1.3.5 (2023-04-11)
1. 更新mhalo.kindeditor版本至4.4.13,具体更新详情: mhalo.kindeditor@4.4.13

v1.3.4 (2023-04-09)
1. 更新mhalo.kindeditor版本至4.4.11,具体更新详情: mhalo.kindeditor@4.4.11

v1.3.3 (2023-03-17)
1. 更新mhalo.kindeditor版本至4.4.10,具体更新详情: mhalo.kindeditor@4.4.10

v1.3.1 (2023-03-12)
1. 更新mhalo.kindeditor版本至4.4.8,具体更新详情: mhalo.kindeditor@4.4.8

v1.3.0 (2023-02-24)
1. 更新mhalo.kindeditor版本至4.4.6,具体更新详情: mhalo.kindeditor@4.4.3

v1.2.9 (2023-02-22)
1. 更新mhalo.kindeditor版本至4.4.3

v1.2.4 (2022-11-13)
1. ReadMe中增加关于vite.config.js配置的文档信息

v1.2.3 (2022-11-10)
1. 修复页面存在切换动画的情况下,onDeactivated时编辑器文本展示异常的bug 2. 修复页面切换editor为null时报错的异常

v1.2.0 (2022-11-04)
1. 更新编辑器默认配置参数

v1.0.3 (2022-11-03)
1. 更新依赖库

v1.0.2 (2022-11-02)
1. 优化组件加载编辑器样式方式,无需手动设置

安装

pnpm i mhalo.vue-kindeditor

使用

vite.config.js 中增加配置 ->

optimizeDeps: {
    exclude: ['mhalo.vue-kindeditor'], 
},
build: {
    commonjsOptions: { 
        exclude: ['mhalo.vue-kindeditor'], 
        transformMixedEsModules: true,
        },
},
import { createApp } from 'vue'
import App from './App.vue'

import KindEditor from 'mhalo.vue-kindeditor'

createApp(App)
.use(KindEditor,{ 
    /**默认为VKindEditor,此处可自定义 */ 
    name: 'VEditor' 
})
.mount('#app')
<template>
    <div id="wrapper">
        <VEditor v-model="editor.content" 
        :readonly="editor.readonly"
        :configs="editor.configs"></VEditor>
    </div>
</template>

<script setup>
const editor = $ref({
    content: Array.from({length: 5}).map(function(o,i){ return  '<p>'+ i +'</p>' }).join(""),
    readonly: false,
    configs: {
        allowImageUpload: true,
        formatUploadUrl: true,
        minHeight: 120,
        autoHeightMode: false,
        fixToolBar: true, 
        fixToolBarWatchRef: '#layoutBody',
        uploadJson: '/handler/upload-test?dir=image',
        uploadHeader:{
            corefx: 'mhalo'
        },
        imageSizeLimit: '2MB',
        items: KindEditor.Tools.Mini,
        cssData: 'body{font-size: 16px;line-height: 28px;}',
        afterChange: function(){
            console.info('afterChange')
        }
    }
})
</script>
1.3.6

1 year ago

1.3.5

1 year ago

1.2.8

1 year ago

1.2.7

1 year ago

1.3.4

1 year ago

1.3.3

1 year ago

1.3.2

1 year ago

1.3.1

1 year ago

1.3.0

1 year ago

1.2.9

1 year ago

1.2.6

1 year ago

1.2.4

1 year ago

1.2.3

1 year ago

1.2.2

1 year ago

1.2.1

1 year ago

1.2.0

2 years ago

1.1.8

2 years ago

1.1.7

2 years ago

1.1.6

2 years ago

1.1.5

2 years ago

1.1.4-pre.1

2 years ago

1.1.3

2 years ago

1.1.2

2 years ago

1.1.1

2 years ago

1.1.0

2 years ago

1.0.4

2 years ago

1.0.3

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago