{"action":"created","issue":{"url":"https://api.github.com/repos/surmon-china/vue-codemirror/issues/8","repository_url":"https://api.github.com/repos/surmon-china/vue-codemirror","labels_url":"https://api.github.com/repos/surmon-china/vue-codemirror/issues/8/labels{/name}","comments_url":"https://api.github.com/repos/surmon-china/vue-codemirror/issues/8/comments","events_url":"https://api.github.com/repos/surmon-china/vue-codemirror/issues/8/events","html_url":"https://github.com/surmon-china/vue-codemirror/issues/8","id":193103417,"number":8,"title":"editor instance accessibility","user":{"login":"gyamxxx","id":6592208,"avatar_url":"https://avatars.githubusercontent.com/u/6592208?v=3","gravatar_id":"","url":"https://api.github.com/users/gyamxxx","html_url":"https://github.com/gyamxxx","followers_url":"https://api.github.com/users/gyamxxx/followers","following_url":"https://api.github.com/users/gyamxxx/following{/other_user}","gists_url":"https://api.github.com/users/gyamxxx/gists{/gist_id}","starred_url":"https://api.github.com/users/gyamxxx/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gyamxxx/subscriptions","organizations_url":"https://api.github.com/users/gyamxxx/orgs","repos_url":"https://api.github.com/users/gyamxxx/repos","events_url":"https://api.github.com/users/gyamxxx/events{/privacy}","received_events_url":"https://api.github.com/users/gyamxxx/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-12-02T12:18:00Z","updated_at":"2016-12-04T03:23:21Z","closed_at":null,"body":"Hi, I'm sorry poor English.\r\n\r\n I'm using this library. Thank you for making.\r\nso, I want to use \"Autoformart\" function like this.\r\nhttps://codemirror.net/2/demo/formatting.html\r\n\r\nbut, editor instance cannot access parant component.\r\nhttps://github.com/surmon-china/vue-codemirror/blob/master/codemirror.vue#L69\r\n\r\nCould you make editor instance accessible, or add function like calling parent method?"},"comment":{"url":"https://api.github.com/repos/surmon-china/vue-codemirror/issues/comments/264681865","html_url":"https://github.com/surmon-china/vue-codemirror/issues/8#issuecomment-264681865","issue_url":"https://api.github.com/repos/surmon-china/vue-codemirror/issues/8","id":264681865,"user":{"login":"yahtnif","id":7037958,"avatar_url":"https://avatars.githubusercontent.com/u/7037958?v=3","gravatar_id":"","url":"https://api.github.com/users/yahtnif","html_url":"https://github.com/yahtnif","followers_url":"https://api.github.com/users/yahtnif/followers","following_url":"https://api.github.com/users/yahtnif/following{/other_user}","gists_url":"https://api.github.com/users/yahtnif/gists{/gist_id}","starred_url":"https://api.github.com/users/yahtnif/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yahtnif/subscriptions","organizations_url":"https://api.github.com/users/yahtnif/orgs","repos_url":"https://api.github.com/users/yahtnif/repos","events_url":"https://api.github.com/users/yahtnif/events{/privacy}","received_events_url":"https://api.github.com/users/yahtnif/received_events","type":"User","site_admin":false},"created_at":"2016-12-04T03:23:21Z","updated_at":"2016-12-04T03:23:21Z","body":"@gyamxxx \r\n\r\nassign a reference ID to the component using `ref`\r\n```\r\n<codemirror v-model=\"code\" ref=\"codemirror\"></codemirror>\r\n```\r\n\r\nthen access the editor instance\r\n```\r\nthis.$refs.codemirror.editor\r\n```"}}
{"actor":{"display_login":"yahtnif"}}