{"id":2172,"date":"2022-08-30T15:22:39","date_gmt":"2022-08-30T15:22:39","guid":{"rendered":"https:\/\/unknownerror.org\/index.php\/2014\/01\/04\/angularjs-ui-tinymce-integration-issue-collection-of-common-programming-errors\/"},"modified":"2022-08-30T15:22:39","modified_gmt":"2022-08-30T15:22:39","slug":"angularjs-ui-tinymce-integration-issue-collection-of-common-programming-errors","status":"publish","type":"post","link":"https:\/\/unknownerror.org\/index.php\/2022\/08\/30\/angularjs-ui-tinymce-integration-issue-collection-of-common-programming-errors\/","title":{"rendered":"angularjs ui tinymce integration issue-Collection of common programming errors"},"content":{"rendered":"<p>I am having problem in integrating AngularJS UI tinymce in the app however it is working fine in jsbin demo:<\/p>\n<p>http:\/\/jsbin.com\/itevos\/2<\/p>\n<p>However in app I receive this error when I load the app:<\/p>\n<pre><code>Uncaught TypeError: Cannot read property 'form' of null\n<\/code><\/pre>\n<p>which references tiny_mce_jquery_src.js:11955 with that line number being:<\/p>\n<pre><code>var n = t.getElement().form;\n<\/code><\/pre>\n<p>In the app, I checked all js\/css files are loaded fine. This is what I have:<\/p>\n<pre><code>var app_htmleditor_module = angular.module('app_htmleditor', ['ui', 'components']).\n    config(['$routeProvider', function($routeProvider) {\n        $routeProvider.\n            when('\/', {\n                templateUrl: getBaseURL() + 'public\/tpl\/app\/htmleditor.htm',\n                controller: HtmlEditorCtrl,\n                reloadOnSearch:false\n            }).\n            otherwise( {redirectTo: '\/'});\n    }\n]);\n<\/code><\/pre>\n<p>And textarea:<\/p>\n<pre><code>\n<\/code><\/pre>\n<p>I tried wrapping textarea with <code>form<\/code> tag but still received the same error.<\/p>\n<p>Thanks for your help<\/p>\n<ol>\n<li>\n<p>@Dev555 There were issues with this directive but I know that we&#8217;ve updated recently. Please let us know if there are still problems. As an aside, angular-ui is in its early stages things change quite rapidly.<\/p>\n<\/li>\n<li>\n<p>I have copied your code and works fine, the only difference in mine is that I have only dependency with ui<\/p>\n<pre><code>angular.module('amiguiAdmin', ['amiguiAdmin.directives', 'ui'])\n<\/code><\/pre>\n<p>and also there is no form tag in the page.<\/p>\n<p>I hope this will help you.<\/p>\n<p>Regards<\/p>\n<\/li>\n<\/ol>\n<p id=\"rop\"><small>Originally posted 2014-01-04 02:51:03. <\/small><\/p>","protected":false},"excerpt":{"rendered":"<p>I am having problem in integrating AngularJS UI tinymce in the app however it is working fine in jsbin demo: http:\/\/jsbin.com\/itevos\/2 However in app I receive this error when I load the app: Uncaught TypeError: Cannot read property &#8216;form&#8217; of null which references tiny_mce_jquery_src.js:11955 with that line number being: var n = t.getElement().form; In the [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-2172","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/2172","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/comments?post=2172"}],"version-history":[{"count":0,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/2172\/revisions"}],"wp:attachment":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/media?parent=2172"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/categories?post=2172"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/tags?post=2172"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}