{"id":7969,"date":"2015-11-14T05:28:57","date_gmt":"2015-11-14T05:28:57","guid":{"rendered":"https:\/\/unknownerror.org\/index.php\/2015\/11\/14\/how-to-set-focus-on-the-ace-editor-open-source-projects-ajaxorg-ace\/"},"modified":"2015-11-14T05:28:57","modified_gmt":"2015-11-14T05:28:57","slug":"how-to-set-focus-on-the-ace-editor-open-source-projects-ajaxorg-ace","status":"publish","type":"post","link":"https:\/\/unknownerror.org\/index.php\/2015\/11\/14\/how-to-set-focus-on-the-ace-editor-open-source-projects-ajaxorg-ace\/","title":{"rendered":"How to set focus on the ace editor?-open source projects ajaxorg\/ace"},"content":{"rendered":"<p>I am using the ace editor component from ajax.org inside a jquery tab interface. Each tab will contain a separate ace editor. Whenever I switch to a new tab, the editor in it won&#8217;t get the focus.<\/p>\n<p>I can detect when a tab is selected by binding to the &#8220;tabsshow&#8221; event of jquery UI. Does any one know how to set focus to the editor in it if say the id of my editor div is editor-tab-0 for the first tab, and so on&#8230;?<\/p>\n<p>Please can some one help?<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I am using the ace editor component from ajax.org inside a jquery tab interface. Each tab will contain a separate ace editor. Whenever I switch to a new tab, the editor in it won&#8217;t get the focus. I can detect when a tab is selected by binding to the &#8220;tabsshow&#8221; event of jquery UI. Does [&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-7969","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/7969","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=7969"}],"version-history":[{"count":0,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/7969\/revisions"}],"wp:attachment":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/media?parent=7969"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/categories?post=7969"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/tags?post=7969"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}