1.0.0 • Published 9 years ago

content-formable.js v1.0.0

Weekly downloads
2
License
MIT
Repository
github
Last release
9 years ago

content-formable.js

A lib to simulate content-editable with textarea, so it can be used in forms.

Quick start

npm install content-formable.js
<form name="myFormName">
  <div data-cf-editable>
    This content is editable and could be submit.
  </div>
  <div data-cf-editable="content">
    This will be submit under the name "content"
  </div>
  <div data-cf-if="content">
    This container has a class "cf-hidden" if content is empty.
  </div>
</form>

<script>
  contentFormable('myFormName');
</script>

How to Contribute

  1. Star the project!
  2. Report a bug that you have found.
  3. Tweet and blog about content-formable.js and Let me know about it.
  4. Pull requests are also highly appreciated.

Author & Community

content-formable.js is under MIT License. It was created & is maintained by Thomas ZILLIOX.

1.0.0

9 years ago