Git Product home page Git Product logo

angular-contenteditable's Introduction

Hi there πŸ‘‹

angular-contenteditable's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

angular-contenteditable's Issues

minify fails

When I use this component in dev-mode it is fine. But when it is minified, it cause the app to fail.

IE10 contenteditable div not bound to ng-model

Simply put, IE10 isn't updating the model when the contenteditable div is edited. The template code in question is:

<div class="profile-label" ng-model="item.label" contenteditable="true"></div>
<div class="profile-description" ng-model="item.description" contenteditable="true"></div>

edit: After further testing, it's just IE10.

New bower package version?

just tested the contenteditable element with your newest code and not with the bower package, and suddenly there is no 'digest already in progress' error (I made a pull request for that)..

so can you please update the bower package! thank you!

Error: [$rootScope:inprog] $digest already in progress

I'm using ng-focus on my element:

    <div contenteditable="true"
          ng-model="target"
          ng-focus="showMeta()"
          ng-blur="saveIt()">
    </div>

Don't know why but I'm getting an error:
Error: [$rootScope:inprog] $digest already in progress

separate directive name

such as not to pollute the default contenteditable attribute. e.g. ngContenteditable.
Maybe incorporate the ngModel attribute value into ngContenteditable

Strange effects when copying content of specific elements into contenteditable element

Hi,
I'm not sure if this is an issue which is related to the module per se, but it even if not, maybe you have an idea what's going on here.

http://plnkr.co/edit/d0hZx45mvLzn3OCdLg4h?p=preview

Steps:

  1. select & copy "heading"
  2. paste it into the contenteditable field
  3. When you have heading and paste it into contenteditable heading or p, out of nowhere completely new dom nodes are created for each paste element, not inside the contenteditable element, but as siblings to it.

Browser is FF25.

Type Error on pageload with a div that has contenteditable attribute

TypeError: Object [object Object] has no method 'get'
at ngModel.$render (/javascripts/lib/angular/angular-contenteditable.js:56:23)

When a page loads containing a div with the contenteditable attribue, angular-contenteditable throws a type error. If ng-model is removed from the div, angular-contenteditable doesn't return an error. If contenteditable="false", the error remains.

Happy to provide any additional info.

not working in ng-repeat

I have used like the code below and it's not working.

 <div class="list card listinfo" ng-repeat="(key,dtls)  in ddetails.details">
  <h2 contenteditable="true" ng-model="dtls.title"></h2>
   <p contenteditable="true"  ng-model="dtls.subtitle"></p>
  </div>

I have also tried like this


   <div class="list card listinfo" ng-repeat="(key,dtls)  in ddetails.details">
      <h2 contenteditable="true" ng-model="ddetails.details[key].title"></h2>
       <p contenteditable="true"  ng-model="ddetails.details[key].subtitle"></p>
  </div>

Not installable through npm

Hello !

First, thanks for your work.

I saw you use npm to develop your module. No problem with that, but it is unfortunate that, consequently, it is not installable for ones that do not use bower but only npm.

Is it possible to change "install": "bower install"Β into "start": "bower install" ?

Fails with circular error

I've got
[10:29:49.912] "Error: Circular dependency:
getService@http://localhost:8081/lib/angular/angular.js:2884
invoke@http://localhost:8081/lib/angular/angular.js:2909
instantiate@http://localhost:8081/lib/angular/angular.js:2943
@http://localhost:8081/lib/angular/angular.js:5368
update@http://localhost:8081/lib/angular/angular.js:16188
Scope.prototype.$broadcast@http://localhost:8081/lib/angular/angular.js:9176
updateRoute/<@http://localhost:8081/lib/angular/angular.js:8201
qFactory/defer/deferred.promise.then/wrappedCallback@http://localhost:8081/lib/angular/angular.js:7509
qFactory/defer/deferred.promise.then/wrappedCallback@http://localhost:8081/lib/angular/angular.js:7509
qFactory/ref/<.then/<@http://localhost:8081/lib/angular/angular.js:7582
Scope.prototype.$eval@http://localhost:8081/lib/angular/angular.js:8926
Scope.prototype.$digest@http://localhost:8081/lib/angular/angular.js:8789
Scope.prototype.$apply@http://localhost:8081/lib/angular/angular.js:9012
done@http://localhost:8081/lib/angular/angular.js:10265
completeRequest@http://localhost:8081/lib/angular/angular.js:10449
createHttpBackend/</xhr.onreadystatechange@http://localhost:8081/lib/angular/angular.js:10407
"

this is the usage in the html

<div class="aboutBoxText"  >
  <span contenteditable="{{onMyPage}}"<!--also fails with just true here--> ng-model="user.bio" strip-br="true" select-non-editable="true">
  </span>
  <!--{{ user.bio }}//checking if this the problem-->
</div>

But it fails even when I don't use it in the html, just including it in the controller dependencies breaks the app. I also tried to include the dependency first in app.module, but then it fails with no 'contenteditable' module.

any clues?

Accept Tab Character

Hi...your code works fine for me.

Can we have the feature that accepts the 'Tab' character inside
contenteditable div..

Thanks .

Angular 1.2.0

Hi, any plans to update the dependency of the unstable 1.1.5 to stable 1.2.0?
I know it just got released, but it helps me planning updating my sources ;)

Thanks!

Force refocus

I have seen this code in the project.

if (html === '') {
  // the cursor disappears if the contents is empty
  // so we need to refocus
  $timeout(function(){
    $element[0].blur()
    $element[0].focus()
  })
}

I tried to remove it and it does nothing, which browsers are targeted ?

Space showing &nbsp; in different view

Hey,

I use two different views and one of them contenteditable. When I start to type in contenteditable view on each space I see "Β ".
screen shot 2015-01-13 at 4 23 32 pm

Any ideas what I can do with that?

Thanks,
Pavel

XSS query

Would it be useful to run $sanitize on content of model when model->view, in order to avoid XSS? (I have posted a proposed pull request).

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.