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 🙏

© 2025 – Pkg Stats / Ryan Hefner

pyy-editor

v1.0.17

Published

普益云富文本编辑器

Readme

普益云编辑器

pyy-editor编辑器是基于Tinymce 5.8.2进行的二次封装。

安装

npm install pyy-editor

运行脚本命令

cd path/to/your/project
# 使用 Windows电脑 PowerShell
Copy-Item node_modules/pyy-editor/skins public/tinymce/skins -force -recurse
Copy-Item node_modules/pyy-editor/plugins/powerpaste public/tinymce/plugins/powerpaste -force -recurse
Copy-Item node_modules/pyy-editor/tinymce.vue path/to/your/conponents

# Linux
cp -rf node_modules/pyy-editor/skins public/tinymce/skins
cp -rf node_modules/pyy-editor/plugins/powerpaste public/tinymce/plugins/powerpaste
cp node_modules/pyy-editor/tinymce.vue path/to/your/conponents

配置

// 仅使用 npm 包时建议导入tinymce
import tinymce from 'pyy-editor';
Vue.prototype.$tinymce = tinymce;

import {tinymceUtils} from "pyy-editor/utils";  // 导入处理工具类

// 初始化 配置处理类
let tinymceConfigHandler = new tinymceUtils.ConfigHandler();
// 全局挂载
Vue.prototype.$_tinymceConfigHandler = tinymceConfigHandler;
// 初始化 文件上传处理类 api.tinymce为项目中上传接口
let uploadHandler = new tinymceUtils.UploadHandler(api.tinymce);
// 全局挂载
Vue.prototype.$_uploadHandler = uploadHandler;

组件使用

<tinymce v-model="data.content"    // 正文内容
         :configHandler="$_tinymceConfigHandler" // 组件处理类实例对象
         :uploadHandler="$_uploadHandler"  // 上传处理类实例
         :additionalParams="{bizType: 'news'}"  // 附加参数,用于所上传接口 如:业务类型
         :whiteList='["https://hnedu.obs.cn-south-1.myhuaweicloud.com"]'   // 白名单
         :baseUrl="window.location.origin" // 编辑器源路径
         :height="700" // 编辑器高度
></tinymce>

公共样式

v-html或插入富文本到页面中时导入。

<style src="pyy-editor/skins/content/default/content.css" scoped></style>

主要功能

1、富文本框工具初始版本

2、组件配置重新封装

3、上传配置及相关方法重新封装

4、image插件调整:“插入/编辑图片”编辑器调整标签顺序

5、新增pdf2img插件:将pdf文件转成图片

6、media插件:动态配置“插入/编辑媒体”编辑器“内嵌”和“高级”标签

7、远程图片抓取后地址替换成本地链接

8、新增另存为模板插件:将当前正文内容保存为模板

9、其他优化

版本信息

1.0.0(2023年2月1日) -- 初始化