angularjs ui tinymce integration issue
I am having problem in integrating AngularJS UI tinymce in the app however it is working fine in jsbin demo (which I created as suggested by [@Andy Joslin][1] to use latest tinymce directive in my [previous question][2]):

http://jsbin.com/itevos/2

However in app I receive this error when I load the app:

    Uncaught TypeError: Cannot read property 'form' of null

which references tiny_mce_jquery_src.js:11955 with that line number being:

    var n = t.getElement().form;

In the app, I checked all js/css files are loaded fine. This is what I have:

    var app_htmleditor_module = angular.module('app_htmleditor', ['ui', 'components']).
        config(['$routeProvider', function($routeProvider) {
            $routeProvider.
                when('/', {
                    templateUrl: getBaseURL() + 'public/tpl/app/htmleditor.htm',
                    controller: HtmlEditorCtrl,
                    reloadOnSearch:false
                }).
                otherwise( {redirectTo: '/'});
        }
    ]);

And textarea:

    <textarea ui-tinymce ng-model="tinymce" id="{{fileUploaderID}}_html_tab" name="{{fileUploaderID}}_html_tab"></textarea>


I tried wrapping textarea with `form` tag but still received the same error.

Thanks for your help

  [1]: http://stackoverflow.com/users/1397051/andy-joslin
  [2]: http://stackoverflow.com/questions/11390709/angularjs-navigation-does-not-work-after-tinymce-directive
angularjs ui tinymce integration issue
===

I am having problem in integrating AngularJS UI tinymce in the app however it is working fine in jsbin demo (which I created as suggested by [@Andy Joslin][1] to use latest tinymce directive in my [previous question][2]):

http://jsbin.com/itevos/2

However in app I receive this error when I load the app:

    Uncaught TypeError: Cannot read property 'form' of null

which references tiny_mce_jquery_src.js:11955 with that line number being:

    var n = t.getElement().form;

In the app, I checked all js/css files are loaded fine. This is what I have:

    var app_htmleditor_module = angular.module('app_htmleditor', ['ui', 'components']).
        config(['$routeProvider', function($routeProvider) {
            $routeProvider.
                when('/', {
                    templateUrl: getBaseURL() + 'public/tpl/app/htmleditor.htm',
                    controller: HtmlEditorCtrl,
                    reloadOnSearch:false
                }).
                otherwise( {redirectTo: '/'});
        }
    ]);

And textarea:

    <textarea ui-tinymce ng-model="tinymce" id="{{fileUploaderID}}_html_tab" name="{{fileUploaderID}}_html_tab"></textarea>


I tried wrapping textarea with `form` tag but still received the same error.

Thanks for your help

  [1]: http://stackoverflow.com/users/1397051/andy-joslin
  [2]: http://stackoverflow.com/questions/11390709/angularjs-navigation-does-not-work-after-tinymce-directive