{"action":"created","issue":{"url":"https://api.github.com/repos/daviferreira/medium-editor/issues/324","labels_url":"https://api.github.com/repos/daviferreira/medium-editor/issues/324/labels{/name}","comments_url":"https://api.github.com/repos/daviferreira/medium-editor/issues/324/comments","events_url":"https://api.github.com/repos/daviferreira/medium-editor/issues/324/events","html_url":"https://github.com/daviferreira/medium-editor/pull/324","id":48650610,"number":324,"title":"added custom doc and win functionality","user":{"login":"botverse","id":113003,"avatar_url":"https://avatars.githubusercontent.com/u/113003?v=3","gravatar_id":"","url":"https://api.github.com/users/botverse","html_url":"https://github.com/botverse","followers_url":"https://api.github.com/users/botverse/followers","following_url":"https://api.github.com/users/botverse/following{/other_user}","gists_url":"https://api.github.com/users/botverse/gists{/gist_id}","starred_url":"https://api.github.com/users/botverse/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/botverse/subscriptions","organizations_url":"https://api.github.com/users/botverse/orgs","repos_url":"https://api.github.com/users/botverse/repos","events_url":"https://api.github.com/users/botverse/events{/privacy}","received_events_url":"https://api.github.com/users/botverse/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":15,"created_at":"2014-11-13T15:42:17Z","updated_at":"2015-02-05T01:01:36Z","closed_at":"2014-11-17T12:53:32Z","pull_request":{"url":"https://api.github.com/repos/daviferreira/medium-editor/pulls/324","html_url":"https://github.com/daviferreira/medium-editor/pull/324","diff_url":"https://github.com/daviferreira/medium-editor/pull/324.diff","patch_url":"https://github.com/daviferreira/medium-editor/pull/324.patch"},"body":"This helps to load the editor in a parent frame but edit inside an iframe.\r\n\r\nThis has been discussed before here #183 and here #269. The scenarios where this can come handy is where you are developing a drag and drop editor where the text is edited inline but everything happens inside an iframe, completely isolated from the upper frame.\r\n\r\nYou still need to override the `setToolbarPosition` in your side of things, a future improvement could be pass functions to calculate this:\r\n\r\n```javascript\r\nthis.toolbar.style.top = buttonHeight + boundary.bottom - this.options.diffTop + offset - this.toolbar.offsetHeight + 'px';\r\n```\r\n\r\nBut that's another story."},"comment":{"url":"https://api.github.com/repos/daviferreira/medium-editor/issues/comments/72974734","html_url":"https://github.com/daviferreira/medium-editor/pull/324#issuecomment-72974734","issue_url":"https://api.github.com/repos/daviferreira/medium-editor/issues/324","id":72974734,"user":{"login":"swang","id":49867,"avatar_url":"https://avatars.githubusercontent.com/u/49867?v=3","gravatar_id":"","url":"https://api.github.com/users/swang","html_url":"https://github.com/swang","followers_url":"https://api.github.com/users/swang/followers","following_url":"https://api.github.com/users/swang/following{/other_user}","gists_url":"https://api.github.com/users/swang/gists{/gist_id}","starred_url":"https://api.github.com/users/swang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/swang/subscriptions","organizations_url":"https://api.github.com/users/swang/orgs","repos_url":"https://api.github.com/users/swang/repos","events_url":"https://api.github.com/users/swang/events{/privacy}","received_events_url":"https://api.github.com/users/swang/received_events","type":"User","site_admin":false},"created_at":"2015-02-05T01:01:36Z","updated_at":"2015-02-05T01:01:36Z","body":"Nice to see this implemented, although the project I needed it for is no longer being developed. Will remember this for future reference though."}}