|
@@ -35,7 +35,7 @@ This is the quickest way to start using CKEditor in your project. Assuming [Vue
|
|
|
<script src="../node_modules/@ckeditor/ckeditor5-vue/dist/ckeditor.js"></script>
|
|
<script src="../node_modules/@ckeditor/ckeditor5-vue/dist/ckeditor.js"></script>
|
|
|
```
|
|
```
|
|
|
|
|
|
|
|
-Enable the component in your application using the [`Vue.use`](https://vuejs.org/v2/api/#Vue-use) method, specifying the editor build you want to use:
|
|
|
|
|
|
|
+Enable the component in your application using the [`Vue.use()`](https://vuejs.org/v2/api/#Vue-use) method, specifying the editor build you want to use:
|
|
|
|
|
|
|
|
```js
|
|
```js
|
|
|
Vue.use( CKEditor, {
|
|
Vue.use( CKEditor, {
|
|
@@ -81,7 +81,7 @@ const app = new Vue( {
|
|
|
|
|
|
|
|
The editor component comes as a [UMD module](https://github.com/umdjs/umd), which makes it possible to use in various environments, for instance, applications generated by [Vue CLI 3](https://cli.vuejs.org/), built using [webpack](https://webpack.js.org), etc..
|
|
The editor component comes as a [UMD module](https://github.com/umdjs/umd), which makes it possible to use in various environments, for instance, applications generated by [Vue CLI 3](https://cli.vuejs.org/), built using [webpack](https://webpack.js.org), etc..
|
|
|
|
|
|
|
|
-To create an editor instance, you must first import the editor build and the component modules into the root file of your application (e.g. `main.js` when generated by Vue CLI). Then, enable the component using the [`Vue.use`](https://vuejs.org/v2/api/#Vue-use) method, specifying the editor builds you want to use:
|
|
|
|
|
|
|
+To create an editor instance, you must first import the editor build and the component modules into the root file of your application (e.g. `main.js` when generated by Vue CLI). Then, enable the component using the [`Vue.use()`](https://vuejs.org/v2/api/#Vue-use) method, specifying the editor builds you want to use:
|
|
|
|
|
|
|
|
```js
|
|
```js
|
|
|
import Vue from 'vue';
|
|
import Vue from 'vue';
|