{"action":"created","issue":{"url":"https://api.github.com/repos/mathquill/mathquill/issues/595","repository_url":"https://api.github.com/repos/mathquill/mathquill","labels_url":"https://api.github.com/repos/mathquill/mathquill/issues/595/labels{/name}","comments_url":"https://api.github.com/repos/mathquill/mathquill/issues/595/comments","events_url":"https://api.github.com/repos/mathquill/mathquill/issues/595/events","html_url":"https://github.com/mathquill/mathquill/issues/595","id":143496576,"number":595,"title":"Not possible to focus in MathQuill 0.10.0?","user":{"login":"YakovL","id":1131924,"avatar_url":"https://avatars.githubusercontent.com/u/1131924?v=3","gravatar_id":"","url":"https://api.github.com/users/YakovL","html_url":"https://github.com/YakovL","followers_url":"https://api.github.com/users/YakovL/followers","following_url":"https://api.github.com/users/YakovL/following{/other_user}","gists_url":"https://api.github.com/users/YakovL/gists{/gist_id}","starred_url":"https://api.github.com/users/YakovL/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/YakovL/subscriptions","organizations_url":"https://api.github.com/users/YakovL/orgs","repos_url":"https://api.github.com/users/YakovL/repos","events_url":"https://api.github.com/users/YakovL/events{/privacy}","received_events_url":"https://api.github.com/users/YakovL/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2016-03-25T13:19:14Z","updated_at":"2016-03-26T21:53:13Z","closed_at":"2016-03-26T20:15:25Z","body":"Hi guys, I'm new here but I've tried to find the answer in docs and also asked in stackoverflow [1], but have got any answers, so probably it's time to ask here. I'm using MathQuill 0.10.0 and second interface\r\n\r\n    var MQ = MathQuill.getInterface(2);\r\n\r\ncreating an editor in this fashion:\r\n\r\n    var mathQuillEditor = MQ.MathField(mathQuillField, {\r\n    \tspaceBehavesLikeTab: true,\r\n    \thandlers: {\r\n    \t\tedit: function() {\r\n    \t\t\tlatexEditor.value = mathQuillEditor.latex(); // update LaTeX field\r\n    \t\t\tjQuery(latexEditor).change(); // fire updating of CodeCogs\r\n    \t\t}\r\n    \t}\r\n    });\r\n\r\nWhat I'm trying to do is to get \"focus\" inside the editor so that I can type inside `mathQuillEditor` without clicking there with mouse. I haven't found any suggestions how to do this in docs, nor I have succeeded with my own experiments which included:\r\n\r\n    mathQuillEditor.moveToRightEnd();\r\n    mathQuillEditor.el().focus();\r\n    jQuery(mathQuillEditor.el()).click()\r\n\r\nand also I've tried to `.focus()` and `.click()` each of `$(\"#containerElement\")`, `$(\"#containerElement .mathquill-editable\")`, `$(\"#containerElement .mathquill-editable .mq-textarea\")` and `$(\"#containerElement .mathquill-editable .mq-empty\")` but none of these worked (I guess, some of these are redundant as `mathQuillEditor.el()` returns that `.mathquill-editable` element). I wonder if any of these should work (is it a bug?) or I have to use smth else, so this is either bug report or just question.\r\n\r\n[1] http://stackoverflow.com/questions/35976625/how-to-put-cursor-to-the-mathquill-0-10-field-so-that-one-can-type-to-edit-rig"},"comment":{"url":"https://api.github.com/repos/mathquill/mathquill/issues/comments/201936757","html_url":"https://github.com/mathquill/mathquill/issues/595#issuecomment-201936757","issue_url":"https://api.github.com/repos/mathquill/mathquill/issues/595","id":201936757,"user":{"login":"laughinghan","id":225809,"avatar_url":"https://avatars.githubusercontent.com/u/225809?v=3","gravatar_id":"","url":"https://api.github.com/users/laughinghan","html_url":"https://github.com/laughinghan","followers_url":"https://api.github.com/users/laughinghan/followers","following_url":"https://api.github.com/users/laughinghan/following{/other_user}","gists_url":"https://api.github.com/users/laughinghan/gists{/gist_id}","starred_url":"https://api.github.com/users/laughinghan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/laughinghan/subscriptions","organizations_url":"https://api.github.com/users/laughinghan/orgs","repos_url":"https://api.github.com/users/laughinghan/repos","events_url":"https://api.github.com/users/laughinghan/events{/privacy}","received_events_url":"https://api.github.com/users/laughinghan/received_events","type":"User","site_admin":false},"created_at":"2016-03-26T21:53:13Z","updated_at":"2016-03-26T21:53:13Z","body":"Were you coming from v0.9.x? Should we also add something to the Migration Guide?"}}