Ckeditor using for Vue.js 2
- If you use Vue.js 1x please reference from Ckeditor Vue 1x
<template>
<div class="app">
<ckeditor v-model="content" :height="'300px'" :toolbar="[['Format']]"></ckeditor>
</div>
</template>
<script>
import Ckeditor from './ckeditor.vue'
export default {
data () {
return {
content: ''
}
},
components: { Ckeditor }
}
</script>
<template>
<div class="app">
<ckeditor v-model="contentA" :id="editorA" :height="'300px'" :toolbar="[['Format']]"></ckeditor>
<ckeditor v-model="contentB" :id="editorB" :height="'300px'" :toolbar="[['Format']]"></ckeditor>
</div>
</template>
<script>
import Ckeditor from './ckeditor.vue'
export default {
data () {
return {
editorA: 'editor-a',
contentA: '',
editorB: 'editor-b'
contentB: ''
}
},
components: { Ckeditor }
}
</script>
yarn - recommend
# Install dependencies
yarn install
# Server with hot reload at localhost:8080
yarn run dev
# Build for production with minification
yarn run build
# Install dependencies
npm install
# Server with hot reload at localhost:8080
npm run dev
# Build for production with minification
npm run build
Dang Van Thanh | Eduárd Moldován | Dominique FERET |
MIT © Dang Van Thanh