GithubHelp home page GithubHelp logo

Comments (6)

honeyd avatar honeyd commented on June 16, 2024

I verified this morning that this is a problem specific to AngularJS 1.2.0-rc3. Everything works great in AngularJS 1.2.0-rc2. Someone has already submitted an issue to AngularJS. Essentially, ngModel.$render is not successfully reassigned in the directive.

angular/angular.js#4560

from ui-tinymce.

integry avatar integry commented on June 16, 2024

I got around this issue by adding this code:

var stopWatch = scope.$watch(attrs.ngModel, function(newValue)
{
    if (!tinyInstance) 
    {
        tinyInstance = tinymce.get(attrs.id);
    }

    if (tinyInstance) 
    {
        tinyInstance.setContent(newValue);
        stopWatch();
    }
});

before

ngModel.$render = function() {

from ui-tinymce.

iwang avatar iwang commented on June 16, 2024

A simple fix is to add a positive priority in tinymce directive. In case you want to know more
http://iwang.github.io/html/angular/angularjs/2013/11/04/ngmodel-render-cannot-be-overriden-in-angular-rc3.html

from ui-tinymce.

jamesfm avatar jamesfm commented on June 16, 2024

The priority fix clearly documented by @iwang worked like a dream. Genius!

from ui-tinymce.

wesleycho avatar wesleycho commented on June 16, 2024

This looks like it is now fixed in master - let me know otherwise.

from ui-tinymce.

JohannMarx avatar JohannMarx commented on June 16, 2024

iWang's solution worked for me too - thanks!

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.