Uncaught TypeError: $.fn.dataTable.Editor is not a constructor

Uncaught TypeError: $.fn.dataTable.Editor is not a constructor

nivappwebnivappweb Posts: 5Questions: 3Answers: 0

Hi,
I get the following error:

:276 Uncaught TypeError: $.fn.dataTable.Editor is not a constructor
at HTMLDocument.<anonymous> ((index):276)
at i (datatables.min.js:14)
at Object.fireWith [as resolveWith] (datatables.min.js:14)
at Function.ready (datatables.min.js:14)
at HTMLDocument.K (datatables.min.js:14)

I've updated all the files as follows:
https://www.screencast.com/t/rcOwOC5Z14H

What can I do?

This question has an accepted answers - jump to answer

Answers

  • kthorngrenkthorngren Posts: 21,166Questions: 26Answers: 4,921
    edited November 2019 Answer ✓

    According to the screenshot you aren't loading editor.js. Take a look at this example to see what to load. Also the installation doc specifices what needs to be loaded.

    Looks like you might not be loading the Editor files locally. Note this in the install docs:

    The DataTables CDN provides a convenient way to load files that are already hosted on the internet and includes all of our open source software. Editor needs to be hosted locally due to its commercial nature, so the HTML to include the required CSS and Javascript will look like this:

    Kevin

  • nivappwebnivappweb Posts: 5Questions: 3Answers: 0

    You are right! Thank you very much for your time

This discussion has been closed.