sstur/ck-webkitdrag — pull request #1 by quicksketch (2012-12-01 03:34:57+00:00)
Title: Add Undo support

Thanks for the great plugin. It needed a small amount tweaking to get it working with CKEditor 4.x, but it works great!

I found a few issues with the plugin that I addressed in this patch. Unfortunately I combined all the changes, which include:

- Added undo support so you can go back to your previously sized image.
- The resize handles are moved to inside the "preview" div. This makes it so that the handles resize with the rest of the preview instead of disappearing once you start dragging.
- Consolidated the CSS to use double-ended arrows (i.e. nwse-resize instead of nw-resize), since you can scale images down as well as up.
- Added a resize monitor to adjust the position of the handles when resizing the editor or entire window.
- And of course this now works on CKEditor 4.x. I believe this is compatible with CKEditor 3.x still.