Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Duplicate Modules #196

Open
jamols09 opened this issue Sep 15, 2021 · 4 comments
Open

Duplicate Modules #196

jamols09 opened this issue Sep 15, 2021 · 4 comments
Labels
pending:feedback This issue is blocked by necessary feedback.

Comments

@jamols09
Copy link

jamols09 commented Sep 15, 2021

Hello I'm using Vite with Vue 3

I have this issue even though I've followed the documentation

image

Package.json
(I have removed ckeditor5-build-classic already)

"dependencies": {
    "@adamdehaven/vue-custom-tooltip": "^2.5.1",
    "@ckeditor/ckeditor5-basic-styles": "^29.2.0",
    "@ckeditor/ckeditor5-editor-classic": "^29.2.0",
    "@ckeditor/ckeditor5-essentials": "^29.2.0",
    "@ckeditor/ckeditor5-link": "^29.2.0",
    "@ckeditor/ckeditor5-markdown-gfm": "^29.2.0",
    "@ckeditor/ckeditor5-paragraph": "^29.2.0",
    "@ckeditor/ckeditor5-theme-lark": "^29.2.0",
    "@ckeditor/ckeditor5-vue": "2.0.1",
    "@iconify/iconify": "2.0.3",
    "@mapbox/mapbox-gl-geocoder": "4.7.2",
    "@popperjs/core": "2.9.2",
    "@vueform/multiselect": "2.0.1",
(...)

Component

<script setup lang="ts">
//ckeditors
import ClassicEditor from '@ckeditor/ckeditor5-editor-classic/src/classiceditor'
import Essentials from '@ckeditor/ckeditor5-essentials/src/essentials'
import Paragraph from '@ckeditor/ckeditor5-paragraph/src/paragraph'
import Bold from '@ckeditor/ckeditor5-basic-styles/src/bold'
import Italic from '@ckeditor/ckeditor5-basic-styles/src/italic'

//ckeditor
const editor = ClassicEditor
const editorData = ref(
  `<h2>The three greatest things you learn from travelling</h2>`
)
const configck = {
  plugins: [Essentials, Paragraph, Bold, Italic],
  items: ['bold', 'italic', 'link', 'undo', 'redo'],
}
</script>

<template>
 <V-Control>
                <ckeditor
                  v-model="editorData"
                  :editor="editor"
                  :config="configck"
                 >
          </ckeditor>
</V-Control>
</template>
@Mgsy
Copy link
Member

Mgsy commented Sep 15, 2021

Hi! Did you try to remove node_modules and package-lock.json, then reinstalling the packages?

@Mgsy Mgsy added the pending:feedback This issue is blocked by necessary feedback. label Sep 15, 2021
@jamols09
Copy link
Author

jamols09 commented Sep 15, 2021

Hi! Did you try to remove node_modules and package-lock.json, then reinstalling the packages?

Yes I have reinstalled it and it now displays the page but it has no plugins/tools.

image

updated config

const configck = {
  plugins: [Essentials, Paragraph, Bold, Italic],

  toolbar: {
    items: ['bold', 'italic', 'link', 'undo', 'redo'],
  },
}

image

@jamols09
Copy link
Author

jamols09 commented Sep 15, 2021

Update I also have remove 'link' because its not included on the import but still same error.

Is there something wrong on how I have declared configck ?
The problem mostly persists because of the 'toolbar'

I think it cannot located the svg because the query selector cannot find it. resulting to this error.
Does it mean the svg is not mounted to the dom?
image

@jamols09
Copy link
Author

Would like to ask if this step is needed to use the classic editor from source? Editor-From-Source because I have skipped this part. I am using Vuejs with Vite not only Vue so this is the only step I've proceeded Using-The-Editor-From-Source

@ckeditor ckeditor deleted a comment Apr 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pending:feedback This issue is blocked by necessary feedback.
Projects
None yet
Development

No branches or pull requests

2 participants