https://github.com/morgul/editables
A collection of AngularJS directives to enable inline editing and binding of models to html, using content editable.
https://github.com/morgul/editables
Last synced: 2 months ago
JSON representation
A collection of AngularJS directives to enable inline editing and binding of models to html, using content editable.
- Host: GitHub
- URL: https://github.com/morgul/editables
- Owner: Morgul
- License: mit
- Created: 2013-05-28T21:55:30.000Z (about 12 years ago)
- Default Branch: master
- Last Pushed: 2013-06-04T20:41:36.000Z (almost 12 years ago)
- Last Synced: 2025-01-28T01:25:43.744Z (4 months ago)
- Language: JavaScript
- Homepage: http://morgul.github.io/editables/
- Size: 188 KB
- Stars: 1
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: Readme.md
- License: LICENSE
Awesome Lists containing this project
README
# Editables
This project provides a collection of AngularJS directives for doing inline editing and binding on html elements, using `contenteditable`.
In short, it's like the [x-editable](http://vitalets.github.io/x-editable/) project, only nicer, and using `contenteditable`.## Example
Here is a very basic example:
```html
Placeholder here...
``````html
Placeholder here...
```This would bind to the `title` model in the same way you would bind to an `` element.
## More
There's a lot more editables can do, including provide a slim WYSIWYG editor in a minimal amount of code:
```html
Type here...
```That's it! For more examples, see the demo.html page. (You can run this with `npm start` on the command line. Remember to
`npm install` first, however!)## Contributions
Contributions are welcome. Just fork, fix, and pull request!
## License
All code is MIT Licensed. Please see the `LICENSE` for details.