GithubHelp home page GithubHelp logo

lunnlew / vue2-tinymce7 Goto Github PK

View Code? Open in Web Editor NEW
2.0 1.0 0.0 298 KB

基于tinymce7适配vue2的富文本编辑器组件

Home Page: https://v2t7.forisy.com/

License: MIT License

JavaScript 11.98% Vue 85.67% HTML 2.35%
tinymce7 vue2

vue2-tinymce7's Introduction

说明

增强 WPS 的图文混合粘贴功能,针对 WORD 或者 WPS 复制后进行粘贴的可能无法处理本地图片文件,自动加上占位图片,以便于手动点击上传

安装

npm install --save vue2-tinymce7

vue dev 额外工作

复制node_modules/vue2-tinymce7/dist/tinymcepublic

webpack 构建配置

const CopyWebpackPlugin = require("copy-webpack-plugin");

module.exports = {
  // ...
  plugins: [
    // ...
    new CopyWebpackPlugin([
      { from: "node_modules/vue2-tinymce7/dist/tinymce", to: "tinymce" },
    ]),
  ],
};

全局导入

import Vue2Tinymce7Component from "vue2-tinymce7";
Vue.use(Vue2TinymceComponent);

局部导入

import { Vue2Tinymce } from "vue2-tinymce7";

组件使用

<Vue2Tinymce
  :value="value"
  :base_url="'/tinymce/'"
  @ready="onReady"
  @inputChange="onInputChange"
  @editorChange="onEditorChange"
>
</Vue2Tinymce>

开发

# 安装
npm install
# 构建库
npm run build-lib
# 运行示例
npm run serve

vue2-tinymce7's People

Contributors

lunnlew avatar

Stargazers

 avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.