{"action":"created","issue":{"url":"https://api.github.com/repos/summernote/summernote/issues/720","labels_url":"https://api.github.com/repos/summernote/summernote/issues/720/labels{/name}","comments_url":"https://api.github.com/repos/summernote/summernote/issues/720/comments","events_url":"https://api.github.com/repos/summernote/summernote/issues/720/events","html_url":"https://github.com/summernote/summernote/issues/720","id":49012634,"number":720,"title":"Dropzone not removed when image is moved out of window","user":{"login":"jacobbroberg","id":8348616,"avatar_url":"https://avatars.githubusercontent.com/u/8348616?v=3","gravatar_id":"","url":"https://api.github.com/users/jacobbroberg","html_url":"https://github.com/jacobbroberg","followers_url":"https://api.github.com/users/jacobbroberg/followers","following_url":"https://api.github.com/users/jacobbroberg/following{/other_user}","gists_url":"https://api.github.com/users/jacobbroberg/gists{/gist_id}","starred_url":"https://api.github.com/users/jacobbroberg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jacobbroberg/subscriptions","organizations_url":"https://api.github.com/users/jacobbroberg/orgs","repos_url":"https://api.github.com/users/jacobbroberg/repos","events_url":"https://api.github.com/users/jacobbroberg/events{/privacy}","received_events_url":"https://api.github.com/users/jacobbroberg/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/summernote/summernote/labels/bug","name":"bug","color":"fc2929"}],"state":"open","locked":false,"assignee":{"login":"easylogic","id":591983,"avatar_url":"https://avatars.githubusercontent.com/u/591983?v=3","gravatar_id":"","url":"https://api.github.com/users/easylogic","html_url":"https://github.com/easylogic","followers_url":"https://api.github.com/users/easylogic/followers","following_url":"https://api.github.com/users/easylogic/following{/other_user}","gists_url":"https://api.github.com/users/easylogic/gists{/gist_id}","starred_url":"https://api.github.com/users/easylogic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/easylogic/subscriptions","organizations_url":"https://api.github.com/users/easylogic/orgs","repos_url":"https://api.github.com/users/easylogic/repos","events_url":"https://api.github.com/users/easylogic/events{/privacy}","received_events_url":"https://api.github.com/users/easylogic/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/summernote/summernote/milestones/8","labels_url":"https://api.github.com/repos/summernote/summernote/milestones/8/labels","id":925280,"number":8,"title":"0.6.1","description":"- Fix minor bugs.\r\n- Update document for plugin system.\r\n- Improve compatibilities.","creator":{"login":"lqez","id":579366,"avatar_url":"https://avatars.githubusercontent.com/u/579366?v=3","gravatar_id":"","url":"https://api.github.com/users/lqez","html_url":"https://github.com/lqez","followers_url":"https://api.github.com/users/lqez/followers","following_url":"https://api.github.com/users/lqez/following{/other_user}","gists_url":"https://api.github.com/users/lqez/gists{/gist_id}","starred_url":"https://api.github.com/users/lqez/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lqez/subscriptions","organizations_url":"https://api.github.com/users/lqez/orgs","repos_url":"https://api.github.com/users/lqez/repos","events_url":"https://api.github.com/users/lqez/events{/privacy}","received_events_url":"https://api.github.com/users/lqez/received_events","type":"User","site_admin":false},"open_issues":8,"closed_issues":15,"state":"open","created_at":"2015-01-07T09:30:53Z","updated_at":"2015-02-05T14:10:17Z","due_on":"2015-02-07T15:00:00Z","closed_at":null},"comments":3,"created_at":"2014-11-16T19:34:36Z","updated_at":"2015-02-07T21:43:24Z","closed_at":null,"body":"I have a setup where the dropzone is not removed when the dragged image is moved out of the window as seen on this screenshot:\r\n![summernote drag out of other tab](https://cloud.githubusercontent.com/assets/8348616/5062816/672c38d0-6dce-11e4-9978-2029efeefcf3.PNG)\r\n\r\nI have the summernote editor on tab 1 and another dropzone on tab 2. When I switch away from tab 1 with the summernote editor (hiding it in the DOM) and go to tab 2, I can drag and drop to tab 2 without any problems or drag and leave. But no matter whether I drop on tab 2 or leave the window without dropping, the dropzone in the summernote editor on tab 1 is left as shown in the screenshot. In my setup the tabs are in a modal dialog, but I do not believe that this is of any importance.\r\n\r\nThis must have something to do with removing the `dragover` class from the editor when the `dragleave` event occurs on `$document` in EventHandler.js - but I am not sure how this should be solved?"},"comment":{"url":"https://api.github.com/repos/summernote/summernote/issues/comments/73384608","html_url":"https://github.com/summernote/summernote/issues/720#issuecomment-73384608","issue_url":"https://api.github.com/repos/summernote/summernote/issues/720","id":73384608,"user":{"login":"jacobbroberg","id":8348616,"avatar_url":"https://avatars.githubusercontent.com/u/8348616?v=3","gravatar_id":"","url":"https://api.github.com/users/jacobbroberg","html_url":"https://github.com/jacobbroberg","followers_url":"https://api.github.com/users/jacobbroberg/followers","following_url":"https://api.github.com/users/jacobbroberg/following{/other_user}","gists_url":"https://api.github.com/users/jacobbroberg/gists{/gist_id}","starred_url":"https://api.github.com/users/jacobbroberg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jacobbroberg/subscriptions","organizations_url":"https://api.github.com/users/jacobbroberg/orgs","repos_url":"https://api.github.com/users/jacobbroberg/repos","events_url":"https://api.github.com/users/jacobbroberg/events{/privacy}","received_events_url":"https://api.github.com/users/jacobbroberg/received_events","type":"User","site_admin":false},"created_at":"2015-02-07T21:43:24Z","updated_at":"2015-02-07T21:43:24Z","body":"After doing a bit of testing I realize that omitting the code concerning ´$document´ is not as easy as I thought initially, since the dropzone size and behavior is inherently bound to ´$document´. Even if I manipulate the string options.langInfo.image.dragImageHere to be an empty string I will still have a small rectangle as a left over."}}