blowstack / ckeditor-nuxt

CKEditor5 component for Nuxt.js framework. All free official plugins included.
33 stars 16 forks source link

get plugincollection-plugin-name-conflict all over the place? #14

Open andreas-it-dev opened 3 years ago

andreas-it-dev commented 3 years ago

hi,

trying it out with the exact code from your example i get a bunch of errors in the console:

image

the url presented is https://ckeditor.com/docs/ckeditor5/latest/framework/guides/support/error-codes.html#error-plugincollection-plugin-name-conflict and tells me Two plugins with the same pluginName were loaded but i didnt load any of the plugins..

what did i do wrong?

fwiw, this is my component:

<template>
  <div class="mt-10">
    <v-row class="d-flex flex-column flex-md-row">
      <v-col cols="auto">
...        snip...
      </v-col>
      <v-col cols="6">
        <h1>lessons</h1>
        <client-only placeholder="loading...">
          <ckeditor-nuxt v-model="contentHolder" :config="editorConfig" />
        </client-only>
      </v-col>
    </v-row>
  </div>
</template>

<script>
export default {
  name: 'Lessons',
  components: {
    'ckeditor-nuxt': () => {
      if (process.client) {
        return import('@blowstack/ckeditor-nuxt')
      }
    },
  },
  data: () => ({
    editorConfig: {
      simpleUpload: {
        uploadUrl: 'path_to_image_controller',
        headers: {
          Authorization: 'optional_token',
        },
      },
    },
    contentHolder: '',
  }),
}
</script>

<style scoped></style>
blowstack commented 3 years ago

Hi. You are doing everything right. There is an issue with versions >= 0.5.0 Please downgrade your version temporarily to 0.4.0. In the meantime there will be a fix.

andreas-it-dev commented 3 years ago

awesome, thanks! that looks way better.

do you happen to have an estimation regarding the fix.. dont feel pressured, its just are we talking weeks or months..?

thunderwin commented 3 years ago

Yea, I wanna ask as well,when you can fix it... please

blowstack commented 3 years ago

Hi,

sorry for keeping you wainting. This is fixed in the newest version.