GithubHelp home page GithubHelp logo

Comments (5)

ma2ciek avatar ma2ciek commented on August 24, 2024 1

Bear in mind that CKEditor 5 doesn't run on IE11. If you're interested in this topic please vote there or leave a note, we're experimenting with it a little now.

from ckeditor5-vue.

Livijn avatar Livijn commented on August 24, 2024

For now I created a mixin that loads the script dynamically from the CDN.

export default {
    methods: {
        loadScript(src, callback = null) {
            let script = document.createElement('script');
            script.setAttribute('src', src);
            script.addEventListener('load', callback);
            document.head.appendChild(script)
        },
    }
}

Then I use it like this, along with a v-if="editor" on the <ckeditor>

created() {
    this.loadScript('https://cdn.ckeditor.com/ckeditor5/12.0.0/classic/ckeditor.js', _ => {
        this.editor = window.ClassicEditor;
    })
},

from ckeditor5-vue.

Mgsy avatar Mgsy commented on August 24, 2024

Hello, please take a look at our guide about integrating CKEditor 5 with Vue.js. Does it solve your problem?

from ckeditor5-vue.

Livijn avatar Livijn commented on August 24, 2024

No, since I need support for IE 11. I was using https://ckeditor.com/docs/ckeditor5/latest/builds/guides/integration/frameworks/vuejs.html#using-es6-modules before.

from ckeditor5-vue.

Livijn avatar Livijn commented on August 24, 2024

Ok, then we can close this.

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.