jodit-vue
Version:
Vue wrapper for Jodit Editor
21 lines (14 loc) • 468 B
JavaScript
/* eslint-env node */
import JoditVue from './JoditVue.vue'
export function install (Vue) {
if (install.installed) return
install.installed = true
Vue.component('JoditVue', JoditVue)
}
const plugin = { install }
let GlobalVue = null
if (typeof window !== 'undefined') GlobalVue = window.Vue
else if (typeof global !== 'undefined') GlobalVue = global.Vue
if (GlobalVue) GlobalVue.use(plugin)
export default JoditVue
export { default as Jodit } from 'jodit'