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

rf-vue-smeditor

v0.1.0

Published

rf-vue-smeditor

Downloads

3

Readme

SMEditor

Build Status Code Climate JavaScript Style Guide Downloads license

✎ 基于 Vue.js 2.0+ 石墨文档样式的富文本编辑器, 轻量, 快速, 优雅

在线预览: http://geekpark.github.io/smeditor.github.io

反馈: https://github.com/ericjjj/smeditor/issues

联系: [email protected]

关于作者: https://ericjj.com/about/

起因

之前一直使用的 wangEditor 不能满足我司编辑和PM需求, 使用过程中也出了很多问题,   simditor 体验之后效果不是很好, 并且也不维护了; 目前的后台管理系统技术选型已经转向了 Vue, 所以就有了这个轮子;

功能

  • [x] 轻, 快 48 KB
  • [x] 自动添加图片描述框 (类似简书)
  • [x] 复制上传, 多张批量上传
  • [x] 轻量级备份, 恢复, 预览
  • [x] 代码精简, 适合二次开发
  • [x] 其他编辑器有的功能
  • [ ] 移动端

使用

// 安装
yarn install smeditor

// 引入
import SMEditor from 'smeditor'

// 全局组件
Vue.use(SMEditor)

// 局部组件
components: {
  'smeditor': SMEditor
}

// 使用
<smeditor :config='config'></smeditor>

配置

const config = {
  // 接口地址
  uploadUrl: '',
  // form 里的 filename
  uploadName: '',
  // 其他参数
  uploadParams: {},
  // 上传成功回调
  uploadCallback: (data) => {
    console.log(data)
    return 'blob:https://fiddle.jshell.net/00a0b0b4-d19a-4860-9796-137692aef36f'
  },
  // 上传失败回调, 可选
  uploadFailed: (err) => {
    console.log(err)
  }
}

快捷键

Ctrl + S 保存
Ctrl + P 预览(新窗口)

本地运行

npm run dev

npm run build

npm run gp

打赏

如果你感觉有收获,欢迎给我打赏 ———— 以激励我更多输出优质开源内容