DataTables JS bin appears broken with buttons/editor plugins
DataTables JS bin appears broken with buttons/editor plugins
I'm trying to set up an example of, what might be, a bug on live.datatables.net and have stumbled on an issue when trying to demonstrate editor code. To reproduce, I've taken the example from https://editor.datatables.net/examples/simple/simple.html with minor adjustment to here:
http://live.datatables.net/maxiraji/1/edit?html,css,js,console,output
When I try to click any of the editor buttons I see an error in the embedded console:
"Script error. (line 0)"
In the Chrome console it shows the following:
Uncaught TypeError: Cannot read property 'oFeatures' of undefined
Perhaps this is an incompatibility with the live.datatables.net and buttons/editor api?
This question has an accepted answers - jump to answer
Answers
Adding
idSrc: 'name',
to your editor config should resolve the issue.Kevin
Doh, sorry about that Thanks!