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

vueditor3

v1.0.6

Published

这是一个支持 vue3.x 的 富文本编辑器, 基于UEditor开发。 支持UEditor所有的指令和功能,并且完美支持UEditor的自定义指令。

Downloads

332

Readme

vueditor3

这是一个支持 vue3.x 的 富文本编辑器, 基于UEditor开发。 支持UEditor所有的指令和功能,并且完美支持UEditor的自定义指令。

This is a rich text editor that supports vue3.x, developed based on UEditor. Supports all UEditor commands and functions, and perfectly supports UEditor's custom commands.

NPM license NPM version

安装指南 / Installation

  • 一、克隆代码 / Clone Code
git clone https://github.com/ethwillupto10000/vueditor3
cd vueditor3
npm i # 或者 cnpm i 
  • 二、复制资源文件 / Copy Resource Folder
    • 复制文件夹:/public.ueditor 到你的项目根目录/public下(没有则创建一个)
    • Copy Folder: /public.ueditor and place it under your project root path: /public(if don't have , plz make a new 1)

运行开发环境 / Run dev environment

npm run dev

组件使用方法 / Usage

<!--组件使用案例-->
<!--Usage Example-->
<template>
    <Editor
        :config-path="configPath"
        class="editor"
        v-model="content"></Editor>
</template>
<script lang="ts" setup>

/**
 * 编辑器使用的配置文件
 * Editor's Config file
 * @description 可以自己定义一份配置文件,自定义选择工具栏需要使用的工具
 * 配置文件的路径:[你的项目的根目录]/ueditor/config/ueditor.config.js
 * vue3项目请将资源文件:/public/editor复制到自己根目录的/public文件夹下
 * @description You can add another config file to build your custom editor.
 * Config File Path: [Your_Project_Base_Path]/ueditor/config/ueditor.config.js
 * Please Copy you Resource folder: /public/ueditor to you own project folder: /public/ueditor
 * **/
import { ref, watch } from 'vue'
import Editor from './Editor.vue'

const configPath = '/ueditor/config/ueditor.config.js'

// 编辑器绑定的内容
// Data Bind in Editor
const content = ref('')

watch(content, last => {
  console.log(last)
}, {
  deep: true,
  immediate: true
})
</script>

<style scoped></style>

Configuration

1、Copy Resource Folder to your Own Project

  - File Path: /public/ueditor

2、You can just use Editor.vue as your Own Component.