vue2-tinymce-editor

A TinyMCE WYSIWYG editor component for your Vue products
27,445 9
Install
npm install vue2-tinymce-editor
Latest Version:0.0.1
Vue:2
License:MIT
Last Updated:Dec 23, 2020
Links: GitHub  ·  npm
Maintainer: alex31n

Vue2-TinyMCE-Editor

A TinyMCE WYSIWYG editor component for your Vue products

Vue2-TinyMCE-Editor

This project is an upgrade version of vue-tinymce-editor.

I updated version to vue(2.6.11) and tinymce(5.6.2) and added new features.

Install

You can use Yarn or NPM

npm install vue2-tinymce-editor

OR

yarn add vue2-tinymce-editor

Usage

<template>
  <div id="app">
    <vue2-tinymce-editor v-model="content"></vue2-tinymce-editor>
  </div>
</template>

<script>
import { Vue2TinymceEditor } from "vue2-tinymce-editor";

export default {
  components: {
    Vue2TinymceEditor
  },

  data() {
    return {
      content: "<h1>Some initial content</h1>"
    };
  }
};

Props

Name Type Default Description
id String - Editor container id
v-model String - The content or data property you wish to bind with it
width Numeric auto Width of the editor container
height Numeric 300px Height of the editor container
options Object - Configure object for advanced use

Events

Name Parameters Description
editorChange Event Emitted on TinyMCE's onchange event
editorInit Event Emitted when editor is initialized

Advanced Usage

<template>
    <div id="app">
        <vue2-tinymce-editor :id="your-id" v-model="content" :width:="500" :height="300" :options="options"></vue2-tinymce-editor>
    </div>
</template>

<script>
import { Vue2TinymceEditor } from "vue2-tinymce-editor";

export default {
    components: {
        Vue2TinymceEditor
    },

    data() {
        return {
            content: "<h1>Some initial content</h1>",
            options:{
                    menubar:false,
                    plugins: 'advlist autolink charmap code codesample directionality emoticons',
                    toolbar1:'fontselect | fontsizeselect | formatselect | bold italic underline strikethrough forecolor backcolor',
                    toolbar2:'alignleft aligncenter alignright alignjustify | numlist bullist outdent indent | link table removeformat code',
                    ......
                    // any other tinymce options
                  }
            };
    }
};

TinyMCE

Supported Plugins

  • Advanced List
  • Anchor
  • Autolink
  • Autoresize
  • Autosave
  • BBCode
  • Character Map
  • Code
  • Code Sample
  • Directionality
  • Emoticons
  • Full Page
  • Full Screen
  • Help
  • Horizontal Rule
  • Image
  • Image Tools
  • Import CSS
  • Insert Date/Time
  • Legacy Output
  • Link
  • Lists
  • Media
  • Nonbreaking Space
  • Noneditable
  • Page Break
  • Paste
  • Preview
  • Print
  • Quick Toolbars
  • Save
  • Search and Replace
  • Spell Checker
  • Tab Focus
  • Table
  • Template
  • Text Pattern
  • Table of Contents
  • Visual Blocks
  • Visual Characters
  • Word Count

Access to the editor

You can access the editor by add a ref:

<vue2-tinymce-editor id="d1" v-model="data" ref="te"></vue2-tinymce-editor>

Then access the editor like this:

this.$refs.te.editor

License

MIT

Related Packages

vue2-editor

HTML editor using Vue.js 2, and Quill.js, an open source editor

2,125,001 2,510
vue3-editor

HTML editor using Vue.js 3, and Quill.js, an open source editor

503,655 16
vue2-quill-editor

HTML editor using Vue.js 2.0 and Quill.js, an open source editor

17,629
vuejs-countdown-timer

Vue 2 countdown and timer component

53,691 48

Version History

Version Released License
0.0.1 MIT