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

vue-tinymce-editor

v1.6.2

Published

This a component provides easy use of tinymce for vue developers

Downloads

4,697

Readme

vue-tinymce-editor

This a component provides easy use of tinymce for vue developers

Demo

You can see a demo and an example in this page: Demo & examples

Instalation

$ npm install vue-tinymce-editor

How to use

import Vue from 'vue'
import tinymce from 'vue-tinymce-editor'
Vue.component('tinymce', tinymce)

You may use the component in your markup

<tinymce id="d1" v-model="data"></tinymce>
export default{
    data(){
        return {
            data : ''
        };
    }
}

Properties

| Property | Type | Default | Description | |----------|------|---------|-------------| | id | required, String | | id of component's textarea | | toolbar1 | String | 'formatselect | bold italic strikethrough forecolor backcolor | link | alignleft aligncenter alignright alignjustify | numlist bullist outdent indent | removeformat' | Toolbar 1 of tinymce | | toolbar2 | String | '' | Toolbar 2 of tinymce | | plugins | Array | ['advlist autolink lists link image charmap print preview hr anchor pagebreak', 'searchreplace wordcount visualblocks visualchars code fullscreen', 'insertdatetime media nonbreaking save table contextmenu directionality','template paste textcolor colorpicker textpattern imagetools toc help emoticons hr codesample'] | plugins of tinymce you need to load | | other_options | Array | {} | other tinymce options. you can also override our initial options | | readonly | Boolean | false | Enables or disables the Editor |

Events

| Event | Parameter | Description | |----------|------|---------| | editorChange | Event | This event will be called when tinymce calls onchane | | editorInit | Editor | This event will be called after editor is initialized |

Localization

If you wish to use tinymce in other languages, please follow these steps:

  1. Download the language pack you wish to use from here.
  2. Unpack the language file into your desired path, which is accessible from outside and there is a URL pointing to it.
  3. Finally, set language_url in other_options to the URL pointing to the language file.

For example:

export default{
    data(){
        return {
            data : '',
            options: {
                language_url: 'http://example.com/js/langs/fa_IR.js' //This url points to location of persian language file.
            }
        };
    }
}
<tinymce id="d1" v-model="data" :other_options="options"></tinymce>

Direct access to tinymce editor

You can access the tinymce itself by setting a ref to this component:

<tinymce id="d1" v-model="data" ref="tm"></tinymce>

Then you can access the editor by calling:

this.$refs.tm.editor