{"size": 859, "ext": "js", "max_stars_repo_path": "public/Exam/js/ckeditor/plugins/wikititle/dialogs/wikititle.js", "max_stars_repo_name": "iceash/Equipment-department", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "public/Exam/js/ckeditor/plugins/wikititle/dialogs/wikititle.js", "max_issues_repo_name": "iceash/Equipment-department", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "public/Exam/js/ckeditor/plugins/wikititle/dialogs/wikititle.js", "max_forks_repo_name": "iceash/Equipment-department", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 16.8431372549, "max_line_length": 61, "alphanum_fraction": 0.4633294529}
﻿/**
 * @file 播放音乐插件
 */

(function()
{
	var musicDialog = function( editor, dialogType )
	{
		return {
			title : '添加段落标题',
			minWidth : 420,
			minHeight : 80,
			onOk : function()
			{
				var musicTitle = this.getValueOf( 'Link', 'txtTitle');
				var tempvar= '<h1 class="wikititle">'+musicTitle+'</h1>';
				editor.insertHtml(tempvar);
			},
			contents : [
				{
					id : 'Link',
					label : '段落标题',
					padding : 0,
					type : 'vbox',
					elements :
					[
						{
							type : 'vbox',
							padding : 0,
							children :
							[
								{
									id : 'txtTitle',
									type : 'text',
									label : '填写段落标题',
									style : 'width: 60%',
									'default' : ''
								}
							]
						}
					]
				}
			]
		};
	};
	CKEDITOR.dialog.add( 'wikititle', function( editor )
		{
			return musicDialog( editor, 'wikititle' );
		});
})();
