Files
ostandari/plugins/ckEditor.client.js
T
2026-06-19 19:02:51 +03:30

19 lines
410 B
JavaScript

import Vue from 'vue'
import CKEditor from 'ckeditor4-vue'
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,
},
},
})