{"size": 531, "ext": "js", "max_stars_repo_path": "app/ckeditor/plugins/uploader/plugin.js", "max_stars_repo_name": "vista-54/KHPCSTest", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "app/ckeditor/plugins/uploader/plugin.js", "max_issues_repo_name": "vista-54/KHPCSTest", "max_issues_repo_issues_event_min_datetime": "2022-03-02T06:44:11.000Z", "max_issues_repo_issues_event_max_datetime": "2022-03-02T06:44:11.000Z", "max_forks_repo_path": "app/ckeditor/plugins/uploader/plugin.js", "max_forks_repo_name": "vista-54/KHPCSTest", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": 1, "max_forks_count": null, "avg_line_length": 33.1875, "max_line_length": 79, "alphanum_fraction": 0.5028248588}
CKEDITOR.plugins.add('uploader',
    {
        init: function (editor) {
            var pluginName = 'uploader';
            editor.ui.addButton('Uploader',
                {
                    label: 'Upload image',
                    command: 'OpenWindow',
                    icon: CKEDITOR.plugins.getPath('uploader') + 'uploader.png'
                });
            var cmd = editor.addCommand('OpenWindow', { exec: showMyDialog });
        }
    });
function showMyDialog() {
    document.getElementById('file').click();
}