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

qg-web-component-editor2

v0.0.3

Published

同创前端富文本编辑器组件

Readme

基于tinyMce二次封装


如何使用

1. npm install hatech-web-component-editor
2. 使用前请将example/public内的editor复制到项目的静态文件目录
3. import HatechWebComponentEditor from 'hatech-web-component-editor'
4. <hatech-web-component-editor ref="editor"
                                v-model="content"
                                :config="config"
                                pattern="decoupledEditor">
5. 可使用v-model绑定字段获取实时输入编辑器内容

参数说明

| 参数 | 类型 | 说明 | 可选 | | :---- | :---- | :---- | :---- | | id | String | 编辑器Id | 是 | | initialValue | String | 初始化数据 | 是 | | config | Object | 编辑器的配置 | 是 | | inline| Boolean | 启用内联样式 | 是 |


暴露方法及编辑器内部调用接口

依赖于ref

| 名称 | 类型 | 说明 | 参数 | | :---- | :---- | :---- | :---- | | destory | 方法 | 销毁编辑器 | 无 | | handleEditorDisabled | 方法 | 启用/禁用编辑器 | bol(Boolean) | | handleEditorVisible | 方法 | 显示/隐藏编辑器 | bol(Boolean) | | reload| 方法 | 重新加载编辑器 | 无 | | editorManager | 编辑器内部调用接口 | 编辑器内部操作,如this.$refs.editor.editorManager.execCommand('handleDialogClose')进行自定义编辑器内部命令的调用 | 无 |


注意事项

1.编辑器样式及内置插件引用路径为项目运行时相对路径,可根据项目生产,开发在配置BASE_URL,也可以通过config配置项内language_url,skin_url,content_css分别自定义文件引用,vueCli项目默认不需要配置
2.自定义插件需要在created钩子函数里完成,也就是编辑器的config配置项需要在created初始化
3.自定义插件注册在mounted钩子函数内注册,具体自定义插件示例参考example文件夹内的示例代码

##其它

参考原编辑器