Editor not working in live.datatables.net environment
Editor not working in live.datatables.net environment
![kthorngren](https://secure.gravatar.com/avatar/f771e206ad0af801714b8375bc50eeb7/?default=https%3A%2F%2Fvanillicon.com%2Ff771e206ad0af801714b8375bc50eeb7_200.png&rating=g&size=120)
in General
I use this basic Editor template in the Datatables JS BIN environment:
https://live.datatables.net/guwafemu/374/edit
It now shows this error when loading the dataTables.editor.min.js:
Uncaught TypeError: Cannot read properties of undefined (reading '_fnExtend')
Kevin
Replies
Ah, some more fun with the DT2 stuff. I've removed some of the private APIs in DT2, which Editor 2.2.x and earlier use. So if you were to use DT 1.13.8 it would work fine.
There is no nightly build of Editor. It just uses whatever is on the Editor website, which is 2.2.2 atm.
Editor 2.3 will be released alongside DT2 to address this (and a number of other things
).
Allan
I figured it was something like that. Just brining it to your attention in case the problem was something else.
Kevin
Thanks! I think its okay in this case, but definitely worth checking. Colin flagged something earlier which was very broken and I'd missed.
Allan
Is there a good example of datatables/editor I can clone? Maybe it'd be a good idea to link one from https://editor.datatables.net/support/index. If there's one available, I'm missing it.
Here is a basic local editing example.
There isn't currently an Ajax editing example available on the live site.
Allan
There's a typo in the example link. For anyone following this see https://live.datatables.net/jorutoji/1/edit
Sorry but when I run this I see script error and no editor controls. See https://i.imgur.com/eGAhfN8.png
I thought I posted an updated example yesterday - must have not clicked the Post Comment button:
https://live.datatables.net/guwafemu/474/edit
Used the Download. Builder to generate the DT 2.0 CDN, etc.
I think something is not working correctly with using the nightlies in the JS Bin environment.
Kevin
The screenshot you posted is not running the updated example I provided. Did you try the updated link?
https://live.datatables.net/guwafemu/474/edit
Kevin
sorry I posted that without reloading, so I didn't see your updated link. I was doing that because Allan said he was getting 404 error on my png links. Your example works fine.
Happens to me sometimes too![:smile: :smile:](https://datatables.net/forums/resources/emoji/smile.png)
BTW, use the browser's console instead of the JS Bin console. You will see more useful error messages.
Kevin
Plus the performance of the Console in JSBin is terrible. I've had to kill my browser a number of times in the past when forgetting that. Always use the native console.
Allan
Thanks. I normally do, but it is a convenient way to see if any errors are happening, and it was simpler to put the screenshot into a single image. But yes for debugging the browser console is much better.