vuejs-templates / webpack

A full-featured Webpack + vue-loader setup with hot reload, linting, testing & css extraction.
MIT License
9.7k stars 4.38k forks source link

How to implement module like CKeditor (amongst others) #767

Closed focussing closed 7 years ago

focussing commented 7 years ago

In order to use CKeditor i added in a component

import CKEDITOR from 'ckeditor'

However now comes an error message like

ckeditor.js?7294:232 Uncaught TypeError: Cannot set property 'dir' of undefined
    at Object.f (eval at <anonymous> (app.js:1206), <anonymous>:232:470)
    at g (eval at <anonymous> (app.js:1206), <anonymous>:234:33)
    at n (eval at <anonymous> (app.js:1206), <anonymous>:234:188)
    at r (eval at <anonymous> (app.js:1206), <anonymous>:234:301)
    at Object.load (eval at <anonymous> (app.js:1206), <anonymous>:235:351)
    at Object.load (eval at <anonymous> (app.js:1206), <anonymous>:233:35)
    at m (eval at <anonymous> (app.js:1206), <anonymous>:249:148)
    at eval (eval at <anonymous> (app.js:1206), <anonymous>:249:113)
    at b (eval at <anonymous> (app.js:1206), <anonymous>:486:150)
    at Object.loadPart (eval at <anonymous> (app.js:1206), <anonymous>:487:411)

Which according the CKeditor needs to be solved like Specifying the Editor Path. Did that several ways like the following, but nothing works. What am I doing wrong?

var CKEDITOR_BASEPATH = './ckeditor/';
import axios from 'axios';
import CKEDITOR from 'ckeditor'
import Ckeditor from 'vue-ckeditor2'
LinusBorg commented 7 years ago

Please use our forum @ forum.vuejs.org for usage questions.

focussing commented 7 years ago

Thank you, I did. Sorry for the trouble

LinusBorg commented 7 years ago

No worries. Will try and help over on the forum when in post and I have a minute.