Using new Inline Edit(GREAT!) along with standard Editor

I have preciously created my own custom LightBox. That all is good. I however want to allow the option for using Inline edit too.
Are there any best suggestions on how to have them co-exist nicely?

If I click/doubleclick now, the custom LightBox is displayed. Any examples on how to turn on/off inlide edit…e.g. toggle?

You can have custom lightbox and inline editing. By default inline editing opens after a single click and the lightbox after a double click. So you can edit tasks in the grid using inline editors and double click on the bar in the timeline to open the lightbox.
If you want a switch, you just need to change columns config. Here is an example: