Select2 and CDN

Select2 and CDN

zajczajc Posts: 67Questions: 10Answers: 2

If we use this source: https://cdn.datatables.net/s/bs-3.3.5/jqc-1.11.3,moment-2.10.6,select2-4.0.0,dt-1.10.10,b-1.1.0,ef-select2-4.0.0,ef-title-1.0.0,se-1.1.0/datatables.min.js and a Select2 type field we are getting an error "Uncaught TypeError: Cannot read property 'safeId' of undefined" @ datatables.min.js.

If we use the latest js plugin source from https://editor.datatables.net/plug-ins/download?q=field-type/editor.select2.js it works fine.

Replies

  • allanallan Posts: 63,679Questions: 1Answers: 10,498 Site admin

    Have you also included the Editor source? Editor is not available on the CDN.

    Allan

  • zajczajc Posts: 67Questions: 10Answers: 2

    You can remove this thread I just made a mistake.

  • zajczajc Posts: 67Questions: 10Answers: 2

    Well, it really doesn't work. Here is an example, directly from the generator:

    https://zajc.xyz/hasdjh/test.html

    I get the following error:
    Cannot read property 'safeId' of undefined

  • allanallan Posts: 63,679Questions: 1Answers: 10,498 Site admin

    Thank you for the link. I believe this will be resolved with the next release of the Select2 plug-in for Editor, but I will double check when I get into the office on Monday.

    Allan

This discussion has been closed.