JS/jQuery Image Editor

前端 未结 4 1119
春和景丽
春和景丽 2020-12-31 12:09

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

相关标签:
4条回答
  • 2020-12-31 12:43

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

    0 讨论(0)
  • 2020-12-31 12:46

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

    0 讨论(0)
  • 2020-12-31 12:46

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

    0 讨论(0)
  • 2020-12-31 13:02

    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

    0 讨论(0)
提交回复
热议问题