Edit In Place jQuery plugin for Bootstrap
Super basic edit-in-place jquery plugin for Bootstrap. Needed this for another project and thought it'd be cool to share it.
Getting Started
Prerequisites
- Bootstrap 3.3
- jQuery
Usage
Grab and import dist/eip.min.js
to your project.
Then change
<p>I want to become editable!</p>
to :
<p> <span class="whateveryouwant">I am now editable :D</span> </p>
Then add
$('.whateveryouwant').editable();
Options
onChange
: Callbackfunction()
when the input's value has been changed.
body
, table
and such.
TODO - Do not allow editable elements like - Refactor code, pretty sure we can improve a lot.
- Add support for others css frameworks or native.
- Find limitations and fix them.