rails_kindeditor 0.1.2 → 0.2.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (206) hide show
  1. data/README.rdoc +14 -99
  2. data/lib/generators/rails_kindeditor/install/install_generator.rb +2 -2
  3. data/lib/generators/rails_kindeditor/install/templates/kindeditor/kindeditor-min.js +165 -158
  4. data/lib/generators/rails_kindeditor/install/templates/kindeditor/lang/en.js +210 -208
  5. data/lib/generators/rails_kindeditor/install/templates/kindeditor/lang/zh_CN.js +214 -210
  6. data/lib/generators/rails_kindeditor/install/templates/kindeditor/lang/zh_TW.js +212 -210
  7. data/lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/anchor/anchor.js +46 -0
  8. data/lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/clearhtml/clearhtml.js +29 -28
  9. data/lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/filemanager/filemanager.js +185 -189
  10. data/lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/flash/flash.js +145 -128
  11. data/lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/image/image.js +242 -226
  12. data/lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/insertfile/insertfile.js +109 -104
  13. data/lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/link/link.js +65 -59
  14. data/lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/map/map.js +137 -135
  15. data/lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/media/media.js +153 -136
  16. data/lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/pagebreak/pagebreak.js +26 -26
  17. data/lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/table/table.js +715 -661
  18. data/lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/wordpaste/wordpaste.js +51 -57
  19. data/lib/generators/rails_kindeditor/install/templates/kindeditor/themes/common/anchor.gif +0 -0
  20. data/lib/generators/rails_kindeditor/install/templates/kindeditor/themes/default/default.css +980 -941
  21. data/lib/generators/rails_kindeditor/install/templates/kindeditor/themes/default/default.gif +0 -0
  22. data/lib/rails_kindeditor/helper.rb +9 -10
  23. data/lib/rails_kindeditor/version.rb +1 -1
  24. metadata +29 -231
  25. data/vendor/assets/javascripts/kindeditor.js +0 -158
  26. data/vendor/assets/javascripts/lang/en.js +0 -208
  27. data/vendor/assets/javascripts/lang/zh_CN.js +0 -210
  28. data/vendor/assets/javascripts/lang/zh_TW.js +0 -210
  29. data/vendor/assets/javascripts/plugins/clearhtml/clearhtml.js +0 -28
  30. data/vendor/assets/javascripts/plugins/code/code.js +0 -57
  31. data/vendor/assets/javascripts/plugins/code/prettify.css +0 -13
  32. data/vendor/assets/javascripts/plugins/code/prettify.js +0 -28
  33. data/vendor/assets/javascripts/plugins/emoticons/emoticons.js +0 -129
  34. data/vendor/assets/javascripts/plugins/emoticons/images/0.gif +0 -0
  35. data/vendor/assets/javascripts/plugins/emoticons/images/1.gif +0 -0
  36. data/vendor/assets/javascripts/plugins/emoticons/images/10.gif +0 -0
  37. data/vendor/assets/javascripts/plugins/emoticons/images/100.gif +0 -0
  38. data/vendor/assets/javascripts/plugins/emoticons/images/101.gif +0 -0
  39. data/vendor/assets/javascripts/plugins/emoticons/images/102.gif +0 -0
  40. data/vendor/assets/javascripts/plugins/emoticons/images/103.gif +0 -0
  41. data/vendor/assets/javascripts/plugins/emoticons/images/104.gif +0 -0
  42. data/vendor/assets/javascripts/plugins/emoticons/images/105.gif +0 -0
  43. data/vendor/assets/javascripts/plugins/emoticons/images/106.gif +0 -0
  44. data/vendor/assets/javascripts/plugins/emoticons/images/107.gif +0 -0
  45. data/vendor/assets/javascripts/plugins/emoticons/images/108.gif +0 -0
  46. data/vendor/assets/javascripts/plugins/emoticons/images/109.gif +0 -0
  47. data/vendor/assets/javascripts/plugins/emoticons/images/11.gif +0 -0
  48. data/vendor/assets/javascripts/plugins/emoticons/images/110.gif +0 -0
  49. data/vendor/assets/javascripts/plugins/emoticons/images/111.gif +0 -0
  50. data/vendor/assets/javascripts/plugins/emoticons/images/112.gif +0 -0
  51. data/vendor/assets/javascripts/plugins/emoticons/images/113.gif +0 -0
  52. data/vendor/assets/javascripts/plugins/emoticons/images/114.gif +0 -0
  53. data/vendor/assets/javascripts/plugins/emoticons/images/115.gif +0 -0
  54. data/vendor/assets/javascripts/plugins/emoticons/images/116.gif +0 -0
  55. data/vendor/assets/javascripts/plugins/emoticons/images/117.gif +0 -0
  56. data/vendor/assets/javascripts/plugins/emoticons/images/118.gif +0 -0
  57. data/vendor/assets/javascripts/plugins/emoticons/images/119.gif +0 -0
  58. data/vendor/assets/javascripts/plugins/emoticons/images/12.gif +0 -0
  59. data/vendor/assets/javascripts/plugins/emoticons/images/120.gif +0 -0
  60. data/vendor/assets/javascripts/plugins/emoticons/images/121.gif +0 -0
  61. data/vendor/assets/javascripts/plugins/emoticons/images/122.gif +0 -0
  62. data/vendor/assets/javascripts/plugins/emoticons/images/123.gif +0 -0
  63. data/vendor/assets/javascripts/plugins/emoticons/images/124.gif +0 -0
  64. data/vendor/assets/javascripts/plugins/emoticons/images/125.gif +0 -0
  65. data/vendor/assets/javascripts/plugins/emoticons/images/126.gif +0 -0
  66. data/vendor/assets/javascripts/plugins/emoticons/images/127.gif +0 -0
  67. data/vendor/assets/javascripts/plugins/emoticons/images/128.gif +0 -0
  68. data/vendor/assets/javascripts/plugins/emoticons/images/129.gif +0 -0
  69. data/vendor/assets/javascripts/plugins/emoticons/images/13.gif +0 -0
  70. data/vendor/assets/javascripts/plugins/emoticons/images/130.gif +0 -0
  71. data/vendor/assets/javascripts/plugins/emoticons/images/131.gif +0 -0
  72. data/vendor/assets/javascripts/plugins/emoticons/images/132.gif +0 -0
  73. data/vendor/assets/javascripts/plugins/emoticons/images/133.gif +0 -0
  74. data/vendor/assets/javascripts/plugins/emoticons/images/134.gif +0 -0
  75. data/vendor/assets/javascripts/plugins/emoticons/images/14.gif +0 -0
  76. data/vendor/assets/javascripts/plugins/emoticons/images/15.gif +0 -0
  77. data/vendor/assets/javascripts/plugins/emoticons/images/16.gif +0 -0
  78. data/vendor/assets/javascripts/plugins/emoticons/images/17.gif +0 -0
  79. data/vendor/assets/javascripts/plugins/emoticons/images/18.gif +0 -0
  80. data/vendor/assets/javascripts/plugins/emoticons/images/19.gif +0 -0
  81. data/vendor/assets/javascripts/plugins/emoticons/images/2.gif +0 -0
  82. data/vendor/assets/javascripts/plugins/emoticons/images/20.gif +0 -0
  83. data/vendor/assets/javascripts/plugins/emoticons/images/21.gif +0 -0
  84. data/vendor/assets/javascripts/plugins/emoticons/images/22.gif +0 -0
  85. data/vendor/assets/javascripts/plugins/emoticons/images/23.gif +0 -0
  86. data/vendor/assets/javascripts/plugins/emoticons/images/24.gif +0 -0
  87. data/vendor/assets/javascripts/plugins/emoticons/images/25.gif +0 -0
  88. data/vendor/assets/javascripts/plugins/emoticons/images/26.gif +0 -0
  89. data/vendor/assets/javascripts/plugins/emoticons/images/27.gif +0 -0
  90. data/vendor/assets/javascripts/plugins/emoticons/images/28.gif +0 -0
  91. data/vendor/assets/javascripts/plugins/emoticons/images/29.gif +0 -0
  92. data/vendor/assets/javascripts/plugins/emoticons/images/3.gif +0 -0
  93. data/vendor/assets/javascripts/plugins/emoticons/images/30.gif +0 -0
  94. data/vendor/assets/javascripts/plugins/emoticons/images/31.gif +0 -0
  95. data/vendor/assets/javascripts/plugins/emoticons/images/32.gif +0 -0
  96. data/vendor/assets/javascripts/plugins/emoticons/images/33.gif +0 -0
  97. data/vendor/assets/javascripts/plugins/emoticons/images/34.gif +0 -0
  98. data/vendor/assets/javascripts/plugins/emoticons/images/35.gif +0 -0
  99. data/vendor/assets/javascripts/plugins/emoticons/images/36.gif +0 -0
  100. data/vendor/assets/javascripts/plugins/emoticons/images/37.gif +0 -0
  101. data/vendor/assets/javascripts/plugins/emoticons/images/38.gif +0 -0
  102. data/vendor/assets/javascripts/plugins/emoticons/images/39.gif +0 -0
  103. data/vendor/assets/javascripts/plugins/emoticons/images/4.gif +0 -0
  104. data/vendor/assets/javascripts/plugins/emoticons/images/40.gif +0 -0
  105. data/vendor/assets/javascripts/plugins/emoticons/images/41.gif +0 -0
  106. data/vendor/assets/javascripts/plugins/emoticons/images/42.gif +0 -0
  107. data/vendor/assets/javascripts/plugins/emoticons/images/43.gif +0 -0
  108. data/vendor/assets/javascripts/plugins/emoticons/images/44.gif +0 -0
  109. data/vendor/assets/javascripts/plugins/emoticons/images/45.gif +0 -0
  110. data/vendor/assets/javascripts/plugins/emoticons/images/46.gif +0 -0
  111. data/vendor/assets/javascripts/plugins/emoticons/images/47.gif +0 -0
  112. data/vendor/assets/javascripts/plugins/emoticons/images/48.gif +0 -0
  113. data/vendor/assets/javascripts/plugins/emoticons/images/49.gif +0 -0
  114. data/vendor/assets/javascripts/plugins/emoticons/images/5.gif +0 -0
  115. data/vendor/assets/javascripts/plugins/emoticons/images/50.gif +0 -0
  116. data/vendor/assets/javascripts/plugins/emoticons/images/51.gif +0 -0
  117. data/vendor/assets/javascripts/plugins/emoticons/images/52.gif +0 -0
  118. data/vendor/assets/javascripts/plugins/emoticons/images/53.gif +0 -0
  119. data/vendor/assets/javascripts/plugins/emoticons/images/54.gif +0 -0
  120. data/vendor/assets/javascripts/plugins/emoticons/images/55.gif +0 -0
  121. data/vendor/assets/javascripts/plugins/emoticons/images/56.gif +0 -0
  122. data/vendor/assets/javascripts/plugins/emoticons/images/57.gif +0 -0
  123. data/vendor/assets/javascripts/plugins/emoticons/images/58.gif +0 -0
  124. data/vendor/assets/javascripts/plugins/emoticons/images/59.gif +0 -0
  125. data/vendor/assets/javascripts/plugins/emoticons/images/6.gif +0 -0
  126. data/vendor/assets/javascripts/plugins/emoticons/images/60.gif +0 -0
  127. data/vendor/assets/javascripts/plugins/emoticons/images/61.gif +0 -0
  128. data/vendor/assets/javascripts/plugins/emoticons/images/62.gif +0 -0
  129. data/vendor/assets/javascripts/plugins/emoticons/images/63.gif +0 -0
  130. data/vendor/assets/javascripts/plugins/emoticons/images/64.gif +0 -0
  131. data/vendor/assets/javascripts/plugins/emoticons/images/65.gif +0 -0
  132. data/vendor/assets/javascripts/plugins/emoticons/images/66.gif +0 -0
  133. data/vendor/assets/javascripts/plugins/emoticons/images/67.gif +0 -0
  134. data/vendor/assets/javascripts/plugins/emoticons/images/68.gif +0 -0
  135. data/vendor/assets/javascripts/plugins/emoticons/images/69.gif +0 -0
  136. data/vendor/assets/javascripts/plugins/emoticons/images/7.gif +0 -0
  137. data/vendor/assets/javascripts/plugins/emoticons/images/70.gif +0 -0
  138. data/vendor/assets/javascripts/plugins/emoticons/images/71.gif +0 -0
  139. data/vendor/assets/javascripts/plugins/emoticons/images/72.gif +0 -0
  140. data/vendor/assets/javascripts/plugins/emoticons/images/73.gif +0 -0
  141. data/vendor/assets/javascripts/plugins/emoticons/images/74.gif +0 -0
  142. data/vendor/assets/javascripts/plugins/emoticons/images/75.gif +0 -0
  143. data/vendor/assets/javascripts/plugins/emoticons/images/76.gif +0 -0
  144. data/vendor/assets/javascripts/plugins/emoticons/images/77.gif +0 -0
  145. data/vendor/assets/javascripts/plugins/emoticons/images/78.gif +0 -0
  146. data/vendor/assets/javascripts/plugins/emoticons/images/79.gif +0 -0
  147. data/vendor/assets/javascripts/plugins/emoticons/images/8.gif +0 -0
  148. data/vendor/assets/javascripts/plugins/emoticons/images/80.gif +0 -0
  149. data/vendor/assets/javascripts/plugins/emoticons/images/81.gif +0 -0
  150. data/vendor/assets/javascripts/plugins/emoticons/images/82.gif +0 -0
  151. data/vendor/assets/javascripts/plugins/emoticons/images/83.gif +0 -0
  152. data/vendor/assets/javascripts/plugins/emoticons/images/84.gif +0 -0
  153. data/vendor/assets/javascripts/plugins/emoticons/images/85.gif +0 -0
  154. data/vendor/assets/javascripts/plugins/emoticons/images/86.gif +0 -0
  155. data/vendor/assets/javascripts/plugins/emoticons/images/87.gif +0 -0
  156. data/vendor/assets/javascripts/plugins/emoticons/images/88.gif +0 -0
  157. data/vendor/assets/javascripts/plugins/emoticons/images/89.gif +0 -0
  158. data/vendor/assets/javascripts/plugins/emoticons/images/9.gif +0 -0
  159. data/vendor/assets/javascripts/plugins/emoticons/images/90.gif +0 -0
  160. data/vendor/assets/javascripts/plugins/emoticons/images/91.gif +0 -0
  161. data/vendor/assets/javascripts/plugins/emoticons/images/92.gif +0 -0
  162. data/vendor/assets/javascripts/plugins/emoticons/images/93.gif +0 -0
  163. data/vendor/assets/javascripts/plugins/emoticons/images/94.gif +0 -0
  164. data/vendor/assets/javascripts/plugins/emoticons/images/95.gif +0 -0
  165. data/vendor/assets/javascripts/plugins/emoticons/images/96.gif +0 -0
  166. data/vendor/assets/javascripts/plugins/emoticons/images/97.gif +0 -0
  167. data/vendor/assets/javascripts/plugins/emoticons/images/98.gif +0 -0
  168. data/vendor/assets/javascripts/plugins/emoticons/images/99.gif +0 -0
  169. data/vendor/assets/javascripts/plugins/emoticons/images/static.gif +0 -0
  170. data/vendor/assets/javascripts/plugins/filemanager/filemanager.js +0 -189
  171. data/vendor/assets/javascripts/plugins/filemanager/images/file-16.gif +0 -0
  172. data/vendor/assets/javascripts/plugins/filemanager/images/file-64.gif +0 -0
  173. data/vendor/assets/javascripts/plugins/filemanager/images/folder-16.gif +0 -0
  174. data/vendor/assets/javascripts/plugins/filemanager/images/folder-64.gif +0 -0
  175. data/vendor/assets/javascripts/plugins/filemanager/images/go-up.gif +0 -0
  176. data/vendor/assets/javascripts/plugins/flash/flash.js +0 -128
  177. data/vendor/assets/javascripts/plugins/image/image.js +0 -226
  178. data/vendor/assets/javascripts/plugins/image/images/align_left.gif +0 -0
  179. data/vendor/assets/javascripts/plugins/image/images/align_right.gif +0 -0
  180. data/vendor/assets/javascripts/plugins/image/images/align_top.gif +0 -0
  181. data/vendor/assets/javascripts/plugins/image/images/refresh.gif +0 -0
  182. data/vendor/assets/javascripts/plugins/insertfile/insertfile.js +0 -104
  183. data/vendor/assets/javascripts/plugins/lineheight/lineheight.js +0 -38
  184. data/vendor/assets/javascripts/plugins/link/link.js +0 -59
  185. data/vendor/assets/javascripts/plugins/map/map.html +0 -57
  186. data/vendor/assets/javascripts/plugins/map/map.js +0 -135
  187. data/vendor/assets/javascripts/plugins/media/media.js +0 -136
  188. data/vendor/assets/javascripts/plugins/pagebreak/pagebreak.js +0 -26
  189. data/vendor/assets/javascripts/plugins/plainpaste/plainpaste.js +0 -41
  190. data/vendor/assets/javascripts/plugins/preview/preview.js +0 -31
  191. data/vendor/assets/javascripts/plugins/quickformat/quickformat.js +0 -71
  192. data/vendor/assets/javascripts/plugins/table/table.js +0 -661
  193. data/vendor/assets/javascripts/plugins/template/html/1.html +0 -14
  194. data/vendor/assets/javascripts/plugins/template/html/2.html +0 -42
  195. data/vendor/assets/javascripts/plugins/template/html/3.html +0 -36
  196. data/vendor/assets/javascripts/plugins/template/template.js +0 -58
  197. data/vendor/assets/javascripts/plugins/wordpaste/wordpaste.js +0 -57
  198. data/vendor/assets/stylesheets/bg.gif +0 -0
  199. data/vendor/assets/stylesheets/default.gif +0 -0
  200. data/vendor/assets/stylesheets/kindeditor.css +0 -942
  201. data/vendor/assets/stylesheets/themes/common/blank.gif +0 -0
  202. data/vendor/assets/stylesheets/themes/common/flash.gif +0 -0
  203. data/vendor/assets/stylesheets/themes/common/loading.gif +0 -0
  204. data/vendor/assets/stylesheets/themes/common/media.gif +0 -0
  205. data/vendor/assets/stylesheets/themes/common/rm.gif +0 -0
  206. data/vendor/assets/stylesheets/themes/simple/simple.css +0 -148
