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

xt-wangeditor4

v0.1.14

Published

<!-- * @Author: 易木 * @Date: 2022-06-18 15:20:24 * @LastEditors: 易木 * @LastEditTime: 2022-08-10 18:24:53 * @FilePath: \wangeditor4\README.md * @Description: * * Copyright (c) 2022 by 信通, All Rights Reserved. -->

Downloads

5

Readme

xt-wangeditor4-vue2

这项目只是用来过度,我更倾向于wangeditor5,但是由于wangeditor5暂不支持自定义属性的原因,采用了4版本

安装使用

npm install XtWang4Editor

参数

  1. text 这个可以用来传html,渲染用接受html格式
  2. isDev 是否是测试环境,布尔类型,主要是给闪电云做文件上传使用

方法

用$refs方法获取实例

| 方法名 | 描述 | 返回参数 | | ------------ | ------------ | ------------ | | handleGetContent | 获取编辑器内容 | 返回内容html | | handleGetEditor | 获取编辑器实例 | 返回编辑器实例 | | handleGetEditorWordNum | 获取字数 | 返回编辑器内容字数 | | setVideoSize | 设置视频宽度高度时长 | 需要传入视频宽度,高度,时长三个字段,要监听getUploadingVideoSize这个钩子,这个钩子会返回url |

事件

| 事件 | 描述 | 返回参数 | | ------------ | ------------ | ------------ | | editorMsgChange | 内容修改的钩子 | 编辑器内容 | | getUploadingVideoSize | 粘贴视频地址,需要把长宽高返回回来配合方法里的setVideoSize试用 | 视频地址 | | start-transcode | 开始转码-自己调转码socket,成功以后,把编辑器相关地址替换掉 | 视频id |

未来功能点

1、图片本地化-背景图本地化 2、微信抓取 3、文章内图片裁剪-参考老版本 4、清除样式 5、一键排版 6、慢慢来吧.......