项目作者: mehdibo

项目描述 :
Small jQuery plugin to edit an inline image
高级语言: JavaScript
项目地址: git://github.com/mehdibo/jquery-imgedit.git
创建时间: 2018-01-22T16:29:30Z
项目社区:https://github.com/mehdibo/jquery-imgedit

开源协议:MIT License

下载


jquery-imgedit

This is a small plugin to edit an inline image, what does this plugin do is make an image editable by clicking on it and uploading a new one with a preview (it replaces the original clicked image) then the plugin adds a file input to the target form.

Example

the index.html page shows a simple example

Documentation

First you need to load the jQuery library and then the imgEdit plugin.

<script src='./src/imgEdit.js'></script>

then add this code

  1. $("YOUR IMG TAG SELECTOR").imgEdit({
  2. inputName : "THE CREATED INPUT'S NAME",
  3. form : "THE TARGET FORM WHERE THE INPUT WILL BE CREATED",
  4. });

Contributing

All contributions are welcome