angular model for the "contenteditable" attribute
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.
 
 
Go to file
Dmitri Akatov 4e42e4d74c make non-editable sub-elements selectable by a single click 11 years ago
src make non-editable sub-elements selectable by a single click 11 years ago
test make non-editable sub-elements selectable by a single click 11 years ago
.editorconfig Initial commit 11 years ago
.gitattributes Initial commit 11 years ago
.gitignore ignore .idea directory 11 years ago
.jshintrc Initial commit 11 years ago
Gruntfile.coffee keep the built file in the main directory (for bower's sake) 11 years ago
README.md make non-editable sub-elements selectable by a single click 11 years ago
angular-contenteditable.js make non-editable sub-elements selectable by a single click 11 years ago
bower.json make non-editable sub-elements selectable by a single click 11 years ago
package.json make non-editable sub-elements selectable by a single click 11 years ago

README.md

angular-contenteditable

An AngularJS directive to bind html tags with the contenteditable attribute to models.

Install

bower install angular-contenteditable

Usage

angular.module('myapp', ['contenteditable'])
    .controller('Ctrl', function($scope){
        $scope.model="<i>interesting</i> stuff" })
<div ng-controller="Ctrl">
  <span contenteditable="true"
        ng-model="model"
        strip-br="true"
        select-non-editable="true"></span></div>

Development

npm install
grunt build
grunt karma:e2e