Closed PhilAndrew closed 6 years ago
I have the same problem...
On your plugins folder add the froala.js
with the following contents:
import Vue from 'vue'
import VueFroala from 'vue-froala-wysiwyg'
import 'froala-editor/js/froala_editor.pkgd.min.js'
Vue.use(VueFroala)
then on the nuxt.config.js
file add the following
...
head: {
link: [
{
rel: 'stylesheet',
href: 'https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css'
}
]
},
css: [
'~/node_modules/vue-wysiwyg/dist/vueWysiwyg.css',
'~/node_modules/froala-editor/css/froala_editor.pkgd.min.css',
'~/node_modules/froala-editor/css/froala_style.min.css'
],
plugins: [
'~/plugins/froala.js'
],
build: {
plugins: [
new webpack.ProvidePlugin({
'$': 'jquery',
jQuery: 'jquery'
})
]
}
Make sure you've installed jquery. i.e npm i jquery --save
@briankoech thanks for coming up with a solution.
This is not working with Nuxt.js I have tested the example above. Is there another solution?
thanks is work .. btw dont forget add this code in top line ...
var webpack = require('webpack')
var path = require('path')
Hello, I tried to use with nuxt.js and vue and didn't work, how can I make it work?
I get this error