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 🙏

© 2026 – Pkg Stats / Ryan Hefner

xhz-tinymce

v1.0.6

Published

A tinymce vue component

Readme

xhz-tinymce

vue tinymce

提供给 xhz 前端开发者使用的 TinyMCE 组件(注:仅适用于vue-cli构建的项目)

目的

主要为了解决自定义图片上传以及复制粘贴时不保留格式的情况,适配当前业务场景。

如何使用

安装组件

yarn add xhz-tinymce
# or
npm install xhz-tinymce

引入

执行完安装命令后,将xhz-tinymce/public目录下的tinymce文件夹复制到项目public文件夹中,可使用如下简易命令:

cp -r node_modules/xhz-tinymce/public/tinymce/ public/

复制之后在index.html引入相关js

<script src="tinymce/tinymce.min.js"></script>

在页面中js引入:

import XhzTinymce from 'xhz-tinymce'

export default {
    name: 'Index',
    components: {
        XhzTinymce,
    },
}

引入标签:

<xhz-tinymce id="myEdit" ref="editor" v-model="msg" />

属性

| 名称 | 描述 | | --------------- | ------------------------------------------------------------ | | :value | 类型String,作为文本内容传入编辑器,可以使用v-model实现双向绑定 | | :baseUrl | 基本路径,默认为空根目录,如果你的项目发布后的地址为目录形式,即abc.com/tinymce,baseUrl需要配置成tinymce,不然发布后资源会找不到 | | :disabled | 富文本编辑器禁用状态 | | :plugin | 有默认值,常规情况下无需更改 | | :toolbar | 类型StringArray,作为string时编辑栏为一行显示,作为array时为多行显示。有默认值,常规情况下无需更改 | | :defIconSet | 类型StringArray,自定义按钮配置,可用于图片上传和其他自定义操作 | | :options | 类型Object,编辑器的配置项,默认为空,可根据tinymce文档添加新配置 | | :uploadMethod | 类型Function, 粘贴复杂文本时对图片进行处理的方法,项目中app.vue中有相关代码示例。 |

更多使用细节

想了解更多内容请联系作者。