Editable-Placeholder
ContentEditable placeholder for use with nickjackson/editable
Introduction
This component is a plugin to use with nickjackson/editable
.
Installation
$ component install nickjackson/editable
Example
var Editable = Placeholder = el = document display = true ph = ; ;
API
Placeholder(text, display);
text
- string you wish to be displayed in the placeholderdisplay
- displaytext
on initalize (boolean)
Returns a wrapper function with the main argument requring an instance of Editable
.
Todo
- Test on other browsers. Currently only tested on Chrome OSX.
License
MIT