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

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

mehdibouzidimehdibouzidi Posts: 3Questions: 2Answers: 0
edited November 2019 in Free community support

I just downloaded the trail version of editor but can't get it to work.

My index:
<link type="text/css" href="/js/editor/editor.dataTables.min.css" rel="stylesheet" />
<script type="text/javascript" src="/js/editor/dataTables.editor.min.js"></script>

My js:
$(document).ready(function() {
editor = new $.fn.dataTable.Editor( {} );

Im aware the js is not complete, right now im adding editor to an existing datatables project. Also, the files give me a 404 status in the network tab.

This question has an accepted answers - jump to answer

Answers

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

    Also, the files give me a 404 status in the network tab.

    That would likely cause the error since the files aren't being loaded. You will need to place the files in the proper location on your server. That path is specific to your environment.

    Kevin

This discussion has been closed.