An open API service indexing awesome lists of open source software.

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.

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.