diff --git a/README.md b/README.md index 56df031..6ef189f 100644 --- a/README.md +++ b/README.md @@ -42,8 +42,19 @@ import { VueEditor } from "vue2-editor"; import { VueEditor, Quill } from "vue2-editor"; ``` +or add it as a global component + +```javascript +import VueEditor from "vue2-editor"; + +// Register the component globaly. You can access it in your template as vue-editor +Vue.use(VueEditor) +``` + + ## Props + | Name | Type | Default | Description | | --------------------- | ------- | ---------------------------------------------------- | -------------------------------------------------------------------------------------- | | customModules | Array | - | Declare Quill modules to register | Use a custom toolbar |