EditJS - Simple editable text with plain JS
These are editable fields. You can click on them to edit and save with CTRL+S or clicking the save button (top right).
This can be achieved only including a JS and a CSS file into your HTML and calling a JS function.
For creating an editable text, just surround it with a div, give it an id and "ejs" as class name.
You can access the value with the id or declaring a listener which is called on save (you can also access everything at once).
This library does only make editable text. No fancy other stuff.
For seeing a simple example, just open this pages source code.
Attention: Current code is just a single day project!
Attention: This is not optimized / tested for touch devices!
Github
|
Example code (for this page)