YUI: Image Editor (like) example

This example combines the following examples:

Instructions:

Click the Add Text button to add some dynamic text in a resizable container. Double Click the text to edit it.

Click the Add Image button to add an image from my server. Double Click that image to toggle the ability to resize.

The only issue that I did not tackle in this example is that you can resize the element to make it "escape" from the bounding box.

The Javascript

source.js file - region.js file