最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

javascript - JSjQuery Image Editor - Stack Overflow

programmeradmin1浏览0评论

has anyone stumbled upon image editor done either in pure JS, or jQuery - that kind like CKEditor has?

I'm looking for piece of code, that adds handles to image, so you can resize it, or even drag image around, as you wish.

Thank you.

Edit: rephrased.

has anyone stumbled upon image editor done either in pure JS, or jQuery - that kind like CKEditor has?

I'm looking for piece of code, that adds handles to image, so you can resize it, or even drag image around, as you wish.

Thank you.

Edit: rephrased.

Share Improve this question edited Feb 11, 2010 at 21:15 Adam Kiss asked Feb 11, 2010 at 21:07 Adam KissAdam Kiss 11.9k10 gold badges50 silver badges82 bronze badges
Add a comment  | 

4 Answers 4

Reset to default 4

Here is wonderful image crop/resize JQuery plugin http://www.cropzoom.com.ar/

Yes there are numerous online. Find here. jCrop is exceptional and awesome.

The way editors such as tinyMCE and CKEditor do it is like this

<div contenteditable="true" id="div1">
    <img src="tache17.jpg" />
</div>
<a href="javascript:alert(document.getElementById('div1').innerHTML)">gimme html</a>

It's a browser thing not a JS thing. Of course placing the image in the div and making the div contentEditable is done with JS but the resizing handles you are talking about are generated by the browser.
Note I haven't tested this in anything other than firefox

if you are looking for croopzoom and the website don't work? look at github -> https://github.com/cropzoom/cropzoom

发布评论

评论列表(0)

  1. 暂无评论