GithubHelp home page GithubHelp logo

Comments (9)

Reinmar avatar Reinmar commented on August 24, 2024 10

Unfortunately, you can't add plugins to a build. You can read more about installing plugins in this guide: https://ckeditor.com/docs/ckeditor5/latest/builds/guides/integration/installing-plugins.html

from ckeditor5-vue.

Reinmar avatar Reinmar commented on August 24, 2024 1

Would you suggest me creating a separate package just for building out the editor, then importing the compiled source it into my original project? Would that work?

Yes. That's the easiest choice. And, AFAIR, may be the only option with Laravel where integrating the editor from source was not possible.

from ckeditor5-vue.

Livijn avatar Livijn commented on August 24, 2024

Sadly, this makes it impossible to use with Laravel Mix.

from ckeditor5-vue.

Reinmar avatar Reinmar commented on August 24, 2024

Why would it make it impossible? You can create your own build which would work just like any other editor build. If the quick method explained in the guide I sent you is not enough, there's a link to this: https://ckeditor.com/docs/ckeditor5/latest/builds/guides/development/custom-builds.html

from ckeditor5-vue.

Livijn avatar Livijn commented on August 24, 2024

Using that results in

Invalid configuration object. Webpack has been initialised using a configuration object that does not match the API schema. - configuration has an unknown property 'chainWebpack'.`

from ckeditor5-vue.

Reinmar avatar Reinmar commented on August 24, 2024

That's an odd issue because I've never seen this property so it doesn't come from our documentation. I'm afraid you mixed some webpack configurations from many projects.

from ckeditor5-vue.

Livijn avatar Livijn commented on August 24, 2024

In your docs there is a property called just that:

chainWebpack: config => {
    // Vue CLI would normally use its own loader to load .svg files. The icons used by
    // CKEditor should be loaded using raw-loader instead.
    config.module
        .rule( 'svg' )
        .test( /ckeditor5-[^/\\]+[/\\]theme[/\\]icons[/\\][^/\\]+\.svg$/ )
        .use( 'file-loader' )
        .loader( 'raw-loader' );
}

from ckeditor5-vue.

Reinmar avatar Reinmar commented on August 24, 2024

Ouch! My bad. Sorry. We changed that guide recently and I didn't read the new version.

But this is not supposed to be content of the webpack.config.js but vue.config.js:

Edit the vue.config.js file and use the following configuration.

from ckeditor5-vue.

Livijn avatar Livijn commented on August 24, 2024

Oh, I mis read vue for webpack. Would you suggest me creating a separate package just for building out the editor, then importing the compiled source it into my original project? Would that work? I am not using Vue CLI, but instead Laravel Mix.

from ckeditor5-vue.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.