dti-simple-text-editor

1.0.3 • Public • Published

Simple Text Editor

A Vuex.js 2.0 simple text editor for DIT coding challenge

Installation

npm install dti-simple-text-editor

Then in your main.js file import and setup the component:

import Vue from 'vue'
import App from './App'
import SimpleTextEditor from 'dti-simple-text-editor'

let config = {
  menu: [
    'bold', 'italic', 'underline'
  ]
};
Vue.use(Vuex);
Vue.use(SimpleTextEditor, config);

new Vue({
  el: '#app',
  components: { App },
  template: '<App/>'
})

Now you can use it in your app by simply adding:

 <SimpleTextEditor></SimpleTextEditor>

How it looks

screenshot

Find an online DEMO here

/dti-simple-text-editor/

    Package Sidebar

    Install

    npm i dti-simple-text-editor

    Weekly Downloads

    5

    Version

    1.0.3

    License

    none

    Unpacked Size

    3.25 MB

    Total Files

    160

    Last publish

    Collaborators

    • yugo82