ckeditor5 Cannot read property 'create' of undefined

ckeditor5 Cannot read property 'create' of undefined

solucionessoluciones Posts: 12Questions: 5Answers: 0

Hi,

I followed your instructions to integrate the plugin ckeditor5.

I want to integrate ckeditor 5 and I added js / editor.ckeditor5.js
and below the JS code of your page, https://editor.datatables.net/plug-ins/field-type/editor.ckeditor5

My field

{ "label": "Descripcion:", "name": "trabajos.descripcion", "type": "ckeditorClassic" },

But I have an Error,

editor.ckeditor5.js:93 Uncaught TypeError: Cannot read property 'create' of undefined

Can you help me?

Replies

  • colincolin Posts: 15,179Questions: 1Answers: 2,590

    Hi @soluciones ,

    Can you confirm you've included the JS for for CKEditor and also for that plugin. I suspect the problem will be in the order that you're including them. If that doesn't help, could you link to your page, please.

    Cheers,

    Colin

  • solucionessoluciones Posts: 12Questions: 5Answers: 0

    Hi,

    First I put js / editor.ckeditor5.js and after

    <script> (function( factory ){ if ( typeof define === 'function' && define.amd ) {

    I attached a link to the screenshot

    https://prnt.sc/md8elc

    It's an administrator, If you need to see the error, I created a user

    Thanks

  • allanallan Posts: 61,972Questions: 1Answers: 10,160 Site admin

    That error suggests that window.ckeditorClassic doesn't exist in your document. You can check that by just typing that into the console and pressing return - my guess is that it will show undefined.

    Have you loaded CKEditor Classic's Javascript? Perhaps you can link to the page please?

    Allan

This discussion has been closed.