GithubHelp home page GithubHelp logo

Can't add plugins about ckeditor5-vue HOT 12 CLOSED

AliN11 avatar AliN11 commented on July 22, 2024 3
Can't add plugins

from ckeditor5-vue.

Comments (12)

MarioMunnoz avatar MarioMunnoz commented on July 22, 2024 16

First library that you have to build plugins and stuff from source by yourself.. what a shi... library. Quite difficult to implement..

from ckeditor5-vue.

AliN11 avatar AliN11 commented on July 22, 2024 3

Hi. I tried to go with that guide by which rose multiple errors. After doing npm run dev, the first error was:

ERROR in ./node_modules/@ckeditor/ckeditor5-link/theme/linkform.css (./node_modules/css-loader??ref--7-1!./node_modules/postcss-loader/src??ref--7-2!./node_modules/@ckeditor/ckeditor5-link/theme/linkform.css)
Module not found: Error: Can't resolve './@ckeditor/ckeditor5-theme-lark/theme/mixins/_rwd.css' in 'E:\xampp\htdocs\xampp\external\the-project\node_modules\@ckeditor\ckeditor5-link\theme'

Despite I'm sure that the _rwd.css file exists, I removed this line:
@import "@ckeditor/ckeditor5-theme-lark/theme/mixins/_rwd.css" from linkform.css and linkform.css

After that, compilation completed successfully. But there was another error. In the browser console I get TypeError: "svg is null".

Any help? Thanks in advance.

from ckeditor5-vue.

AliN11 avatar AliN11 commented on July 22, 2024 1

@Mgsy I don't know why this is disabled. I'll check your guide and inform you here. Thanks.

from ckeditor5-vue.

Mgsy avatar Mgsy commented on July 22, 2024

Hello, you should build the editor from the source. Did you follow our guide?

from ckeditor5-vue.

AliN11 avatar AliN11 commented on July 22, 2024

@Mgsy Thanks for this fast response.
Edit: Let me try it...

from ckeditor5-vue.

Mgsy avatar Mgsy commented on July 22, 2024

Can you share your editor configuration code and vue.config.js file? And are you sure that you've installed all dependencies?

from ckeditor5-vue.

AliN11 avatar AliN11 commented on July 22, 2024

@Mgsy Problem solved. I'm using CKEditor inside a Laravel app. So I had to change the configuration based on this issue. It would be good if it mentioned somewhere.

BTW Thanks a lot for your help and attentions.

Edit: Can you tell me why ckfinder logo is disabled on the editor? When I click on it, nothing happens.
Capture

from ckeditor5-vue.

Mgsy avatar Mgsy commented on July 22, 2024

I'm glad that you managed to solve your problem.

About CKFinder - I can't reproduce your issue, after adding CKFinder to the editor (also in Vue integration), the icon is enabled. Did you see our CKFinder integration guide?

from ckeditor5-vue.

AliN11 avatar AliN11 commented on July 22, 2024

@Mgsy Although I followed your guide, that problem (disabled ckfinder icon) existed for image plugin too and unfortunately I had to switch to another text editor.
Thanks.

from ckeditor5-vue.

Mgsy avatar Mgsy commented on July 22, 2024

@AliN11, I'm sorry to hear that you struggled with this problem. However, can I ask you to create a new ticket and describe the exact steps needed to reproduce the issue? It will be very helpful for us, so we'll be able to investigate it and fix the bug (if needed).

from ckeditor5-vue.

Jeff-Tian avatar Jeff-Tian commented on July 22, 2024

Hi. I tried to go with that guide by which rose multiple errors. After doing npm run dev, the first error was:

ERROR in ./node_modules/@ckeditor/ckeditor5-link/theme/linkform.css (./node_modules/css-loader??ref--7-1!./node_modules/postcss-loader/src??ref--7-2!./node_modules/@ckeditor/ckeditor5-link/theme/linkform.css)
Module not found: Error: Can't resolve './@ckeditor/ckeditor5-theme-lark/theme/mixins/_rwd.css' in 'E:\xampp\htdocs\xampp\external\the-project\node_modules\@ckeditor\ckeditor5-link\theme'

Despite I'm sure that the _rwd.css file exists, I removed this line:
@import "@ckeditor/ckeditor5-theme-lark/theme/mixins/_rwd.css" from linkform.css and linkform.css

After that, compilation completed successfully. But there was another error. In the browser console I get TypeError: "svg is null".

Any help? Thanks in advance.

I met the exact same issue, can you share how did you fix it?

from ckeditor5-vue.

Jeff-Tian avatar Jeff-Tian commented on July 22, 2024

OK, fixed by

  chainWebpack(config, { webpack }) {
    config.module
      .rule('ckeditor5css')
      .test(/ckeditor5-[^/\\]+[/\\]theme[/\\].+\.css/)
      .oneOf('normal')
      .use('style-loader')
      .loader('style-loader')
      .end()
      .end()
      .oneOf('postcss')
      .before('normal')
      .use('postcss-loader')
      .loader('postcss-loader')
      .options(
        styles.getPostCssConfig({
          themeImporter: {
            themePath: require.resolve('@ckeditor/ckeditor5-theme-lark'),
          },
          minify: true,
        }),
      );
  }

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.