tchao 3 年之前
父节点
当前提交
b569d575ae
共有 100 个文件被更改,包括 2371 次插入0 次删除
  1. 61 0
      web/js/ckeditor/lang/_translationstatus.txt
  2. 6 0
      web/js/ckeditor/lang/af.js
  3. 6 0
      web/js/ckeditor/lang/bn.js
  4. 6 0
      web/js/ckeditor/lang/ca.js
  5. 6 0
      web/js/ckeditor/lang/da.js
  6. 6 0
      web/js/ckeditor/lang/el.js
  7. 6 0
      web/js/ckeditor/lang/en-au.js
  8. 6 0
      web/js/ckeditor/lang/en-ca.js
  9. 6 0
      web/js/ckeditor/lang/eo.js
  10. 6 0
      web/js/ckeditor/lang/es.js
  11. 6 0
      web/js/ckeditor/lang/eu.js
  12. 6 0
      web/js/ckeditor/lang/fa.js
  13. 6 0
      web/js/ckeditor/lang/fo.js
  14. 6 0
      web/js/ckeditor/lang/fr-ca.js
  15. 6 0
      web/js/ckeditor/lang/fr.js
  16. 6 0
      web/js/ckeditor/lang/gl.js
  17. 6 0
      web/js/ckeditor/lang/he.js
  18. 6 0
      web/js/ckeditor/lang/hi.js
  19. 6 0
      web/js/ckeditor/lang/is.js
  20. 6 0
      web/js/ckeditor/lang/it.js
  21. 6 0
      web/js/ckeditor/lang/ja.js
  22. 6 0
      web/js/ckeditor/lang/ka.js
  23. 6 0
      web/js/ckeditor/lang/km.js
  24. 6 0
      web/js/ckeditor/lang/ko.js
  25. 6 0
      web/js/ckeditor/lang/lt.js
  26. 6 0
      web/js/ckeditor/lang/lv.js
  27. 6 0
      web/js/ckeditor/lang/mn.js
  28. 6 0
      web/js/ckeditor/lang/ms.js
  29. 6 0
      web/js/ckeditor/lang/nb.js
  30. 6 0
      web/js/ckeditor/lang/nl.js
  31. 6 0
      web/js/ckeditor/lang/pl.js
  32. 6 0
      web/js/ckeditor/lang/pt.js
  33. 6 0
      web/js/ckeditor/lang/ro.js
  34. 6 0
      web/js/ckeditor/lang/ru.js
  35. 6 0
      web/js/ckeditor/lang/sk.js
  36. 6 0
      web/js/ckeditor/lang/sr-latn.js
  37. 6 0
      web/js/ckeditor/lang/sr.js
  38. 6 0
      web/js/ckeditor/lang/sv.js
  39. 6 0
      web/js/ckeditor/lang/th.js
  40. 6 0
      web/js/ckeditor/lang/uk.js
  41. 6 0
      web/js/ckeditor/lang/vi.js
  42. 6 0
      web/js/ckeditor/lang/zh-cn.js
  43. 6 0
      web/js/ckeditor/lang/zh.js
  44. 6 0
      web/js/ckeditor/plugins/a11yhelp/lang/he.js
  45. 6 0
      web/js/ckeditor/plugins/about/dialogs/about.js
  46. 二进制
      web/js/ckeditor/plugins/about/dialogs/logo_ckeditor.png
  47. 21 0
      web/js/ckeditor/plugins/attchment/plugin.js
  48. 6 0
      web/js/ckeditor/plugins/autogrow/plugin.js
  49. 9 0
      web/js/ckeditor/plugins/bbcode/plugin.js
  50. 21 0
      web/js/ckeditor/plugins/businessKey/plugin.js
  51. 7 0
      web/js/ckeditor/plugins/clipboard/dialogs/paste.js
  52. 7 0
      web/js/ckeditor/plugins/colordialog/dialogs/colordialog.js
  53. 6 0
      web/js/ckeditor/plugins/devtools/lang/en.js
  54. 6 0
      web/js/ckeditor/plugins/devtools/plugin.js
  55. 8 0
      web/js/ckeditor/plugins/div/dialogs/div.js
  56. 6 0
      web/js/ckeditor/plugins/docprops/plugin.js
  57. 10 0
      web/js/ckeditor/plugins/find/dialogs/find.js
  58. 89 0
      web/js/ckeditor/plugins/flowvars/dialogs/flowvars.js
  59. 二进制
      web/js/ckeditor/plugins/flowvars/images/flowvars.png
  60. 181 0
      web/js/ckeditor/plugins/forms/dialogs/ScriptManage.js
  61. 149 0
      web/js/ckeditor/plugins/forms/dialogs/button.js
  62. 143 0
      web/js/ckeditor/plugins/forms/dialogs/checkbox.js
  63. 164 0
      web/js/ckeditor/plugins/forms/dialogs/form.js
  64. 97 0
      web/js/ckeditor/plugins/forms/dialogs/hiddenfield.js
  65. 132 0
      web/js/ckeditor/plugins/forms/dialogs/radio.js
  66. 662 0
      web/js/ckeditor/plugins/forms/dialogs/select.js
  67. 188 0
      web/js/ckeditor/plugins/forms/dialogs/textfield.js
  68. 二进制
      web/js/ckeditor/plugins/forms/images/hiddenfield.gif
  69. 二进制
      web/js/ckeditor/plugins/htmlDefForm/document-attribute-n.png
  70. 二进制
      web/js/ckeditor/plugins/iframe/images/placeholder.png
  71. 6 0
      web/js/ckeditor/plugins/iframedialog/plugin.js
  72. 二进制
      web/js/ckeditor/plugins/img/image.gif
  73. 23 0
      web/js/ckeditor/plugins/jumpurl/plugin.js
  74. 二进制
      web/js/ckeditor/plugins/link/images/anchor.gif
  75. 7 0
      web/js/ckeditor/plugins/liststyle/dialogs/liststyle.js
  76. 二进制
      web/js/ckeditor/plugins/page/pagebreak.gif
  77. 21 0
      web/js/ckeditor/plugins/page/plugin.js
  78. 11 0
      web/js/ckeditor/plugins/pastefromword/filter/default.js
  79. 6 0
      web/js/ckeditor/plugins/pastetext/dialogs/pastetext.js
  80. 二进制
      web/js/ckeditor/plugins/placeholder/placeholder.gif
  81. 6 0
      web/js/ckeditor/plugins/placeholder/plugin.js
  82. 二进制
      web/js/ckeditor/plugins/readperson/users.png
  83. 二进制
      web/js/ckeditor/plugins/remaintime/alarm-clock-blue.png
  84. 33 0
      web/js/ckeditor/plugins/saveRule/plugin.js
  85. 8 0
      web/js/ckeditor/plugins/scayt/dialogs/options.js
  86. 6 0
      web/js/ckeditor/plugins/scayt/dialogs/toolbar.css
  87. 二进制
      web/js/ckeditor/plugins/sendperson/group.png
  88. 二进制
      web/js/ckeditor/plugins/showblocks/images/block_div.png
  89. 二进制
      web/js/ckeditor/plugins/showblocks/images/block_h1.png
  90. 二进制
      web/js/ckeditor/plugins/showblocks/images/block_h2.png
  91. 二进制
      web/js/ckeditor/plugins/showblocks/images/block_h3.png
  92. 二进制
      web/js/ckeditor/plugins/showblocks/images/block_h4.png
  93. 二进制
      web/js/ckeditor/plugins/showblocks/images/block_h5.png
  94. 二进制
      web/js/ckeditor/plugins/showblocks/images/block_p.png
  95. 7 0
      web/js/ckeditor/plugins/smiley/dialogs/smiley.js
  96. 二进制
      web/js/ckeditor/plugins/smiley/images/angel_smile.gif
  97. 二进制
      web/js/ckeditor/plugins/smiley/images/broken_heart.gif
  98. 二进制
      web/js/ckeditor/plugins/smiley/images/cry_smile.gif
  99. 二进制
      web/js/ckeditor/plugins/smiley/images/devil_smile.gif
  100. 0 0
      web/js/ckeditor/plugins/smiley/images/heart.gif

+ 61 - 0
web/js/ckeditor/lang/_translationstatus.txt

