Low fire danger web development
Low Fire Danger develops web applications for businesses and startups. We design, engineer and develop user experiences to make your web application a pleasure to use.
We will also help you with your business and strategise your online presence. Giving you advice and guiding you through every step, from conception to execution. Lets talk: contact@lowfiredanger.com.au

lightModal - a Lightweight Lightbox/modal in Coffeescript

I recently made a really lightweight modal box to use on one of our projects LessPlan. There was a need to have a instance of tinyMCE within a modal/lightbox when creating a lesson plan.

What I found was most existing modal/lightbox plugins was that they were incompatible with tinyMCE because they cloned the contents of a specified div before placing it into the actual lightbox container.

LightModal does away with the cloning and makes the content itself turn into a lightbox, therefore throwing away the need to clone the html.

It’s written in CoffeeScript as a jquery plugin and includes tests written with Jasmine BDD testing framework. Released under the MIT licence.

Get the source and demo here