{"action":"closed","issue":{"url":"https://api.github.com/repos/tinymce/tinymce/issues/1566","labels_url":"https://api.github.com/repos/tinymce/tinymce/issues/1566/labels{/name}","comments_url":"https://api.github.com/repos/tinymce/tinymce/issues/1566/comments","events_url":"https://api.github.com/repos/tinymce/tinymce/issues/1566/events","html_url":"https://github.com/tinymce/tinymce/issues/1566","id":113929654,"number":1566,"title":"Auto resize after image insert ","user":{"login":"TinyMCE-User","id":14879844,"avatar_url":"https://avatars.githubusercontent.com/u/14879844?v=3","gravatar_id":"","url":"https://api.github.com/users/TinyMCE-User","html_url":"https://github.com/TinyMCE-User","followers_url":"https://api.github.com/users/TinyMCE-User/followers","following_url":"https://api.github.com/users/TinyMCE-User/following{/other_user}","gists_url":"https://api.github.com/users/TinyMCE-User/gists{/gist_id}","starred_url":"https://api.github.com/users/TinyMCE-User/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TinyMCE-User/subscriptions","organizations_url":"https://api.github.com/users/TinyMCE-User/orgs","repos_url":"https://api.github.com/users/TinyMCE-User/repos","events_url":"https://api.github.com/users/TinyMCE-User/events{/privacy}","received_events_url":"https://api.github.com/users/TinyMCE-User/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/tinymce/tinymce/labels/bug","name":"bug","color":"ededed"},{"url":"https://api.github.com/repos/tinymce/tinymce/labels/closed","name":"closed","color":"5319e7"},{"url":"https://api.github.com/repos/tinymce/tinymce/labels/fixed","name":"fixed","color":"ededed"},{"url":"https://api.github.com/repos/tinymce/tinymce/labels/imported","name":"imported","color":"ededed"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2014-03-25T13:11:29Z","updated_at":"2015-10-28T21:44:35Z","closed_at":"2015-10-28T21:44:35Z","body":"Description of problem:\r\n\r\nSteps to reproduce:\r\n1.insert a large image into an active editor\r\n2.auto resize is not fired but any further action with cause a correct resize  \r\n\r\nExpected result:\r\nshould resize editor once image has finished loading\r\n\r\nActual result:\r\n\r\nfix:\r\nin image plugin near line 131, update the selectImage function set to be called on image load, \r\nfunction selectImage() {\r\n  imgElm.onload = imgElm.onerror = null;\r\n  editor.selection.select(imgElm);\r\n  editor.nodeChanged();\r\n  // call autoresize\r\n  editor.execCommand('mceAutoResize');\r\n}\n> _**Legacy information imported from TinyMCE bug tracker:**_\n>\n> _[#T6817](http://archive.tinymce.com/develop/bugtracker_view.php?id=6817) posted by [Opterus](http://archive.tinymce.com/profile.php?name=Opterus)_\n\n> _**Tags:** [autoresize image]_\n> _**Status:** Closed_\n> _**Resolution:** Fixed_\n> _**Attached URL:** none_\n"}}