Skip to content

Commit 99b976e

Browse files
committed
chore: testing
1 parent 0a19b11 commit 99b976e

File tree

1 file changed

+9
-32
lines changed

1 file changed

+9
-32
lines changed

src/index.js

Lines changed: 9 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -1,34 +1,11 @@
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+
}
189
};
1910

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;

0 commit comments

Comments
 (0)