w-tinymce-vue
v2.0.7
Published
A wrapper for @tinymce/tinymce-vue.
Downloads
345
Maintainers
Readme
w-tinymce-vue
A wrapper for @tinymce/tinymce-vue.
Documentation
To view documentation or get support, visit docs.
Example
To view some examples for more understanding, visit examples:
default: ex-default.html [source code]
Installation
Using npm(ES6 module):
Note: w-tinymce-vue is mainly dependent on
tinymce
,@tinymce/tinymce-vue
andvue
.
npm i w-tinymce-vue
By import:
<w-tinymce-vue
v-model="..."
></w-tinymce-vue>
import WTinymceVue from 'w-tinymce-vue'
Vue.component('w-tinymce-vue', WTinymceVue)
In a browser(UMD module):
Note: umd file includes with
@tinymce/tinymce-vue
, by using tree-shaking for dead-code elimination
[Necessary] Add script for tinymce.
<script src="https://cdn.jsdelivr.net/npm/[email protected]/tinymce.min.js"></script>
[Necessary] Add script for vue.
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/vue.min.js"></script>
[Necessary] Add script for w-tinymce-vue.
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/w-tinymce-vue.umd.js"></script>
Directly use:
<w-tinymce-vue
v-model="..."
></w-tinymce-vue>
Vue.component('w-tinymce-vue', window['w-tinymce-vue'])
new Vue({
el: '#app',
data: {
content: 'abc中文123'
}
})