rails_kindeditor 0.0.3 → 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (223) hide show
  1. data/README.rdoc +115 -16
  2. data/app/controllers/kindeditor/assets_controller.rb +119 -42
  3. data/app/uploaders/kindeditor/asset_uploader.rb +68 -0
  4. data/app/uploaders/kindeditor/file_uploader.rb +3 -58
  5. data/app/uploaders/kindeditor/flash_uploader.rb +14 -0
  6. data/app/uploaders/kindeditor/image_uploader.rb +3 -58
  7. data/app/uploaders/kindeditor/media_uploader.rb +14 -0
  8. data/lib/generators/rails_kindeditor/install/install_generator.rb +1 -2
  9. data/lib/generators/rails_kindeditor/install/templates/kindeditor/kindeditor-init.js +9 -8
  10. data/lib/generators/rails_kindeditor/install/templates/kindeditor/kindeditor-min.js +158 -0
  11. data/lib/generators/rails_kindeditor/install/templates/kindeditor/lang/en.js +208 -0
  12. data/lib/generators/rails_kindeditor/install/templates/kindeditor/lang/zh_CN.js +210 -0
  13. data/lib/generators/rails_kindeditor/install/templates/kindeditor/lang/zh_TW.js +210 -0
  14. data/lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/clearhtml/clearhtml.js +28 -0
  15. data/lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/code/code.js +57 -0
  16. data/lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/code/prettify.css +13 -0
  17. data/lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/code/prettify.js +28 -0
  18. data/lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/emoticons.js +129 -0
  19. data/lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/{0.gif → images/0.gif} +0 -0
  20. data/lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/{1.gif → images/1.gif} +0 -0
  21. data/lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/{10.gif → images/10.gif} +0 -0
  22. data/lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/{100.gif → images/100.gif} +0 -0
  23. data/lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/{101.gif → images/101.gif} +0 -0
  24. data/lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/{102.gif → images/102.gif} +0 -0
  25. data/lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/{103.gif → images/103.gif} +0 -0
  26. data/lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/{104.gif → images/104.gif} +0 -0
  27. data/lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/{105.gif → images/105.gif} +0 -0
  28. data/lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/{106.gif → images/106.gif} +0 -0
  29. data/lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/{107.gif → images/107.gif} +0 -0
  30. data/lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/{108.gif → images/108.gif} +0 -0
  31. data/lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/{109.gif → images/109.gif} +0 -0
  32. data/lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/{11.gif → images/11.gif} +0 -0
  33. data/lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/{110.gif → images/110.gif} +0 -0
  34. data/lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/{111.gif → images/111.gif} +0 -0
  35. data/lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/{112.gif → images/112.gif} +0 -0
  36. data/lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/{113.gif → images/113.gif} +0 -0
  37. data/lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/{114.gif → images/114.gif} +0 -0
  38. data/lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/{115.gif → images/115.gif} +0 -0
  39. data/lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/{116.gif → images/116.gif} +0 -0
  40. data/lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/{117.gif → images/117.gif} +0 -0
  41. data/lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/{118.gif → images/118.gif} +0 -0
  42. data/lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/{119.gif → images/119.gif} +0 -0
  43. data/lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/{12.gif → images/12.gif} +0 -0
  44. data/lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/{120.gif → images/120.gif} +0 -0
  45. data/lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/{121.gif → images/121.gif} +0 -0
  46. data/lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/{122.gif → images/122.gif} +0 -0
  47. data/lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/{123.gif → images/123.gif} +0 -0
  48. data/lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/{124.gif → images/124.gif} +0 -0
  49. data/lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/{125.gif → images/125.gif} +0 -0
  50. data/lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/{126.gif → images/126.gif} +0 -0
  51. data/lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/{127.gif → images/127.gif} +0 -0
  52. data/lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/{128.gif → images/128.gif} +0 -0
  53. data/lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/{129.gif → images/129.gif} +0 -0
  54. data/lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/{13.gif → images/13.gif} +0 -0
  55. data/lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/{130.gif → images/130.gif} +0 -0
  56. data/lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/{131.gif → images/131.gif} +0 -0
  57. data/lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/{132.gif → images/132.gif} +0 -0
  58. data/lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/{133.gif → images/133.gif} +0 -0
  59. data/lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/{134.gif → images/134.gif} +0 -0
  60. data/lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/{14.gif → images/14.gif} +0 -0
  61. data/lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/{15.gif → images/15.gif} +0 -0
  62. data/lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/{16.gif → images/16.gif} +0 -0
  63. data/lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/{17.gif → images/17.gif} +0 -0
  64. data/lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/{18.gif → images/18.gif} +0 -0
  65. data/lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/{19.gif → images/19.gif} +0 -0
  66. data/lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/{2.gif → images/2.gif} +0 -0
  67. data/lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/{20.gif → images/20.gif} +0 -0
  68. data/lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/{21.gif → images/21.gif} +0 -0
  69. data/lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/{22.gif → images/22.gif} +0 -0
  70. data/lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/{23.gif → images/23.gif} +0 -0
  71. data/lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/{24.gif → images/24.gif} +0 -0
  72. data/lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/{25.gif → images/25.gif} +0 -0
  73. data/lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/{26.gif → images/26.gif} +0 -0
  74. data/lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/{27.gif → images/27.gif} +0 -0
  75. data/lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/{28.gif → images/28.gif} +0 -0
  76. data/lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/{29.gif → images/29.gif} +0 -0
  77. data/lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/{3.gif → images/3.gif} +0 -0
  78. data/lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/{30.gif → images/30.gif} +0 -0
  79. data/lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/{31.gif → images/31.gif} +0 -0
  80. data/lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/{32.gif → images/32.gif} +0 -0
  81. data/lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/{33.gif → images/33.gif} +0 -0
  82. data/lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/{34.gif → images/34.gif} +0 -0
  83. data/lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/{35.gif → images/35.gif} +0 -0
  84. data/lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/{36.gif → images/36.gif} +0 -0
  85. data/lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/{37.gif → images/37.gif} +0 -0
  86. data/lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/{38.gif → images/38.gif} +0 -0
  87. data/lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/{39.gif → images/39.gif} +0 -0
  88. data/lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/{4.gif → images/4.gif} +0 -0
  89. data/lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/{40.gif → images/40.gif} +0 -0
  90. data/lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/{41.gif → images/41.gif} +0 -0
  91. data/lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/{42.gif → images/42.gif} +0 -0
  92. data/lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/{43.gif → images/43.gif} +0 -0
  93. data/lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/{44.gif → images/44.gif} +0 -0
  94. data/lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/{45.gif → images/45.gif} +0 -0
  95. data/lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/{46.gif → images/46.gif} +0 -0
  96. data/lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/{47.gif → images/47.gif} +0 -0
  97. data/lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/{48.gif → images/48.gif} +0 -0
  98. data/lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/{49.gif → images/49.gif} +0 -0
  99. data/lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/{5.gif → images/5.gif} +0 -0
  100. data/lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/{50.gif → images/50.gif} +0 -0
  101. data/lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/{51.gif → images/51.gif} +0 -0
  102. data/lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/{52.gif → images/52.gif} +0 -0
  103. data/lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/{53.gif → images/53.gif} +0 -0
  104. data/lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/{54.gif → images/54.gif} +0 -0
  105. data/lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/{55.gif → images/55.gif} +0 -0
  106. data/lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/{56.gif → images/56.gif} +0 -0
  107. data/lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/{57.gif → images/57.gif} +0 -0
  108. data/lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/{58.gif → images/58.gif} +0 -0
  109. data/lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/{59.gif → images/59.gif} +0 -0
  110. data/lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/{6.gif → images/6.gif} +0 -0
  111. data/lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/{60.gif → images/60.gif} +0 -0
  112. data/lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/{61.gif → images/61.gif} +0 -0
  113. data/lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/{62.gif → images/62.gif} +0 -0
  114. data/lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/{63.gif → images/63.gif} +0 -0
  115. data/lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/{64.gif → images/64.gif} +0 -0
  116. data/lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/{65.gif → images/65.gif} +0 -0
  117. data/lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/{66.gif → images/66.gif} +0 -0
  118. data/lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/{67.gif → images/67.gif} +0 -0
  119. data/lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/{68.gif → images/68.gif} +0 -0
  120. data/lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/{69.gif → images/69.gif} +0 -0
  121. data/lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/{7.gif → images/7.gif} +0 -0
  122. data/lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/{70.gif → images/70.gif} +0 -0
  123. data/lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/{71.gif → images/71.gif} +0 -0
  124. data/lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/{72.gif → images/72.gif} +0 -0
  125. data/lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/{73.gif → images/73.gif} +0 -0
  126. data/lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/{74.gif → images/74.gif} +0 -0
  127. data/lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/{75.gif → images/75.gif} +0 -0
  128. data/lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/{76.gif → images/76.gif} +0 -0
  129. data/lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/{77.gif → images/77.gif} +0 -0
  130. data/lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/{78.gif → images/78.gif} +0 -0
  131. data/lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/{79.gif → images/79.gif} +0 -0
  132. data/lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/{8.gif → images/8.gif} +0 -0
  133. data/lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/{80.gif → images/80.gif} +0 -0
  134. data/lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/{81.gif → images/81.gif} +0 -0
  135. data/lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/{82.gif → images/82.gif} +0 -0
  136. data/lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/{83.gif → images/83.gif} +0 -0
  137. data/lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/{84.gif → images/84.gif} +0 -0
  138. data/lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/{85.gif → images/85.gif} +0 -0
  139. data/lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/{86.gif → images/86.gif} +0 -0
  140. data/lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/{87.gif → images/87.gif} +0 -0
  141. data/lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/{88.gif → images/88.gif} +0 -0
  142. data/lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/{89.gif → images/89.gif} +0 -0
  143. data/lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/{9.gif → images/9.gif} +0 -0
  144. data/lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/{90.gif → images/90.gif} +0 -0
  145. data/lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/{91.gif → images/91.gif} +0 -0
  146. data/lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/{92.gif → images/92.gif} +0 -0
  147. data/lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/{93.gif → images/93.gif} +0 -0
  148. data/lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/{94.gif → images/94.gif} +0 -0
  149. data/lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/{95.gif → images/95.gif} +0 -0
  150. data/lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/{96.gif → images/96.gif} +0 -0
  151. data/lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/{97.gif → images/97.gif} +0 -0
  152. data/lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/{98.gif → images/98.gif} +0 -0
  153. data/lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/{99.gif → images/99.gif} +0 -0
  154. data/lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/{qq.gif → images/static.gif} +0 -0
  155. data/lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/filemanager/filemanager.js +189 -0
  156. data/lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/{file_manager → filemanager}/images/file-16.gif +0 -0
  157. data/lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/{file_manager → filemanager}/images/file-64.gif +0 -0
  158. data/lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/{file_manager → filemanager}/images/folder-16.gif +0 -0
  159. data/lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/{file_manager → filemanager}/images/folder-64.gif +0 -0
  160. data/lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/{file_manager → filemanager}/images/go-up.gif +0 -0
  161. data/lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/flash/flash.js +128 -0
  162. data/lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/image/image.js +226 -0
  163. data/lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/insertfile/insertfile.js +104 -0
  164. data/lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/lineheight/lineheight.js +38 -0
  165. data/lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/link/link.js +59 -0
  166. data/lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/map/map.html +57 -0
  167. data/lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/map/map.js +135 -0
  168. data/lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/media/media.js +136 -0
  169. data/lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/pagebreak/pagebreak.js +26 -0
  170. data/lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/plainpaste/plainpaste.js +41 -0
  171. data/lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/preview/preview.js +31 -0
  172. data/lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/quickformat/quickformat.js +71 -0
  173. data/lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/table/table.js +661 -0
  174. data/lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/template/html/1.html +14 -0
  175. data/lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/template/html/2.html +42 -0
  176. data/lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/template/html/3.html +36 -0
  177. data/lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/template/template.js +58 -0
  178. data/lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/wordpaste/wordpaste.js +57 -0
  179. data/lib/generators/rails_kindeditor/install/templates/kindeditor/{skins → themes}/common/blank.gif +0 -0
  180. data/lib/generators/rails_kindeditor/install/templates/kindeditor/{skins → themes}/common/flash.gif +0 -0
  181. data/lib/generators/rails_kindeditor/install/templates/kindeditor/{skins → themes}/common/loading.gif +0 -0
  182. data/lib/generators/rails_kindeditor/install/templates/kindeditor/{skins → themes}/common/media.gif +0 -0
  183. data/lib/generators/rails_kindeditor/install/templates/kindeditor/{skins → themes}/common/rm.gif +0 -0
  184. data/lib/generators/rails_kindeditor/install/templates/kindeditor/{skins → themes}/default/bg.gif +0 -0
  185. data/lib/generators/rails_kindeditor/install/templates/kindeditor/{skins → themes/default}/default.css +427 -396
  186. data/lib/generators/rails_kindeditor/install/templates/kindeditor/themes/default/default.gif +0 -0
  187. data/lib/generators/rails_kindeditor/install/templates/kindeditor/themes/simple/simple.css +148 -0
  188. data/lib/generators/rails_kindeditor/migration/migration_generator.rb +16 -3
  189. data/{app/models → lib/generators/rails_kindeditor/migration/templates/models/active_record}/kindeditor/asset.rb +2 -5
  190. data/{app/models → lib/generators/rails_kindeditor/migration/templates/models/active_record}/kindeditor/file.rb +1 -2
  191. data/lib/generators/rails_kindeditor/migration/templates/models/active_record/kindeditor/flash.rb +3 -0
  192. data/{app/models → lib/generators/rails_kindeditor/migration/templates/models/active_record}/kindeditor/image.rb +1 -2
  193. data/lib/generators/rails_kindeditor/migration/templates/models/active_record/kindeditor/media.rb +3 -0
  194. data/lib/generators/rails_kindeditor/migration/templates/models/mongoid/kindeditor/asset.rb +20 -0
  195. data/lib/generators/rails_kindeditor/migration/templates/models/mongoid/kindeditor/file.rb +3 -0
  196. data/lib/generators/rails_kindeditor/migration/templates/models/mongoid/kindeditor/flash.rb +3 -0
  197. data/lib/generators/rails_kindeditor/migration/templates/models/mongoid/kindeditor/image.rb +3 -0
  198. data/lib/generators/rails_kindeditor/migration/templates/models/mongoid/kindeditor/media.rb +3 -0
  199. data/lib/rails_kindeditor/helper.rb +14 -2
  200. data/lib/rails_kindeditor/version.rb +1 -1
  201. data/rails_kindeditor.gemspec +3 -3
  202. metadata +199 -182
  203. data/lib/generators/rails_kindeditor/install/templates/kindeditor/kindeditor.js +0 -4688
  204. data/lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/about.html +0 -52
  205. data/lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/accessory.html +0 -74
  206. data/lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/advtable/advtable.html +0 -235
  207. data/lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/advtable/cell.html +0 -201
  208. data/lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/file_manager/file_manager.css +0 -64
  209. data/lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/file_manager/file_manager.html +0 -31
  210. data/lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/file_manager/file_manager.js +0 -221
  211. data/lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/flash.html +0 -69
  212. data/lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/image/image.html +0 -305
  213. data/lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/link/link.html +0 -82
  214. data/lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/media.html +0 -73
  215. data/lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/plainpaste.html +0 -44
  216. data/lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/wordpaste.html +0 -50
  217. data/lib/generators/rails_kindeditor/install/templates/kindeditor/skins/common/doc.gif +0 -0
  218. data/lib/generators/rails_kindeditor/install/templates/kindeditor/skins/common/editor.css +0 -47
  219. data/lib/generators/rails_kindeditor/install/templates/kindeditor/skins/common/mp3.gif +0 -0
  220. data/lib/generators/rails_kindeditor/install/templates/kindeditor/skins/common/pdf.gif +0 -0
  221. data/lib/generators/rails_kindeditor/install/templates/kindeditor/skins/common/rar.gif +0 -0
  222. data/lib/generators/rails_kindeditor/install/templates/kindeditor/skins/common/xls.gif +0 -0
  223. data/lib/generators/rails_kindeditor/install/templates/kindeditor/skins/default/default.gif +0 -0
