vue-froala-wysiwyg
vue-froala-wysiwyg copied to clipboard
How is it configured and used in vue-cli3?
Make sure you have the right Webpack settings for loading the CSS files, Font Awesome and jQuery.
In this section, how do you configure a project based on vue-cli3?
We don't have such details for now, @vopdoo. Thanks for your request, we'll put them shortly.
The way we solved this issue is by running yarn add [email protected]
.
@glassesjacketshirtman is there anything we could do to the package to avoid running this command?
@stefanneculai you might want to refer to this issue I believe what's happening is that your bundled code is referring to an old version of babel-runtime. You can probably just upgrade your bundler to the latest and rebuild your package and all should work fine.
@vopdoo Does this resolve your issue (it did mine)? https://github.com/froala/vue-froala-wysiwyg/issues/14
If so, @stefanneculai, you should probably update the doc to include that info
Should be fixed in the latest master.
use "yarn" commend
yarn add vue-froala-wysiwyg
yarn add jquery
in your vue project 's root directory, create file vue.config.js
// vue.config.js
const webpack = require('webpack')
module.exports = {
configureWebpack: {
plugins: [
new webpack.ProvidePlugin({
$: 'jquery',
jQuery: 'jquery',
'windows.jQuery': 'jquery'
})
]
}
}
you don't need setting for loading the css files if you use vue3
other config is the same as vue2, just look for doc
@vopdoo Why dont use version 3.0+ ??