rails_kindeditor-plus 0.4.5

Sign up to get free protection for your applications and to get access to all the features.
Files changed (239) hide show
  1. checksums.yaml +7 -0
  2. data/.gitignore +5 -0
  3. data/Gemfile +6 -0
  4. data/README.md +523 -0
  5. data/Rakefile +2 -0
  6. data/app/assets/javascripts/kindeditor.js +1 -0
  7. data/app/controllers/kindeditor/assets_controller.rb +126 -0
  8. data/app/uploaders/kindeditor/asset_uploader.rb +91 -0
  9. data/app/uploaders/kindeditor/file_uploader.rb +10 -0
  10. data/app/uploaders/kindeditor/flash_uploader.rb +10 -0
  11. data/app/uploaders/kindeditor/image_uploader.rb +10 -0
  12. data/app/uploaders/kindeditor/media_uploader.rb +10 -0
  13. data/config/routes.rb +6 -0
  14. data/lib/generators/rails_kindeditor/install/USAGE +10 -0
  15. data/lib/generators/rails_kindeditor/install/install_generator.rb +23 -0
  16. data/lib/generators/rails_kindeditor/install/templates/application.js +17 -0
  17. data/lib/generators/rails_kindeditor/install/templates/rails_kindeditor.rb +29 -0
  18. data/lib/generators/rails_kindeditor/migration/USAGE +14 -0
  19. data/lib/generators/rails_kindeditor/migration/migration_generator.rb +36 -0
  20. data/lib/generators/rails_kindeditor/migration/templates/migration/migration.rb +17 -0
  21. data/lib/generators/rails_kindeditor/migration/templates/models/active_record/kindeditor/asset.rb +14 -0
  22. data/lib/generators/rails_kindeditor/migration/templates/models/active_record/kindeditor/file.rb +3 -0
  23. data/lib/generators/rails_kindeditor/migration/templates/models/active_record/kindeditor/flash.rb +3 -0
  24. data/lib/generators/rails_kindeditor/migration/templates/models/active_record/kindeditor/image.rb +3 -0
  25. data/lib/generators/rails_kindeditor/migration/templates/models/active_record/kindeditor/media.rb +3 -0
  26. data/lib/generators/rails_kindeditor/migration/templates/models/mongoid/kindeditor/asset.rb +27 -0
  27. data/lib/generators/rails_kindeditor/migration/templates/models/mongoid/kindeditor/file.rb +3 -0
  28. data/lib/generators/rails_kindeditor/migration/templates/models/mongoid/kindeditor/flash.rb +3 -0
  29. data/lib/generators/rails_kindeditor/migration/templates/models/mongoid/kindeditor/image.rb +3 -0
  30. data/lib/generators/rails_kindeditor/migration/templates/models/mongoid/kindeditor/media.rb +3 -0
  31. data/lib/rails_kindeditor.rb +61 -0
  32. data/lib/rails_kindeditor/active_record.rb +14 -0
  33. data/lib/rails_kindeditor/engine.rb +34 -0
  34. data/lib/rails_kindeditor/formtastic.rb +12 -0
  35. data/lib/rails_kindeditor/helper.rb +96 -0
  36. data/lib/rails_kindeditor/simple_form.rb +11 -0
  37. data/lib/rails_kindeditor/version.rb +4 -0
  38. data/lib/tasks/assets.rake +9 -0
  39. data/rails_kindeditor-plus.gemspec +24 -0
  40. data/screenshots/rails_kindeditor.png +0 -0
  41. data/screenshots/simple_mode.png +0 -0
  42. data/vendor/assets/javascripts/kindeditor/kindeditor.js +5963 -0
  43. data/vendor/assets/javascripts/kindeditor/lang/ar.js +233 -0
  44. data/vendor/assets/javascripts/kindeditor/lang/en.js +232 -0
  45. data/vendor/assets/javascripts/kindeditor/lang/ko.js +237 -0
  46. data/vendor/assets/javascripts/kindeditor/lang/zh_CN.js +237 -0
  47. data/vendor/assets/javascripts/kindeditor/lang/zh_TW.js +235 -0
  48. data/vendor/assets/javascripts/kindeditor/plugins/anchor/anchor.js +46 -0
  49. data/vendor/assets/javascripts/kindeditor/plugins/autoheight/autoheight.js +54 -0
  50. data/vendor/assets/javascripts/kindeditor/plugins/baidumap/baidumap.js +93 -0
  51. data/vendor/assets/javascripts/kindeditor/plugins/baidumap/index.html +83 -0
  52. data/vendor/assets/javascripts/kindeditor/plugins/baidumap/map.html +43 -0
  53. data/vendor/assets/javascripts/kindeditor/plugins/clearhtml/clearhtml.js +29 -0
  54. data/vendor/assets/javascripts/kindeditor/plugins/code/code.js +62 -0
  55. data/vendor/assets/javascripts/kindeditor/plugins/code/prettify.css +13 -0
  56. data/vendor/assets/javascripts/kindeditor/plugins/code/prettify.js +28 -0
  57. data/vendor/assets/javascripts/kindeditor/plugins/emoticons/emoticons.js +129 -0
  58. data/vendor/assets/javascripts/kindeditor/plugins/emoticons/images/0.gif +0 -0
  59. data/vendor/assets/javascripts/kindeditor/plugins/emoticons/images/1.gif +0 -0
  60. data/vendor/assets/javascripts/kindeditor/plugins/emoticons/images/10.gif +0 -0
  61. data/vendor/assets/javascripts/kindeditor/plugins/emoticons/images/100.gif +0 -0
  62. data/vendor/assets/javascripts/kindeditor/plugins/emoticons/images/101.gif +0 -0
  63. data/vendor/assets/javascripts/kindeditor/plugins/emoticons/images/102.gif +0 -0
  64. data/vendor/assets/javascripts/kindeditor/plugins/emoticons/images/103.gif +0 -0
  65. data/vendor/assets/javascripts/kindeditor/plugins/emoticons/images/104.gif +0 -0
  66. data/vendor/assets/javascripts/kindeditor/plugins/emoticons/images/105.gif +0 -0
  67. data/vendor/assets/javascripts/kindeditor/plugins/emoticons/images/106.gif +0 -0
  68. data/vendor/assets/javascripts/kindeditor/plugins/emoticons/images/107.gif +0 -0
  69. data/vendor/assets/javascripts/kindeditor/plugins/emoticons/images/108.gif +0 -0
  70. data/vendor/assets/javascripts/kindeditor/plugins/emoticons/images/109.gif +0 -0
  71. data/vendor/assets/javascripts/kindeditor/plugins/emoticons/images/11.gif +0 -0
  72. data/vendor/assets/javascripts/kindeditor/plugins/emoticons/images/110.gif +0 -0
  73. data/vendor/assets/javascripts/kindeditor/plugins/emoticons/images/111.gif +0 -0
  74. data/vendor/assets/javascripts/kindeditor/plugins/emoticons/images/112.gif +0 -0
  75. data/vendor/assets/javascripts/kindeditor/plugins/emoticons/images/113.gif +0 -0
  76. data/vendor/assets/javascripts/kindeditor/plugins/emoticons/images/114.gif +0 -0
  77. data/vendor/assets/javascripts/kindeditor/plugins/emoticons/images/115.gif +0 -0
  78. data/vendor/assets/javascripts/kindeditor/plugins/emoticons/images/116.gif +0 -0
  79. data/vendor/assets/javascripts/kindeditor/plugins/emoticons/images/117.gif +0 -0
  80. data/vendor/assets/javascripts/kindeditor/plugins/emoticons/images/118.gif +0 -0
  81. data/vendor/assets/javascripts/kindeditor/plugins/emoticons/images/119.gif +0 -0
  82. data/vendor/assets/javascripts/kindeditor/plugins/emoticons/images/12.gif +0 -0
  83. data/vendor/assets/javascripts/kindeditor/plugins/emoticons/images/120.gif +0 -0
  84. data/vendor/assets/javascripts/kindeditor/plugins/emoticons/images/121.gif +0 -0
  85. data/vendor/assets/javascripts/kindeditor/plugins/emoticons/images/122.gif +0 -0
  86. data/vendor/assets/javascripts/kindeditor/plugins/emoticons/images/123.gif +0 -0
  87. data/vendor/assets/javascripts/kindeditor/plugins/emoticons/images/124.gif +0 -0
  88. data/vendor/assets/javascripts/kindeditor/plugins/emoticons/images/125.gif +0 -0
  89. data/vendor/assets/javascripts/kindeditor/plugins/emoticons/images/126.gif +0 -0
  90. data/vendor/assets/javascripts/kindeditor/plugins/emoticons/images/127.gif +0 -0
  91. data/vendor/assets/javascripts/kindeditor/plugins/emoticons/images/128.gif +0 -0
  92. data/vendor/assets/javascripts/kindeditor/plugins/emoticons/images/129.gif +0 -0
  93. data/vendor/assets/javascripts/kindeditor/plugins/emoticons/images/13.gif +0 -0
  94. data/vendor/assets/javascripts/kindeditor/plugins/emoticons/images/130.gif +0 -0
  95. data/vendor/assets/javascripts/kindeditor/plugins/emoticons/images/131.gif +0 -0
  96. data/vendor/assets/javascripts/kindeditor/plugins/emoticons/images/132.gif +0 -0
  97. data/vendor/assets/javascripts/kindeditor/plugins/emoticons/images/133.gif +0 -0
  98. data/vendor/assets/javascripts/kindeditor/plugins/emoticons/images/134.gif +0 -0
  99. data/vendor/assets/javascripts/kindeditor/plugins/emoticons/images/14.gif +0 -0
  100. data/vendor/assets/javascripts/kindeditor/plugins/emoticons/images/15.gif +0 -0
  101. data/vendor/assets/javascripts/kindeditor/plugins/emoticons/images/16.gif +0 -0
  102. data/vendor/assets/javascripts/kindeditor/plugins/emoticons/images/17.gif +0 -0
  103. data/vendor/assets/javascripts/kindeditor/plugins/emoticons/images/18.gif +0 -0
  104. data/vendor/assets/javascripts/kindeditor/plugins/emoticons/images/19.gif +0 -0
  105. data/vendor/assets/javascripts/kindeditor/plugins/emoticons/images/2.gif +0 -0
  106. data/vendor/assets/javascripts/kindeditor/plugins/emoticons/images/20.gif +0 -0
  107. data/vendor/assets/javascripts/kindeditor/plugins/emoticons/images/21.gif +0 -0
  108. data/vendor/assets/javascripts/kindeditor/plugins/emoticons/images/22.gif +0 -0
  109. data/vendor/assets/javascripts/kindeditor/plugins/emoticons/images/23.gif +0 -0
  110. data/vendor/assets/javascripts/kindeditor/plugins/emoticons/images/24.gif +0 -0
  111. data/vendor/assets/javascripts/kindeditor/plugins/emoticons/images/25.gif +0 -0
  112. data/vendor/assets/javascripts/kindeditor/plugins/emoticons/images/26.gif +0 -0
  113. data/vendor/assets/javascripts/kindeditor/plugins/emoticons/images/27.gif +0 -0
  114. data/vendor/assets/javascripts/kindeditor/plugins/emoticons/images/28.gif +0 -0
  115. data/vendor/assets/javascripts/kindeditor/plugins/emoticons/images/29.gif +0 -0
  116. data/vendor/assets/javascripts/kindeditor/plugins/emoticons/images/3.gif +0 -0
  117. data/vendor/assets/javascripts/kindeditor/plugins/emoticons/images/30.gif +0 -0
  118. data/vendor/assets/javascripts/kindeditor/plugins/emoticons/images/31.gif +0 -0
  119. data/vendor/assets/javascripts/kindeditor/plugins/emoticons/images/32.gif +0 -0
  120. data/vendor/assets/javascripts/kindeditor/plugins/emoticons/images/33.gif +0 -0
  121. data/vendor/assets/javascripts/kindeditor/plugins/emoticons/images/34.gif +0 -0
  122. data/vendor/assets/javascripts/kindeditor/plugins/emoticons/images/35.gif +0 -0
  123. data/vendor/assets/javascripts/kindeditor/plugins/emoticons/images/36.gif +0 -0
  124. data/vendor/assets/javascripts/kindeditor/plugins/emoticons/images/37.gif +0 -0
  125. data/vendor/assets/javascripts/kindeditor/plugins/emoticons/images/38.gif +0 -0
  126. data/vendor/assets/javascripts/kindeditor/plugins/emoticons/images/39.gif +0 -0
  127. data/vendor/assets/javascripts/kindeditor/plugins/emoticons/images/4.gif +0 -0
  128. data/vendor/assets/javascripts/kindeditor/plugins/emoticons/images/40.gif +0 -0
  129. data/vendor/assets/javascripts/kindeditor/plugins/emoticons/images/41.gif +0 -0
  130. data/vendor/assets/javascripts/kindeditor/plugins/emoticons/images/42.gif +0 -0
  131. data/vendor/assets/javascripts/kindeditor/plugins/emoticons/images/43.gif +0 -0
  132. data/vendor/assets/javascripts/kindeditor/plugins/emoticons/images/44.gif +0 -0
  133. data/vendor/assets/javascripts/kindeditor/plugins/emoticons/images/45.gif +0 -0
  134. data/vendor/assets/javascripts/kindeditor/plugins/emoticons/images/46.gif +0 -0
  135. data/vendor/assets/javascripts/kindeditor/plugins/emoticons/images/47.gif +0 -0
  136. data/vendor/assets/javascripts/kindeditor/plugins/emoticons/images/48.gif +0 -0
  137. data/vendor/assets/javascripts/kindeditor/plugins/emoticons/images/49.gif +0 -0
  138. data/vendor/assets/javascripts/kindeditor/plugins/emoticons/images/5.gif +0 -0
  139. data/vendor/assets/javascripts/kindeditor/plugins/emoticons/images/50.gif +0 -0
  140. data/vendor/assets/javascripts/kindeditor/plugins/emoticons/images/51.gif +0 -0
  141. data/vendor/assets/javascripts/kindeditor/plugins/emoticons/images/52.gif +0 -0
  142. data/vendor/assets/javascripts/kindeditor/plugins/emoticons/images/53.gif +0 -0
  143. data/vendor/assets/javascripts/kindeditor/plugins/emoticons/images/54.gif +0 -0
  144. data/vendor/assets/javascripts/kindeditor/plugins/emoticons/images/55.gif +0 -0
  145. data/vendor/assets/javascripts/kindeditor/plugins/emoticons/images/56.gif +0 -0
  146. data/vendor/assets/javascripts/kindeditor/plugins/emoticons/images/57.gif +0 -0
  147. data/vendor/assets/javascripts/kindeditor/plugins/emoticons/images/58.gif +0 -0
  148. data/vendor/assets/javascripts/kindeditor/plugins/emoticons/images/59.gif +0 -0
  149. data/vendor/assets/javascripts/kindeditor/plugins/emoticons/images/6.gif +0 -0
  150. data/vendor/assets/javascripts/kindeditor/plugins/emoticons/images/60.gif +0 -0
  151. data/vendor/assets/javascripts/kindeditor/plugins/emoticons/images/61.gif +0 -0
  152. data/vendor/assets/javascripts/kindeditor/plugins/emoticons/images/62.gif +0 -0
  153. data/vendor/assets/javascripts/kindeditor/plugins/emoticons/images/63.gif +0 -0
  154. data/vendor/assets/javascripts/kindeditor/plugins/emoticons/images/64.gif +0 -0
  155. data/vendor/assets/javascripts/kindeditor/plugins/emoticons/images/65.gif +0 -0
  156. data/vendor/assets/javascripts/kindeditor/plugins/emoticons/images/66.gif +0 -0
  157. data/vendor/assets/javascripts/kindeditor/plugins/emoticons/images/67.gif +0 -0
  158. data/vendor/assets/javascripts/kindeditor/plugins/emoticons/images/68.gif +0 -0
  159. data/vendor/assets/javascripts/kindeditor/plugins/emoticons/images/69.gif +0 -0
  160. data/vendor/assets/javascripts/kindeditor/plugins/emoticons/images/7.gif +0 -0
  161. data/vendor/assets/javascripts/kindeditor/plugins/emoticons/images/70.gif +0 -0
  162. data/vendor/assets/javascripts/kindeditor/plugins/emoticons/images/71.gif +0 -0
  163. data/vendor/assets/javascripts/kindeditor/plugins/emoticons/images/72.gif +0 -0
  164. data/vendor/assets/javascripts/kindeditor/plugins/emoticons/images/73.gif +0 -0
  165. data/vendor/assets/javascripts/kindeditor/plugins/emoticons/images/74.gif +0 -0
  166. data/vendor/assets/javascripts/kindeditor/plugins/emoticons/images/75.gif +0 -0
  167. data/vendor/assets/javascripts/kindeditor/plugins/emoticons/images/76.gif +0 -0
  168. data/vendor/assets/javascripts/kindeditor/plugins/emoticons/images/77.gif +0 -0
  169. data/vendor/assets/javascripts/kindeditor/plugins/emoticons/images/78.gif +0 -0
  170. data/vendor/assets/javascripts/kindeditor/plugins/emoticons/images/79.gif +0 -0
  171. data/vendor/assets/javascripts/kindeditor/plugins/emoticons/images/8.gif +0 -0
  172. data/vendor/assets/javascripts/kindeditor/plugins/emoticons/images/80.gif +0 -0
  173. data/vendor/assets/javascripts/kindeditor/plugins/emoticons/images/81.gif +0 -0
  174. data/vendor/assets/javascripts/kindeditor/plugins/emoticons/images/82.gif +0 -0
  175. data/vendor/assets/javascripts/kindeditor/plugins/emoticons/images/83.gif +0 -0
  176. data/vendor/assets/javascripts/kindeditor/plugins/emoticons/images/84.gif +0 -0
  177. data/vendor/assets/javascripts/kindeditor/plugins/emoticons/images/85.gif +0 -0
  178. data/vendor/assets/javascripts/kindeditor/plugins/emoticons/images/86.gif +0 -0
  179. data/vendor/assets/javascripts/kindeditor/plugins/emoticons/images/87.gif +0 -0
  180. data/vendor/assets/javascripts/kindeditor/plugins/emoticons/images/88.gif +0 -0
  181. data/vendor/assets/javascripts/kindeditor/plugins/emoticons/images/89.gif +0 -0
  182. data/vendor/assets/javascripts/kindeditor/plugins/emoticons/images/9.gif +0 -0
  183. data/vendor/assets/javascripts/kindeditor/plugins/emoticons/images/90.gif +0 -0
  184. data/vendor/assets/javascripts/kindeditor/plugins/emoticons/images/91.gif +0 -0
  185. data/vendor/assets/javascripts/kindeditor/plugins/emoticons/images/92.gif +0 -0
  186. data/vendor/assets/javascripts/kindeditor/plugins/emoticons/images/93.gif +0 -0
  187. data/vendor/assets/javascripts/kindeditor/plugins/emoticons/images/94.gif +0 -0
  188. data/vendor/assets/javascripts/kindeditor/plugins/emoticons/images/95.gif +0 -0
  189. data/vendor/assets/javascripts/kindeditor/plugins/emoticons/images/96.gif +0 -0
  190. data/vendor/assets/javascripts/kindeditor/plugins/emoticons/images/97.gif +0 -0
  191. data/vendor/assets/javascripts/kindeditor/plugins/emoticons/images/98.gif +0 -0
  192. data/vendor/assets/javascripts/kindeditor/plugins/emoticons/images/99.gif +0 -0
  193. data/vendor/assets/javascripts/kindeditor/plugins/emoticons/images/static.gif +0 -0
  194. data/vendor/assets/javascripts/kindeditor/plugins/filemanager/filemanager.js +189 -0
  195. data/vendor/assets/javascripts/kindeditor/plugins/filemanager/images/file-16.gif +0 -0
  196. data/vendor/assets/javascripts/kindeditor/plugins/filemanager/images/file-64.gif +0 -0
  197. data/vendor/assets/javascripts/kindeditor/plugins/filemanager/images/folder-16.gif +0 -0
  198. data/vendor/assets/javascripts/kindeditor/plugins/filemanager/images/folder-64.gif +0 -0
  199. data/vendor/assets/javascripts/kindeditor/plugins/filemanager/images/go-up.gif +0 -0
  200. data/vendor/assets/javascripts/kindeditor/plugins/flash/flash.js +161 -0
  201. data/vendor/assets/javascripts/kindeditor/plugins/image/image.js +328 -0
  202. data/vendor/assets/javascripts/kindeditor/plugins/image/images/align_left.gif +0 -0
  203. data/vendor/assets/javascripts/kindeditor/plugins/image/images/align_right.gif +0 -0
  204. data/vendor/assets/javascripts/kindeditor/plugins/image/images/align_top.gif +0 -0
  205. data/vendor/assets/javascripts/kindeditor/plugins/image/images/refresh.png +0 -0
  206. data/vendor/assets/javascripts/kindeditor/plugins/insertfile/insertfile.js +144 -0
  207. data/vendor/assets/javascripts/kindeditor/plugins/lineheight/lineheight.js +38 -0
  208. data/vendor/assets/javascripts/kindeditor/plugins/link/link.js +66 -0
  209. data/vendor/assets/javascripts/kindeditor/plugins/map/map.html +57 -0
  210. data/vendor/assets/javascripts/kindeditor/plugins/map/map.js +137 -0
  211. data/vendor/assets/javascripts/kindeditor/plugins/media/media.js +170 -0
  212. data/vendor/assets/javascripts/kindeditor/plugins/multiimage/images/image.png +0 -0
  213. data/vendor/assets/javascripts/kindeditor/plugins/multiimage/images/select-files-en.png +0 -0
  214. data/vendor/assets/javascripts/kindeditor/plugins/multiimage/images/select-files-zh_CN.png +0 -0
  215. data/vendor/assets/javascripts/kindeditor/plugins/multiimage/images/swfupload.swf +0 -0
  216. data/vendor/assets/javascripts/kindeditor/plugins/multiimage/multiimage.js +1384 -0
  217. data/vendor/assets/javascripts/kindeditor/plugins/pagebreak/pagebreak.js +27 -0
  218. data/vendor/assets/javascripts/kindeditor/plugins/plainpaste/plainpaste.js +41 -0
  219. data/vendor/assets/javascripts/kindeditor/plugins/preview/preview.js +33 -0
  220. data/vendor/assets/javascripts/kindeditor/plugins/quickformat/quickformat.js +81 -0
  221. data/vendor/assets/javascripts/kindeditor/plugins/table/table.js +712 -0
  222. data/vendor/assets/javascripts/kindeditor/plugins/template/html/1.html +14 -0
  223. data/vendor/assets/javascripts/kindeditor/plugins/template/html/2.html +42 -0
  224. data/vendor/assets/javascripts/kindeditor/plugins/template/html/3.html +36 -0
  225. data/vendor/assets/javascripts/kindeditor/plugins/template/template.js +58 -0
  226. data/vendor/assets/javascripts/kindeditor/plugins/wordpaste/wordpaste.js +51 -0
  227. data/vendor/assets/javascripts/kindeditor/themes/common/anchor.gif +0 -0
  228. data/vendor/assets/javascripts/kindeditor/themes/common/blank.gif +0 -0
  229. data/vendor/assets/javascripts/kindeditor/themes/common/flash.gif +0 -0
  230. data/vendor/assets/javascripts/kindeditor/themes/common/loading.gif +0 -0
  231. data/vendor/assets/javascripts/kindeditor/themes/common/media.gif +0 -0
  232. data/vendor/assets/javascripts/kindeditor/themes/common/rm.gif +0 -0
  233. data/vendor/assets/javascripts/kindeditor/themes/default/background.png +0 -0
  234. data/vendor/assets/javascripts/kindeditor/themes/default/default.css +1149 -0
  235. data/vendor/assets/javascripts/kindeditor/themes/default/default.png +0 -0
  236. data/vendor/assets/javascripts/kindeditor/themes/qq/editor.gif +0 -0
  237. data/vendor/assets/javascripts/kindeditor/themes/qq/qq.css +143 -0
  238. data/vendor/assets/javascripts/kindeditor/themes/simple/simple.css +100 -0
  239. metadata +309 -0
