Demo

This demo shows a red box showing the bounding box of the selection in the textarea. Try it out by slecting text in the textarea. Check out the project here.

The box below is for debugging purposes and disappears if the debug flag is set to false or omitted.