{"id":3558,"date":"2014-03-28T10:36:35","date_gmt":"2014-03-28T10:36:35","guid":{"rendered":"https:\/\/unknownerror.org\/index.php\/2014\/03\/28\/niceditor-not-working-referenceerror-bklib-collection-of-common-programming-errors\/"},"modified":"2014-03-28T10:36:35","modified_gmt":"2014-03-28T10:36:35","slug":"niceditor-not-working-referenceerror-bklib-collection-of-common-programming-errors","status":"publish","type":"post","link":"https:\/\/unknownerror.org\/index.php\/2014\/03\/28\/niceditor-not-working-referenceerror-bklib-collection-of-common-programming-errors\/","title":{"rendered":"NicEditor not working ReferenceError: bkLib-Collection of common programming errors"},"content":{"rendered":"<p>I got a problem with my NicEditor. If I use a simple html page which is like this:<\/p>\n<pre><code>\n\n\nbkLib.onDomLoaded(nicEditors.allTextAreas);\n\n\n\n\n\n<\/code><\/pre>\n<p>Which is okay. But what happens is im using a index.page which has a navigation pane and a DIV container pane which will be change after I selected a menu in the navigation pane using this code<\/p>\n<pre><code>$('table#messages tr td a').click(function(){\n    \/\/Content Manipulation\n    var page = $(this).attr('href');\n    page = page.replace('#','');\n    $('#content').load('message.details.php?messageid='+page);\n\n    return false;\n});\n<\/code><\/pre>\n<p>I tried to include the NicEditor Script in the index.php but it seems the of the message.detail.php was not converted into NicEditor. I also tried to include NicEditor Script to the message.detail.php but it gives an error of &#8220;Uncaught ReferenceError: bkLib is not defined&#8221;<\/p>\n<p><strong>Message Detail Page<\/strong><\/p>\n<pre><code>\nbkLib.onDomLoaded(nicEditors.allTextAreas);\n\n\n    \n        \n    \n\n<\/code><\/pre>\n<p>I hope you understand what I&#8217;m trying to say.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I got a problem with my NicEditor. If I use a simple html page which is like this: bkLib.onDomLoaded(nicEditors.allTextAreas); Which is okay. But what happens is im using a index.page which has a navigation pane and a DIV container pane which will be change after I selected a menu in the navigation pane using this [&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-3558","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/3558","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=3558"}],"version-history":[{"count":0,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/3558\/revisions"}],"wp:attachment":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/media?parent=3558"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/categories?post=3558"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/tags?post=3558"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}