Skip to content
This repository has been archived by the owner on Oct 7, 2020. It is now read-only.

Make use section clearer #5

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 22 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,34 @@ npm install vue-tinymce --save
```

### Use
If you have tinymce already loaded into your `<head>`
```javascript
import Vue from 'vue'
import VueTinymce from 'vue-tinymce'
Vue.use(VueTinymce)
```

Or you can import tinymce using javascript. First run `npm install tinymce --save`
```javascript
import Vue from 'vue'
import VueTinymce from 'vue-tinymce'

// Import TinyMCE
import tinymce from 'tinymce/tinymce'

// A theme is also required
import 'tinymce/themes/modern/theme'

// Any plugins you want to use have to be imported
import 'tinymce/plugins/paste'
import 'tinymce/plugins/link'

Vue.use(VueTinymce)
```
Also need the skin for tinymce to be copied to your public/build directory and the url set in the options of the component.
See [Getting the skin](https://www.tinymce.com/docs/advanced/usage-with-module-loaders/#gettingtheskin)
and [`skin_url` option](https://www.tinymce.com/docs/configure/editor-appearance/#skin_url)

### Vue template
```html
<div id="app">
Expand Down