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

vue-ueditor-block

v1.0.1

Published

vue2版ueditor组件

Readme

UEditor(vue2版)

vue3版本 | vue2版本

安装

npm i vue-ueditor-block
// 已经集成了vue-ueditor-wrap

使用

import vueUeditorBlock from 'vue-ueditor-block';

Vue.use(vueUeditorBlock);

1. 下载静态资源到本地

在本node包中下载static中的资源,前端的为UEditor文件夹,后端根据类型自己选择需要版本的.zip文件

2. 参数

  • v-model:输入区对应的内容,双向绑定-->String;非必传

  • static-url:静态资源文件地址,指向index.html-->String;非必传;默认'/static/UEditor/'

  • cname:自定义class-->String;非必传

  • upload-url:图片上传的接口,后端可以看文档-->String;非必传

  • http-params:请求附带参数-->Object;非必传

  • only-show:只展示内容-->Boolean;非必传;默认false

  • extra-config:ueditor配置项,如与预设相同,则会覆盖之前的-->Object;非必传

  • @change:内容改变监听-->返回当前内容

3. 方法

  • getExample:获取当前ueditor的实例,可以使用其API

4. 组件预设ueditor配置

// 编辑器不自动被内容撑高
autoHeightEnabled: false,
// 定制菜单
toolbars: [
  [
    "fullscreen",
    "bold",
    "italic",
    "underline",
    "fontsize",
    "insertimage",
    "insertorderedlist",
    "insertunorderedlist",
  ],
  ["source"], // 调试时候使用
],
// 初始容器高度
initialFrameHeight: 240,
// 初始容器宽度
initialFrameWidth: "100%",
// 关闭自动保存
enableAutoSave: false,
// 是否启用元素路径
elementPathEnabled: false,
// 内容只读
readonly: false,
// 开启字数统计
wordCount: true,

5. 官方文档

http://fex-team.github.io/ueditor/#start-start