vue-froala-wysiwyg icon indicating copy to clipboard operation
vue-froala-wysiwyg copied to clipboard

How is it configured and used in vue-cli3?

Open vopdoo opened this issue 6 years ago • 8 comments

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?

vopdoo avatar Aug 29 '18 16:08 vopdoo

We don't have such details for now, @vopdoo. Thanks for your request, we'll put them shortly.

stefanneculai avatar Sep 04 '18 13:09 stefanneculai

The way we solved this issue is by running yarn add [email protected].

glassesjacketshirtman avatar Sep 10 '18 08:09 glassesjacketshirtman

@glassesjacketshirtman is there anything we could do to the package to avoid running this command?

stefanneculai avatar Sep 10 '18 16:09 stefanneculai

@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.

glassesjacketshirtman avatar Sep 10 '18 20:09 glassesjacketshirtman

@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

Pyro979 avatar Sep 26 '18 20:09 Pyro979

Should be fixed in the latest master.

stefanneculai avatar Mar 07 '19 11:03 stefanneculai

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

lxdDreamFuture avatar Apr 26 '19 09:04 lxdDreamFuture

@vopdoo Why dont use version 3.0+ ??

liuguangyong93 avatar Jun 12 '19 10:06 liuguangyong93