{"action":"created","issue":{"url":"https://api.github.com/repos/2amigos/yii2-tinymce-widget/issues/1","repository_url":"https://api.github.com/repos/2amigos/yii2-tinymce-widget","labels_url":"https://api.github.com/repos/2amigos/yii2-tinymce-widget/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/2amigos/yii2-tinymce-widget/issues/1/comments","events_url":"https://api.github.com/repos/2amigos/yii2-tinymce-widget/issues/1/events","html_url":"https://github.com/2amigos/yii2-tinymce-widget/issues/1","id":30754502,"number":1,"title":"how integer with image upload?","user":{"login":"e6nian","id":95250,"avatar_url":"https://avatars.githubusercontent.com/u/95250?v=3","gravatar_id":"","url":"https://api.github.com/users/e6nian","html_url":"https://github.com/e6nian","followers_url":"https://api.github.com/users/e6nian/followers","following_url":"https://api.github.com/users/e6nian/following{/other_user}","gists_url":"https://api.github.com/users/e6nian/gists{/gist_id}","starred_url":"https://api.github.com/users/e6nian/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/e6nian/subscriptions","organizations_url":"https://api.github.com/users/e6nian/orgs","repos_url":"https://api.github.com/users/e6nian/repos","events_url":"https://api.github.com/users/e6nian/events{/privacy}","received_events_url":"https://api.github.com/users/e6nian/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2014-04-03T08:15:13Z","updated_at":"2016-12-13T12:46:13Z","closed_at":"2014-04-25T17:25:50Z","body":"I follow the documents and here http://pixabay.com/zh/blog/posts/direct-image-uploads-in-tinymce-4-42/ \n\n```\n    <?= $form->field($model, 'content')->widget(TinyMce::className(), [\n        'options' => ['rows' => 6],\n        'language' => 'zh_CN',\n        'clientOptions' => [\n            'plugins' => [\n                \"advlist autolink lists link charmap print preview anchor\",\n                \"searchreplace visualblocks code fullscreen\",\n                \"insertdatetime media table contextmenu paste image\"\n            ],\n            'toolbar' => \"undo redo | styleselect | bold italic | alignleft aligncenter alignright alignjustify |  bullist numlist outdent indent | link image\",\n        'file_browser_callback'=>\"function(field_name, url, type, win) {\n            if(type=='image') $('#my_form input').click();\n        }\",\n        ]\n    ]);?>\n    <iframe id=\"form_target\" name=\"form_target\" style=\"display:none\">\n    <form id=\"my_form\" action=\"/upload/\" target=\"form_target\" method=\"post\" enctype=\"multipart/form-data\"          style=\"width:0px;height:0;overflow:hidden\">\n        <input name=\"image\" type=\"file\" onchange=\"$('#my_form').submit();this.value='';\">\n    </form>\n    </iframe>\n```\n\nbut not work,errors occurs when I click the upload button:\n\n```\nUncaught TypeError: string is not a function\n```\n"},"comment":{"url":"https://api.github.com/repos/2amigos/yii2-tinymce-widget/issues/comments/266729633","html_url":"https://github.com/2amigos/yii2-tinymce-widget/issues/1#issuecomment-266729633","issue_url":"https://api.github.com/repos/2amigos/yii2-tinymce-widget/issues/1","id":266729633,"user":{"login":"tonydspaniard","id":566016,"avatar_url":"https://avatars.githubusercontent.com/u/566016?v=3","gravatar_id":"","url":"https://api.github.com/users/tonydspaniard","html_url":"https://github.com/tonydspaniard","followers_url":"https://api.github.com/users/tonydspaniard/followers","following_url":"https://api.github.com/users/tonydspaniard/following{/other_user}","gists_url":"https://api.github.com/users/tonydspaniard/gists{/gist_id}","starred_url":"https://api.github.com/users/tonydspaniard/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tonydspaniard/subscriptions","organizations_url":"https://api.github.com/users/tonydspaniard/orgs","repos_url":"https://api.github.com/users/tonydspaniard/repos","events_url":"https://api.github.com/users/tonydspaniard/events{/privacy}","received_events_url":"https://api.github.com/users/tonydspaniard/received_events","type":"User","site_admin":false},"created_at":"2016-12-13T12:46:13Z","updated_at":"2016-12-13T12:46:13Z","body":"@SpbSprut @Zneiat if you guys do as requested by @daro16 I would highly recommend to add the sample to the README file. Would be highly appreciated! I am lacking of time to do all the support it requires ;)"}}
{"actor":{"display_login":"tonydspaniard"}}