ckeditor / ckeditor5-vue2

Official CKEditor 5 component for Vue.js 2.x.
Other
35 stars 17 forks source link

Media issue in NuxtJS #37

Open ybhwang opened 1 year ago

ybhwang commented 1 year ago

1. Video Issue

Video block in toolbar(default) add <oembed>, But it doesn't seem to be rendered.

2. Image Issue

Image block in toolbar(default) is system image picker. I expect it would be added to Base64 <img>, but it just makes filerepository-no-upload-adapter warning.

References

Below is the actual source code.

/plugins/ckeditor.js

import Vue from 'vue'
import CKEditor from '@ckeditor/ckeditor5-vue2'
import '@ckeditor/ckeditor5-build-classic/build/translations/ko'

Vue.use(CKEditor)

/pages/sample.vue

<template>
    <ckeditor :editor="editor" v-model="editorData" :config="editorConfig"></ckeditor>
</template>

<script>
import ClassicEditor from '@ckeditor/ckeditor5-build-classic'
import Base64UploadAdapter from '@ckeditor/ckeditor5-upload/src/adapters/base64uploadadapter'
export default {
  data () {
    editor: ClassicEditor,
    editorData: '<p>Content of the editor.</p>',
    editorConfig: {
      language: 'ko',
      plugins: [Base64UploadAdapter] // CKEditorError: ckeditor-duplicated-modules
    }
  }
}
</script>