Skip to content
This repository has been archived by the owner on Apr 4, 2019. It is now read-only.

yields/editable-placeholder

Repository files navigation

editable-placeholder

Editable placeholder.

Installation

$ component install yields/editable-placeholder

Example

<h1></h1>
<div></div>

<script>
  var placeholder = require('editable-placeholder')
    , div = document.querySelector('div')
    , h1 = document.querySelector('h1');

  div.contentEditable = true;
  h1.contentEditable = true;

  placeholder(h1, 'Type a title');
  placeholder(div, 'Type your post');
</script>

License

MIT

About

Editable placeholder a la medium.com

Resources

Stars

Watchers

Forks

Packages

No packages published

Contributors 3

  •  
  •  
  •