If you are looking for a compatible placeholder that works with input and textarea, it's not for you.
$ component install lepture/placeholder
This is a fake placeholder for contenteditable element, it only support sane browsers.
Your element should contain a data-placeholder
:
<div contenteditable data-placeholder="Your content here"></div>
Enable the placeholder:
var placeholder = require('placeholder');
// enable for all elements that has [data-placeholder]
placeholder();
// enable for specified elements
placeholder($('#editable'));
MIT