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
- Star the project!
- Report a bug that you have found.
- Tweet and blog about content-formable.js and Let me know about it.
- Pull requests are also highly appreciated.
content-formable.js is under MIT License.
It was created & is maintained by Thomas ZILLIOX.