@@ -1,3 +1,4 @@
1
+ /* common */
1
2
  .ke-inline-block {
2
3
  display: -moz-inline-stack;
3
4
  display: inline-block;
@@ -17,15 +18,24 @@
17
18
  line-height: 0;
18
19
  visibility: hidden;
19
20
  }
20
- .ke-text {
21
- font-size: 12px;
22
- font-family: "sans serif",tahoma,verdana,helvetica;
21
+ .ke-menu a,
22
+ .ke-menu a:hover,
23
+ .ke-dialog a,
24
+ .ke-dialog a:hover {
25
+ color: #337FE5;
26
+ text-decoration: none;
23
27
  }
28
+ /* icons */
24
29
  .ke-icon-source {
25
30
  background-position: 0px 0px;
26
31
  width: 16px;
27
32
  height: 16px;
28
33
  }
34
+ .ke-icon-preview {
35
+ background-position: 0px -16px;
36
+ width: 16px;
37
+ height: 16px;
38
+ }
29
39
  .ke-icon-print {
30
40
  background-position: 0px -32px;
31
41
  width: 16px;
@@ -111,7 +121,7 @@
111
121
  width: 16px;
112
122
  height: 16px;
113
123
  }
114
- .ke-icon-title {
124
+ .ke-icon-formatblock {
115
125
  background-position: 0px -336px;
116
126
  width: 25px;
117
127
  height: 16px;
@@ -126,12 +136,12 @@
126
136
  width: 23px;
127
137
  height: 16px;
128
138
  }
129
- .ke-icon-textcolor {
139
+ .ke-icon-forecolor {
130
140
  background-position: 0px -384px;
131
141
  width: 20px;
132
142
  height: 16px;
133
143
  }
134
- .ke-icon-bgcolor {
144
+ .ke-icon-hilitecolor {
135
145
  background-position: 0px -400px;
136
146
  width: 20px;
137
147
  height: 16px;
@@ -216,7 +226,7 @@
216
226
  width: 16px;
217
227
  height: 16px;
218
228
  }
219
- .ke-icon-advtable {
229
+ .ke-icon-table {
220
230
  background-position: 0px -784px;
221
231
  width: 16px;
222
232
  height: 16px;
@@ -281,217 +291,189 @@
281
291
  width: 16px;
282
292
  height: 16px;
283
293
  }
284
- .ke-container {
285
- font-family: "sans serif",tahoma,verdana,helvetica;
286
- border: 1px solid #CCCCCC;
287
- background-color: #F0F0EE;
288
- table-layout: fixed;
289
- overflow: hidden;
290
- border-collapse:separate;
291
- padding:0;
292
- margin:0;
293
- }
294
- .ke-toolbar-outer {
295
- border: 0;
296
- padding: 0;
297
- margin: 0;
298
- }
299
- .ke-toolbar {
300
- width: 100%;
301
- border:0;
302
- padding:0;
303
- margin:0;
304
- border-collapse:separate;
305
- }
306
- .ke-toolbar td {
307
- border:0;
308
- padding: 2px 5px;
309
- margin:0;
294
+ .ke-icon-code {
295
+ background-position: 0px -960px;
296
+ width: 16px;
297
+ height: 16px;
310
298
  }
311
- .ke-toolbar-table {
312
- font-size: 0;
313
- line-height: 0;
314
- float: left;
315
- clear: both;
316
- border:0;
317
- padding:0;
318
- margin:0;
319
- border-collapse:separate;
299
+ .ke-icon-map {
300
+ background-position: 0px -976px;
301
+ width: 16px;
302
+ height: 16px;
320
303
  }
321
- .ke-toolbar-separator {
322
- border-left: 1px solid #A0A0A0;
323
- border-right: 1px solid #FFFFFF;
324
- border-top:0;
325
- border-bottom:0;
326
- width: 0;
327
- padding: 0;
328
- margin: 0 2px;
304
+ .ke-icon-lineheight {
305
+ background-position: 0px -992px;
306
+ width: 16px;
329
307
  height: 16px;
330
308
  }
331
- .ke-toolbar-table td {
332
- border:0;
333
- padding: 0;
334
- margin:0;
309
+ .ke-icon-clearhtml {
310
+ background-position: 0px -1008px;
311
+ width: 16px;
312
+ height: 16px;
335
313
  }
336
- .ke-bottom-outer {
337
- border: 0;
338
- padding: 0;
339
- margin: 0;
314
+ .ke-icon-pagebreak {
315
+ background-position: 0px -1024px;
316
+ width: 16px;
317
+ height: 16px;
340
318
  }
341
- .ke-bottom {
342
- width: 100%;
343
- font-size: 0;
344
- line-height: 0;
345
- border: 0;
346
- padding:0;
347
- margin:0;
348
- height:11px;
349
- border-collapse:separate;
319
+ .ke-icon-insertfile {
320
+ background-position: 0px -1040px;
321
+ width: 16px;
322
+ height: 16px;
350
323
  }
351
- .ke-bottom-left {
352
- width: 100%;
353
- cursor: s-resize;
354
- border:0;
355
- margin:0;
356
- padding:0;
357
- text-align: center;
358
- vertical-align: middle;
324
+ .ke-icon-quickformat {
325
+ background-position: 0px -1056px;
326
+ width: 16px;
327
+ height: 16px;
359
328
  }
360
- .ke-bottom-left-img {
361
- display: -moz-inline-stack;
362
- display: inline-block;
363
- vertical-align: middle;
364
- zoom: 1;
365
- *display: inline;
366
- background-position: -0px -754px;
367
- width: 15px;
368
- height: 11px;
369
- background-image: url(./default/default.gif);
370
- margin: 0;
371
- padding: 0;
372
- border: 0;
329
+ .ke-icon-template {
330
+ background-position: 0px -1072px;
331
+ width: 16px;
332
+ height: 16px;
373
333
  }
374
- .ke-bottom-right {
375
- cursor: se-resize;
376
- border:0;
377
- margin:0;
378
- padding:0;
379
- text-align: right;
380
- vertical-align: bottom;
334
+ .ke-icon-tablecellsplit {
335
+ background-position: 0px -1088px;
336
+ width: 16px;
337
+ height: 16px;
381
338
  }
382
- .ke-bottom-right-img {
383
- display: -moz-inline-stack;
384
- display: inline-block;
385
- vertical-align: middle;
386
- zoom: 1;
387
- *display: inline;
388
- background-position: -9px -745px;
389
- width: 7px;
390
- height: 7px;
391
- background-image: url(./default/default.gif);
392
- margin: 0;
393
- padding: 0;
394
- border: 0;
339
+ .ke-icon-tablerowmerge {
340
+ background-position: 0px -1104px;
341
+ width: 16px;
342
+ height: 16px;
395
343
  }
396
- .ke-textarea-outer {
397
- border: 0;
398
- padding: 0;
399
- margin: 0;
344
+ .ke-icon-tablerowsplit {
345
+ background-position: 0px -1120px;
346
+ width: 16px;
347
+ height: 16px;
400
348
  }
401
- .ke-textarea-table {
402
- width: 100%;
403
- padding: 0;
404
- margin: 0;
405
- border-top: 1px solid #CCCCCC;
406
- border-bottom: 1px solid #CCCCCC;
407
- border-left:0;
408
- border-right:0;
409
- background-color: #FFFFFF;
410
- border-collapse:separate;
411
- table-layout: fixed;
349
+ .ke-icon-tablecolmerge {
350
+ background-position: 0px -1136px;
351
+ width: 16px;
352
+ height: 16px;
412
353
  }
413
- .ke-textarea-table td {
414
- border:0;
415
- padding:0;
416
- margin:0;
354
+ .ke-icon-tablecolsplit {
355
+ background-position: 0px -1152px;
356
+ width: 16px;
357
+ height: 16px;
417
358
  }
418
- .ke-textarea {
419
- width: 100%;
359
+ /* container */
360
+ .ke-container {
420
361
  display: block;
362
+ border: 1px solid #CCCCCC;
363
+ background-color: #FFF;
364
+ overflow: hidden;
421
365
  margin: 0;
422
366
  padding: 0;
423
- border: 0;
424
- background-color: #FFFFFF;
425
- color: #000000;
426
- font-size: 12px;
427
- font-family: "Consolas", "Monaco", "Bitstream Vera Sans Mono", "Courier New", Courier, monospace !important;
428
- line-height: 18px;
429
- overflow: auto;
430
- resize: none;
431
- }
432
- .ke-textarea:focus {
433
- outline: none;
434
367
  }
435
- .ke-iframe {
436
- width: 100%;
437
- display: block;
438
- margin: 0;
439
- padding: 0;
440
- border: 0;
441
- background-color: #FFFFFF;
368
+ /* toolbar */
369
+ .ke-toolbar {
370
+ border-bottom: 1px solid #CCC;
371
+ background-color: #F0F0EE;
372
+ padding: 2px 5px;
373
+ overflow: hidden;
442
374
  }
443
- .ke-common-icon {
444
- margin: 0;
445
- padding: 0;
446
- border: 0;
375
+ .ke-toolbar-icon {
447
376
  background-repeat: no-repeat;
377
+ font-size: 0;
378
+ line-height: 0;
448
379
  overflow: hidden;
449
- display: -moz-inline-stack;
450
- display: inline-block;
451
- vertical-align: middle;
452
- zoom: 1;
453
- *display: inline;
454
380
  }
455
- .ke-common-icon-url {
456
- background-image: url(./default/default.gif);
381
+ .ke-toolbar-icon-url {
382
+ background-image: url(default.gif);
457
383
  }
458
- .ke-icon {
459
- display: block;
384
+ .ke-toolbar .ke-outline {
460
385
  border: 1px solid #F0F0EE;
461
- background-color: transparent;
462
- padding: 1px 2px;
463
386
  margin: 1px;
387
+ padding: 1px 2px;
388
+ font-size: 0;
389
+ line-height: 0;
390
+ overflow: hidden;
464
391
  cursor: pointer;
465
392
  }
466
- .ke-icon-on {
393
+ .ke-toolbar .ke-on {
467
394
  border: 1px solid #5690D2;
468
395
  }
469
- .ke-icon-selected {
396
+ .ke-toolbar .ke-selected {
470
397
  border: 1px solid #5690D2;
471
398
  background-color: #E9EFF6;
472
399
  }
473
- .ke-icon-disabled {
474
- border: 1px solid #F0F0EE;
400
+ .ke-toolbar .ke-disabled {
475
401
  cursor: default;
476
402
  }
477
- .ke-menu {
403
+ .ke-toolbar .ke-separator {
404
+ height: 16px;
405
+ margin: 2px 3px;
406
+ border-left: 1px solid #A0A0A0;
407
+ border-right: 1px solid #FFFFFF;
408
+ border-top:0;
409
+ border-bottom:0;
410
+ width: 0;
411
+ font-size: 0;
412
+ line-height: 0;
413
+ overflow: hidden;
414
+ }
415
+ /* edit */
416
+ .ke-edit {
417
+ padding: 0;
418
+ }
419
+ .ke-edit-iframe,
420
+ .ke-edit-textarea {
421
+ border: 0;
422
+ margin: 0;
423
+ padding: 0;
424
+ }
425
+ .ke-edit-textarea {
426
+ font: 12px/1.5 "Consolas", "Monaco", "Bitstream Vera Sans Mono", "Courier New", Courier, monospace;
427
+ color: #000;
428
+ overflow: auto;
429
+ resize: none;
430
+ }
431
+ .ke-edit-textarea:focus {
432
+ outline: none;
433
+ }
434
+ /* statusbar */
435
+ .ke-statusbar {
436
+ position: relative;
437
+ background-color: #F0F0EE;
438
+ border-top: 1px solid #CCCCCC;
439
+ font-size: 0;
440
+ line-height: 0;
441
+ *height: 12px;
442
+ overflow: hidden;
443
+ text-align: center;
444
+ cursor: s-resize;
445
+ }
446
+ .ke-statusbar-center-icon {
447
+ background-position: -0px -754px;
448
+ width: 15px;
449
+ height: 11px;
450
+ background-image: url(default.gif);
451
+ }
452
+ .ke-statusbar-right-icon {
478
453
  position: absolute;
454
+ right: 0;
455
+ bottom: 0;
456
+ cursor: se-resize;
457
+ background-position: -5px -741px;
458
+ width: 11px;
459
+ height: 11px;
460
+ background-image: url(default.gif);
461
+ }
462
+ /* menu */
463
+ .ke-menu {
479
464
  border: 1px solid #A0A0A0;
480
465
  background-color: #F1F1F1;
481
466
  color: #222222;
482
467
  padding: 2px;
483
- margin: 0;
484
468
  font-family: "sans serif",tahoma,verdana,helvetica;
485
469
  font-size: 12px;
486
470
  text-align: left;
487
- z-index: 19811214;
471
+ overflow: hidden;
488
472
  }
489
473
  .ke-menu-item {
490
474
  border: 1px solid #F1F1F1;
491
475
  background-color: #F1F1F1;
492
476
  color: #222222;
493
- padding: 0;
494
- margin: 0;
495
477
  height: 24px;
496
478
  overflow: hidden;
497
479
  cursor: pointer;
@@ -500,53 +482,32 @@
500
482
  border: 1px solid #5690D2;
501
483
  background-color: #E9EFF6;
502
484
  }
503
- .ke-menu-left {
504
- border: 0;
505
- margin: 0;
506
- padding: 0;
507
- width: 20px;
485
+ .ke-menu-item-left {
486
+ width: 27px;
487
+ text-align: center;
508
488
  overflow: hidden;
509
- display: -moz-inline-stack;
510
- display: inline-block;
511
- vertical-align: middle;
512
- zoom: 1;
513
- *display: inline;
514
489
  }
515
- .ke-menu-center {
516
- margin: 0;
517
- padding: 0;
490
+ .ke-menu-item-center {
518
491
  width: 0;
519
492
  height: 24px;
493
+ border-left: 1px solid #E3E3E3;
494
+ border-right: 1px solid #FFFFFF;
520
495
  border-top: 0;
521
496
  border-bottom: 0;
522
- border-left: 1px solid #F1F1F1;
523
- border-right: 1px solid #F1F1F1;
524
- display: -moz-inline-stack;
525
- display: inline-block;
526
- vertical-align: middle;
527
- zoom: 1;
528
- *display: inline;
529
497
  }
530
- .ke-menu-center-on {
498
+ .ke-menu-item-center-on {
531
499
  border-left: 1px solid #E9EFF6;
532
500
  border-right: 1px solid #E9EFF6;
533
501
  }
534
- .ke-menu-right {
502
+ .ke-menu-item-right {
535
503
  border: 0;
536
- margin: 0;
537
- padding: 0;
504
+ padding: 0 0 0 5px;
538
505
  line-height: 24px;
539
506
  text-align: left;
540
507
  overflow: hidden;
541
- display: -moz-inline-stack;
542
- display: inline-block;
543
- vertical-align: middle;
544
- zoom: 1;
545
- *display: inline;
546
508
  }
547
509
  .ke-menu-separator {
548
510
  margin: 2px 0;
549
- padding: 0;
550
511
  height: 0;
551
512
  overflow: hidden;
552
513
  border-top: 1px solid #CCCCCC;
@@ -554,88 +515,51 @@
554
515
  border-left: 0;
555
516
  border-right: 0;
556
517
  }
557
- .ke-contextmenu {
558
- position: absolute;
518
+ /* colorpicker */
519
+ .ke-colorpicker {
559
520
  border: 1px solid #A0A0A0;
560
521
  background-color: #F1F1F1;
561
522
  color: #222222;
562
523
  padding: 2px;
563
- margin: 0;
564
- width: 200px;
565
- font-family: "sans serif",tahoma,verdana,helvetica;
566
- font-size: 12px;
567
- text-align: left;
568
- z-index: 19811214;
569
524
  }
570
- .ke-contextmenu-item {
571
- border: 1px solid #F1F1F1;
572
- background-color: #F1F1F1;
573
- color: #222222;
574
- padding: 0;
575
- margin: 0;
576
- height: 24px;
577
- overflow: hidden;
578
- cursor: pointer;
525
+ .ke-colorpicker-table {
526
+ border:0;
527
+ margin:0;
528
+ padding:0;
529
+ border-collapse: separate;
579
530
  }
580
- .ke-contextmenu-item-on {
581
- border: 1px solid #5690D2;
582
- background-color: #E9EFF6;
531
+ .ke-colorpicker-cell {
532
+ font-size: 0;
533
+ line-height: 0;
534
+ border: 1px solid #F0F0EE;
535
+ cursor: pointer;
536
+ margin:3px;
537
+ padding:0;
583
538
  }
584
- .ke-contextmenu-left {
585
- border: 0;
586
- margin: 0;
587
- padding: 0;
588
- width: 27px;
539
+ .ke-colorpicker-cell-top {
540
+ font-family: "sans serif",tahoma,verdana,helvetica;
541
+ font-size: 12px;
542
+ line-height: 24px;
543
+ border: 1px solid #F0F0EE;
544
+ cursor: pointer;
545
+ margin:0;
546
+ padding:0;
589
547
  text-align: center;
590
- overflow: hidden;
591
- display: -moz-inline-stack;
592
- display: inline-block;
593
- vertical-align: middle;
594
- zoom: 1;
595
- *display: inline;
596
- }
597
- .ke-contextmenu-center {
598
- margin: 0;
599
- padding: 0;
600
- width: 0;
601
- height: 24px;
602
- border-left: 1px solid #E3E3E3;
603
- border-right: 1px solid #FFFFFF;
604
- border-top: 0;
605
- border-bottom: 0;
606
- display: -moz-inline-stack;
607
- display: inline-block;
608
- vertical-align: middle;
609
- zoom: 1;
610
- *display: inline;
611
548
  }
612
- .ke-contextmenu-center-on {
613
- border-left: 1px solid #E9EFF6;
614
- border-right: 1px solid #E9EFF6;
549
+ .ke-colorpicker-cell-on {
550
+ border: 1px solid #5690D2;
615
551
  }
616
- .ke-contextmenu-right {
617
- border: 0;
618
- margin: 0;
619
- padding: 0 0 0 5px;
620
- line-height: 24px;
621
- text-align: left;
622
- overflow: hidden;
623
- display: -moz-inline-stack;
624
- display: inline-block;
625
- vertical-align: middle;
626
- zoom: 1;
627
- *display: inline;
552
+ .ke-colorpicker-cell-selected {
553
+ border: 1px solid #2446AB;
628
554
  }
629
- .ke-contextmenu-separator {
630
- margin: 2px 0;
555
+ .ke-colorpicker-cell-color {
556
+ width: 14px;
557
+ height: 14px;
558
+ margin: 3px;
631
559
  padding: 0;
632
- height: 0;
633
- overflow: hidden;
634
- border-top: 1px solid #CCCCCC;
635
- border-bottom: 1px solid #FFFFFF;
636
- border-left: 0;
637
- border-right: 0;
560
+ border: 0;
638
561
  }
562
+ /* dialog */
639
563
  .ke-dialog {
640
564
  position: absolute;
641
565
  margin: 0;
@@ -651,10 +575,9 @@
651
575
  .ke-dialog-no-shadow {
652
576
  border: 1px solid #A0A0A0;
653
577
  }
654
- .ke-dialog-title {
578
+ .ke-dialog-header {
655
579
  border:0;
656
580
  margin:0;
657
- padding:0;
658
581
  background-color: #F0F0EE;
659
582
  padding: 10px;
660
583
  text-align: left;
@@ -663,66 +586,96 @@
663
586
  color: #222222;
664
587
  cursor: move;
665
588
  }
666
- .ke-dialog-close {
589
+ .ke-dialog-icon-close {
667
590
  display: block;
668
591
  background-position: 0px -688px;
669
592
  width: 16px;
670
593
  height: 16px;
671
594
  position: absolute;
672
- border: 0;
673
- margin: 0;
674
- padding: 0;
675
- right: 10px;
676
- top: 10px;
595
+ right: 15px;
596
+ top: 15px;
677
597
  cursor: pointer;
678
- background-image: url(./default/default.gif);
598
+ background-image: url(default.gif);
679
599
  overflow: hidden;
600
+ right: 10px;
601
+ top: 10px;
680
602
  }
681
603
  .ke-dialog-body {
682
- border:0;
683
- margin:0;
684
- padding:0;
685
- margin: 10px 10px 0 10px;
604
+ font: 12px/1.5 "sans serif",tahoma,verdana,helvetica;
605
+ text-align: left;
606
+ overflow: hidden;
686
607
  }
687
- .ke-dialog-iframe {
608
+ .ke-dialog-body textarea {
688
609
  display: block;
610
+ overflow: auto;
611
+ padding: 0;
612
+ resize: none;
613
+ }
614
+ .ke-dialog-body textarea:focus,
615
+ .ke-dialog-body input:focus,
616
+ .ke-dialog-body select:focus {
617
+ outline: none;
618
+ }
619
+ .ke-dialog-body label {
620
+ margin-right: 10px;
621
+ cursor: pointer;
622
+ font-weight: bold;
623
+ display: -moz-inline-stack;
624
+ display: inline-block;
625
+ vertical-align: middle;
626
+ zoom: 1;
627
+ *display: inline;
628
+ }
629
+ .ke-dialog-body img {
630
+ display: -moz-inline-stack;
631
+ display: inline-block;
632
+ vertical-align: middle;
633
+ zoom: 1;
634
+ *display: inline;
635
+ }
636
+ .ke-dialog-body select {
637
+ display: -moz-inline-stack;
638
+ display: inline-block;
639
+ vertical-align: middle;
640
+ zoom: 1;
641
+ *display: inline;
642
+ }
643
+ .ke-dialog-body .ke-textarea {
644
+ display: block;
645
+ width: 408px;
646
+ height: 260px;
647
+ font-family: "sans serif",tahoma,verdana,helvetica;
648
+ font-size: 12px;
649
+ border-color: #848484 #E0E0E0 #E0E0E0 #848484;
650
+ border-style: solid;
651
+ border-width: 1px;
652
+ }
653
+ .ke-dialog-body .ke-form {
689
654
  margin: 0;
690
655
  padding: 0;
691
656
  }
692
- .ke-dialog-iframe-border {
693
- border: 1px solid #A0A0A0;
694
- margin-bottom: 5px;
657
+ .ke-dialog-row {
658
+ margin-bottom: 10px;
695
659
  }
696
- .ke-dialog-bottom {
697
- border:0;
698
- margin:0;
699
- padding:0;
660
+ .ke-dialog-footer {
700
661
  font: 12px/1 "sans serif",tahoma,verdana,helvetica;
701
662
  text-align: right;
702
663
  padding:0 0 5px 0;
703
664
  }
704
- .ke-dialog-preview {
705
- margin: 5px;
706
- }
665
+ .ke-dialog-preview,
707
666
  .ke-dialog-yes {
708
667
  margin: 5px;
709
668
  }
710
669
  .ke-dialog-no {
711
670
  margin: 5px 10px 5px 5px;
712
671
  }
713
- .ke-mask {
714
- border:0;
715
- margin:0;
716
- padding:0;
717
- position: absolute;
718
- z-index: 19811212;
719
- top: 0;
720
- left: 0;
721
- display: none;
722
- background-color: #FFFFFF;
672
+ .ke-dialog-mask {
673
+ background-color:#FFF;
674
+ filter:alpha(opacity=50);
675
+ opacity:0.5;
723
676
  }
724
677
  .ke-button-common {
725
- background: url(./default/bg.gif) no-repeat scroll 0 0 transparent;
678
+ background: url(bg.gif) no-repeat scroll 0 0 transparent;
726
679
  cursor: pointer;
727
680
  height: 25px;
728
681
  line-height: 25px;
@@ -752,7 +705,8 @@
752
705
  left: 2px;
753
706
  text-decoration: none;
754
707
  }
755
- .ke-text-input {
708
+ /* inputbox */
709
+ .ke-input-text {
756
710
  background-color:#FFFFFF;
757
711
  font-family: "sans serif",tahoma,verdana,helvetica;
758
712
  font-size: 12px;
@@ -762,94 +716,88 @@
762
716
  border-color: #848484 #E0E0E0 #E0E0E0 #848484;
763
717
  border-style: solid;
764
718
  border-width: 1px;
719
+ display: -moz-inline-stack;
720
+ display: inline-block;
721
+ vertical-align: middle;
722
+ zoom: 1;
723
+ *display: inline;
765
724
  }
766
- .ke-colorpicker {
767
- position: absolute;
768
- border: 1px solid #A0A0A0;
769
- background-color: #F1F1F1;
770
- color: #222222;
771
- padding: 2px;
772
- margin: 0;
773
- font-size: 12px;
774
- text-align: left;
775
- }
776
- .ke-colorpicker-table {
777
- border:0;
778
- margin:0;
779
- padding:0;
780
- border-collapse: separate;
781
- }
782
- .ke-colorpicker-cell {
783
- font-size: 0;
784
- line-height: 0;
785
- border: 1px solid #F0F0EE;
786
- cursor: pointer;
787
- margin:3px;
788
- padding:0;
725
+ .ke-input-number {
726
+ width: 50px;
789
727
  }
790
- .ke-colorpicker-cell-top {
791
- font-family: "sans serif",tahoma,verdana,helvetica;
728
+ .ke-input-color {
729
+ border: 1px solid #A0A0A0;
730
+ background-color: #FFFFFF;
792
731
  font-size: 12px;
793
- line-height: 24px;
794
- border: 1px solid #F0F0EE;
732
+ width: 60px;
733
+ height: 20px;
734
+ line-height: 20px;
735
+ padding-left: 5px;
736
+ overflow: hidden;
795
737
  cursor: pointer;
796
- margin:0;
797
- padding:0;
798
- text-align: center;
799
- }
800
- .ke-colorpicker-cell-on {
801
- border: 1px solid #5690D2;
738
+ display: -moz-inline-stack;
739
+ display: inline-block;
740
+ vertical-align: middle;
741
+ zoom: 1;
742
+ *display: inline;
802
743
  }
803
- .ke-colorpicker-cell-selected {
804
- border: 1px solid #2446AB;
744
+ .ke-upload-area {
745
+ position: relative;
746
+ overflow: hidden;
805
747
  }
806
- .ke-colorpicker-cell-color {
807
- width: 14px;
808
- height: 14px;
809
- margin: 3px;
748
+ .ke-upload-area .ke-upload-file {
749
+ position: absolute;
750
+ top: 0;
751
+ right: 0;
752
+ height: 25px;
810
753
  padding: 0;
811
- border: 0;
754
+ margin: 0;
755
+ z-index: 811212;
756
+ border: 0 none;
757
+ opacity:0;
758
+ filter:alpha(opacity=0);
812
759
  }
813
- .ke-loading-table {
814
- border:0;
760
+ /* tabs */
761
+ .ke-tabs {
762
+ font: 12px/1 "sans serif",tahoma,verdana,helvetica;
763
+ border-bottom:1px solid #A0A0A0;
764
+ padding-left:5px;
765
+ margin-bottom:10px;
766
+ }
767
+ .ke-tabs-ul {
768
+ list-style-image:none;
769
+ list-style-position:outside;
770
+ list-style-type:none;
815
771
  margin:0;
816
772
  padding:0;
817
- border-collapse: separate;
818
773
  }
819
- .ke-loading-table td{
820
- border:0;
821
- margin:0;
822
- padding:0;
823
- font-size: 12px;
774
+ .ke-tabs-li {
775
+ position: relative;
776
+ border: 1px solid #A0A0A0;
777
+ background-color: #E0E0E0;
778
+ margin: 0 2px -1px 0;
779
+ padding: 0 20px;
780
+ float: left;
781
+ line-height: 25px;
824
782
  text-align: center;
825
- vertical-align: middle;
783
+ color: #555555;
784
+ cursor: pointer;
826
785
  }
827
- .ke-loading-img {
828
- display: -moz-inline-stack;
829
- display: inline-block;
830
- vertical-align: middle;
831
- zoom: 1;
832
- *display: inline;
833
- background-repeat: no-repeat;
834
- background-image: url(./common/loading.gif);
835
- width: 16px;
836
- height: 16px;
837
- margin: 0;
838
- padding: 0;
839
- border: 0;
786
+ .ke-tabs-li-selected {
787
+ background-color: #F0F0EE;
788
+ border-bottom: 1px solid #F0F0EE;
789
+ color: #000;
790
+ cursor: default;
840
791
  }
841
- .ke-reset {
842
- margin: 0;
843
- padding: 0;
844
- border: 0;
792
+ .ke-tabs-li-on {
793
+ background-color: #F0F0EE;
794
+ color: #000;
845
795
  }
846
- .ke-plugin-emoticons-wrapper {
796
+ /* emoticons */
797
+ .ke-plugin-emoticons {
847
798
  position: relative;
848
- margin: 0;
849
- padding: 0;
850
- border: 0;
851
799
  }
852
- .ke-plugin-emoticons-preview {
800
+ .ke-plugin-emoticons .ke-preview {
853
801
  position: absolute;
854
802
  text-align: center;
855
803
  margin: 2px;
@@ -859,53 +807,136 @@
859
807
  background-color: #FFFFFF;
860
808
  display: none;
861
809
  }
862
- .ke-plugin-emoticons-table {
810
+ .ke-plugin-emoticons .ke-preview-img {
811
+ border:0;
812
+ margin:0;
813
+ padding:0;
814
+ }
815
+ .ke-plugin-emoticons .ke-table {
863
816
  border:0;
864
817
  margin:0;
865
818
  padding:0;
866
819
  border-collapse:separate;
867
820
  }
868
- .ke-plugin-emoticons-cell {
821
+ .ke-plugin-emoticons .ke-cell {
869
822
  margin:0;
870
823
  padding:1px;
871
824
  border:1px solid #F0F0EE;
872
825
  cursor:pointer;
873
826
  }
874
- .ke-plugin-emoticons-cell-on {
827
+ .ke-plugin-emoticons .ke-on {
875
828
  border: 1px solid #5690D2;
876
829
  background-color: #E9EFF6;
877
830
  }
878
- .ke-plugin-emoticons-img {
831
+ .ke-plugin-emoticons .ke-img {
879
832
  display:block;
880
833
  background-repeat:no-repeat;
881
834
  overflow:hidden;
882
835
  margin:2px;
883
836
  width:24px;
884
837
  height:24px;
885
- background-image:url(../plugins/emoticons/qq.gif);
886
-
887
838
  margin: 0;
888
839
  padding: 0;
889
840
  border: 0;
890
841
  }
891
- .ke-plugin-emoticons-page {
842
+ .ke-plugin-emoticons .ke-page {
892
843
  text-align: right;
893
844
  margin: 5px;
894
845
  padding: 0;
895
846
  border: 0;
896
- font-family: "sans serif",tahoma,verdana,helvetica;
897
- font-size:12px;
898
- line-height: 1;
899
- color: #333333;
847
+ font: 12px/1 "sans serif",tahoma,verdana,helvetica;
848
+ color: #333;
900
849
  text-decoration: none;
901
850
  }
902
- .ke-plugin-emoticons-page a {
903
- color: #337FE5;
904
- text-decoration: none;
851
+ .ke-plugin-plainpaste-textarea,
852
+ .ke-plugin-wordpaste-iframe {
853
+ display: block;
854
+ width: 408px;
855
+ height: 260px;
856
+ font-family: "sans serif",tahoma,verdana,helvetica;
857
+ font-size: 12px;
858
+ border-color: #848484 #E0E0E0 #E0E0E0 #848484;
859
+ border-style: solid;
860
+ border-width: 1px;
905
861
  }
906
- .ke-icon-accessory {
907
- background-position: 0px -912px;
908
- width: 16px;
909
- height: 16px;
862
+ /* filemanager */
863
+ .ke-plugin-filemanager-header {
864
+ width: 100%;
865
+ margin-bottom: 10px;
866
+ }
867
+ .ke-plugin-filemanager-header .ke-left {
868
+ float: left;
869
+ }
870
+ .ke-plugin-filemanager-header .ke-right {
871
+ float: right;
872
+ }
873
+ .ke-plugin-filemanager-body {
874
+ overflow: scroll;
875
+ background-color:#FFFFFF;
876
+ border-color: #848484 #E0E0E0 #E0E0E0 #848484;
877
+ border-style: solid;
878
+ border-width: 1px;
879
+ width: 470px;
880
+ height: 370px;
881
+ padding: 5px;
882
+ }
883
+ .ke-plugin-filemanager-body .ke-item {
884
+ width: 100px;
885
+ margin: 5px;
886
+ }
887
+ .ke-plugin-filemanager-body .ke-photo {
888
+ border: 1px solid #DDDDDD;
889
+ background-color:#FFFFFF;
890
+ padding: 10px;
891
+ }
892
+ .ke-plugin-filemanager-body .ke-name {
893
+ width: 100px;
894
+ text-align: center;
895
+ overflow: hidden;
896
+ }
897
+ .ke-plugin-filemanager-body .ke-on {
898
+ border: 1px solid #5690D2;
899
+ background-color: #E9EFF6;
900
+ }
901
+ .ke-plugin-filemanager-body .ke-table {
902
+ width: 95%;
903
+ border: 0;
904
+ margin: 0;
905
+ padding: 0;
906
+ border-collapse: separate;
907
+ }
908
+ .ke-plugin-filemanager-body .ke-table .ke-cell {
909
+ margin: 0;
910
+ padding: 0;
911
+ border: 0;
912
+ }
913
+ .ke-plugin-filemanager-body .ke-table .ke-name {
914
+ width: 55%;
915
+ text-align: left;
916
+ }
917
+ .ke-plugin-filemanager-body .ke-table .ke-size {
918
+ width: 15%;
919
+ text-align: left;
920
+ }
921
+ .ke-plugin-filemanager-body .ke-table .ke-datetime {
922
+ width: 30%;
923
+ text-align: center;
924
+ }
925
+ /* template */
926
+ .ke-plugin-template .ke-header {
927
+ width: 100%;
928
+ margin-bottom: 10px;
929
+ }
930
+ .ke-plugin-template label {
931
+ margin-right: 0;
932
+ cursor: pointer;
933
+ font-weight: normal;
934
+ display: inline;
935
+ vertical-align: top;
936
+ }
937
+ .ke-plugin-template .ke-left {
938
+ float: left;
910
939
  }
911
-
940
+ .ke-plugin-template .ke-right {
941
+ float: right;
942
+ }