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

vue2-tinymce-editor

v0.0.1

Published

A TinyMCE WYSIWYG editor component for your Vue products

Downloads

1,642

Readme

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 | | Set v-model to the the content or data property you wish to bind it to |

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