@@ -0,0 +1,61 @@
+Copyright (c) 2003-2011, CKSource - Frederico Knabben. All rights reserved.
+For licensing, see LICENSE.html or http://ckeditor.com/license
+
+af.js      Found: 549 Missing: 27
+ar.js      Found: 467 Missing: 109
+bg.js      Found: 291 Missing: 285
+bn.js      Found: 292 Missing: 284
+bs.js      Found: 175 Missing: 401
+ca.js      Found: 550 Missing: 26
+cs.js      Found: 550 Missing: 26
+cy.js      Found: 573 Missing: 3
+da.js      Found: 417 Missing: 159
+de.js      Found: 576 Missing: 0
+el.js      Found: 306 Missing: 270
+en-au.js   Found: 345 Missing: 231
+en-ca.js   Found: 345 Missing: 231
+en-gb.js   Found: 518 Missing: 58
+eo.js      Found: 270 Missing: 306
+es.js      Found: 576 Missing: 0
+et.js      Found: 575 Missing: 1
+eu.js      Found: 417 Missing: 159
+fa.js      Found: 576 Missing: 0
+fi.js      Found: 576 Missing: 0
+fo.js      Found: 551 Missing: 25
+fr-ca.js   Found: 319 Missing: 257
+fr.js      Found: 551 Missing: 25
+gl.js      Found: 292 Missing: 284
+gu.js      Found: 320 Missing: 256
+he.js      Found: 576 Missing: 0
+hi.js      Found: 322 Missing: 254
+hr.js      Found: 419 Missing: 157
+hu.js      Found: 573 Missing: 3
+is.js      Found: 326 Missing: 250
+it.js      Found: 573 Missing: 3
+ja.js      Found: 494 Missing: 82
+ka.js      Found: 569 Missing: 7
+km.js      Found: 286 Missing: 290
+ko.js      Found: 304 Missing: 272
+lt.js      Found: 576 Missing: 0
+lv.js      Found: 294 Missing: 282
+mn.js      Found: 320 Missing: 256
+ms.js      Found: 276 Missing: 300
+nb.js      Found: 575 Missing: 1
+nl.js      Found: 576 Missing: 0
+no.js      Found: 575 Missing: 1
+pl.js      Found: 576 Missing: 0
+pt-br.js   Found: 576 Missing: 0
+pt.js      Found: 293 Missing: 283
+ro.js      Found: 317 Missing: 259
+ru.js      Found: 576 Missing: 0
+sk.js      Found: 365 Missing: 211
+sl.js      Found: 426 Missing: 150
+sr-latn.js Found: 287 Missing: 289
+sr.js      Found: 286 Missing: 290
+sv.js      Found: 551 Missing: 25
+th.js      Found: 298 Missing: 278
+tr.js      Found: 536 Missing: 40
+uk.js      Found: 544 Missing: 32
+vi.js      Found: 493 Missing: 83
+zh-cn.js   Found: 576 Missing: 0
+zh.js      Found: 419 Missing: 157

文件差异内容过多而无法显示
+ 6 - 0
web/js/ckeditor/lang/af.js


文件差异内容过多而无法显示
+ 6 - 0
web/js/ckeditor/lang/bn.js


文件差异内容过多而无法显示
+ 6 - 0
web/js/ckeditor/lang/ca.js


文件差异内容过多而无法显示
+ 6 - 0
web/js/ckeditor/lang/da.js


文件差异内容过多而无法显示
+ 6 - 0
web/js/ckeditor/lang/el.js


文件差异内容过多而无法显示
+ 6 - 0
web/js/ckeditor/lang/en-au.js


文件差异内容过多而无法显示
+ 6 - 0
web/js/ckeditor/lang/en-ca.js


文件差异内容过多而无法显示
+ 6 - 0
web/js/ckeditor/lang/eo.js


文件差异内容过多而无法显示
+ 6 - 0
web/js/ckeditor/lang/es.js


文件差异内容过多而无法显示
+ 6 - 0
web/js/ckeditor/lang/eu.js


文件差异内容过多而无法显示
+ 6 - 0
web/js/ckeditor/lang/fa.js


文件差异内容过多而无法显示
+ 6 - 0
web/js/ckeditor/lang/fo.js


文件差异内容过多而无法显示
+ 6 - 0
web/js/ckeditor/lang/fr-ca.js


文件差异内容过多而无法显示
+ 6 - 0
web/js/ckeditor/lang/fr.js


文件差异内容过多而无法显示
+ 6 - 0
web/js/ckeditor/lang/gl.js


文件差异内容过多而无法显示
+ 6 - 0
web/js/ckeditor/lang/he.js


文件差异内容过多而无法显示
+ 6 - 0
web/js/ckeditor/lang/hi.js


文件差异内容过多而无法显示
+ 6 - 0
web/js/ckeditor/lang/is.js


文件差异内容过多而无法显示
+ 6 - 0
web/js/ckeditor/lang/it.js


文件差异内容过多而无法显示
+ 6 - 0
web/js/ckeditor/lang/ja.js


文件差异内容过多而无法显示
+ 6 - 0
web/js/ckeditor/lang/ka.js


文件差异内容过多而无法显示
+ 6 - 0
web/js/ckeditor/lang/km.js


文件差异内容过多而无法显示
+ 6 - 0
web/js/ckeditor/lang/ko.js


文件差异内容过多而无法显示
+ 6 - 0
web/js/ckeditor/lang/lt.js


文件差异内容过多而无法显示
+ 6 - 0
web/js/ckeditor/lang/lv.js


文件差异内容过多而无法显示
+ 6 - 0
web/js/ckeditor/lang/mn.js


文件差异内容过多而无法显示
+ 6 - 0
web/js/ckeditor/lang/ms.js


文件差异内容过多而无法显示
+ 6 - 0
web/js/ckeditor/lang/nb.js


文件差异内容过多而无法显示
+ 6 - 0
web/js/ckeditor/lang/nl.js


文件差异内容过多而无法显示
+ 6 - 0
web/js/ckeditor/lang/pl.js


文件差异内容过多而无法显示
+ 6 - 0
web/js/ckeditor/lang/pt.js


文件差异内容过多而无法显示
+ 6 - 0
web/js/ckeditor/lang/ro.js


文件差异内容过多而无法显示
+ 6 - 0
web/js/ckeditor/lang/ru.js


文件差异内容过多而无法显示
+ 6 - 0
web/js/ckeditor/lang/sk.js


文件差异内容过多而无法显示
+ 6 - 0
web/js/ckeditor/lang/sr-latn.js


文件差异内容过多而无法显示
+ 6 - 0
web/js/ckeditor/lang/sr.js


文件差异内容过多而无法显示
+ 6 - 0
web/js/ckeditor/lang/sv.js


文件差异内容过多而无法显示
+ 6 - 0
web/js/ckeditor/lang/th.js


文件差异内容过多而无法显示
+ 6 - 0
web/js/ckeditor/lang/uk.js


文件差异内容过多而无法显示
+ 6 - 0
web/js/ckeditor/lang/vi.js


文件差异内容过多而无法显示
+ 6 - 0
web/js/ckeditor/lang/zh-cn.js


文件差异内容过多而无法显示
+ 6 - 0
web/js/ckeditor/lang/zh.js


文件差异内容过多而无法显示
+ 6 - 0
web/js/ckeditor/plugins/a11yhelp/lang/he.js


文件差异内容过多而无法显示
+ 6 - 0
web/js/ckeditor/plugins/about/dialogs/about.js


二进制
web/js/ckeditor/plugins/about/dialogs/logo_ckeditor.png


+ 21 - 0
web/js/ckeditor/plugins/attchment/plugin.js

@@ -0,0 +1,21 @@
+(function(){
+    //Section 1 : 按下自定义按钮时执行的代码
+    var a= {
+        exec:function(editor){
+        	
+			editor.insertHtml("");
+        }
+    },
+    //Section 2 : 创建自定义按钮、绑定方法
+    b='attchment';
+    CKEDITOR.plugins.add(b,{
+        init:function(editor){
+            editor.addCommand(b,a);
+            editor.ui.addButton('attchment',{
+                label:'插入附件',
+                icon: this.path + 'cab.gif',
+                command:b
+            });
+        }
+    });
+})();

文件差异内容过多而无法显示
+ 6 - 0
web/js/ckeditor/plugins/autogrow/plugin.js


文件差异内容过多而无法显示
+ 9 - 0
web/js/ckeditor/plugins/bbcode/plugin.js


+ 21 - 0
web/js/ckeditor/plugins/businessKey/plugin.js

@@ -0,0 +1,21 @@
+(function(){
+    //Section 1 : 按下自定义按钮时执行的代码
+    var a= {
+        exec:function(editor)
+        {
+			editor.insertHtml("{业务主键:businessKey}");
+        }
+    },
+    //Section 2 : 创建自定义按钮、绑定方法
+    b='businessKey';
+    CKEDITOR.plugins.add(b,{
+        init:function(editor){
+            editor.addCommand(b,a);
+            editor.ui.addButton('businessKey',{
+                label:'业务主键',
+                icon: this.path + 'bussinessKey.png',
+                command:b
+            });
+        }
+    });
+})();

文件差异内容过多而无法显示
+ 7 - 0
web/js/ckeditor/plugins/clipboard/dialogs/paste.js


文件差异内容过多而无法显示
+ 7 - 0
web/js/ckeditor/plugins/colordialog/dialogs/colordialog.js


+ 6 - 0
web/js/ckeditor/plugins/devtools/lang/en.js

@@ -0,0 +1,6 @@
+/*
+Copyright (c) 2003-2011, CKSource - Frederico Knabben. All rights reserved.
+For licensing, see LICENSE.html or http://ckeditor.com/license
+*/
+
+CKEDITOR.plugins.setLang('devtools','en',{devTools:{title:'Element Information',dialogName:'Dialog window name',tabName:'Tab name',elementId:'Element ID',elementType:'Element type'}});

文件差异内容过多而无法显示
+ 6 - 0
web/js/ckeditor/plugins/devtools/plugin.js


文件差异内容过多而无法显示
+ 8 - 0
web/js/ckeditor/plugins/div/dialogs/div.js


+ 6 - 0
web/js/ckeditor/plugins/docprops/plugin.js

@@ -0,0 +1,6 @@
+/*
+Copyright (c) 2003-2011, CKSource - Frederico Knabben. All rights reserved.
+For licensing, see LICENSE.html or http://ckeditor.com/license
+*/
+
+CKEDITOR.plugins.add('docprops',{init:function(a){var b=new CKEDITOR.dialogCommand('docProps');b.modes={wysiwyg:a.config.fullPage};a.addCommand('docProps',b);CKEDITOR.dialog.add('docProps',this.path+'dialogs/docprops.js');a.ui.addButton('DocProps',{label:a.lang.docprops.label,command:'docProps'});}});

文件差异内容过多而无法显示
+ 10 - 0
web/js/ckeditor/plugins/find/dialogs/find.js


+ 89 - 0
web/js/ckeditor/plugins/flowvars/dialogs/flowvars.js

@@ -0,0 +1,89 @@
+CKEDITOR.dialog.add( 'flowvars', function( editor )
+{
+	
+	var css=""+
+	'<style type="text/css">' +
+		'.flowvars-container{'+
+			'width: 400px;'+
+			'height: 400px;'+
+			'border: solid 1px #817B7B;'+
+			'overflow: auto;'+
+			'padding:2px;'+
+		'}'+
+		'table.list{'+
+			'width: 396px;'+
+		'}'+
+		'table.list tr:hover {'+
+			'background-color: #FFFDD2;'+
+		'}'+
+	'}'+
+	'</style>';
+	var html="";
+	var defId=$("#defId").val();
+	
+	var url=__ctx+"/platform/bpm/taskReminder/getFlowVars.ht?defId="+defId;
+	$.ajax({
+		  url: url,
+		  async:false,
+		  success:function(data){
+			  var flowVars=data.flowVars;
+			  html="<div class='flowvars-container'>"+
+				'<table id="flowvar-table" class="table-grid list">'+
+					'<tr>'+
+						'<th>选择</th>'+
+						'<th>变量名</th>'+
+						'<th>注释</th>'+
+						'<th>类型</th>'+
+					'</tr>';
+				for(var i=0;i<flowVars.length;i++){
+					var css=i%2==1?"odd":"even";
+					html+='<tr class="'+css+'" onclick="selectTr(this)">'+
+						'<td> <input name="fieldName" class="pk" type="radio" value="'+flowVars[i].fieldName+'"/></td>'+
+						'<td>'+flowVars[i].fieldName+'</td>'+
+						'<td>'+flowVars[i].fieldDesc+'</td>'+
+						'<td>'+flowVars[i].fieldType+'</td>'+
+						'</tr>';
+				}
+				html+='</table></div>';
+			  }
+	});
+	html=css+html;
+	return {
+		title : '插入流程变量',
+		minWidth : 410,
+		minHeight : 410,
+		contents : [
+			{
+				id : 'flowvars',
+				label : '',
+				title : '',
+				expand : true,
+				padding : 0,
+				elements :
+				[
+					{
+						id : 'flowvars-list',
+						type : 'html',
+						html :html
+					}
+				]
+			}
+		],
+		onOk : function(){
+			// "this" is now a CKEDITOR.dialog object.
+			var document = this.getElement().getDocument();
+			// document = CKEDITOR.dom.document
+			var doc = document.$;
+			var fieldName=$(doc).find("input[name='fieldName']:[type='radio']:checked").val();
+			if(!fieldName){
+				return false;
+			}
+            editor.insertHtml("<span>${"+fieldName+"}</span>");
+		},
+		buttons : [CKEDITOR.dialog.okButton, CKEDITOR.dialog.cancelButton ]
+	};
+} );
+
+function selectTr(obj){
+	$(obj).find("input[type='radio']").attr("checked","checked");
+};

二进制
web/js/ckeditor/plugins/flowvars/images/flowvars.png


+ 181 - 0
web/js/ckeditor/plugins/forms/dialogs/ScriptManage.js

@@ -0,0 +1,181 @@
+/**
+ * 事件脚本管理
+ * @returns {ScriptManager}
+ */
+ScriptManage=function(){
+	
+	this.scripts=[];
+	this.name='';
+	this.body='';
+	
+	/**
+	 * 设置脚本
+	 */
+	this.setScripts=function(aryScript){
+		this.scripts=aryScript;
+	};
+	
+	/**
+	 * 设置当前函数的函数名
+	 */
+	this.setName=function(name){
+		this.name=name;
+	};
+	
+	/**
+	 * 设置当前函数的函数体
+	 */
+	this.setBody=function(body){
+		this.body=body;
+	};
+	
+	/**
+	 * 得到当前的所有函数 并解析保存在json数组中
+	 */
+	this.getAryScripts=function(){
+		var functions=[];
+		if(this.getScriptText()!=''){
+			var script=this.getScriptText();
+			
+			var script=script.trim();
+			
+			//脚本开始位置有变量声明
+			if(script.startWith('function')){
+				var funs=script.split('function');
+				for(var i=1;i<funs.length;i++){
+					var fun=funs[i];
+					var f=fun.trim();
+					var name=f.substring(0,f.indexOf('{'));
+					var body=f.substring(f.indexOf('{')+2,f.lastIndexOf('}'));
+					var script=this.getFunction(name, body);
+					functions.push(script);
+					
+					//function函数之间有变量声明
+					if(f.length>f.lastIndexOf('}')+1){
+						var onlyBody=f.substring(f.lastIndexOf('}')+2,f.length);
+						onlyBody=onlyBody.trim();
+						var b=this.getFunction('', onlyBody);
+						functions.push(b);
+					}
+				}
+				return functions;
+			}
+			//脚本开始位置没有变量声明
+				var funs=script.split('function');
+				
+				for(var i=0;i<funs.length;i++){
+					var fun=funs[i];
+					var f=fun.trim();
+					if(i==0){
+						var body=this.getFunction('', f);
+						functions.push(body);
+					}else{
+						var name=f.substring(0,f.indexOf('{'));
+						var body=f.substring(f.indexOf('{')+2,f.lastIndexOf('}'));
+						var script=this.getFunction(name, body);
+						functions.push(script);
+						if(f.length>f.lastIndexOf('}')+1){
+							var onlyBody=f.substring(f.lastIndexOf('}')+2,f.length);
+							var b=this.getFunction('', onlyBody);
+							functions.push(b);
+						}
+					}
+				}
+				
+		}
+		return functions;
+	}
+	
+	/**
+	 * 得到当前的事件脚本文本
+	 */
+	this.getScriptText=function(){
+		var editor=CKEDITOR.instances.html;
+		var doc=editor.getData();
+		var s=doc.indexOf("<script>");
+		var e=doc.indexOf("</script>");
+		if(s>=0&&e>0){
+			var script=doc.substring(s+8,e);
+			return script;
+		}else 	
+			return "";
+		
+	}
+	
+	/**
+	 * 添加函数:如果函数名存在则删除并替换掉该数组中的函数;
+	 *       如果所含参数中包含this关键字则替换成obj
+	 */
+	this.addScript=function(name,body){
+		name=name.trim();
+		//判断参数中是否含有this关键字  有则替换成obj
+		var allPara=name.substring(name.indexOf('(')+1,name.indexOf(')'));
+		if(allPara!=''){
+		var paras=allPara.split(',');
+		for(var i=0;i<paras.length;i++){
+			var para=paras[i];
+			if(para=='this'){
+				name=name.replace(para,'obj');
+			}
+		}
+		}
+		var index=this.isScriptExist(name);
+		var scriptObj=this.getFunction(name,body);
+		if(index==-1){
+			this.scripts.push(scriptObj);
+		}else{
+			this.scripts.splice(index, 1,scriptObj);
+		}
+	};
+	
+	/**
+	 * 根据name body 字符串 返回相应的json对象
+	 */
+	this.getFunction=function(name,body){
+		return {name:name,body:body};
+	};
+	
+	/**
+	 * 判断是否存在指定函数名的函数,
+	 * 如果存在返回该对象在数组中的索引;
+	 * 如果不存在返回-1;
+	 */
+	this.isScriptExist=function(name){
+		name=name.substring(0,name.indexOf('('));
+		for(var i=0;i<this.scripts.length;i++){
+			var script=this.scripts[i];
+			var funName=script.name
+			funName=funName.trim().substring(0,funName.indexOf('(')).toLowerCase();
+			name=name.toLowerCase();
+			if(name==funName){
+				return i;
+			}
+		}
+		return -1;
+	};
+	
+	/**
+	 * 获得html
+	 */
+	this.getHtml=function(){
+		if(this.scripts.length==0)
+			return "";
+		
+		var sb=new StringBuffer();
+		sb.append('<script>\n');
+		
+		for(var i=0;i<this.scripts.length;i++){
+			var fun=this.scripts[i];
+			var name=fun.name;
+			var body=fun.body;
+			if(name){
+			sb.append('function'+' '+name+'{\n'+body+'\n}\n');
+			}else{
+				sb.append(body+'\n');
+			}
+		}
+		sb.append("</script>");
+		return sb.toString();f
+	};
+	
+};

+ 149 - 0
web/js/ckeditor/plugins/forms/dialogs/button.js

@@ -0,0 +1,149 @@
+/*
+Copyright (c) 2003-2011, CKSource - Frederico Knabben. All rights reserved.
+For licensing, see LICENSE.html or http://ckeditor.com/license
+ */
+
+CKEDITOR.dialog
+		.add(
+				'button',
+				function(a) {
+					var script=new ScriptManage();
+					function b(c) {
+						var e = this;
+						var d = e.getValue();
+						if (d) {
+							c.attributes[e.id] = d;
+							if (e.id == 'name')
+								c.attributes['data-cke-saved-name'] = d;
+						} else {
+							delete c.attributes[e.id];
+							if (e.id == 'name')
+								delete c.attributes['data-cke-saved-name'];
+							
+						}
+					}
+					;
+					return {
+						title : a.lang.button.title,
+						minWidth : 350,
+						minHeight : 150,
+						onShow : function() {
+							var e = this;
+							delete e.button;
+							var c = e.getParentEditor().getSelection()
+									.getSelectedElement();
+							if (c && c.is('input')) {
+									e.button = c;
+									e.setupContent(c);
+							}
+						},
+						onOk : function() {
+							var c = this.getParentEditor(), d = this.button, e = !d, f = d ? CKEDITOR.htmlParser.fragment
+									.fromHtml(d.getOuterHtml()).children[0]
+									: new CKEDITOR.htmlParser.element('input');
+							this.commitContent(f);
+							var g = new CKEDITOR.htmlParser.basicWriter();
+							f.writeHtml(g);
+							var h = CKEDITOR.dom.element.createFromHtml(g
+									.getHtml(), c.document);
+							if (e){
+								c.insertElement(h);
+						    }else {
+								h.replace(d);
+								c.getSelection().selectElement(h);
+							}
+
+							var functions=script.getAryScripts();
+							
+							script.setScripts(functions);
+							
+							var name=this.getContentElement('event','onclick').getValue();
+							var body=this.getContentElement('event','funV').getValue();
+							script.setName(name||'');
+							script.setBody(body||'');
+							
+							var editor=CKEDITOR.instances.html;
+							
+							if(name&&body){
+								script.addScript(name, body);
+							}
+							
+							var text=script.getScriptText();
+							var s='<script>'+text+'</script>';
+							var data=editor.getData();
+							var str=script.getHtml();
+							var html=data.replace(s,'');
+							html=html.trim();
+							editor.setData( str+html);
+						},
+						contents : [ {
+							id : 'info',
+							label : a.lang.button.title,
+							title : a.lang.button.title,
+							elements : [
+									{
+										id : 'name',
+										type : 'text',
+										label : a.lang.common.name,
+										'default' : '',
+										setup : function(c) {
+											this.setValue(c
+													.data('cke-saved-name')
+													|| c.getAttribute('name')
+													|| '');
+										},
+										commit :b
+									},
+									{
+										id : 'value',
+										type : 'text',
+										label : a.lang.button.text,
+										accessKey : 'V',
+										'default' : '',
+										setup : function(c) {
+											this.setValue(c
+													.getAttribute('value')
+													|| '');
+										},
+										commit : b
+									},
+									 {
+										id :'type',
+										type : 'text',
+										label : '类型',
+										'default' : 'button',
+										onLoad : function()
+										{
+											this.getInputElement().setAttribute( 'readOnly', true );
+										},
+										setup : function(c) {
+											var value = c.hasAttribute('type') && c.getAttribute('type');
+											this.setValue('button');
+										},
+										commit :b
+									 }]
+						} ,{
+							id : 'event',
+							label :'事件脚本',
+							title : '事件脚本',
+							elements :[{
+								id :'onclick',
+								type:'text',
+								label:'函数名','default' : '',
+								setup:function(c){
+									this.setValue(script.name||'');
+								},
+								commit:b
+							},
+							{
+								id : 'funV',
+								type : 'textarea',
+								label : '函数体','default' : '',
+								setup : function(c){
+									this.setValue(script.body||'');
+								},
+								commit :null
+							}]
+						}]
+					};
+				});

+ 143 - 0
web/js/ckeditor/plugins/forms/dialogs/checkbox.js

@@ -0,0 +1,143 @@
+/*
+Copyright (c) 2003-2011, CKSource - Frederico Knabben. All rights reserved.
+For licensing, see LICENSE.html or http://ckeditor.com/license
+ */
+
+CKEDITOR.dialog
+		.add(
+				'checkbox',
+				function(a) {
+					return {
+						title : a.lang.checkboxAndRadio.checkboxTitle,
+						minWidth : 350,
+						minHeight : 140,
+						onShow : function() {
+							var c = this;
+							delete c.checkbox;
+							var b = c.getParentEditor().getSelection()
+									.getSelectedElement();
+							if (b && b.getAttribute('type') == 'checkbox') {
+								c.checkbox = b;
+								c.setupContent(b);
+							}
+						},
+						onOk : function() {
+							var b, c = this.checkbox, d = !c;
+							if (d) {
+								b = this.getParentEditor();
+								c = b.document.createElement('input');
+								c.setAttribute('type', 'checkbox');
+								b.insertElement(c);
+							}
+							this.commitContent({
+								element : c
+							});
+						},
+						contents : [ {
+							id : 'info',
+							label : a.lang.checkboxAndRadio.checkboxTitle,
+							title : a.lang.checkboxAndRadio.checkboxTitle,
+							startupFocus : 'txtName',
+							elements : [
+									{
+										id : 'txtName',
+										type : 'text',
+										label : a.lang.common.name,
+										'default' : '',
+										accessKey : 'N',
+										setup : function(b) {
+											this.setValue(b
+													.data('cke-saved-name')
+													|| b.getAttribute('name')
+													|| '');
+										},
+										commit : function(b) {
+											var c = b.element;
+											if (this.getValue())
+												c.data('cke-saved-name', this
+														.getValue());
+											else {
+												c.data('cke-saved-name', false);
+												c.removeAttribute('name');
+											}
+										}
+									},
+									{
+										id : 'txtValue',
+										type : 'text',
+										label : a.lang.checkboxAndRadio.value,
+										'default' : '',
+										accessKey : 'V',
+										setup : function(b) {
+											var c = b.getAttribute('value');
+											this.setValue(CKEDITOR.env.ie
+													&& c == 'on' ? '' : c);
+										},
+										commit : function(b) {
+											var c = b.element, d = this
+													.getValue();
+											if (d
+													&& !(CKEDITOR.env.ie && d == 'on'))
+												c.setAttribute('value', d);
+											else if (CKEDITOR.env.ie) {
+												var e = new CKEDITOR.dom.element(
+														'input', c
+																.getDocument());
+												c.copyAttributes(e, {
+													value : 1
+												});
+												e.replace(c);
+												a.getSelection().selectElement(
+														e);
+												b.element = e;
+											} else
+												c.removeAttribute('value');
+										}
+									},
+									{
+										id : 'cmbSelected',
+										type : 'checkbox',
+										label : a.lang.checkboxAndRadio.selected,
+										'default' : '',
+										accessKey : 'S',
+										value : 'checked',
+										setup : function(b) {
+											this.setValue(b
+													.getAttribute('checked'));
+										},
+										commit : function(b) {
+											var c = b.element;
+											if (CKEDITOR.env.ie) {
+												var d = !!c
+														.getAttribute('checked'), e = !!this
+														.getValue();
+												if (d != e) {
+													var f = CKEDITOR.dom.element
+															.createFromHtml(
+																	'<input type="checkbox"'
+																			+ (e ? ' checked="checked"'
+																					: '')
+																			+ '/>',
+																	a.document);
+													c.copyAttributes(f, {
+														type : 1,
+														checked : 1
+													});
+													f.replace(c);
+													a.getSelection()
+															.selectElement(f);
+													b.element = f;
+												}
+											} else {
+												var g = this.getValue();
+												if (g)
+													c.setAttribute('checked',
+															'checked');
+												else
+													c.removeAttribute('checked');
+											}
+										}
+									}]
+						} ]
+					};
+				});

+ 164 - 0
web/js/ckeditor/plugins/forms/dialogs/form.js

@@ -0,0 +1,164 @@
+/*
+Copyright (c) 2003-2011, CKSource - Frederico Knabben. All rights reserved.
+For licensing, see LICENSE.html or http://ckeditor.com/license
+ */
+
+CKEDITOR.dialog
+		.add(
+				'form',
+				function(a) {
+					var b = {
+						action : 1,
+						id : 1,
+						method : 1,
+						enctype : 1,
+						target : 1
+					};
+					return {
+						title : a.lang.form.title,
+						minWidth : 350,
+						minHeight : 200,
+						onShow : function() {
+							var e = this;
+							delete e.form;
+							var c = e.getParentEditor().getSelection()
+									.getStartElement(), d = c
+									&& c.getAscendant('form', true);
+							if (d) {
+								e.form = d;
+								e.setupContent(d);
+							}
+						},
+						onOk : function() {
+							var c, d = this.form, e = !d;
+							if (e) {
+								c = this.getParentEditor();
+								d = c.document.createElement('form');
+								!CKEDITOR.env.ie
+										&& d.append(c.document
+												.createElement('br'));
+							}
+							if (e)
+								c.insertElement(d);
+							this.commitContent(d);
+						},
+						onLoad : function() {
+							function c(e) {
+								this.setValue(e.getAttribute(this.id) || '');
+							}
+							;
+							function d(e) {
+								var f = this;
+								if (f.getValue())
+									e.setAttribute(f.id, f.getValue());
+								else
+									e.removeAttribute(f.id);
+							}
+							;
+							this.foreach(function(e) {
+								if (b[e.id]) {
+									e.setup = c;
+									e.commit = d;
+								}
+							});
+						},
+						contents : [ {
+							id : 'info',
+							label : a.lang.form.title,
+							title : a.lang.form.title,
+							elements : [
+									{
+										id : 'txtName',
+										type : 'text',
+										label : a.lang.common.name,
+										'default' : '',
+										accessKey : 'N',
+										setup : function(c) {
+											this.setValue(c
+													.data('cke-saved-name')
+													|| c.getAttribute('name')
+													|| '');
+										},
+										commit : function(c) {
+											if (this.getValue())
+												c.data('cke-saved-name', this
+														.getValue());
+											else {
+												c.data('cke-saved-name', false);
+												c.removeAttribute('name');
+											}
+										}
+									},
+									{
+										id : 'action',
+										type : 'text',
+										label : a.lang.form.action,
+										'default' : '',
+										accessKey : 'T'
+									},
+									{
+										type : 'hbox',
+										widths : [ '45%', '55%' ],
+										children : [
+												{
+													id : 'id',
+													type : 'text',
+													label : a.lang.common.id,
+													'default' : '',
+													accessKey : 'I'
+												},
+												{
+													id : 'enctype',
+													type : 'select',
+													label : a.lang.form.encoding,
+													style : 'width:100%',
+													accessKey : 'E',
+													'default' : '',
+													items : [
+															[ '' ],
+															[ 'text/plain' ],
+															[ 'multipart/form-data' ],
+															[ 'application/x-www-form-urlencoded' ] ]
+												} ]
+									},
+									{
+										type : 'hbox',
+										widths : [ '45%', '55%' ],
+										children : [
+												{
+													id : 'target',
+													type : 'select',
+													label : a.lang.common.target,
+													style : 'width:100%',
+													accessKey : 'M',
+													'default' : '',
+													items : [
+															[
+																	a.lang.common.notSet,
+																	'' ],
+															[
+																	a.lang.common.targetNew,
+																	'_blank' ],
+															[
+																	a.lang.common.targetTop,
+																	'_top' ],
+															[
+																	a.lang.common.targetSelf,
+																	'_self' ],
+															[
+																	a.lang.common.targetParent,
+																	'_parent' ] ]
+												},
+												{
+													id : 'method',
+													type : 'select',
+													label : a.lang.form.method,
+													accessKey : 'M',
+													'default' : 'GET',
+													items : [ [ 'GET', 'get' ],
+															[ 'POST', 'post' ] ]
+												} ]
+									} ]
+						} ]
+					};
+				});

+ 97 - 0
web/js/ckeditor/plugins/forms/dialogs/hiddenfield.js

@@ -0,0 +1,97 @@
+/*
+Copyright (c) 2003-2011, CKSource - Frederico Knabben. All rights reserved.
+For licensing, see LICENSE.html or http://ckeditor.com/license
+ */
+
+CKEDITOR.dialog
+		.add(
+				'hiddenfield',
+				function(a) {
+					return {
+						title : a.lang.hidden.title,
+						hiddenField : null,
+						minWidth : 350,
+						minHeight : 110,
+						onShow : function() {
+							var e = this;
+							delete e.hiddenField;
+							var b = e.getParentEditor(), c = b.getSelection(), d = c
+									.getSelectedElement();
+							if (d
+									&& d.data('cke-real-element-type')
+									&& d.data('cke-real-element-type') == 'hiddenfield') {
+								e.hiddenField = d;
+								d = b.restoreRealElement(e.hiddenField);
+								e.setupContent(d);
+								c.selectElement(e.hiddenField);
+							}
+						},
+						onOk : function() {
+							var g = this;
+							var b = g.getValueOf('info', '_cke_saved_name'), c = g
+									.getValueOf('info', 'value'), d = g
+									.getParentEditor(), e = CKEDITOR.env.ie
+									&& !(CKEDITOR.document.$.documentMode >= 8) ? d.document
+									.createElement('<input name="'
+											+ CKEDITOR.tools.htmlEncode(b)
+											+ '">')
+									: d.document.createElement('input');
+							e.setAttribute('type', 'hidden');
+							g.commitContent(e);
+							var f = d.createFakeElement(e, 'cke_hidden',
+									'hiddenfield');
+							if (!g.hiddenField)
+								d.insertElement(f);
+							else {
+								f.replace(g.hiddenField);
+								d.getSelection().selectElement(f);
+							}
+							return true;
+						},
+						contents : [ {
+							id : 'info',
+							label : a.lang.hidden.title,
+							title : a.lang.hidden.title,
+							elements : [
+									{
+										id : '_cke_saved_name',
+										type : 'text',
+										label : a.lang.hidden.name,
+										'default' : '',
+										accessKey : 'N',
+										setup : function(b) {
+											this.setValue(b
+													.data('cke-saved-name')
+													|| b.getAttribute('name')
+													|| '');
+										},
+										commit : function(b) {
+											if (this.getValue())
+												b.setAttribute('name', this
+														.getValue());
+											else
+												b.removeAttribute('name');
+										}
+									},
+									{
+										id : 'value',
+										type : 'text',
+										label : a.lang.hidden.value,
+										'default' : '',
+										accessKey : 'V',
+										setup : function(b) {
+											this.setValue(b
+													.getAttribute('value')
+													|| '');
+										},
+										commit : function(b) {
+											if (this.getValue())
+												b.setAttribute('value', this
+														.getValue());
+											else
+												b.removeAttribute('value');
+										}
+									} ]
+						} ]
+					};
+				});

+ 132 - 0
web/js/ckeditor/plugins/forms/dialogs/radio.js

@@ -0,0 +1,132 @@
+/*
+Copyright (c) 2003-2011, CKSource - Frederico Knabben. All rights reserved.
+For licensing, see LICENSE.html or http://ckeditor.com/license
+ */
+
+CKEDITOR.dialog
+		.add(
+				'radio',
+				function(a) {
+					return {
+						title : a.lang.checkboxAndRadio.radioTitle,
+						minWidth : 350,
+						minHeight : 140,
+						onShow : function() {
+							var c = this;
+							delete c.radioButton;
+							var b = c.getParentEditor().getSelection()
+									.getSelectedElement();
+							if (b && b.getName() == 'input'
+									&& b.getAttribute('type') == 'radio') {
+								c.radioButton = b;
+								c.setupContent(b);
+							}
+						},
+						onOk : function() {
+							var b, c = this.radioButton, d = !c;
+							if (d) {
+								b = this.getParentEditor();
+								c = b.document.createElement('input');
+								c.setAttribute('type', 'radio');
+							}
+							if (d)
+								b.insertElement(c);
+							this.commitContent({
+								element : c
+							});
+						},
+						contents : [ {
+							id : 'info',
+							label : a.lang.checkboxAndRadio.radioTitle,
+							title : a.lang.checkboxAndRadio.radioTitle,
+							elements : [
+									{
+										id : 'name',
+										type : 'text',
+										label : a.lang.common.name,
+										'default' : '',
+										accessKey : 'N',
+										setup : function(b) {
+											this.setValue(b
+													.data('cke-saved-name')
+													|| b.getAttribute('name')
+													|| '');
+										},
+										commit : function(b) {
+											var c = b.element;
+											if (this.getValue())
+												c.data('cke-saved-name', this
+														.getValue());
+											else {
+												c.data('cke-saved-name', false);
+												c.removeAttribute('name');
+											}
+										}
+									},
+									{
+										id : 'value',
+										type : 'text',
+										label : a.lang.checkboxAndRadio.value,
+										'default' : '',
+										accessKey : 'V',
+										setup : function(b) {
+											this.setValue(b
+													.getAttribute('value')
+													|| '');
+										},
+										commit : function(b) {
+											var c = b.element;
+											if (this.getValue())
+												c.setAttribute('value', this
+														.getValue());
+											else
+												c.removeAttribute('value');
+										}
+									},
+									{
+										id : 'checked',
+										type : 'checkbox',
+										label : a.lang.checkboxAndRadio.selected,
+										'default' : '',
+										accessKey : 'S',
+										value : 'checked',
+										setup : function(b) {
+											this.setValue(b
+													.getAttribute('checked'));
+										},
+										commit : function(b) {
+											var c = b.element;
+											if (!(CKEDITOR.env.ie || CKEDITOR.env.opera)) {
+												if (this.getValue())
+													c.setAttribute('checked',
+															'checked');
+												else
+													c
+															.removeAttribute('checked');
+											} else {
+												var d = c
+														.getAttribute('checked'), e = !!this
+														.getValue();
+												if (d != e) {
+													var f = CKEDITOR.dom.element
+															.createFromHtml(
+																	'<input type="radio"'
+																			+ (e ? ' checked="checked"'
+																					: '')
+																			+ '></input>',
+																	a.document);
+													c.copyAttributes(f, {
+														type : 1,
+														checked : 1
+													});
+													f.replace(c);
+													a.getSelection()
+															.selectElement(f);
+													b.element = f;
+												}
+											}
+										}
+									}]
+						} ]
+					};
+				});

+ 662 - 0
web/js/ckeditor/plugins/forms/dialogs/select.js

@@ -0,0 +1,662 @@
+/*
+Copyright (c) 2003-2011, CKSource - Frederico Knabben. All rights reserved.
+For licensing, see LICENSE.html or http://ckeditor.com/license
+ */
+
+CKEDITOR.dialog
+		.add(
+				'select',
+				function(a) {
+					function b(k, l, m, n, o) {
+						k = j(k);
+						var p;
+						if (n)
+							p = n.createElement('OPTION');
+						else
+							p = document.createElement('OPTION');
+						if (k && p && p.getName() == 'option') {
+							if (CKEDITOR.env.ie) {
+								if (!isNaN(parseInt(o, 10)))
+									k.$.options.add(p.$, o);
+								else
+									k.$.options.add(p.$);
+								p.$.innerHTML = l.length > 0 ? l : '';
+								p.$.value = m;
+							} else {
+								if (o !== null && o < k.getChildCount())
+									k.getChild(o < 0 ? 0 : o).insertBeforeMe(p);
+								else
+									k.append(p);
+								p.setText(l.length > 0 ? l : '');
+								p.setValue(m);
+							}
+						} else
+							return false;
+						return p;
+					}
+					;
+					function c(k) {
+						k = j(k);
+						var l = g(k);
+						for ( var m = k.getChildren().count() - 1; m >= 0; m--) {
+							if (k.getChild(m).$.selected)
+								k.getChild(m).remove();
+						}
+						h(k, l);
+					}
+					;
+					function d(k, l, m, n) {
+						k = j(k);
+						if (l < 0)
+							return false;
+						var o = k.getChild(l);
+						o.setText(m);
+						o.setValue(n);
+						return o;
+					}
+					;
+					function e(k) {
+						k = j(k);
+						while (k.getChild(0) && k.getChild(0).remove()) {
+						}
+					}
+					;
+					function f(k, l, m) {
+						k = j(k);
+						var n = g(k);
+						if (n < 0)
+							return false;
+						var o = n + l;
+						o = o < 0 ? 0 : o;
+						o = o >= k.getChildCount() ? k.getChildCount() - 1 : o;
+						if (n == o)
+							return false;
+						var p = k.getChild(n), q = p.getText(), r = p
+								.getValue();
+						p.remove();
+						p = b(k, q, r, !m ? null : m, o);
+						h(k, o);
+						return p;
+					}
+					;
+					function g(k) {
+						k = j(k);
+						return k ? k.$.selectedIndex : -1;
+					}
+					;
+					function h(k, l) {
+						k = j(k);
+						if (l < 0)
+							return null;
+						var m = k.getChildren().count();
+						k.$.selectedIndex = l >= m ? m - 1 : l;
+						return k;
+					}
+					;
+					function i(k) {
+						k = j(k);
+						return k ? k.getChildren() : false;
+					}
+					;
+					function j(k) {
+						if (k && k.domId && k.getInputElement().$)
+							return k.getInputElement();
+						else if (k && k.$)
+							return k;
+						return false;
+					}
+					;
+					return {
+						title : a.lang.select.title,
+						minWidth : CKEDITOR.env.ie ? 460 : 395,
+						minHeight : CKEDITOR.env.ie ? 340 : 320,
+						onShow : function() {
+							var n = this;
+							delete n.selectBox;
+							n.setupContent('clear');
+							var k = n.getParentEditor().getSelection()
+									.getSelectedElement();
+							if (k && k.getName() == 'select') {
+								n.selectBox = k;
+								n.setupContent(k.getName(), k);
+								var l = i(k);
+								for ( var m = 0; m < l.count(); m++)
+									n.setupContent('option', l.getItem(m));
+							}
+						},
+						onOk : function() {
+							var k = this.getParentEditor(), l = this.selectBox, m = !l;
+							if (m)
+								l = k.document.createElement('select');
+							this.commitContent(l);
+							if (m) {
+								k.insertElement(l);
+								if (CKEDITOR.env.ie) {
+									var n = k.getSelection(), o = n
+											.createBookmarks();
+									setTimeout(function() {
+										n.selectBookmarks(o);
+									}, 0);
+								}
+							}
+						},
+						contents : [ {
+							id : 'info',
+							label : a.lang.select.selectInfo,
+							title : a.lang.select.selectInfo,
+							accessKey : '',
+							elements : [
+									{
+										id : 'txtName',
+										type : 'text',
+										widths : [ '25%', '75%' ],
+										labelLayout : 'horizontal',
+										label : a.lang.common.name,
+										'default' : '',
+										accessKey : 'N',
+										style : 'width:350px',
+										setup : function(k, l) {
+											if (k == 'clear')
+												this.setValue(this['default']
+														|| '');
+											else if (k == 'select')
+												this
+														.setValue(l
+																.data('cke-saved-name')
+																|| l
+																		.getAttribute('name')
+																|| '');
+										},
+										commit : function(k) {
+											if (this.getValue())
+												k.data('cke-saved-name', this
+														.getValue());
+											else {
+												k.data('cke-saved-name', false);
+												k.removeAttribute('name');
+											}
+										}
+									},
+									{
+										id : 'txtValue',
+										type : 'text',
+										widths : [ '25%', '75%' ],
+										labelLayout : 'horizontal',
+										label : a.lang.select.value,
+										style : 'width:350px',
+										'default' : '',
+										className : 'cke_disabled',
+										onLoad : function() {
+											this.getInputElement()
+													.setAttribute('readOnly',
+															true);
+										},
+										setup : function(k, l) {
+											if (k == 'clear')
+												this.setValue('');
+											else if (k == 'option'
+													&& l
+															.getAttribute('selected'))
+												this.setValue(l.$.value);
+										}
+									},
+									{
+										type : 'hbox',
+										widths : [ '175px', '170px' ],
+										children : [
+												{
+													id : 'txtSize',
+													type : 'text',
+													labelLayout : 'horizontal',
+													label : a.lang.select.size,
+													'default' : '',
+													accessKey : 'S',
+													style : 'width:175px',
+													validate : function() {
+														var k = CKEDITOR.dialog.validate
+																.integer(a.lang.common.validateNumberFailed);
+														return this.getValue() === ''
+																|| k
+																		.apply(this);
+													},
+													setup : function(k, l) {
+														if (k == 'select')
+															this
+																	.setValue(l
+																			.getAttribute('size')
+																			|| '');
+														if (CKEDITOR.env.webkit)
+															this
+																	.getInputElement()
+																	.setStyle(
+																			'width',
+																			'86px');
+													},
+													commit : function(k) {
+														if (this.getValue())
+															k
+																	.setAttribute(
+																			'size',
+																			this
+																					.getValue());
+														else
+															k
+																	.removeAttribute('size');
+													}
+												},
+												{
+													type : 'html',
+													html : '<span>'
+															+ CKEDITOR.tools
+																	.htmlEncode(a.lang.select.lines)
+															+ '</span>'
+												} ]
+									},
+									{
+										type : 'html',
+										html : '<span>'
+												+ CKEDITOR.tools
+														.htmlEncode(a.lang.select.opAvail)
+												+ '</span>'
+									},
+									{
+										type : 'hbox',
+										widths : [ '115px', '115px', '100px' ],
+										children : [
+												{
+													type : 'vbox',
+													children : [
+															{
+																id : 'txtOptName',
+																type : 'text',
+																label : a.lang.select.opText,
+																style : 'width:115px',
+																setup : function(
+																		k, l) {
+																	if (k == 'clear')
+																		this
+																				.setValue('');
+																}
+															},
+															{
+																type : 'select',
+																id : 'cmbName',
+																label : '',
+																title : '',
+																size : 5,
+																style : 'width:115px;height:75px',
+																items : [],
+																onChange : function() {
+																	var k = this
+																			.getDialog(), l = k
+																			.getContentElement(
+																					'info',
+																					'cmbValue'), m = k
+																			.getContentElement(
+																					'info',
+																					'txtOptName'), n = k
+																			.getContentElement(
+																					'info',
+																					'txtOptValue'), o = g(this);
+																	h(l, o);
+																	m
+																			.setValue(this
+																					.getValue());
+																	n
+																			.setValue(l
+																					.getValue());
+																},
+																setup : function(
+																		k, l) {
+																	if (k == 'clear')
+																		e(this);
+																	else if (k == 'option')
+																		b(
+																				this,
+																				l
+																						.getText(),
+																				l
+																						.getText(),
+																				this
+																						.getDialog()
+																						.getParentEditor().document);
+																},
+																commit : function(
+																		k) {
+																	var l = this
+																			.getDialog(), m = i(this), n = i(l
+																			.getContentElement(
+																					'info',
+																					'cmbValue')), o = l
+																			.getContentElement(
+																					'info',
+																					'txtValue')
+																			.getValue();
+																	e(k);
+																	for ( var p = 0; p < m
+																			.count(); p++) {
+																		var q = b(
+																				k,
+																				m
+																						.getItem(
+																								p)
+																						.getValue(),
+																				n
+																						.getItem(
+																								p)
+																						.getValue(),
+																				l
+																						.getParentEditor().document);
+																		if (n
+																				.getItem(
+																						p)
+																				.getValue() == o) {
+																			q
+																					.setAttribute(
+																							'selected',
+																							'selected');
+																			q.selected = true;
+																		}
+																	}
+																}
+															} ]
+												},
+												{
+													type : 'vbox',
+													children : [
+															{
+																id : 'txtOptValue',
+																type : 'text',
+																label : a.lang.select.opValue,
+																style : 'width:115px',
+																setup : function(
+																		k, l) {
+																	if (k == 'clear')
+																		this
+																				.setValue('');
+																}
+															},
+															{
+																type : 'select',
+																id : 'cmbValue',
+																label : '',
+																size : 5,
+																style : 'width:115px;height:75px',
+																items : [],
+																onChange : function() {
+																	var k = this
+																			.getDialog(), l = k
+																			.getContentElement(
+																					'info',
+																					'cmbName'), m = k
+																			.getContentElement(
+																					'info',
+																					'txtOptName'), n = k
+																			.getContentElement(
+																					'info',
+																					'txtOptValue'), o = g(this);
+																	h(l, o);
+																	m
+																			.setValue(l
+																					.getValue());
+																	n
+																			.setValue(this
+																					.getValue());
+																},
+																setup : function(
+																		k, l) {
+																	var n = this;
+																	if (k == 'clear')
+																		e(n);
+																	else if (k == 'option') {
+																		var m = l
+																				.getValue();
+																		b(
+																				n,
+																				m,
+																				m,
+																				n
+																						.getDialog()
+																						.getParentEditor().document);
+																		if (l
+																				.getAttribute('selected') == 'selected')
+																			n
+																					.getDialog()
+																					.getContentElement(
+																							'info',
+																							'txtValue')
+																					.setValue(
+																							m);
+																	}
+																}
+															} ]
+												},
+												{
+													type : 'vbox',
+													padding : 5,
+													children : [
+															{
+																type : 'button',
+																id : 'btnAdd',
+																style : '',
+																label : a.lang.select.btnAdd,
+																title : a.lang.select.btnAdd,
+																style : 'width:100%;',
+																onClick : function() {
+																	var k = this
+																			.getDialog(), l = k
+																			.getParentEditor(), m = k
+																			.getContentElement(
+																					'info',
+																					'txtOptName'), n = k
+																			.getContentElement(
+																					'info',
+																					'txtOptValue'), o = k
+																			.getContentElement(
+																					'info',
+																					'cmbName'), p = k
+																			.getContentElement(
+																					'info',
+																					'cmbValue');
+																	b(
+																			o,
+																			m
+																					.getValue(),
+																			m
+																					.getValue(),
+																			k
+																					.getParentEditor().document);
+																	b(
+																			p,
+																			n
+																					.getValue(),
+																			n
+																					.getValue(),
+																			k
+																					.getParentEditor().document);
+																	m
+																			.setValue('');
+																	n
+																			.setValue('');
+																}
+															},
+															{
+																type : 'button',
+																id : 'btnModify',
+																label : a.lang.select.btnModify,
+																title : a.lang.select.btnModify,
+																style : 'width:100%;',
+																onClick : function() {
+																	var k = this
+																			.getDialog(), l = k
+																			.getContentElement(
+																					'info',
+																					'txtOptName'), m = k
+																			.getContentElement(
+																					'info',
+																					'txtOptValue'), n = k
+																			.getContentElement(
+																					'info',
+																					'cmbName'), o = k
+																			.getContentElement(
+																					'info',
+																					'cmbValue'), p = g(n);
+																	if (p >= 0) {
+																		d(
+																				n,
+																				p,
+																				l
+																						.getValue(),
+																				l
+																						.getValue());
+																		d(
+																				o,
+																				p,
+																				m
+																						.getValue(),
+																				m
+																						.getValue());
+																	}
+																}
+															},
+															{
+																type : 'button',
+																id : 'btnUp',
+																style : 'width:100%;',
+																label : a.lang.select.btnUp,
+																title : a.lang.select.btnUp,
+																onClick : function() {
+																	var k = this
+																			.getDialog(), l = k
+																			.getContentElement(
+																					'info',
+																					'cmbName'), m = k
+																			.getContentElement(
+																					'info',
+																					'cmbValue');
+																	f(
+																			l,
+																			-1,
+																			k
+																					.getParentEditor().document);
+																	f(
+																			m,
+																			-1,
+																			k
+																					.getParentEditor().document);
+																}
+															},
+															{
+																type : 'button',
+																id : 'btnDown',
+																style : 'width:100%;',
+																label : a.lang.select.btnDown,
+																title : a.lang.select.btnDown,
+																onClick : function() {
+																	var k = this
+																			.getDialog(), l = k
+																			.getContentElement(
+																					'info',
+																					'cmbName'), m = k
+																			.getContentElement(
+																					'info',
+																					'cmbValue');
+																	f(
+																			l,
+																			1,
+																			k
+																					.getParentEditor().document);
+																	f(
+																			m,
+																			1,
+																			k
+																					.getParentEditor().document);
+																}
+															} ]
+												} ]
+									},
+									{
+										type : 'hbox',
+										widths : [ '40%', '20%', '40%' ],
+										children : [
+												{
+													type : 'button',
+													id : 'btnSetValue',
+													label : a.lang.select.btnSetValue,
+													title : a.lang.select.btnSetValue,
+													onClick : function() {
+														var k = this
+																.getDialog(), l = k
+																.getContentElement(
+																		'info',
+																		'cmbValue'), m = k
+																.getContentElement(
+																		'info',
+																		'txtValue');
+														m
+																.setValue(l
+																		.getValue());
+													}
+												},
+												{
+													type : 'button',
+													id : 'btnDelete',
+													label : a.lang.select.btnDelete,
+													title : a.lang.select.btnDelete,
+													onClick : function() {
+														var k = this
+																.getDialog(), l = k
+																.getContentElement(
+																		'info',
+																		'cmbName'), m = k
+																.getContentElement(
+																		'info',
+																		'cmbValue'), n = k
+																.getContentElement(
+																		'info',
+																		'txtOptName'), o = k
+																.getContentElement(
+																		'info',
+																		'txtOptValue');
+														c(l);
+														c(m);
+														n.setValue('');
+														o.setValue('');
+													}
+												},
+												{
+													id : 'chkMulti',
+													type : 'checkbox',
+													label : a.lang.select.chkMulti,
+													'default' : '',
+													accessKey : 'M',
+													value : 'checked',
+													setup : function(k, l) {
+														if (k == 'select')
+															this
+																	.setValue(l
+																			.getAttribute('multiple'));
+														if (CKEDITOR.env.webkit)
+															this
+																	.getElement()
+																	.getParent()
+																	.setStyle(
+																			'vertical-align',
+																			'middle');
+													},
+													commit : function(k) {
+														if (this.getValue())
+															k
+																	.setAttribute(
+																			'multiple',
+																			this
+																					.getValue());
+														else
+															k
+																	.removeAttribute('multiple');
+													}
+												}]
+									} ]
+						} ]
+					};
+				});

+ 188 - 0
web/js/ckeditor/plugins/forms/dialogs/textfield.js

@@ -0,0 +1,188 @@
+/*
+Copyright (c) 2003-2011, CKSource - Frederico Knabben. All rights reserved.
+For licensing, see LICENSE.html or http://ckeditor.com/license
+ */
+
+CKEDITOR.dialog
+		.add(
+				'textfield',
+				function(a) {
+					var b = {
+						value : 1,
+						size : 1,
+						maxLength : 1
+					}, c = {
+						text : 1,
+						password : 1
+					};
+					return {
+						title : a.lang.textfield.title,
+						minWidth : 350,
+						minHeight : 150,
+						onShow : function() {
+							var e = this;
+							delete e.textField;
+							var d = e.getParentEditor().getSelection()
+									.getSelectedElement();
+							if (d
+									&& d.getName() == 'input'
+									&& (c[d.getAttribute('type')] || !d
+											.getAttribute('type'))) {
+								e.textField = d;
+								e.setupContent(d);
+							}
+						},
+						onOk : function() {
+							var d, e = this.textField, f = !e;
+							if (f) {
+								d = this.getParentEditor();
+								e = d.document.createElement('input');
+								e.setAttribute('type', 'text');
+							}
+							if (f)
+								d.insertElement(e);
+							this.commitContent({
+								element : e
+							});
+						},
+						onLoad : function() {
+							var d = function(f) {
+								var g = f.hasAttribute(this.id)
+										&& f.getAttribute(this.id);
+								this.setValue(g || '');
+							}, e = function(f) {
+								var g = f.element, h = this.getValue();
+								if (h)
+									g.setAttribute(this.id, h);
+								else
+									g.removeAttribute(this.id);
+							};
+							this.foreach(function(f) {
+								if (b[f.id]) {
+									f.setup = d;
+									f.commit = e;
+								}
+							});
+						},
+						contents : [ {
+							id : 'info',
+							label : a.lang.textfield.title,
+							title : a.lang.textfield.title,
+							elements : [
+									{
+										type : 'hbox',
+										widths : [ '50%', '50%' ],
+										children : [
+												{
+													id : '_cke_saved_name',
+													type : 'text',
+													label : a.lang.textfield.name,
+													'default' : '',
+													accessKey : 'N',
+													setup : function(d) {
+														this
+																.setValue(d
+																		.data('cke-saved-name')
+																		|| d
+																				.getAttribute('name')
+																		|| '');
+													},
+													commit : function(d) {
+														var e = d.element;
+														if (this.getValue())
+															e
+																	.data(
+																			'cke-saved-name',
+																			this
+																					.getValue());
+														else {
+															e
+																	.data(
+																			'cke-saved-name',
+																			false);
+															e
+																	.removeAttribute('name');
+														}
+													}
+												},
+												{
+													id : 'value',
+													type : 'text',
+													label : a.lang.textfield.value,
+													'default' : '',
+													accessKey : 'V'
+												} ]
+									},
+									{
+										type : 'hbox',
+										widths : [ '50%', '50%' ],
+										children : [
+												{
+													id : 'size',
+													type : 'text',
+													label : a.lang.textfield.charWidth,
+													'default' : '',
+													accessKey : 'C',
+													style : 'width:50px',
+													validate : CKEDITOR.dialog.validate
+															.integer(a.lang.common.validateNumberFailed)
+												},
+												{
+													id : 'maxLength',
+													type : 'text',
+													label : a.lang.textfield.maxChars,
+													'default' : '',
+													accessKey : 'M',
+													style : 'width:50px',
+													validate : CKEDITOR.dialog.validate
+															.integer(a.lang.common.validateNumberFailed)
+												} ],
+										onLoad : function() {
+											if (CKEDITOR.env.ie7Compat)
+												this.getElement().setStyle(
+														'zoom', '100%');
+										}
+									},
+									{
+										id : 'type',
+										type : 'select',
+										label : a.lang.textfield.type,
+										'default' : 'text',
+										accessKey : 'M',
+										items : [
+												[ a.lang.textfield.typeText,
+														'text' ],
+												[ a.lang.textfield.typePass,
+														'password' ] ],
+										setup : function(d) {
+											this.setValue(d
+													.getAttribute('type'));
+										},
+										commit : function(d) {
+											var e = d.element;
+											if (CKEDITOR.env.ie) {
+												var f = e.getAttribute('type'), g = this
+														.getValue();
+												if (f != g) {
+													var h = CKEDITOR.dom.element
+															.createFromHtml(
+																	'<input type="'
+																			+ g
+																			+ '"></input>',
+																	a.document);
+													e.copyAttributes(h, {
+														type : 1
+													});
+													h.replace(e);
+													a.getSelection()
+															.selectElement(h);
+													d.element = h;
+												}
+											} else
+												e.setAttribute('type', this
+														.getValue());
+										}
+									} ]
+						} ]
+					};
+				});

二进制
web/js/ckeditor/plugins/forms/images/hiddenfield.gif


二进制
web/js/ckeditor/plugins/htmlDefForm/document-attribute-n.png


二进制
web/js/ckeditor/plugins/iframe/images/placeholder.png


文件差异内容过多而无法显示
+ 6 - 0
web/js/ckeditor/plugins/iframedialog/plugin.js


二进制
web/js/ckeditor/plugins/img/image.gif


+ 23 - 0
web/js/ckeditor/plugins/jumpurl/plugin.js

@@ -0,0 +1,23 @@
+(function(){
+    //Section 1 : 按下自定义按钮时执行的代码
+    var a= {
+        exec:function(editor)
+        {
+        	//addClick();
+			editor.insertHtml("${跳转地址}");
+        }
+    },
+    //Section 2 : 创建自定义按钮、绑定方法
+    b='jumpurl';
+    CKEDITOR.plugins.add(b,{
+        init:function(editor){
+            editor.addCommand(b,a);
+            editor.ui.addButton('jumpurl',{
+                label:'插入跳转地址',
+                icon: this.path + 'icon002a10.gif',
+                command:b
+            });
+        }
+    });
+       
+})();

二进制
web/js/ckeditor/plugins/link/images/anchor.gif


文件差异内容过多而无法显示
+ 7 - 0
web/js/ckeditor/plugins/liststyle/dialogs/liststyle.js


二进制
web/js/ckeditor/plugins/page/pagebreak.gif


+ 21 - 0
web/js/ckeditor/plugins/page/plugin.js

@@ -0,0 +1,21 @@
+(function(){
+    //Section 1 : 按下自定义按钮时执行的代码
+    var a= {
+        exec:function(editor){
+        	var imgHtml = '#tagpage#';
+			editor.insertHtml(imgHtml);
+        }
+    },
+    //Section 2 : 创建自定义按钮、绑定方法
+    b='page';
+    CKEDITOR.plugins.add(b,{
+        init:function(editor){
+            editor.addCommand(b,a);
+            editor.ui.addButton('page',{
+                label:'插入分页',
+                icon: this.path + 'pagebreak.gif',
+                command:b
+            });
+        }
+    });
+})();

文件差异内容过多而无法显示
+ 11 - 0
web/js/ckeditor/plugins/pastefromword/filter/default.js


文件差异内容过多而无法显示
+ 6 - 0
web/js/ckeditor/plugins/pastetext/dialogs/pastetext.js


二进制
web/js/ckeditor/plugins/placeholder/placeholder.gif


文件差异内容过多而无法显示
+ 6 - 0
web/js/ckeditor/plugins/placeholder/plugin.js


二进制
web/js/ckeditor/plugins/readperson/users.png


二进制
web/js/ckeditor/plugins/remaintime/alarm-clock-blue.png


+ 33 - 0
web/js/ckeditor/plugins/saveRule/plugin.js

@@ -0,0 +1,33 @@
+(function(){
+    //Section 1 : 按下自定义按钮时执行的代码
+    var a= {
+        exec:function(editor)
+        {
+        	    var defId=$("#defId").val();
+    			var taskNameRule=editor.getData();
+    			var data="defId="+defId+"&taskNameRule="+taskNameRule;
+    			$.post("saveTitleRule.ht",data,function(msg){
+    				var obj=new com.hotent.form.ResultMessage(msg);
+    				if(obj.isSuccess()){
+    					$.ligerDialog.success(obj.getMessage(),"操作成功");
+    				}else{
+    					$.ligerDialog.error(obj.getMessage(),"操作失败");
+    				}
+    			});
+    	
+        }
+    },
+    //Section 2 : 创建自定义按钮、绑定方法
+    b='saveRule';
+    CKEDITOR.plugins.add(b,{
+        init:function(editor){
+            editor.addCommand(b,a);
+            editor.ui.addButton('saveRule',{
+                label:'保存',
+                icon: this.path + 'save.png',
+                command:b
+            });
+        }
+    });
+    
+})();

文件差异内容过多而无法显示
+ 8 - 0
web/js/ckeditor/plugins/scayt/dialogs/options.js


文件差异内容过多而无法显示
+ 6 - 0
web/js/ckeditor/plugins/scayt/dialogs/toolbar.css


二进制
web/js/ckeditor/plugins/sendperson/group.png


二进制
web/js/ckeditor/plugins/showblocks/images/block_div.png


二进制
web/js/ckeditor/plugins/showblocks/images/block_h1.png


二进制
web/js/ckeditor/plugins/showblocks/images/block_h2.png


二进制
web/js/ckeditor/plugins/showblocks/images/block_h3.png


二进制
web/js/ckeditor/plugins/showblocks/images/block_h4.png


二进制
web/js/ckeditor/plugins/showblocks/images/block_h5.png


二进制
web/js/ckeditor/plugins/showblocks/images/block_p.png


文件差异内容过多而无法显示
+ 7 - 0
web/js/ckeditor/plugins/smiley/dialogs/smiley.js


二进制
web/js/ckeditor/plugins/smiley/images/angel_smile.gif


二进制
web/js/ckeditor/plugins/smiley/images/broken_heart.gif


二进制
web/js/ckeditor/plugins/smiley/images/cry_smile.gif


二进制
web/js/ckeditor/plugins/smiley/images/devil_smile.gif


+ 0 - 0
web/js/ckeditor/plugins/smiley/images/heart.gif


部分文件因为文件数量过多而无法显示