{"action":"opened","issue":{"url":"https://api.github.com/repos/quilljs/quill/issues/517","labels_url":"https://api.github.com/repos/quilljs/quill/issues/517/labels{/name}","comments_url":"https://api.github.com/repos/quilljs/quill/issues/517/comments","events_url":"https://api.github.com/repos/quilljs/quill/issues/517/events","html_url":"https://github.com/quilljs/quill/issues/517","id":115134276,"number":517,"title":"API documentation for constructor?","user":{"login":"jakedeichert","id":1631044,"avatar_url":"https://avatars.githubusercontent.com/u/1631044?v=3","gravatar_id":"","url":"https://api.github.com/users/jakedeichert","html_url":"https://github.com/jakedeichert","followers_url":"https://api.github.com/users/jakedeichert/followers","following_url":"https://api.github.com/users/jakedeichert/following{/other_user}","gists_url":"https://api.github.com/users/jakedeichert/gists{/gist_id}","starred_url":"https://api.github.com/users/jakedeichert/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jakedeichert/subscriptions","organizations_url":"https://api.github.com/users/jakedeichert/orgs","repos_url":"https://api.github.com/users/jakedeichert/repos","events_url":"https://api.github.com/users/jakedeichert/events{/privacy}","received_events_url":"https://api.github.com/users/jakedeichert/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-11-04T19:56:51Z","updated_at":"2015-11-04T19:56:51Z","closed_at":null,"body":"I just realized that instead of passing in an ID:\r\n~~~js\r\nvar editor = new Quill('#editor');\r\n~~~\r\n\r\nYou can just pass in the container element itself:\r\n~~~js\r\nvar myContainer = document.createElement(\"div\");\r\nvar editor = new Quill(myContainer);\r\n~~~\r\n\r\nHere's the exact [LOC](https://github.com/quilljs/quill/blob/develop/src/quill.js#L63\r\n) regarding this functionality in **quill.js**: \r\n\r\n~~~js\r\nthis.container = typeof container === 'string' ? document.querySelector(container) : container;\r\n~~~\r\n\r\nThis ability (the constructor) doesn't seem to be specified in the docs anywhere.\r\n\r\nJust wondering if it should at least be described on the API page: http://quilljs.com/docs/api/"}}