bergie / hallo

Simple rich text editor (contentEditable) for jQuery UI
http://hallojs.org/
MIT License
2.43k stars 314 forks source link

New Image plugins #188

Open grobmeier opened 11 years ago

grobmeier commented 11 years ago

I was not so happy with the size of the current image plugin. So I worked the past days to create my own, which I have licensed MIT.

Please see: https://github.com/grobmeier/hallo/tree/master/src/plugins

image_select.coffee Plugin to select images on click. Base plugin for others.

image_float.coffee Plugin to select an image and let them float.

image_size.coffee Plugin to select an image and reduce or increase size

image_insert_url.coffee Plugin which lets the user add an image by url

image_browser.coffee Simple browser plugin which loads a selection of images from a backend.

These plugins replace the current image.coffee, image_insert_edit.coffee and everything inside the image folder. These plugs where - imho - to complex. At least I was not able to fix them.

An example how to use them can be found here: https://github.com/grobmeier/hallo/blob/master/examples/images-edit.html

If you like them, please consider to replace the existing plugins with the new ones. I am going to write a simple upload plugin in the same vein pretty soon.

Cheers

grobmeier commented 11 years ago

Demo, also showing simple upload plugin: http://temp.grobmeier.de/hallojs/examples/images-edit.html

Feedback welcome!

fozcode commented 8 years ago

Well I for one prefer your image plugins, thanks for your work. I had to make one change in the image-select plugin, maybe for my version of jQuery? I just changed b.originalEvent.originalEvent.srcElement to b.originalEvent.target.