{"id":3415,"date":"2014-03-24T19:40:39","date_gmt":"2014-03-24T19:40:39","guid":{"rendered":"https:\/\/unknownerror.org\/index.php\/2014\/03\/24\/ckeditor-close-destroy-instance-with-php-collection-of-common-programming-errors-2\/"},"modified":"2014-03-24T19:40:39","modified_gmt":"2014-03-24T19:40:39","slug":"ckeditor-close-destroy-instance-with-php-collection-of-common-programming-errors-2","status":"publish","type":"post","link":"https:\/\/unknownerror.org\/index.php\/2014\/03\/24\/ckeditor-close-destroy-instance-with-php-collection-of-common-programming-errors-2\/","title":{"rendered":"CKeditor close\/destroy instance with PHP-Collection of common programming errors"},"content":{"rendered":"<p>I feel like I have been searching the web dry about this.<\/p>\n<p>When using CKeditor with PHP, you are still only allowed one instance open with same name.<\/p>\n<p>If you have more you get:<\/p>\n<pre><code>The instance \"yourname\" already exists.\n<\/code><\/pre>\n<p>error.<\/p>\n<p>I see a lot of people solving this by closing\/destroying the instance with jquery or javascript.<\/p>\n<p>This guy is having the same problem: CKEditor: Cannot call method &#8216;destroy&#8217; of undefined<\/p>\n<p>One solution is to leave the name blank, then you can create as many instance as you like. But this is not a good solution for me, as I need the name to send $_post.<\/p>\n<p><strong>So does anyone know how to destroy\/close an instance in CKeditor with PHP?<\/strong><\/p>\n<p><strong>EDIT:<\/strong> Fixed it in no time switching to javascript: CKEditor instance already exists<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I feel like I have been searching the web dry about this. When using CKeditor with PHP, you are still only allowed one instance open with same name. If you have more you get: The instance &#8220;yourname&#8221; already exists. error. I see a lot of people solving this by closing\/destroying the instance with jquery or [&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-3415","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/3415","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=3415"}],"version-history":[{"count":0,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/3415\/revisions"}],"wp:attachment":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/media?parent=3415"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/categories?post=3415"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/tags?post=3415"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}