Code Monkey home page Code Monkey logo

Comments (10)

akarl avatar akarl commented on August 15, 2024

+1

Edit:
Setting the directive to a higher priority seems make it work.

from ui-tinymce.

AGiorgetti avatar AGiorgetti commented on August 15, 2024

+1
I just run into this problem as well.
Setting the priority solved it for me too.

from ui-tinymce.

darul75 avatar darul75 commented on August 15, 2024

Oh I will try it, I need it too, thanks. Very nice explanations here too : http://iwang.github.io/html/angular/angularjs/2013/11/04/ngmodel-render-cannot-be-overriden-in-angular-rc3.html

fixed with priority set to 10:

{
priority: 10,
require: 'ngModel',
....
}

from ui-tinymce.

paulbhartzog avatar paulbhartzog commented on August 15, 2024

Where does the priority code go? More explanation please :-)

from ui-tinymce.

darul75 avatar darul75 commented on August 15, 2024

In your directive parameters, with your regular angular directive params.

return {
priority: 10,
require: 'ngModel',
scope: { model: '=ngModel'},
link: function (scope, elm, attrs, ngModel) {

  }

}
...

from ui-tinymce.

paulbhartzog avatar paulbhartzog commented on August 15, 2024

Thx. I dug around in the Angular docs until I learned about "priority" settings. It also solved this problem in my app as well.

It would be great if this very useful code had a way to inject a priority without tampering with the actual directive. :-)

from ui-tinymce.

akarl avatar akarl commented on August 15, 2024

@paulbhartzog You can do just that with a decorator. http://docs.angularjs.org/api/auto/object/$provide#decorator

from ui-tinymce.

darul75 avatar darul75 commented on August 15, 2024

@paulbhartzog will it be something like:

.config(function($provide) {
  $provide.decorator('uiTinymce', function($delegate) {
     $delegate.priority: 10
     return $delegate;
  })
})
;

Code not tested yet

from ui-tinymce.

nilshartmann avatar nilshartmann commented on August 15, 2024

+1 Setting priority to 10 works for me too (Angular v1.2.13)

from ui-tinymce.

wesleycho avatar wesleycho commented on August 15, 2024

This should now be solved via 82b6e30.

from ui-tinymce.

Related Issues (20)

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.