Editor error with bootstrap display controller

Editor error with bootstrap display controller

mguinnessmguinness Posts: 85Questions: 12Answers: 1
edited July 2019 in Free community support

I'm having an issue getting the editor modal to automatically open in create mode. While working through the issue I discovered it worked when it wasn't using the bootstrap display controller plugin.

When using the default lightbox controller, it works as expected.

http://live.datatables.net/xoxezufa

However when using the bootstrap controller I get a TypeError.

http://live.datatables.net/senorafu

UPDATE: I was able to get it working, now looking to see why it won't work in my project. Possibly I'm using an older version of Editor library...

This question has an accepted answers - jump to answer

Answers

  • kthorngrenkthorngren Posts: 21,152Questions: 26Answers: 4,919
    Answer ✓

    The main problem is you need to load the Bootstrap CSS and JS files:
    http://live.datatables.net/howonoji/1/edit

    You aren't loading the Datatables Bootstrap integration files either. You can use the Download Builder to get the correct files. The Styling doc page discusses what is needed for full integration with the styling framework you want to use.

    Kevin

  • mguinnessmguinness Posts: 85Questions: 12Answers: 1

    Thanks Kevin, just after I'd submitted the question I noticed that also and fixed in it in JS Bin. Apologies for wasting your time (very quick response after submission).

    I was then able to figure out the problem in my project as the template used by the website was dynamically loading the bootstrap JS file which was causing my error.

This discussion has been closed.