@@ -1,210 +1,212 @@
1
- /*******************************************************************************
2
- * KindEditor - WYSIWYG HTML Editor for Internet
3
- * Copyright (C) 2006-2011 kindsoft.net
4
- *
5
- * @author Roddy <luolonghao@gmail.com>
6
- * @site http://www.kindsoft.net/
7
- * @licence http://www.kindsoft.net/license.php
8
- *******************************************************************************/
9
-
10
- KindEditor.lang({
11
- source : '原始碼',
12
- preview : '預覽',
13
- undo : '復原(Ctrl+Z)',
14
- redo : '重複(Ctrl+Y)',
15
- cut : '剪下(Ctrl+X)',
16
- copy : '複製(Ctrl+C)',
17
- paste : '貼上(Ctrl+V)',
18
- plainpaste : '貼為純文字格式',
19
- wordpaste : '自Word貼上',
20
- selectall : '全選(Ctrl+A)',
21
- justifyleft : '靠左對齊',
22
- justifycenter : '置中',
23
- justifyright : '靠右對齊',
24
- justifyfull : '左右對齊',
25
- insertorderedlist : '編號清單',
26
- insertunorderedlist : '項目清單',
27
- indent : '增加縮排',
28
- outdent : '減少縮排',
29
- subscript : '下標',
30
- superscript : '上標',
31
- formatblock : '標題',
32
- fontname : '字體',
33
- fontsize : '文字大小',
34
- forecolor : '文字顏色',
35
- hilitecolor : '背景顏色',
36
- bold : '粗體(Ctrl+B)',
37
- italic : '斜體(Ctrl+I)',
38
- underline : '底線(Ctrl+U)',
39
- strikethrough : '刪除線',
40
- removeformat : '清除格式',
41
- image : '影像',
42
- flash : 'Flash',
43
- media : '多媒體',
44
- table : '表格',
45
- hr : '插入水平線',
46
- emoticons : '插入表情',
47
- link : '超連結',
48
- unlink : '移除超連結',
49
- fullscreen : '最大化',
50
- about : '關於',
51
- print : '列印(Ctrl+P)',
52
- fileManager : '瀏覽伺服器',
53
- code : '插入程式代碼',
54
- map : 'Google地圖',
55
- lineheight : '行距',
56
- clearhtml : '清理HTML代碼',
57
- pagebreak : '插入分頁符號',
58
- quickformat : '快速排版',
59
- insertfile : '插入文件',
60
- template : '插入樣板',
61
- yes : '確定',
62
- no : '取消',
63
- close : '關閉',
64
- editImage : '影像屬性',
65
- deleteImage : '刪除影像',
66
- editFlash : 'Flash屬性',
67
- deleteFlash : '删除Flash',
68
- editMedia : '多媒體屬性',
69
- deleteMedia : '删除多媒體',
70
- editLink : '超連結屬性',
71
- deleteLink : '移除超連結',
72
- tableprop : '表格屬性',
73
- tablecellprop : '儲存格屬性',
74
- tableinsert : '插入表格',
75
- tabledelete : '刪除表格',
76
- tablecolinsertleft : '向左插入列',
77
- tablecolinsertright : '向右插入列',
78
- tablerowinsertabove : '向上插入欄',
79
- tablerowinsertbelow : '下方插入欄',
80
- tablerowmerge : '向下合併單元格',
81
- tablecolmerge : '向右合併單元格',
82
- tablerowsplit : '分割欄',
83
- tablecolsplit : '分割列',
84
- tablecoldelete : '删除列',
85
- tablerowdelete : '删除欄',
86
- noColor : '自動',
87
- invalidImg : "請輸入有效的URL。\n只允許jpg,gif,bmp,png格式。",
88
- invalidMedia : "請輸入有效的URL。\n只允許swf,flv,mp3,wav,wma,wmv,mid,avi,mpg,asf,rm,rmvb格式。",
89
- invalidWidth : "寬度必須是數字。",
90
- invalidHeight : "高度必須是數字。",
91
- invalidBorder : "邊框必須是數字。",
92
- invalidUrl : "請輸入有效的URL。",
93
- invalidRows : '欄數是必須輸入項目,只允許輸入大於0的數字。',
94
- invalidCols : '列數是必須輸入項目,只允許輸入大於0的數字。',
95
- invalidPadding : '內距必須是數字。',
96
- invalidSpacing : '間距必須是數字。',
97
- invalidBorder : '边框必须为数字。',
98
- pleaseInput : "請輸入內容。",
99
- invalidJson : '伺服器發生故障。',
100
- cutError : '您的瀏覽器安全設置不允許使用剪下操作,請使用快捷鍵(Ctrl+X)完成。',
101
- copyError : '您的瀏覽器安全設置不允許使用剪下操作,請使用快捷鍵(Ctrl+C)完成。',
102
- pasteError : '您的瀏覽器安全設置不允許使用剪下操作,請使用快捷鍵(Ctrl+V)完成。',
103
- 'plainpaste.comment' : '請使用快捷鍵(Ctrl+V)把內容貼到下方區域裡。',
104
- 'wordpaste.comment' : '請使用快捷鍵(Ctrl+V)把內容貼到下方區域裡。',
105
- 'link.url' : 'URL',
106
- 'link.linkType' : '打開類型',
107
- 'link.newWindow' : '新窗口',
108
- 'link.selfWindow' : '本頁窗口',
109
- 'flash.url' : 'URL',
110
- 'flash.width' : '寬度',
111
- 'flash.height' : '高度',
112
- 'flash.upload' : '上傳',
113
- 'flash.viewServer' : '瀏覽',
114
- 'media.url' : 'URL',
115
- 'media.width' : '寬度',
116
- 'media.height' : '高度',
117
- 'media.autostart' : '自動播放',
118
- 'media.upload' : '上傳',
119
- 'media.viewServer' : '瀏覽',
120
- 'image.remoteImage' : '影像URL',
121
- 'image.localImage' : '上傳影像',
122
- 'image.remoteUrl' : '影像URL',
123
- 'image.localUrl' : '影像URL',
124
- 'image.size' : '影像大小',
125
- 'image.width' : '寬度',
126
- 'image.height' : '高度',
127
- 'image.resetSize' : '原始大小',
128
- 'image.align' : '對齊方式',
129
- 'image.defaultAlign' : '未設定',
130
- 'image.leftAlign' : '向左對齊',
131
- 'image.rightAlign' : '向右對齊',
132
- 'image.imgTitle' : '影像說明',
133
- 'image.viewServer' : '瀏覽...',
134
- 'filemanager.emptyFolder' : '空文件夾',
135
- 'filemanager.moveup' : '至上一級文件夾',
136
- 'filemanager.viewType' : '顯示方式:',
137
- 'filemanager.viewImage' : '縮略圖',
138
- 'filemanager.listImage' : '詳細信息',
139
- 'filemanager.orderType' : '排序方式:',
140
- 'filemanager.fileName' : '名稱',
141
- 'filemanager.fileSize' : '大小',
142
- 'filemanager.fileType' : '類型',
143
- 'insertfile.url' : 'URL',
144
- 'insertfile.title' : '文件說明',
145
- 'insertfile.upload' : '上傳',
146
- 'insertfile.viewServer' : '瀏覽',
147
- 'table.cells' : '儲存格數',
148
- 'table.rows' : '欄數',
149
- 'table.cols' : '列數',
150
- 'table.size' : '表格大小',
151
- 'table.width' : '寬度',
152
- 'table.height' : '高度',
153
- 'table.percent' : '%',
154
- 'table.px' : 'px',
155
- 'table.space' : '內距間距',
156
- 'table.padding' : '內距',
157
- 'table.spacing' : '間距',
158
- 'table.align' : '對齊方式',
159
- 'table.textAlign' : '水平對齊',
160
- 'table.verticalAlign' : '垂直對齊',
161
- 'table.alignDefault' : '未設定',
162
- 'table.alignLeft' : '向左對齊',
163
- 'table.alignCenter' : '置中',
164
- 'table.alignRight' : '向右對齊',
165
- 'table.alignTop' : '靠上',
166
- 'table.alignMiddle' : '置中',
167
- 'table.alignBottom' : '靠下',
168
- 'table.alignBaseline' : '基線',
169
- 'table.border' : '表格邊框',
170
- 'table.borderWidth' : '邊框',
171
- 'table.borderColor' : '顏色',
172
- 'table.backgroundColor' : '背景顏色',
173
- 'map.address' : '住所: ',
174
- 'map.search' : '尋找',
175
- 'formatblock.formatBlock' : {
176
- h1 : '標題 1',
177
- h2 : '標題 2',
178
- h3 : '標題 3',
179
- h4 : '標題 4',
180
- p : '一般'
181
- },
182
- 'fontname.fontName' : {
183
- 'MingLiU' : '細明體',
184
- 'PMingLiU' : '新細明體',
185
- 'DFKai-SB' : '標楷體',
186
- 'SimSun' : '宋體',
187
- 'NSimSun' : '新宋體',
188
- 'FangSong' : '仿宋體',
189
- 'Arial' : 'Arial',
190
- 'Arial Black' : 'Arial Black',
191
- 'Times New Roman' : 'Times New Roman',
192
- 'Courier New' : 'Courier New',
193
- 'Tahoma' : 'Tahoma',
194
- 'Verdana' : 'Verdana'
195
- },
196
- 'lineheight.lineHeight' : [
197
- {'1' : '单倍行距'},
198
- {'1.5' : '1.5倍行距'},
199
- {'2' : '2倍行距'},
200
- {'2.5' : '2.5倍行距'},
201
- {'3' : '3倍行距'}
202
- ],
203
- 'template.selectTemplate' : '可選樣板',
204
- 'template.replaceContent' : '取代當前內容',
205
- 'template.fileList' : {
206
- '1.html' : '影像和文字',
207
- '2.html' : '表格',
208
- '3.html' : '项目清單'
209
- }
210
- }, 'zh_TW');
1
+ /*******************************************************************************
2
+ * KindEditor - WYSIWYG HTML Editor for Internet
3
+ * Copyright (C) 2006-2011 kindsoft.net
4
+ *
5
+ * @author Roddy <luolonghao@gmail.com>
6
+ * @site http://www.kindsoft.net/
7
+ * @licence http://www.kindsoft.net/license.php
8
+ *******************************************************************************/
9
+
10
+ KindEditor.lang({
11
+ source : '原始碼',
12
+ preview : '預覽',
13
+ undo : '復原(Ctrl+Z)',
14
+ redo : '重複(Ctrl+Y)',
15
+ cut : '剪下(Ctrl+X)',
16
+ copy : '複製(Ctrl+C)',
17
+ paste : '貼上(Ctrl+V)',
18
+ plainpaste : '貼為純文字格式',
19
+ wordpaste : '自Word貼上',
20
+ selectall : '全選(Ctrl+A)',
21
+ justifyleft : '靠左對齊',
22
+ justifycenter : '置中',
23
+ justifyright : '靠右對齊',
24
+ justifyfull : '左右對齊',
25
+ insertorderedlist : '編號清單',
26
+ insertunorderedlist : '項目清單',
27
+ indent : '增加縮排',
28
+ outdent : '減少縮排',
29
+ subscript : '下標',
30
+ superscript : '上標',
31
+ formatblock : '標題',
32
+ fontname : '字體',
33
+ fontsize : '文字大小',
34
+ forecolor : '文字顏色',
35
+ hilitecolor : '背景顏色',
36
+ bold : '粗體(Ctrl+B)',
37
+ italic : '斜體(Ctrl+I)',
38
+ underline : '底線(Ctrl+U)',
39
+ strikethrough : '刪除線',
40
+ removeformat : '清除格式',
41
+ image : '影像',
42
+ flash : 'Flash',
43
+ media : '多媒體',
44
+ table : '表格',
45
+ hr : '插入水平線',
46
+ emoticons : '插入表情',
47
+ link : '超連結',
48
+ unlink : '移除超連結',
49
+ fullscreen : '最大化',
50
+ about : '關於',
51
+ print : '列印(Ctrl+P)',
52
+ fileManager : '瀏覽伺服器',
53
+ code : '插入程式代碼',
54
+ map : 'Google地圖',
55
+ lineheight : '行距',
56
+ clearhtml : '清理HTML代碼',
57
+ pagebreak : '插入分頁符號',
58
+ quickformat : '快速排版',
59
+ insertfile : '插入文件',
60
+ template : '插入樣板',
61
+ anchor : '錨點',
62
+ yes : '確定',
63
+ no : '取消',
64
+ close : '關閉',
65
+ editImage : '影像屬性',
66
+ deleteImage : '刪除影像',
67
+ editFlash : 'Flash屬性',
68
+ deleteFlash : '删除Flash',
69
+ editMedia : '多媒體屬性',
70
+ deleteMedia : '删除多媒體',
71
+ editLink : '超連結屬性',
72
+ deleteLink : '移除超連結',
73
+ tableprop : '表格屬性',
74
+ tablecellprop : '儲存格屬性',
75
+ tableinsert : '插入表格',
76
+ tabledelete : '刪除表格',
77
+ tablecolinsertleft : '向左插入列',
78
+ tablecolinsertright : '向右插入列',
79
+ tablerowinsertabove : '向上插入欄',
80
+ tablerowinsertbelow : '下方插入欄',
81
+ tablerowmerge : '向下合併單元格',
82
+ tablecolmerge : '向右合併單元格',
83
+ tablerowsplit : '分割欄',
84
+ tablecolsplit : '分割列',
85
+ tablecoldelete : '删除列',
86
+ tablerowdelete : '删除欄',
87
+ noColor : '自動',
88
+ invalidImg : "請輸入有效的URL。\n只允許jpg,gif,bmp,png格式。",
89
+ invalidMedia : "請輸入有效的URL。\n只允許swf,flv,mp3,wav,wma,wmv,mid,avi,mpg,asf,rm,rmvb格式。",
90
+ invalidWidth : "寬度必須是數字。",
91
+ invalidHeight : "高度必須是數字。",
92
+ invalidBorder : "邊框必須是數字。",
93
+ invalidUrl : "請輸入有效的URL。",
94
+ invalidRows : '欄數是必須輸入項目,只允許輸入大於0的數字。',
95
+ invalidCols : '列數是必須輸入項目,只允許輸入大於0的數字。',
96
+ invalidPadding : '內距必須是數字。',
97
+ invalidSpacing : '間距必須是數字。',
98
+ invalidBorder : '边框必须为数字。',
99
+ pleaseInput : "請輸入內容。",
100
+ invalidJson : '伺服器發生故障。',
101
+ cutError : '您的瀏覽器安全設置不允許使用剪下操作,請使用快捷鍵(Ctrl+X)完成。',
102
+ copyError : '您的瀏覽器安全設置不允許使用剪下操作,請使用快捷鍵(Ctrl+C)完成。',
103
+ pasteError : '您的瀏覽器安全設置不允許使用剪下操作,請使用快捷鍵(Ctrl+V)完成。',
104
+ 'plainpaste.comment' : '請使用快捷鍵(Ctrl+V)把內容貼到下方區域裡。',
105
+ 'wordpaste.comment' : '請使用快捷鍵(Ctrl+V)把內容貼到下方區域裡。',
106
+ 'link.url' : 'URL',
107
+ 'link.linkType' : '打開類型',
108
+ 'link.newWindow' : '新窗口',
109
+ 'link.selfWindow' : '本頁窗口',
110
+ 'flash.url' : 'URL',
111
+ 'flash.width' : '寬度',
112
+ 'flash.height' : '高度',
113
+ 'flash.upload' : '上傳',
114
+ 'flash.viewServer' : '瀏覽',
115
+ 'media.url' : 'URL',
116
+ 'media.width' : '寬度',
117
+ 'media.height' : '高度',
118
+ 'media.autostart' : '自動播放',
119
+ 'media.upload' : '上傳',
120
+ 'media.viewServer' : '瀏覽',
121
+ 'image.remoteImage' : '影像URL',
122
+ 'image.localImage' : '上傳影像',
123
+ 'image.remoteUrl' : '影像URL',
124
+ 'image.localUrl' : '影像URL',
125
+ 'image.size' : '影像大小',
126
+ 'image.width' : '寬度',
127
+ 'image.height' : '高度',
128
+ 'image.resetSize' : '原始大小',
129
+ 'image.align' : '對齊方式',
130
+ 'image.defaultAlign' : '未設定',
131
+ 'image.leftAlign' : '向左對齊',
132
+ 'image.rightAlign' : '向右對齊',
133
+ 'image.imgTitle' : '影像說明',
134
+ 'image.viewServer' : '瀏覽...',
135
+ 'filemanager.emptyFolder' : '空文件夾',
136
+ 'filemanager.moveup' : '至上一級文件夾',
137
+ 'filemanager.viewType' : '顯示方式:',
138
+ 'filemanager.viewImage' : '縮略圖',
139
+ 'filemanager.listImage' : '詳細信息',
140
+ 'filemanager.orderType' : '排序方式:',
141
+ 'filemanager.fileName' : '名稱',
142
+ 'filemanager.fileSize' : '大小',
143
+ 'filemanager.fileType' : '類型',
144
+ 'insertfile.url' : 'URL',
145
+ 'insertfile.title' : '文件說明',
146
+ 'insertfile.upload' : '上傳',
147
+ 'insertfile.viewServer' : '瀏覽',
148
+ 'table.cells' : '儲存格數',
149
+ 'table.rows' : '欄數',
150
+ 'table.cols' : '列數',
151
+ 'table.size' : '表格大小',
152
+ 'table.width' : '寬度',
153
+ 'table.height' : '高度',
154
+ 'table.percent' : '%',
155
+ 'table.px' : 'px',
156
+ 'table.space' : '內距間距',
157
+ 'table.padding' : '內距',
158
+ 'table.spacing' : '間距',
159
+ 'table.align' : '對齊方式',
160
+ 'table.textAlign' : '水平對齊',
161
+ 'table.verticalAlign' : '垂直對齊',
162
+ 'table.alignDefault' : '未設定',
163
+ 'table.alignLeft' : '向左對齊',
164
+ 'table.alignCenter' : '置中',
165
+ 'table.alignRight' : '向右對齊',
166
+ 'table.alignTop' : '靠上',
167
+ 'table.alignMiddle' : '置中',
168
+ 'table.alignBottom' : '靠下',
169
+ 'table.alignBaseline' : '基線',
170
+ 'table.border' : '表格邊框',
171
+ 'table.borderWidth' : '邊框',
172
+ 'table.borderColor' : '顏色',
173
+ 'table.backgroundColor' : '背景顏色',
174
+ 'map.address' : '住所: ',
175
+ 'map.search' : '尋找',
176
+ 'anchor.name' : '錨點名稱',
177
+ 'formatblock.formatBlock' : {
178
+ h1 : '標題 1',
179
+ h2 : '標題 2',
180
+ h3 : '標題 3',
181
+ h4 : '標題 4',
182
+ p : '一般'
183
+ },
184
+ 'fontname.fontName' : {
185
+ 'MingLiU' : '細明體',
186
+ 'PMingLiU' : '新細明體',
187
+ 'DFKai-SB' : '標楷體',
188
+ 'SimSun' : '宋體',
189
+ 'NSimSun' : '新宋體',
190
+ 'FangSong' : '仿宋體',
191
+ 'Arial' : 'Arial',
192
+ 'Arial Black' : 'Arial Black',
193
+ 'Times New Roman' : 'Times New Roman',
194
+ 'Courier New' : 'Courier New',
195
+ 'Tahoma' : 'Tahoma',
196
+ 'Verdana' : 'Verdana'
197
+ },
198
+ 'lineheight.lineHeight' : [
199
+ {'1' : '单倍行距'},
200
+ {'1.5' : '1.5倍行距'},
201
+ {'2' : '2倍行距'},
202
+ {'2.5' : '2.5倍行距'},
203
+ {'3' : '3倍行距'}
204
+ ],
205
+ 'template.selectTemplate' : '可選樣板',
206
+ 'template.replaceContent' : '取代當前內容',
207
+ 'template.fileList' : {
208
+ '1.html' : '影像和文字',
209
+ '2.html' : '表格',
210
+ '3.html' : '项目清單'
211
+ }
212
+ }, 'zh_TW');
@@ -0,0 +1,46 @@
1
+ /*******************************************************************************
2
+ * KindEditor - WYSIWYG HTML Editor for Internet
3
+ * Copyright (C) 2006-2011 kindsoft.net
4
+ *
5
+ * @author Roddy <luolonghao@gmail.com>
6
+ * @site http://www.kindsoft.net/
7
+ * @licence http://www.kindsoft.net/license.php
8
+ *******************************************************************************/
9
+
10
+ KindEditor.plugin('anchor', function(K) {
11
+ var self = this, name = 'anchor', lang = self.lang(name + '.');
12
+ self.plugin.anchor = {
13
+ edit : function() {
14
+ var html = ['<div style="padding:10px 20px;">',
15
+ '<div class="ke-dialog-row">',
16
+ '<label for="keName">' + lang.name + '</label>',
17
+ '<input class="ke-input-text" type="text" id="keName" name="name" value="" style="width:100px;" />',
18
+ '</div>',
19
+ '</div>'].join('');
20
+ var dialog = self.createDialog({
21
+ name : name,
22
+ width : 300,
23
+ title : self.lang(name),
24
+ body : html,
25
+ yesBtn : {
26
+ name : self.lang('yes'),
27
+ click : function(e) {
28
+ self.insertHtml('<a name="' + nameBox.val() + '">').hideDialog().focus();
29
+ }
30
+ }
31
+ });
32
+ var div = dialog.div,
33
+ nameBox = K('input[name="name"]', div);
34
+ var img = self.plugin.getSelectedAnchor();
35
+ if (img) {
36
+ nameBox.val(unescape(img.attr('data-ke-name')));
37
+ }
38
+ nameBox[0].focus();
39
+ nameBox[0].select();
40
+ },
41
+ 'delete' : function() {
42
+ self.plugin.getSelectedAnchor().remove();
43
+ }
44
+ };
45
+ self.clickToolbar(name, self.plugin.anchor.edit);
46
+ });