-
-
Notifications
You must be signed in to change notification settings - Fork 63
Getting Started
Dang Van Thanh edited this page Mar 29, 2017
·
7 revisions
Include path of ckeditor in index.html
page
<script src="//cdn.ckeditor.com/4.6.2/full/ckeditor.js"></script>
or
<script src="/path/to/ckeditor.js"></script>
<template>
<div class="app">
<ckeditor v-model="content" :config="config"></ckeditor>
</div>
</template>
<script>
import Ckeditor from 'vue-ckeditor2'
export default {
data () {
return {
content: '',
config: {
toolbar: [
[ 'Bold', 'Italic', 'Underline', 'Strike', 'Subscript', 'Superscript' ]
],
height: 300
}
}
},
components: { Ckeditor }
}
</script>
<template>
<div class="app">
<ckeditor v-model="contentA" types="inline" :config="configA"></ckeditor>
<ckeditor v-model="contentB" :config="configB"></ckeditor>
</div>
</template>
<script>
import Ckeditor from 'vue-ckeditor2'
export default {
data () {
return {
contentA: '',
configA: {
toolbar: [[ 'Bold' ]],
height: 300
},
contentB: '',
configB: {
toolbar: [[ 'Italic' ]],
height: 150
}
}
},
components: { Ckeditor }
}
</script>