JS/jQuery Image Editor

南笙酒味 提交于 2019-11-30 09:03:35
Anonymous

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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!