Get undefined errors with Editor

Get undefined errors with Editor

socialgauravsocialgaurav Posts: 5Questions: 3Answers: 1
edited May 2018 in Free community support

Uncaught ReferenceError: define is not defined
at dataTables.editor.min.js1:1

and

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

on line:
editor = new $.fn.dataTable.Editor( {

I have following js loaded on my page

  1. jquery-3.2.1.min.js
  2. jquery.dataTables.1.10.16.min.js
  3. dataTables.fixedColumns.min.js
  4. dataTables.select.min.js
  5. dataTables.buttons.min.js
  6. dataTables.editor.min.js

Also when I directly try to check in developer tool console, I see following is not available:
$.fn.DataTable.Editor

although following is available to me:
$.fn.DataTable.FixedColumns

This question has an accepted answers - jump to answer

Answers

  • socialgauravsocialgaurav Posts: 5Questions: 3Answers: 1
    Answer ✓

    It is fixed.
    I took the latest editor js from the downloaded package rather than the link available on demo pages

  • allanallan Posts: 63,455Questions: 1Answers: 10,465 Site admin

    Thanks for posting back - yes, downloading the library is the correct thing to do!

    Allan

This discussion has been closed.