GithubHelp home page GithubHelp logo

Comments (4)

ikwabe avatar ikwabe commented on August 24, 2024 2

I have managed to solve this by doing the following:
make sure you have installed the CKEditor correctly
npm install --save @ckeditor/ckeditor5-vue2 @ckeditor/ckeditor5-build-classic

From you main.js import it as
import CKEditor from '@ckeditor/ckeditor5-vue2';
And use it in vue
Vue.use(CKEditor);
Screenshot 2022-01-28 at 10 43 04

From the vue file where you are going to implement your editor import the ClassEditor
import ClassicEditor from '@ckeditor/ckeditor5-build-classic';

Then in data block make a variable for the editor
import ClassicEditor from '@ckeditor/ckeditor5-build-classic';
export default { data: () => ({ editor: ClassicEditor,})}

Then bind this editor with the ckeditor tag in your codes
<ckeditor :editor="editor" v-model="model" :config="editorConfig" ></ckeditor>

from ckeditor5-vue.

Reinmar avatar Reinmar commented on August 24, 2024

Your Vue.use() call is incorrect. There's no editors property. Nor type attribute in the <ckeditor> component. See https://ckeditor.com/docs/ckeditor5/latest/builds/guides/integration/frameworks/vuejs.html

from ckeditor5-vue.

vupn199955 avatar vupn199955 commented on August 24, 2024

@Reinmar
I have got the same error
so this's my code
plugins/ckeditor.js:

import CKEditor from "@ckeditor/ckeditor5-vue";
import ClassicEditor from '@ckeditor/ckeditor5-build-classic';
import Vue from 'vue';
Vue.use(CKEditor,
  {
    editors: ClassicEditor,
    name: 'ckeditor'
  }
);

in template:

<no-ssr>
   <ckeditor :v-model="editorData"></ckeditor>
</no-ssr>

Could you help me to resolve this?

from ckeditor5-vue.

mohitsehgal avatar mohitsehgal commented on August 24, 2024

I am facing same issue

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.