use self hosted packages
This commit is contained in:
@@ -1,4 +1,18 @@
|
||||
import Vue from 'vue'
|
||||
import CKEditor from 'ckeditor4-vue'
|
||||
|
||||
Vue.use(CKEditor)
|
||||
const editorUrl = '/js/ckeditor/ckeditor.js'
|
||||
|
||||
window.CKEDITOR_BASEPATH = '/js/ckeditor/'
|
||||
|
||||
// editorUrl is a component prop, not a Vue.use() option — the default is the CDN.
|
||||
Vue.component('ckeditor', {
|
||||
...CKEditor.component,
|
||||
props: {
|
||||
...CKEditor.component.props,
|
||||
editorUrl: {
|
||||
type: String,
|
||||
default: editorUrl,
|
||||
},
|
||||
},
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user