Editor not working in live.datatables.net environment

Editor not working in live.datatables.net environment

kthorngrenkthorngren Posts: 21,443Questions: 26Answers: 4,974

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

  • allanallan Posts: 63,679Questions: 1Answers: 10,498 Site admin

    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

  • kthorngrenkthorngren Posts: 21,443Questions: 26Answers: 4,974

    I figured it was something like that. Just brining it to your attention in case the problem was something else.

    Kevin

  • allanallan Posts: 63,679Questions: 1Answers: 10,498 Site admin

    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

  • loukinglouking Posts: 259Questions: 52Answers: 0

    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.

  • allanallan Posts: 63,679Questions: 1Answers: 10,498 Site admin

    Here is a basic local editing example.

    There isn't currently an Ajax editing example available on the live site.

    Allan

  • loukinglouking Posts: 259Questions: 52Answers: 0

    There's a typo in the example link. For anyone following this see https://live.datatables.net/jorutoji/1/edit

  • loukinglouking Posts: 259Questions: 52Answers: 0

    Sorry but when I run this I see script error and no editor controls. See https://i.imgur.com/eGAhfN8.png

  • kthorngrenkthorngren Posts: 21,443Questions: 26Answers: 4,974
    edited March 13

    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

  • loukinglouking Posts: 259Questions: 52Answers: 0

  • kthorngrenkthorngren Posts: 21,443Questions: 26Answers: 4,974

    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

  • loukinglouking Posts: 259Questions: 52Answers: 0
    edited March 13

    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.

  • kthorngrenkthorngren Posts: 21,443Questions: 26Answers: 4,974
    edited March 13

    I posted that without reloading

    Happens to me sometimes too :smile:

    BTW, use the browser's console instead of the JS Bin console. You will see more useful error messages.

    Kevin

  • allanallan Posts: 63,679Questions: 1Answers: 10,498 Site admin

    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

  • loukinglouking Posts: 259Questions: 52Answers: 0

    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.

Sign In or Register to comment.