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

Media issue in NuxtJS #37

Open
ybhwang opened this issue Feb 7, 2023 · 0 comments
Open

Media issue in NuxtJS #37

ybhwang opened this issue Feb 7, 2023 · 0 comments

Comments

@ybhwang
Copy link

ybhwang commented Feb 7, 2023

1. Video Issue

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

  • Is it possible to use <embed> or <iframe> with configuration?

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.

  • While looking for a solution, it was confirmed that the Base64UploadAdapter was used and applied as follows, but please provide an appropriate solution due to a conflict between modules.

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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant