Editor > Basics

Editor > Basics

qqashishqqashish Posts: 34Questions: 10Answers: 0

Link to test case:
Debugger code (debug.datatables.net):
Error messages shown:
Description of problem: I am able to run example in live.datatables.

http://live.datatables.net/vegucuye/2/edit

However, exact same HTML,JS doesn't fetch run on JSFIDDLE.

https://jsfiddle.net/#&togetherjs=zJiE9RMUKt

What am I missing ?

Answers

  • kthorngrenkthorngren Posts: 20,895Questions: 26Answers: 4,870

    The jsfiddle link doesn't seem to be pulling up your test case. Please verify the correct url.

    Kevin

  • qqashishqqashish Posts: 34Questions: 10Answers: 0

    pl try

    https://jsfiddle.net/u4to21sy/

    {else, request you to paste in JSFIDDLE plz }

  • kthorngrenkthorngren Posts: 20,895Questions: 26Answers: 4,870

    You are getting this error in the console:

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

    Since Editor is a licensed app it is only allowed to be installed from a local resource. Using https://editor.datatables.net won't work. However within the live.datatables.net environment you can load it this way as it is controlled by the Datatables development team.

    Kevin

  • qqashishqqashish Posts: 34Questions: 10Answers: 0

    Exact same html and js file I created n try to run on localhost. Still no data..

  • kthorngrenkthorngren Posts: 20,895Questions: 26Answers: 4,870

    Do you get the same error?

    Are you loading Editor from a local resource, ie, not https://editor.datatables.net?

    Kevin

  • qqashishqqashish Posts: 34Questions: 10Answers: 0

    Yes error

    jquery-3.5.1.js:4055 Uncaught TypeError: $.fn.dataTable.Editor is not a constructor
    at HTMLDocument.<anonymous> (Editor.js:9)
    at mightThrow (jquery-3.5.1.js:3762)
    at process (jquery-3.5.1.js:3830)

  • qqashishqqashish Posts: 34Questions: 10Answers: 0

    I just copy and paste and created files from live.datatables.net running code. its throwing single error.

  • allanallan Posts: 62,746Questions: 1Answers: 10,322 Site admin

    If you just copied the code directly from our site, it is copy protected to run only on our domains - which is why it won't be working for you. It should actually be showing an error in the console if that were done - hopefully if you scroll up in the console?

    To get it to run locally, download the trial from the Editor download page.

    Allan

This discussion has been closed.