npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

mhalo.vue-kindeditor

v1.3.7

Published

a component use mhalo.kindeditor for vue3.

Downloads

16

Readme

MHalo.Vue-KindEditor

a component use mhalo.kindeditor for vue3.

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

更新日志

v1.3.7 (2024-11-06)

  1. 更新mhalo.kindeditor版本至4.4.19,具体更新详情: [email protected]

v1.3.6 (2023-05-08)

  1. 更新mhalo.kindeditor版本至4.4.15,具体更新详情: [email protected]

v1.3.5 (2023-04-11)

  1. 更新mhalo.kindeditor版本至4.4.13,具体更新详情: [email protected]

v1.3.4 (2023-04-09)

  1. 更新mhalo.kindeditor版本至4.4.11,具体更新详情: [email protected]

v1.3.3 (2023-03-17)

  1. 更新mhalo.kindeditor版本至4.4.10,具体更新详情: [email protected]

v1.3.1 (2023-03-12)

  1. 更新mhalo.kindeditor版本至4.4.8,具体更新详情: [email protected]

v1.3.0 (2023-02-24)

  1. 更新mhalo.kindeditor版本至4.4.6,具体更新详情: [email protected]

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>