File tree Expand file tree Collapse file tree 1 file changed +9
-32
lines changed Expand file tree Collapse file tree 1 file changed +9
-32
lines changed Original file line number Diff line number Diff line change 1
- // import Quill from "quill";
2
- import VueEditor from "@/components/VueEditor.vue" ;
3
-
4
- const version = "__VERSION__" ;
5
-
6
- // Declare install function executed by Vue.use()
7
- export function install ( Vue ) {
8
- if ( install . installed ) return ;
9
- install . installed = true ;
10
-
11
- Vue . component ( "VueEditor" , VueEditor ) ;
12
- }
13
-
14
- const VPlugin = {
15
- install,
16
- version,
17
- VueEditor
1
+ /* eslint-disable no-console */
2
+ import VueEditor from "./components/VueEditor.vue" ;
3
+
4
+ const Plugin = {
5
+ install ( Vue , options = { } ) {
6
+ console . log ( "install -> options" , options ) ;
7
+ Vue . component ( "VueEditor" , VueEditor ) ;
8
+ }
18
9
} ;
19
10
20
- // Auto-install when vue is found (eg. in browser via <script> tag)
21
- let GlobalVue = null ;
22
- if ( typeof window !== "undefined" ) {
23
- GlobalVue = window . Vue ;
24
- } else if ( typeof global !== "undefined" ) {
25
- GlobalVue = global . Vue ;
26
- }
27
- if ( GlobalVue ) {
28
- GlobalVue . use ( VPlugin ) ;
29
- }
30
-
31
- export default VPlugin ;
32
- export { VueEditor } ;
33
-
34
- /*************************************************/
11
+ export default Plugin ;
You can’t perform that action at this time.
0 commit comments