You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
This repo is archived. You can view files and clone it, but cannot push or open issues/pull-requests.
angular-contenteditable/README.md

34 lines
584 B
Markdown

11 years ago
# angular-contenteditable
An AngularJS directive to bind html tags with the `contenteditable` attribute to models.
## Install
```bash
bower install angular-contenteditable
```
11 years ago
## Usage
```javascript
angular.module('myapp', ['contenteditable'])
.controller('Ctrl', function($scope){
$scope.model="<i>interesting</i> stuff" })
```
11 years ago
```html
<div ng-controller="Ctrl">
<span contenteditable="true"
ng-model="model"
strip-br="true"
select-non-editable="true"></span></div>
11 years ago
```
## Development
```bash
npm install
grunt build
grunt karma:e2e
```