ankurk91 / vue-trumbowyg

Vue.js component for Trumbowyg WYSIWYG editor :memo:
https://ankurk91.github.io/vue-trumbowyg/
MIT License
236 stars 35 forks source link

Trumbowyg Vue "jQuery is not defined" #33

Closed jacksonhiew closed 4 years ago

jacksonhiew commented 4 years ago

I'm submitting a ... (check one with "x")

[ ] Bug report => search github for a similar issue or PR before submitting
[ ] Feature request
[ / ] Other, please describe

Tell about your platform

Current behavior

trumbowyg.upload.js?1347:278 Uncaught ReferenceError: jQuery is not defined
    at eval (trumbowyg.upload.js?1347:278)
    at Object../node_modules/trumbowyg/dist/plugins/upload/trumbowyg.upload.js (chunk-vendors.js:1196)
    at __webpack_require__ (app.js:786)
    at fn (app.js:151)
    at eval (cjs.js?!./node_modules/babel-loader/lib/index.js!./node_modules/cache-loader/dist/cjs.js?!./node_modules/vue-loader/lib/index.js?!./src/views/Blog/Edit/Index.vue?vue&type=script&lang=js&:2)
    at Module../node_modules/cache-loader/dist/cjs.js?!./node_modules/babel-loader/lib/index.js!./node_modules/cache-loader/dist/cjs.js?!./node_modules/vue-loader/lib/index.js?!./src/views/Blog/Edit/Index.vue?vue&type=script&lang=js& (app.js:935)
    at __webpack_require__ (app.js:786)
    at fn (app.js:151)
    at eval (Index.vue?a998:1)
    at Module../src/views/Blog/Edit/Index.vue?vue&type=script&lang=js& (app.js:1982)

Expected behavior Can succesfully import the plugin and use it without any problem. (Now i need to import jQuery in every single Trumbowyg ".js" file)

max-huster commented 3 years ago

How did you fix it?

ghost commented 3 years ago

How did you fix it?

Maybe check out this section https://github.com/ankurk91/vue-trumbowyg/tree/master/wiki