@@ -0,0 +1,14 @@
1
+ <!doctype html>
2
+ <html>
3
+ <head>
4
+ <meta charset="utf-8" />
5
+ </head>
6
+ <body>
7
+ <h3>
8
+ <img align="left" height="100" style="margin-right: 10px" width="100" />在此处输入标题
9
+ </h3>
10
+ <p>
11
+ 在此处输入内容
12
+ </p>
13
+ </body>
14
+ </html>
@@ -0,0 +1,42 @@
1
+ <!doctype html>
2
+ <html>
3
+ <head>
4
+ <meta charset="utf-8" />
5
+ </head>
6
+ <body>
7
+ <h3>
8
+ 标题
9
+ </h3>
10
+ <table style="width:100%;" cellpadding="2" cellspacing="0" border="1">
11
+ <tbody>
12
+ <tr>
13
+ <td>
14
+ <h3>标题1</h3>
15
+ </td>
16
+ <td>
17
+ <h3>标题1</h3>
18
+ </td>
19
+ </tr>
20
+ <tr>
21
+ <td>
22
+ 内容1
23
+ </td>
24
+ <td>
25
+ 内容2
26
+ </td>
27
+ </tr>
28
+ <tr>
29
+ <td>
30
+ 内容3
31
+ </td>
32
+ <td>
33
+ 内容4
34
+ </td>
35
+ </tr>
36
+ </tbody>
37
+ </table>
38
+ <p>
39
+ 表格说明
40
+ </p>
41
+ </body>
42
+ </html>
@@ -0,0 +1,36 @@
1
+ <!doctype html>
2
+ <html>
3
+ <head>
4
+ <meta charset="utf-8" />
5
+ </head>
6
+ <body>
7
+ <p>
8
+ 在此处输入内容
9
+ </p>
10
+ <ol>
11
+ <li>
12
+ 描述1
13
+ </li>
14
+ <li>
15
+ 描述2
16
+ </li>
17
+ <li>
18
+ 描述3
19
+ </li>
20
+ </ol>
21
+ <p>
22
+ 在此处输入内容
23
+ </p>
24
+ <ul>
25
+ <li>
26
+ 描述1
27
+ </li>
28
+ <li>
29
+ 描述2
30
+ </li>
31
+ <li>
32
+ 描述3
33
+ </li>
34
+ </ul>
35
+ </body>
36
+ </html>
@@ -0,0 +1,58 @@
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('template', function(K) {
11
+ var self = this, name = 'template', lang = self.lang(name + '.'),
12
+ htmlPath = self.pluginsPath + name + '/html/';
13
+ function getFilePath(fileName) {
14
+ return htmlPath + fileName + '?ver=' + encodeURIComponent(K.DEBUG ? K.TIME : K.VERSION);
15
+ }
16
+ self.clickToolbar(name, function() {
17
+ var lang = self.lang(name + '.'),
18
+ arr = ['<div style="padding:10px 20px;">',
19
+ '<div class="ke-header">',
20
+ // left start
21
+ '<div class="ke-left">',
22
+ lang. selectTemplate + ' <select>'];
23
+ K.each(lang.fileList, function(key, val) {
24
+ arr.push('<option value="' + key + '">' + val + '</option>');
25
+ });
26
+ html = [arr.join(''),
27
+ '</select></div>',
28
+ // right start
29
+ '<div class="ke-right">',
30
+ '<input type="checkbox" id="keReplaceFlag" name="replaceFlag" value="1" /> <label for="keReplaceFlag">' + lang.replaceContent + '</label>',
31
+ '</div>',
32
+ '<div class="ke-clearfix"></div>',
33
+ '</div>',
34
+ '<iframe class="ke-textarea" frameborder="0" style="width:458px;height:260px;background-color:#FFF;"></iframe>',
35
+ '</div>'].join('');
36
+ var dialog = self.createDialog({
37
+ name : name,
38
+ width : 500,
39
+ title : self.lang(name),
40
+ body : html,
41
+ yesBtn : {
42
+ name : self.lang('yes'),
43
+ click : function(e) {
44
+ var doc = K.iframeDoc(iframe);
45
+ self[checkbox[0].checked ? 'html' : 'insertHtml'](doc.body.innerHTML).hideDialog().focus();
46
+ }
47
+ }
48
+ });
49
+ var selectBox = K('select', dialog.div),
50
+ checkbox = K('[name="replaceFlag"]', dialog.div),
51
+ iframe = K('iframe', dialog.div);
52
+ checkbox[0].checked = true;
53
+ iframe.attr('src', getFilePath(selectBox.val()));
54
+ selectBox.change(function() {
55
+ iframe.attr('src', getFilePath(this.value));
56
+ });
57
+ });
58
+ });
@@ -0,0 +1,51 @@
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('wordpaste', function(K) {
11
+ var self = this, name = 'wordpaste';
12
+ self.clickToolbar(name, function() {
13
+ var lang = self.lang(name + '.'),
14
+ html = '<div style="padding:10px 20px;">' +
15
+ '<div style="margin-bottom:10px;">' + lang.comment + '</div>' +
16
+ '<iframe class="ke-textarea" frameborder="0" style="width:408px;height:260px;"></iframe>' +
17
+ '</div>',
18
+ dialog = self.createDialog({
19
+ name : name,
20
+ width : 450,
21
+ title : self.lang(name),
22
+ body : html,
23
+ yesBtn : {
24
+ name : self.lang('yes'),
25
+ click : function(e) {
26
+ var str = doc.body.innerHTML;
27
+ str = K.clearMsWord(str, self.filterMode ? self.htmlTags : K.options.htmlTags);
28
+ self.insertHtml(str).hideDialog().focus();
29
+ }
30
+ }
31
+ }),
32
+ div = dialog.div,
33
+ iframe = K('iframe', div),
34
+ doc = K.iframeDoc(iframe);
35
+ if (!K.IE) {
36
+ doc.designMode = 'on';
37
+ }
38
+ doc.open();
39
+ doc.write('<!doctype html><html><head><title>WordPaste</title></head>');
40
+ doc.write('<body style="background-color:#FFF;font-size:12px;margin:2px;">');
41
+ if (!K.IE) {
42
+ doc.write('<br />');
43
+ }
44
+ doc.write('</body></html>');
45
+ doc.close();
46
+ if (K.IE) {
47
+ doc.body.contentEditable = 'true';
48
+ }
49
+ iframe[0].contentWindow.focus();
50
+ });
51
+ });
@@ -0,0 +1,1149 @@
1
+ /* common */
2
+ .ke-inline-block {
3
+ display: -moz-inline-stack;
4
+ display: inline-block;
5
+ vertical-align: middle;
6
+ zoom: 1;
7
+ *display: inline;
8
+ }
9
+ .ke-clearfix {
10
+ zoom: 1;
11
+ }
12
+ .ke-clearfix:after {
13
+ content: ".";
14
+ display: block;
15
+ clear: both;
16
+ font-size: 0;
17
+ height: 0;
18
+ line-height: 0;
19
+ visibility: hidden;
20
+ }
21
+ .ke-shadow {
22
+ box-shadow: 1px 1px 3px #A0A0A0;
23
+ -moz-box-shadow: 1px 1px 3px #A0A0A0;
24
+ -webkit-box-shadow: 1px 1px 3px #A0A0A0;
25
+ filter: progid:DXImageTransform.Microsoft.Shadow(color='#A0A0A0', Direction=135, Strength=3);
26
+ background-color: #F0F0EE;
27
+ }
28
+ .ke-menu a,
29
+ .ke-menu a:hover,
30
+ .ke-dialog a,
31
+ .ke-dialog a:hover {
32
+ color: #337FE5;
33
+ text-decoration: none;
34
+ }
35
+ /* icons */
36
+ .ke-icon-source {
37
+ background-position: 0px 0px;
38
+ width: 16px;
39
+ height: 16px;
40
+ }
41
+ .ke-icon-preview {
42
+ background-position: 0px -16px;
43
+ width: 16px;
44
+ height: 16px;
45
+ }
46
+ .ke-icon-print {
47
+ background-position: 0px -32px;
48
+ width: 16px;
49
+ height: 16px;
50
+ }
51
+ .ke-icon-undo {
52
+ background-position: 0px -48px;
53
+ width: 16px;
54
+ height: 16px;
55
+ }
56
+ .ke-icon-redo {
57
+ background-position: 0px -64px;
58
+ width: 16px;
59
+ height: 16px;
60
+ }
61
+ .ke-icon-cut {
62
+ background-position: 0px -80px;
63
+ width: 16px;
64
+ height: 16px;
65
+ }
66
+ .ke-icon-copy {
67
+ background-position: 0px -96px;
68
+ width: 16px;
69
+ height: 16px;
70
+ }
71
+ .ke-icon-paste {
72
+ background-position: 0px -112px;
73
+ width: 16px;
74
+ height: 16px;
75
+ }
76
+ .ke-icon-selectall {
77
+ background-position: 0px -128px;
78
+ width: 16px;
79
+ height: 16px;
80
+ }
81
+ .ke-icon-justifyleft {
82
+ background-position: 0px -144px;
83
+ width: 16px;
84
+ height: 16px;
85
+ }
86
+ .ke-icon-justifycenter {
87
+ background-position: 0px -160px;
88
+ width: 16px;
89
+ height: 16px;
90
+ }
91
+ .ke-icon-justifyright {
92
+ background-position: 0px -176px;
93
+ width: 16px;
94
+ height: 16px;
95
+ }
96
+ .ke-icon-justifyfull {
97
+ background-position: 0px -192px;
98
+ width: 16px;
99
+ height: 16px;
100
+ }
101
+ .ke-icon-insertorderedlist {
102
+ background-position: 0px -208px;
103
+ width: 16px;
104
+ height: 16px;
105
+ }
106
+ .ke-icon-insertunorderedlist {
107
+ background-position: 0px -224px;
108
+ width: 16px;
109
+ height: 16px;
110
+ }
111
+ .ke-icon-indent {
112
+ background-position: 0px -240px;
113
+ width: 16px;
114
+ height: 16px;
115
+ }
116
+ .ke-icon-outdent {
117
+ background-position: 0px -256px;
118
+ width: 16px;
119
+ height: 16px;
120
+ }
121
+ .ke-icon-subscript {
122
+ background-position: 0px -272px;
123
+ width: 16px;
124
+ height: 16px;
125
+ }
126
+ .ke-icon-superscript {
127
+ background-position: 0px -288px;
128
+ width: 16px;
129
+ height: 16px;
130
+ }
131
+ .ke-icon-date {
132
+ background-position: 0px -304px;
133
+ width: 25px;
134
+ height: 16px;
135
+ }
136
+ .ke-icon-time {
137
+ background-position: 0px -320px;
138
+ width: 25px;
139
+ height: 16px;
140
+ }
141
+ .ke-icon-formatblock {
142
+ background-position: 0px -336px;
143
+ width: 25px;
144
+ height: 16px;
145
+ }
146
+ .ke-icon-fontname {
147
+ background-position: 0px -352px;
148
+ width: 21px;
149
+ height: 16px;
150
+ }
151
+ .ke-icon-fontsize {
152
+ background-position: 0px -368px;
153
+ width: 23px;
154
+ height: 16px;
155
+ }
156
+ .ke-icon-forecolor {
157
+ background-position: 0px -384px;
158
+ width: 20px;
159
+ height: 16px;
160
+ }
161
+ .ke-icon-hilitecolor {
162
+ background-position: 0px -400px;
163
+ width: 23px;
164
+ height: 16px;
165
+ }
166
+ .ke-icon-bold {
167
+ background-position: 0px -416px;
168
+ width: 16px;
169
+ height: 16px;
170
+ }
171
+ .ke-icon-italic {
172
+ background-position: 0px -432px;
173
+ width: 16px;
174
+ height: 16px;
175
+ }
176
+ .ke-icon-underline {
177
+ background-position: 0px -448px;
178
+ width: 16px;
179
+ height: 16px;
180
+ }
181
+ .ke-icon-strikethrough {
182
+ background-position: 0px -464px;
183
+ width: 16px;
184
+ height: 16px;
185
+ }
186
+ .ke-icon-removeformat {
187
+ background-position: 0px -480px;
188
+ width: 16px;
189
+ height: 16px;
190
+ }
191
+ .ke-icon-image {
192
+ background-position: 0px -496px;
193
+ width: 16px;
194
+ height: 16px;
195
+ }
196
+ .ke-icon-flash {
197
+ background-position: 0px -512px;
198
+ width: 16px;
199
+ height: 16px;
200
+ }
201
+ .ke-icon-media {
202
+ background-position: 0px -528px;
203
+ width: 16px;
204
+ height: 16px;
205
+ }
206
+ .ke-icon-div {
207
+ background-position: 0px -544px;
208
+ width: 16px;
209
+ height: 16px;
210
+ }
211
+ .ke-icon-formula {
212
+ background-position: 0px -576px;
213
+ width: 16px;
214
+ height: 16px;
215
+ }
216
+ .ke-icon-hr {
217
+ background-position: 0px -592px;
218
+ width: 16px;
219
+ height: 16px;
220
+ }
221
+ .ke-icon-emoticons {
222
+ background-position: 0px -608px;
223
+ width: 16px;
224
+ height: 16px;
225
+ }
226
+ .ke-icon-link {
227
+ background-position: 0px -624px;
228
+ width: 16px;
229
+ height: 16px;
230
+ }
231
+ .ke-icon-unlink {
232
+ background-position: 0px -640px;
233
+ width: 16px;
234
+ height: 16px;
235
+ }
236
+ .ke-icon-fullscreen {
237
+ background-position: 0px -656px;
238
+ width: 16px;
239
+ height: 16px;
240
+ }
241
+ .ke-icon-about {
242
+ background-position: 0px -672px;
243
+ width: 16px;
244
+ height: 16px;
245
+ }
246
+ .ke-icon-plainpaste {
247
+ background-position: 0px -704px;
248
+ width: 16px;
249
+ height: 16px;
250
+ }
251
+ .ke-icon-wordpaste {
252
+ background-position: 0px -720px;
253
+ width: 16px;
254
+ height: 16px;
255
+ }
256
+ .ke-icon-table {
257
+ background-position: 0px -784px;
258
+ width: 16px;
259
+ height: 16px;
260
+ }
261
+ .ke-icon-tablemenu {
262
+ background-position: 0px -768px;
263
+ width: 16px;
264
+ height: 16px;
265
+ }
266
+ .ke-icon-tableinsert {
267
+ background-position: 0px -784px;
268
+ width: 16px;
269
+ height: 16px;
270
+ }
271
+ .ke-icon-tabledelete {
272
+ background-position: 0px -800px;
273
+ width: 16px;
274
+ height: 16px;
275
+ }
276
+ .ke-icon-tablecolinsertleft {
277
+ background-position: 0px -816px;
278
+ width: 16px;
279
+ height: 16px;
280
+ }
281
+ .ke-icon-tablecolinsertright {
282
+ background-position: 0px -832px;
283
+ width: 16px;
284
+ height: 16px;
285
+ }
286
+ .ke-icon-tablerowinsertabove {
287
+ background-position: 0px -848px;
288
+ width: 16px;
289
+ height: 16px;
290
+ }
291
+ .ke-icon-tablerowinsertbelow {
292
+ background-position: 0px -864px;
293
+ width: 16px;
294
+ height: 16px;
295
+ }
296
+ .ke-icon-tablecoldelete {
297
+ background-position: 0px -880px;
298
+ width: 16px;
299
+ height: 16px;
300
+ }
301
+ .ke-icon-tablerowdelete {
302
+ background-position: 0px -896px;
303
+ width: 16px;
304
+ height: 16px;
305
+ }
306
+ .ke-icon-tablecellprop {
307
+ background-position: 0px -912px;
308
+ width: 16px;
309
+ height: 16px;
310
+ }
311
+ .ke-icon-tableprop {
312
+ background-position: 0px -928px;
313
+ width: 16px;
314
+ height: 16px;
315
+ }
316
+ .ke-icon-checked {
317
+ background-position: 0px -944px;
318
+ width: 16px;
319
+ height: 16px;
320
+ }
321
+ .ke-icon-code {
322
+ background-position: 0px -960px;
323
+ width: 16px;
324
+ height: 16px;
325
+ }
326
+ .ke-icon-map {
327
+ background-position: 0px -976px;
328
+ width: 16px;
329
+ height: 16px;
330
+ }
331
+ .ke-icon-baidumap {
332
+ background-position: 0px -976px;
333
+ width: 16px;
334
+ height: 16px;
335
+ }
336
+ .ke-icon-lineheight {
337
+ background-position: 0px -992px;
338
+ width: 16px;
339
+ height: 16px;
340
+ }
341
+ .ke-icon-clearhtml {
342
+ background-position: 0px -1008px;
343
+ width: 16px;
344
+ height: 16px;
345
+ }
346
+ .ke-icon-pagebreak {
347
+ background-position: 0px -1024px;
348
+ width: 16px;
349
+ height: 16px;
350
+ }
351
+ .ke-icon-insertfile {
352
+ background-position: 0px -1040px;
353
+ width: 16px;
354
+ height: 16px;
355
+ }
356
+ .ke-icon-quickformat {
357
+ background-position: 0px -1056px;
358
+ width: 16px;
359
+ height: 16px;
360
+ }
361
+ .ke-icon-template {
362
+ background-position: 0px -1072px;
363
+ width: 16px;
364
+ height: 16px;
365
+ }
366
+ .ke-icon-tablecellsplit {
367
+ background-position: 0px -1088px;
368
+ width: 16px;
369
+ height: 16px;
370
+ }
371
+ .ke-icon-tablerowmerge {
372
+ background-position: 0px -1104px;
373
+ width: 16px;
374
+ height: 16px;
375
+ }
376
+ .ke-icon-tablerowsplit {
377
+ background-position: 0px -1120px;
378
+ width: 16px;
379
+ height: 16px;
380
+ }
381
+ .ke-icon-tablecolmerge {
382
+ background-position: 0px -1136px;
383
+ width: 16px;
384
+ height: 16px;
385
+ }
386
+ .ke-icon-tablecolsplit {
387
+ background-position: 0px -1152px;
388
+ width: 16px;
389
+ height: 16px;
390
+ }
391
+ .ke-icon-anchor {
392
+ background-position: 0px -1168px;
393
+ width: 16px;
394
+ height: 16px;
395
+ }
396
+ .ke-icon-search {
397
+ background-position: 0px -1184px;
398
+ width: 16px;
399
+ height: 16px;
400
+ }
401
+ .ke-icon-new {
402
+ background-position: 0px -1200px;
403
+ width: 16px;
404
+ height: 16px;
405
+ }
406
+ .ke-icon-specialchar {
407
+ background-position: 0px -1216px;
408
+ width: 16px;
409
+ height: 16px;
410
+ }
411
+ .ke-icon-multiimage {
412
+ background-position: 0px -1232px;
413
+ width: 16px;
414
+ height: 16px;
415
+ }
416
+ /* container */
417
+ .ke-container {
418
+ display: block;
419
+ border: 1px solid #CCCCCC;
420
+ background-color: #FFF;
421
+ overflow: hidden;
422
+ margin: 0;
423
+ padding: 0;
424
+ }
425
+ /* toolbar */
426
+ .ke-toolbar {
427
+ border-bottom: 1px solid #CCC;
428
+ background-color: #F0F0EE;
429
+ padding: 2px 5px;
430
+ text-align: left;
431
+ overflow: hidden;
432
+ zoom: 1;
433
+ }
434
+ .ke-toolbar-icon {
435
+ background-repeat: no-repeat;
436
+ font-size: 0;
437
+ line-height: 0;
438
+ overflow: hidden;
439
+ display: block;
440
+ }
441
+ .ke-toolbar-icon-url {
442
+ background-image: url(default.png);
443
+ }
444
+ .ke-toolbar .ke-outline {
445
+ border: 1px solid #F0F0EE;
446
+ margin: 1px;
447
+ padding: 1px 2px;
448
+ font-size: 0;
449
+ line-height: 0;
450
+ overflow: hidden;
451
+ cursor: pointer;
452
+ display: block;
453
+ float: left;
454
+ }
455
+ .ke-toolbar .ke-on {
456
+ border: 1px solid #5690D2;
457
+ }
458
+ .ke-toolbar .ke-selected {
459
+ border: 1px solid #5690D2;
460
+ background-color: #E9EFF6;
461
+ }
462
+ .ke-toolbar .ke-disabled {
463
+ cursor: default;
464
+ }
465
+ .ke-toolbar .ke-separator {
466
+ height: 16px;
467
+ margin: 2px 3px;
468
+ border-left: 1px solid #A0A0A0;
469
+ border-right: 1px solid #FFFFFF;
470
+ border-top:0;
471
+ border-bottom:0;
472
+ width: 0;
473
+ font-size: 0;
474
+ line-height: 0;
475
+ overflow: hidden;
476
+ display: block;
477
+ float: left;
478
+ }
479
+ .ke-toolbar .ke-hr {
480
+ overflow: hidden;
481
+ height: 1px;
482
+ clear: both;
483
+ }
484
+ /* edit */
485
+ .ke-edit {
486
+ padding: 0;
487
+ }
488
+ .ke-edit-iframe,
489
+ .ke-edit-textarea {
490
+ border: 0;
491
+ margin: 0;
492
+ padding: 0;
493
+ overflow: auto;
494
+ }
495
+ .ke-edit-textarea {
496
+ font: 12px/1.5 "Consolas", "Monaco", "Bitstream Vera Sans Mono", "Courier New", Courier, monospace;
497
+ color: #000;
498
+ overflow: auto;
499
+ resize: none;
500
+ }
501
+ .ke-edit-textarea:focus {
502
+ outline: none;
503
+ }
504
+ /* statusbar */
505
+ .ke-statusbar {
506
+ position: relative;
507
+ background-color: #F0F0EE;
508
+ border-top: 1px solid #CCCCCC;
509
+ font-size: 0;
510
+ line-height: 0;
511
+ *height: 12px;
512
+ overflow: hidden;
513
+ text-align: center;
514
+ cursor: s-resize;
515
+ }
516
+ .ke-statusbar-center-icon {
517
+ background-position: -0px -754px;
518
+ width: 15px;
519
+ height: 11px;
520
+ background-image: url(default.png);
521
+ }
522
+ .ke-statusbar-right-icon {
523
+ position: absolute;
524
+ right: 0;
525
+ bottom: 0;
526
+ cursor: se-resize;
527
+ background-position: -5px -741px;
528
+ width: 11px;
529
+ height: 11px;
530
+ background-image: url(default.png);
531
+ }
532
+ /* menu */
533
+ .ke-menu {
534
+ border: 1px solid #A0A0A0;
535
+ background-color: #F1F1F1;
536
+ color: #222222;
537
+ padding: 2px;
538
+ font-family: "sans serif",tahoma,verdana,helvetica;
539
+ font-size: 12px;
540
+ text-align: left;
541
+ overflow: hidden;
542
+ }
543
+ .ke-menu-item {
544
+ border: 1px solid #F1F1F1;
545
+ background-color: #F1F1F1;
546
+ color: #222222;
547
+ height: 24px;
548
+ overflow: hidden;
549
+ cursor: pointer;
550
+ }
551
+ .ke-menu-item-on {
552
+ border: 1px solid #5690D2;
553
+ background-color: #E9EFF6;
554
+ }
555
+ .ke-menu-item-left {
556
+ width: 27px;
557
+ text-align: center;
558
+ overflow: hidden;
559
+ }
560
+ .ke-menu-item-center {
561
+ width: 0;
562
+ height: 24px;
563
+ border-left: 1px solid #E3E3E3;
564
+ border-right: 1px solid #FFFFFF;
565
+ border-top: 0;
566
+ border-bottom: 0;
567
+ }
568
+ .ke-menu-item-center-on {
569
+ border-left: 1px solid #E9EFF6;
570
+ border-right: 1px solid #E9EFF6;
571
+ }
572
+ .ke-menu-item-right {
573
+ border: 0;
574
+ padding: 0 0 0 5px;
575
+ line-height: 24px;
576
+ text-align: left;
577
+ overflow: hidden;
578
+ }
579
+ .ke-menu-separator {
580
+ margin: 2px 0;
581
+ height: 0;
582
+ overflow: hidden;
583
+ border-top: 1px solid #CCCCCC;
584
+ border-bottom: 1px solid #FFFFFF;
585
+ border-left: 0;
586
+ border-right: 0;
587
+ }
588
+ /* colorpicker */
589
+ .ke-colorpicker {
590
+ border: 1px solid #A0A0A0;
591
+ background-color: #F1F1F1;
592
+ color: #222222;
593
+ padding: 2px;
594
+ }
595
+ .ke-colorpicker-table {
596
+ border:0;
597
+ margin:0;
598
+ padding:0;
599
+ border-collapse: separate;
600
+ }
601
+ .ke-colorpicker-cell {
602
+ font-size: 0;
603
+ line-height: 0;
604
+ border: 1px solid #F0F0EE;
605
+ cursor: pointer;
606
+ margin:3px;
607
+ padding:0;
608
+ }
609
+ .ke-colorpicker-cell-top {
610
+ font-family: "sans serif",tahoma,verdana,helvetica;
611
+ font-size: 12px;
612
+ line-height: 24px;
613
+ border: 1px solid #F0F0EE;
614
+ cursor: pointer;
615
+ margin:0;
616
+ padding:0;
617
+ text-align: center;
618
+ }
619
+ .ke-colorpicker-cell-on {
620
+ border: 1px solid #5690D2;
621
+ }
622
+ .ke-colorpicker-cell-selected {
623
+ border: 1px solid #2446AB;
624
+ }
625
+ .ke-colorpicker-cell-color {
626
+ width: 14px;
627
+ height: 14px;
628
+ margin: 3px;
629
+ padding: 0;
630
+ border: 0;
631
+ }
632
+ /* dialog */
633
+ .ke-dialog {
634
+ position: absolute;
635
+ margin: 0;
636
+ padding: 0;
637
+ }
638
+ .ke-dialog .ke-header {
639
+ width: 100%;
640
+ margin-bottom: 10px;
641
+ }
642
+ .ke-dialog .ke-header .ke-left {
643
+ float: left;
644
+ }
645
+ .ke-dialog .ke-header .ke-right {
646
+ float: right;
647
+ }
648
+ .ke-dialog .ke-header label {
649
+ margin-right: 0;
650
+ cursor: pointer;
651
+ font-weight: normal;
652
+ display: inline;
653
+ vertical-align: top;
654
+ }
655
+ .ke-dialog-content {
656
+ background-color: #FFF;
657
+ width: 100%;
658
+ height: 100%;
659
+ color: #333;
660
+ border: 1px solid #A0A0A0;
661
+ }
662
+ .ke-dialog-shadow {
663
+ position: absolute;
664
+ z-index: -1;
665
+ top: 0;
666
+ left: 0;
667
+ width: 100%;
668
+ height: 100%;
669
+ box-shadow: 3px 3px 7px #999;
670
+ -moz-box-shadow: 3px 3px 7px #999;
671
+ -webkit-box-shadow: 3px 3px 7px #999;
672
+ filter: progid:DXImageTransform.Microsoft.Blur(PixelRadius='3', MakeShadow='true', ShadowOpacity='0.4');
673
+ background-color: #F0F0EE;
674
+ }
675
+ .ke-dialog-header {
676
+ border:0;
677
+ margin:0;
678
+ padding: 0 10px;
679
+ background: url(background.png) repeat scroll 0 0 #F0F0EE;
680
+ border-bottom: 1px solid #CFCFCF;
681
+ height: 24px;
682
+ font: 12px/24px "sans serif",tahoma,verdana,helvetica;
683
+ text-align: left;
684
+ color: #222;
685
+ cursor: move;
686
+ }
687
+ .ke-dialog-icon-close {
688
+ display: block;
689
+ background: url(default.png) no-repeat scroll 0px -688px;
690
+ width: 16px;
691
+ height: 16px;
692
+ position: absolute;
693
+ right: 6px;
694
+ top: 6px;
695
+ cursor: pointer;
696
+ }
697
+ .ke-dialog-body {
698
+ font: 12px/1.5 "sans serif",tahoma,verdana,helvetica;
699
+ text-align: left;
700
+ overflow: hidden;
701
+ width: 100%;
702
+ }
703
+ .ke-dialog-body textarea {
704
+ display: block;
705
+ overflow: auto;
706
+ padding: 0;
707
+ resize: none;
708
+ }
709
+ .ke-dialog-body textarea:focus,
710
+ .ke-dialog-body input:focus,
711
+ .ke-dialog-body select:focus {
712
+ outline: none;
713
+ }
714
+ .ke-dialog-body label {
715
+ margin-right: 10px;
716
+ cursor: pointer;
717
+ display: -moz-inline-stack;
718
+ display: inline-block;
719
+ vertical-align: middle;
720
+ zoom: 1;
721
+ *display: inline;
722
+ }
723
+ .ke-dialog-body img {
724
+ display: -moz-inline-stack;
725
+ display: inline-block;
726
+ vertical-align: middle;
727
+ zoom: 1;
728
+ *display: inline;
729
+ }
730
+ .ke-dialog-body select {
731
+ display: -moz-inline-stack;
732
+ display: inline-block;
733
+ vertical-align: middle;
734
+ zoom: 1;
735
+ *display: inline;
736
+ width: auto;
737
+ }
738
+ .ke-dialog-body .ke-textarea {
739
+ display: block;
740
+ width: 408px;
741
+ height: 260px;
742
+ font-family: "sans serif",tahoma,verdana,helvetica;
743
+ font-size: 12px;
744
+ border-color: #848484 #E0E0E0 #E0E0E0 #848484;
745
+ border-style: solid;
746
+ border-width: 1px;
747
+ }
748
+ .ke-dialog-body .ke-form {
749
+ margin: 0;
750
+ padding: 0;
751
+ }
752
+ .ke-dialog-loading {
753
+ position: absolute;
754
+ top: 0;
755
+ left: 1px;
756
+ z-index: 1;
757
+ text-align: center;
758
+ }
759
+ .ke-dialog-loading-content {
760
+ background: url("../common/loading.gif") no-repeat;
761
+ color: #666;
762
+ font-size: 14px;
763
+ font-weight: bold;
764
+ height: 31px;
765
+ line-height: 31px;
766
+ padding-left: 36px;
767
+ }
768
+ .ke-dialog-row {
769
+ margin-bottom: 10px;
770
+ }
771
+ .ke-dialog-footer {
772
+ font: 12px/1 "sans serif",tahoma,verdana,helvetica;
773
+ text-align: right;
774
+ padding:0 0 5px 0;
775
+ background-color: #FFF;
776
+ width: 100%;
777
+ }
778
+ .ke-dialog-preview,
779
+ .ke-dialog-yes {
780
+ margin: 5px;
781
+ }
782
+ .ke-dialog-no {
783
+ margin: 5px 10px 5px 5px;
784
+ }
785
+ .ke-dialog-mask {
786
+ background-color:#FFF;
787
+ filter:alpha(opacity=50);
788
+ opacity:0.5;
789
+ }
790
+ .ke-button-common {
791
+ background: url(background.png) no-repeat scroll 0 -25px transparent;
792
+ cursor: pointer;
793
+ height: 23px;
794
+ line-height: 23px;
795
+ overflow: visible;
796
+ display: inline-block;
797
+ vertical-align: top;
798
+ cursor: pointer;
799
+ }
800
+ .ke-button-outer {
801
+ background-position: 0 -25px;
802
+ padding: 0;
803
+ position: relative;
804
+ display: -moz-inline-stack;
805
+ display: inline-block;
806
+ vertical-align: middle;
807
+ zoom: 1;
808
+ *display: inline;
809
+ }
810
+ .ke-button {
811
+ background-position: right -25px;
812
+ padding: 0 12px;
813
+ margin: 0;
814
+ font-family: "sans serif",tahoma,verdana,helvetica;
815
+ border: 0 none;
816
+ color: #333;
817
+ font-size: 12px;
818
+ left: 2px;
819
+ text-decoration: none;
820
+ }
821
+ /* inputbox */
822
+ .ke-input-text {
823
+ background-color:#FFFFFF;
824
+ font-family: "sans serif",tahoma,verdana,helvetica;
825
+ font-size: 12px;
826
+ line-height: 17px;
827
+ height: 17px;
828
+ padding: 2px 4px;
829
+ border-color: #848484 #E0E0E0 #E0E0E0 #848484;
830
+ border-style: solid;
831
+ border-width: 1px;
832
+ display: -moz-inline-stack;
833
+ display: inline-block;
834
+ vertical-align: middle;
835
+ zoom: 1;
836
+ *display: inline;
837
+ }
838
+ .ke-input-number {
839
+ width: 50px;
840
+ }
841
+ .ke-input-color {
842
+ border: 1px solid #A0A0A0;
843
+ background-color: #FFFFFF;
844
+ font-size: 12px;
845
+ width: 60px;
846
+ height: 20px;
847
+ line-height: 20px;
848
+ padding-left: 5px;
849
+ overflow: hidden;
850
+ cursor: pointer;
851
+ display: -moz-inline-stack;
852
+ display: inline-block;
853
+ vertical-align: middle;
854
+ zoom: 1;
855
+ *display: inline;
856
+ }
857
+ .ke-upload-button {
858
+ position: relative;
859
+ }
860
+ .ke-upload-area {
861
+ position: relative;
862
+ overflow: hidden;
863
+ margin: 0;
864
+ padding: 0;
865
+ *height: 25px;
866
+ }
867
+ .ke-upload-area .ke-upload-file {
868
+ position: absolute;
869
+ font-size: 60px;
870
+ top: 0;
871
+ right: 0;
872
+ padding: 0;
873
+ margin: 0;
874
+ z-index: 811212;
875
+ border: 0 none;
876
+ opacity: 0;
877
+ filter: alpha(opacity=0);
878
+ }
879
+ /* tabs */
880
+ .ke-tabs {
881
+ font: 12px/1 "sans serif",tahoma,verdana,helvetica;
882
+ border-bottom:1px solid #A0A0A0;
883
+ padding-left:5px;
884
+ margin-bottom:20px;
885
+ }
886
+ .ke-tabs-ul {
887
+ list-style-image:none;
888
+ list-style-position:outside;
889
+ list-style-type:none;
890
+ margin:0;
891
+ padding:0;
892
+ }
893
+ .ke-tabs-li {
894
+ position: relative;
895
+ border: 1px solid #A0A0A0;
896
+ background-color: #F0F0EE;
897
+ margin: 0 2px -1px 0;
898
+ padding: 0 20px;
899
+ float: left;
900
+ line-height: 25px;
901
+ text-align: center;
902
+ color: #555555;
903
+ cursor: pointer;
904
+ }
905
+ .ke-tabs-li-selected {
906
+ background-color: #FFF;
907
+ border-bottom: 1px solid #FFF;
908
+ color: #000;
909
+ cursor: default;
910
+ }
911
+ .ke-tabs-li-on {
912
+ background-color: #FFF;
913
+ color: #000;
914
+ }
915
+ /* progressbar */
916
+ .ke-progressbar {
917
+ position: relative;
918
+ margin: 0;
919
+ padding: 0;
920
+ }
921
+ .ke-progressbar-bar {
922
+ border: 1px solid #6FA5DB;
923
+ width: 80px;
924
+ height: 5px;
925
+ margin: 10px 10px 0 10px;
926
+ padding: 0;
927
+ }
928
+ .ke-progressbar-bar-inner {
929
+ width: 0;
930
+ height: 5px;
931
+ background-color: #6FA5DB;
932
+ overflow: hidden;
933
+ margin: 0;
934
+ padding: 0;
935
+ }
936
+ .ke-progressbar-percent {
937
+ position: absolute;
938
+ top: 0;
939
+ left: 40%;
940
+ display: none;
941
+ }
942
+ /* swfupload */
943
+ .ke-swfupload-top {
944
+ position: relative;
945
+ margin-bottom: 10px;
946
+ _width: 608px;
947
+ }
948
+ .ke-swfupload-button {
949
+ height: 23px;
950
+ line-height: 23px;
951
+ }
952
+ .ke-swfupload-desc {
953
+ padding: 0 10px;
954
+ height: 23px;
955
+ line-height: 23px;
956
+ }
957
+ .ke-swfupload-startupload {
958
+ position: absolute;
959
+ top: 0;
960
+ right: 0;
961
+ }
962
+ .ke-swfupload-body {
963
+ overflow: scroll;
964
+ background-color:#FFFFFF;
965
+ border-color: #848484 #E0E0E0 #E0E0E0 #848484;
966
+ border-style: solid;
967
+ border-width: 1px;
968
+ width: auto;
969
+ height: 370px;
970
+ padding: 5px;
971
+ }
972
+ .ke-swfupload-body .ke-item {
973
+ width: 100px;
974
+ margin: 5px;
975
+ }
976
+ .ke-swfupload-body .ke-photo {
977
+ position: relative;
978
+ border: 1px solid #DDDDDD;
979
+ background-color:#FFFFFF;
980
+ padding: 10px;
981
+ }
982
+ .ke-swfupload-body .ke-delete {
983
+ display: block;
984
+ background: url(default.png) no-repeat scroll 0px -688px;
985
+ width: 16px;
986
+ height: 16px;
987
+ position: absolute;
988
+ right: 0;
989
+ top: 0;
990
+ cursor: pointer;
991
+ }
992
+ .ke-swfupload-body .ke-status {
993
+ position: absolute;
994
+ left: 0;
995
+ bottom: 5px;
996
+ width: 100px;
997
+ height: 17px;
998
+ }
999
+ .ke-swfupload-body .ke-message {
1000
+ width: 100px;
1001
+ text-align: center;
1002
+ overflow: hidden;
1003
+ height:17px;
1004
+ }
1005
+ .ke-swfupload-body .ke-error {
1006
+ color: red;
1007
+ }
1008
+ .ke-swfupload-body .ke-name {
1009
+ width: 100px;
1010
+ text-align: center;
1011
+ overflow: hidden;
1012
+ height:16px;
1013
+ }
1014
+ .ke-swfupload-body .ke-on {
1015
+ border: 1px solid #5690D2;
1016
+ background-color: #E9EFF6;
1017
+ }
1018
+
1019
+ /* emoticons */
1020
+ .ke-plugin-emoticons {
1021
+ position: relative;
1022
+ }
1023
+ .ke-plugin-emoticons .ke-preview {
1024
+ position: absolute;
1025
+ text-align: center;
1026
+ margin: 2px;
1027
+ padding: 10px;
1028
+ top: 0;
1029
+ border: 1px solid #A0A0A0;
1030
+ background-color: #FFFFFF;
1031
+ display: none;
1032
+ }
1033
+ .ke-plugin-emoticons .ke-preview-img {
1034
+ border:0;
1035
+ margin:0;
1036
+ padding:0;
1037
+ }
1038
+ .ke-plugin-emoticons .ke-table {
1039
+ border:0;
1040
+ margin:0;
1041
+ padding:0;
1042
+ border-collapse:separate;
1043
+ }
1044
+ .ke-plugin-emoticons .ke-cell {
1045
+ margin:0;
1046
+ padding:1px;
1047
+ border:1px solid #F0F0EE;
1048
+ cursor:pointer;
1049
+ }
1050
+ .ke-plugin-emoticons .ke-on {
1051
+ border: 1px solid #5690D2;
1052
+ background-color: #E9EFF6;
1053
+ }
1054
+ .ke-plugin-emoticons .ke-img {
1055
+ display:block;
1056
+ background-repeat:no-repeat;
1057
+ overflow:hidden;
1058
+ margin:2px;
1059
+ width:24px;
1060
+ height:24px;
1061
+ margin: 0;
1062
+ padding: 0;
1063
+ border: 0;
1064
+ }
1065
+ .ke-plugin-emoticons .ke-page {
1066
+ text-align: right;
1067
+ margin: 5px;
1068
+ padding: 0;
1069
+ border: 0;
1070
+ font: 12px/1 "sans serif",tahoma,verdana,helvetica;
1071
+ color: #333;
1072
+ text-decoration: none;
1073
+ }
1074
+ .ke-plugin-plainpaste-textarea,
1075
+ .ke-plugin-wordpaste-iframe {
1076
+ display: block;
1077
+ width: 408px;
1078
+ height: 260px;
1079
+ font-family: "sans serif",tahoma,verdana,helvetica;
1080
+ font-size: 12px;
1081
+ border-color: #848484 #E0E0E0 #E0E0E0 #848484;
1082
+ border-style: solid;
1083
+ border-width: 1px;
1084
+ }
1085
+ /* filemanager */
1086
+ .ke-plugin-filemanager-header {
1087
+ width: 100%;
1088
+ margin-bottom: 10px;
1089
+ }
1090
+ .ke-plugin-filemanager-header .ke-left {
1091
+ float: left;
1092
+ }
1093
+ .ke-plugin-filemanager-header .ke-right {
1094
+ float: right;
1095
+ }
1096
+ .ke-plugin-filemanager-body {
1097
+ overflow: scroll;
1098
+ background-color:#FFFFFF;
1099
+ border-color: #848484 #E0E0E0 #E0E0E0 #848484;
1100
+ border-style: solid;
1101
+ border-width: 1px;
1102
+ width: auto;
1103
+ height: 370px;
1104
+ padding: 5px;
1105
+ }
1106
+ .ke-plugin-filemanager-body .ke-item {
1107
+ width: 100px;
1108
+ margin: 5px;
1109
+ }
1110
+ .ke-plugin-filemanager-body .ke-photo {
1111
+ border: 1px solid #DDDDDD;
1112
+ background-color:#FFFFFF;
1113
+ padding: 10px;
1114
+ }
1115
+ .ke-plugin-filemanager-body .ke-name {
1116
+ width: 100px;
1117
+ text-align: center;
1118
+ overflow: hidden;
1119
+ height:16px;
1120
+ }
1121
+ .ke-plugin-filemanager-body .ke-on {
1122
+ border: 1px solid #5690D2;
1123
+ background-color: #E9EFF6;
1124
+ }
1125
+ .ke-plugin-filemanager-body .ke-table {
1126
+ width: 95%;
1127
+ border: 0;
1128
+ margin: 0;
1129
+ padding: 0;
1130
+ border-collapse: separate;
1131
+ }
1132
+ .ke-plugin-filemanager-body .ke-table .ke-cell {
1133
+ margin: 0;
1134
+ padding: 0;
1135
+ border: 0;
1136
+ }
1137
+ .ke-plugin-filemanager-body .ke-table .ke-name {
1138
+ width: 55%;
1139
+ text-align: left;
1140
+ }
1141
+ .ke-plugin-filemanager-body .ke-table .ke-size {
1142
+ width: 15%;
1143
+ text-align: left;
1144
+ }
1145
+ .ke-plugin-filemanager-body .ke-table .ke-datetime {
1146
+ width: 30%;
1147
+ text-align: center;
1148
+ }
1149
+