{"action":"created","issue":{"url":"https://api.github.com/repos/summernote/summernote/issues/1012","labels_url":"https://api.github.com/repos/summernote/summernote/issues/1012/labels{/name}","comments_url":"https://api.github.com/repos/summernote/summernote/issues/1012/comments","events_url":"https://api.github.com/repos/summernote/summernote/issues/1012/events","html_url":"https://github.com/summernote/summernote/issues/1012","id":67621828,"number":1012,"title":"onImageUpload 콜백 사용시 붙여넣기 이상 현상","user":{"login":"Pyohwan","id":1825642,"avatar_url":"https://avatars.githubusercontent.com/u/1825642?v=3","gravatar_id":"","url":"https://api.github.com/users/Pyohwan","html_url":"https://github.com/Pyohwan","followers_url":"https://api.github.com/users/Pyohwan/followers","following_url":"https://api.github.com/users/Pyohwan/following{/other_user}","gists_url":"https://api.github.com/users/Pyohwan/gists{/gist_id}","starred_url":"https://api.github.com/users/Pyohwan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Pyohwan/subscriptions","organizations_url":"https://api.github.com/users/Pyohwan/orgs","repos_url":"https://api.github.com/users/Pyohwan/repos","events_url":"https://api.github.com/users/Pyohwan/events{/privacy}","received_events_url":"https://api.github.com/users/Pyohwan/received_events","type":"User","site_admin":false},"labels":[],"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":null,"comments":2,"created_at":"2015-04-10T15:36:31Z","updated_at":"2015-04-12T13:06:46Z","closed_at":null,"body":"제목과 같이 onImageUpload 를 사용하고, 태그가 포함된 글을 복사하여 붙여넣기를 하면 이상현상이 있습니다.\r\nfirefox 계열에서는 무수한 공백 라인이 끝에 추가되고, 크롬 계열에서는 깜빡였다가 글 전체가 사라지는 경우도 있습니다.\r\n\r\nv0.6.0에서는 이러한 현상이 없었으나 v0.6.1 이후 부터 발생한 버그로 보여집니다."},"comment":{"url":"https://api.github.com/repos/summernote/summernote/issues/comments/92057469","html_url":"https://github.com/summernote/summernote/issues/1012#issuecomment-92057469","issue_url":"https://api.github.com/repos/summernote/summernote/issues/1012","id":92057469,"user":{"login":"Pyohwan","id":1825642,"avatar_url":"https://avatars.githubusercontent.com/u/1825642?v=3","gravatar_id":"","url":"https://api.github.com/users/Pyohwan","html_url":"https://github.com/Pyohwan","followers_url":"https://api.github.com/users/Pyohwan/followers","following_url":"https://api.github.com/users/Pyohwan/following{/other_user}","gists_url":"https://api.github.com/users/Pyohwan/gists{/gist_id}","starred_url":"https://api.github.com/users/Pyohwan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Pyohwan/subscriptions","organizations_url":"https://api.github.com/users/Pyohwan/orgs","repos_url":"https://api.github.com/users/Pyohwan/repos","events_url":"https://api.github.com/users/Pyohwan/events{/privacy}","received_events_url":"https://api.github.com/users/Pyohwan/received_events","type":"User","site_admin":false},"created_at":"2015-04-12T13:06:46Z","updated_at":"2015-04-12T13:06:46Z","body":"답변 감사합니다.\r\n\r\nOS : 우분투 14.04\r\n브라우저 : 파이어폭스 37.0.1, 크롬(회사가서 확인하고 알려드릴께요.)\r\nSummernote : 0.6.1 이상에서 발생.\r\n\r\n재현하기\r\n\r\n1. onImageUpload 콜백 오버라이드 코드를 추가합니다.\r\n\r\n  onImageUpload: function(files) {\r\n    console.log('image upload:', files);\r\n  }\r\n\r\n2. 샘플 구문을 복사하여 에디터에 붙혀넣습니다.\r\nhttps://jakduk.com/board/free/29\r\n위 링크의 페이지에 있는 본문 내용을 복사하여 에디터에 붙여넣습니다. 샘플 구문에는 각종 텍스트 효과 관련 태그가 포함되어 있습니다.\r\n\r\n결과.\r\n브라우저마다 조금씩 다르게 나오지만, 파이어폭스에서는 에디터 하단에 많은 공백라인이 따로 추가됩니다. 또한 마우스 포커싱이 붙여넣기 한 문자열 끝으로 가지않습니다.  크롬은 제 기억으로 말씀드리면 화면 깜빡임 이후 복사가 되질 않았습니다.\r\n\r\n의문점.\r\n이같은 사례는 onImageUpload 콜백을 오버라이드 했을때에만 발생합니다. onImageUpload 콜백을 지워서 위의 과정을 다시 진행해보면 아주 잘 작동합니다."}}