ueditor.rails 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (302) hide show
  1. checksums.yaml +7 -0
  2. data/MIT-LICENSE +20 -0
  3. data/Rakefile +32 -0
  4. data/app/assets/javascripts/default.config.js +382 -0
  5. data/app/assets/javascripts/ueditor.js +2 -0
  6. data/lib/tasks/ueditor_on_rails_tasks.rake +4 -0
  7. data/lib/ueditor.rails.rb +17 -0
  8. data/lib/ueditor/engine.rb +23 -0
  9. data/lib/ueditor/helpers/form_builder.rb +11 -0
  10. data/lib/ueditor/helpers/form_helper.rb +13 -0
  11. data/lib/ueditor/helpers/js_helper.rb +13 -0
  12. data/lib/ueditor/helpers/view_helper.rb +13 -0
  13. data/lib/ueditor/hooks/simple_form.rb +16 -0
  14. data/lib/ueditor/version.rb +3 -0
  15. data/test/dummy/README.rdoc +28 -0
  16. data/test/dummy/Rakefile +6 -0
  17. data/test/dummy/app/assets/javascripts/application.js +14 -0
  18. data/test/dummy/app/assets/stylesheets/application.css +15 -0
  19. data/test/dummy/app/controllers/application_controller.rb +5 -0
  20. data/test/dummy/app/controllers/dummy_controller.rb +18 -0
  21. data/test/dummy/app/helpers/application_helper.rb +2 -0
  22. data/test/dummy/app/models/dummy_model.rb +5 -0
  23. data/test/dummy/app/views/dummy/new.html.erb +22 -0
  24. data/test/dummy/app/views/layouts/application.html.erb +14 -0
  25. data/test/dummy/bin/bundle +3 -0
  26. data/test/dummy/bin/rails +4 -0
  27. data/test/dummy/bin/rake +4 -0
  28. data/test/dummy/config.ru +4 -0
  29. data/test/dummy/config/application.rb +28 -0
  30. data/test/dummy/config/boot.rb +5 -0
  31. data/test/dummy/config/database.yml +25 -0
  32. data/test/dummy/config/environment.rb +5 -0
  33. data/test/dummy/config/environments/development.rb +34 -0
  34. data/test/dummy/config/environments/production.rb +80 -0
  35. data/test/dummy/config/environments/test.rb +39 -0
  36. data/test/dummy/config/initializers/backtrace_silencers.rb +7 -0
  37. data/test/dummy/config/initializers/cookies_serializer.rb +3 -0
  38. data/test/dummy/config/initializers/filter_parameter_logging.rb +4 -0
  39. data/test/dummy/config/initializers/inflections.rb +16 -0
  40. data/test/dummy/config/initializers/mime_types.rb +4 -0
  41. data/test/dummy/config/initializers/session_store.rb +3 -0
  42. data/test/dummy/config/initializers/wrap_parameters.rb +14 -0
  43. data/test/dummy/config/locales/en.yml +23 -0
  44. data/test/dummy/config/routes.rb +4 -0
  45. data/test/dummy/config/secrets.yml +22 -0
  46. data/test/dummy/log/development.log +51 -0
  47. data/test/dummy/public/404.html +67 -0
  48. data/test/dummy/public/422.html +67 -0
  49. data/test/dummy/public/500.html +66 -0
  50. data/test/dummy/public/favicon.ico +0 -0
  51. data/test/dummy/tmp/cache/assets/development/sprockets/029530186b2a67ade6e57e578c85b454 +0 -0
  52. data/test/dummy/tmp/cache/assets/development/sprockets/02b56f18dcd4ddec585a02528773c04b +0 -0
  53. data/test/dummy/tmp/cache/assets/development/sprockets/07898ec696d976eeafb61ef6bb48e097 +0 -0
  54. data/test/dummy/tmp/cache/assets/development/sprockets/0ab8e71a1cbfab4ba97406936b8424d8 +0 -0
  55. data/test/dummy/tmp/cache/assets/development/sprockets/0d7c51218669ae27b1bb2d8ff9c9c1f9 +0 -0
  56. data/test/dummy/tmp/cache/assets/development/sprockets/0f941886593d207e4ec1f3aba81f3189 +0 -0
  57. data/test/dummy/tmp/cache/assets/development/sprockets/13fe41fee1fe35b49d145bcc06610705 +0 -0
  58. data/test/dummy/tmp/cache/assets/development/sprockets/19694ecb6829b547affeb420f6c4f4ba +0 -0
  59. data/test/dummy/tmp/cache/assets/development/sprockets/24fd9e383d10c56ae5bf72ce4e8d57d5 +0 -0
  60. data/test/dummy/tmp/cache/assets/development/sprockets/2a3155304ce0d3a6b8245de3b211a442 +0 -0
  61. data/test/dummy/tmp/cache/assets/development/sprockets/2ef8e8b9d212c49500f1cbb6ab432078 +0 -0
  62. data/test/dummy/tmp/cache/assets/development/sprockets/2f5173deea6c795b8fdde723bb4b63af +0 -0
  63. data/test/dummy/tmp/cache/assets/development/sprockets/2f6f08f80fb713b72a4c53eca782d352 +0 -0
  64. data/test/dummy/tmp/cache/assets/development/sprockets/357970feca3ac29060c1e3861e2c0953 +0 -0
  65. data/test/dummy/tmp/cache/assets/development/sprockets/46de6851f078c896ce0a451fe8e67691 +0 -0
  66. data/test/dummy/tmp/cache/assets/development/sprockets/4d359ff4c9c3e425adcf7471f456dd80 +0 -0
  67. data/test/dummy/tmp/cache/assets/development/sprockets/63be665b75f7410b31ece33884eb8eef +0 -0
  68. data/test/dummy/tmp/cache/assets/development/sprockets/7bd63ec22736e590f74f2614ba885123 +0 -0
  69. data/test/dummy/tmp/cache/assets/development/sprockets/8165d0bcd2b5c04b4a98f4f0cbabef64 +0 -0
  70. data/test/dummy/tmp/cache/assets/development/sprockets/8f07cc0565a08f28c45bc04f78ed9feb +0 -0
  71. data/test/dummy/tmp/cache/assets/development/sprockets/9239aabeb118940064b039f4afb8f328 +0 -0
  72. data/test/dummy/tmp/cache/assets/development/sprockets/92e3cf1ee6169034b72859923497867a +0 -0
  73. data/test/dummy/tmp/cache/assets/development/sprockets/98ba4a17ce612c2782d52cb7f2a2beb9 +0 -0
  74. data/test/dummy/tmp/cache/assets/development/sprockets/a38c0bac61b2d1e331de0057548aba0f +0 -0
  75. data/test/dummy/tmp/cache/assets/development/sprockets/b0df046a48e07ba1cd75447c9732874b +0 -0
  76. data/test/dummy/tmp/cache/assets/development/sprockets/b7d95afb3c2e49e813b301d797917b8c +0 -0
  77. data/test/dummy/tmp/cache/assets/development/sprockets/bc3d8cda22ec9e1bf2cbe1f02cc13438 +0 -0
  78. data/test/dummy/tmp/cache/assets/development/sprockets/bd22193b7c008abf93a7640553ee8b24 +0 -0
  79. data/test/dummy/tmp/cache/assets/development/sprockets/c846ab366c3537979e0c1f64aa2c7e23 +0 -0
  80. data/test/dummy/tmp/cache/assets/development/sprockets/ccf39b0f3aeafc89430db44186a59037 +0 -0
  81. data/test/dummy/tmp/cache/assets/development/sprockets/ce2d1d6840444ec16109eb6d2cf8c224 +0 -0
  82. data/test/dummy/tmp/cache/assets/development/sprockets/cffd775d018f68ce5dba1ee0d951a994 +0 -0
  83. data/test/dummy/tmp/cache/assets/development/sprockets/d771ace226fc8215a3572e0aa35bb0d6 +0 -0
  84. data/test/dummy/tmp/cache/assets/development/sprockets/da3d050a8e457e6eb47cf56f3342fbd5 +0 -0
  85. data/test/dummy/tmp/cache/assets/development/sprockets/db1e6b0095d2d333b72e73bdf3c40965 +0 -0
  86. data/test/dummy/tmp/cache/assets/development/sprockets/e357c8a9ad97f42187ce017e3bf4a3ce +0 -0
  87. data/test/dummy/tmp/cache/assets/development/sprockets/e37eb86c730315ed8a58688351abf8f9 +0 -0
  88. data/test/dummy/tmp/cache/assets/development/sprockets/f7cbd26ba1d28d48de824f0e94586655 +0 -0
  89. data/test/dummy/tmp/cache/assets/development/sprockets/fa046bb067616da9d14862739bf2c67c +0 -0
  90. data/test/test_helper.rb +15 -0
  91. data/test/ueditor_on_rails_test.rb +7 -0
  92. data/vendor/assets/javascripts/ueditor/dialogs/anchor/anchor.html +40 -0
  93. data/vendor/assets/javascripts/ueditor/dialogs/attachment/attachment.css +681 -0
  94. data/vendor/assets/javascripts/ueditor/dialogs/attachment/attachment.html +60 -0
  95. data/vendor/assets/javascripts/ueditor/dialogs/attachment/attachment.js +754 -0
  96. data/vendor/assets/javascripts/ueditor/dialogs/attachment/fileTypeImages/icon_chm.gif +0 -0
  97. data/vendor/assets/javascripts/ueditor/dialogs/attachment/fileTypeImages/icon_default.png +0 -0
  98. data/vendor/assets/javascripts/ueditor/dialogs/attachment/fileTypeImages/icon_doc.gif +0 -0
  99. data/vendor/assets/javascripts/ueditor/dialogs/attachment/fileTypeImages/icon_exe.gif +0 -0
  100. data/vendor/assets/javascripts/ueditor/dialogs/attachment/fileTypeImages/icon_jpg.gif +0 -0
  101. data/vendor/assets/javascripts/ueditor/dialogs/attachment/fileTypeImages/icon_mp3.gif +0 -0
  102. data/vendor/assets/javascripts/ueditor/dialogs/attachment/fileTypeImages/icon_mv.gif +0 -0
  103. data/vendor/assets/javascripts/ueditor/dialogs/attachment/fileTypeImages/icon_pdf.gif +0 -0
  104. data/vendor/assets/javascripts/ueditor/dialogs/attachment/fileTypeImages/icon_ppt.gif +0 -0
  105. data/vendor/assets/javascripts/ueditor/dialogs/attachment/fileTypeImages/icon_psd.gif +0 -0
  106. data/vendor/assets/javascripts/ueditor/dialogs/attachment/fileTypeImages/icon_rar.gif +0 -0
  107. data/vendor/assets/javascripts/ueditor/dialogs/attachment/fileTypeImages/icon_txt.gif +0 -0
  108. data/vendor/assets/javascripts/ueditor/dialogs/attachment/fileTypeImages/icon_xls.gif +0 -0
  109. data/vendor/assets/javascripts/ueditor/dialogs/attachment/images/alignicon.gif +0 -0
  110. data/vendor/assets/javascripts/ueditor/dialogs/attachment/images/alignicon.png +0 -0
  111. data/vendor/assets/javascripts/ueditor/dialogs/attachment/images/bg.png +0 -0
  112. data/vendor/assets/javascripts/ueditor/dialogs/attachment/images/file-icons.gif +0 -0
  113. data/vendor/assets/javascripts/ueditor/dialogs/attachment/images/file-icons.png +0 -0
  114. data/vendor/assets/javascripts/ueditor/dialogs/attachment/images/icons.gif +0 -0
  115. data/vendor/assets/javascripts/ueditor/dialogs/attachment/images/icons.png +0 -0
  116. data/vendor/assets/javascripts/ueditor/dialogs/attachment/images/image.png +0 -0
  117. data/vendor/assets/javascripts/ueditor/dialogs/attachment/images/progress.png +0 -0
  118. data/vendor/assets/javascripts/ueditor/dialogs/attachment/images/success.gif +0 -0
  119. data/vendor/assets/javascripts/ueditor/dialogs/attachment/images/success.png +0 -0
  120. data/vendor/assets/javascripts/ueditor/dialogs/background/background.css +94 -0
  121. data/vendor/assets/javascripts/ueditor/dialogs/background/background.html +56 -0
  122. data/vendor/assets/javascripts/ueditor/dialogs/background/background.js +376 -0
  123. data/vendor/assets/javascripts/ueditor/dialogs/background/images/bg.png +0 -0
  124. data/vendor/assets/javascripts/ueditor/dialogs/background/images/success.png +0 -0
  125. data/vendor/assets/javascripts/ueditor/dialogs/charts/chart.config.js +65 -0
  126. data/vendor/assets/javascripts/ueditor/dialogs/charts/charts.css +165 -0
  127. data/vendor/assets/javascripts/ueditor/dialogs/charts/charts.html +89 -0
  128. data/vendor/assets/javascripts/ueditor/dialogs/charts/charts.js +519 -0
  129. data/vendor/assets/javascripts/ueditor/dialogs/charts/images/charts0.png +0 -0
  130. data/vendor/assets/javascripts/ueditor/dialogs/charts/images/charts1.png +0 -0
  131. data/vendor/assets/javascripts/ueditor/dialogs/charts/images/charts2.png +0 -0
  132. data/vendor/assets/javascripts/ueditor/dialogs/charts/images/charts3.png +0 -0
  133. data/vendor/assets/javascripts/ueditor/dialogs/charts/images/charts4.png +0 -0
  134. data/vendor/assets/javascripts/ueditor/dialogs/charts/images/charts5.png +0 -0
  135. data/vendor/assets/javascripts/ueditor/dialogs/emotion/emotion.css +43 -0
  136. data/vendor/assets/javascripts/ueditor/dialogs/emotion/emotion.html +54 -0
  137. data/vendor/assets/javascripts/ueditor/dialogs/emotion/emotion.js +186 -0
  138. data/vendor/assets/javascripts/ueditor/dialogs/emotion/images/0.gif +0 -0
  139. data/vendor/assets/javascripts/ueditor/dialogs/emotion/images/bface.gif +0 -0
  140. data/vendor/assets/javascripts/ueditor/dialogs/emotion/images/cface.gif +0 -0
  141. data/vendor/assets/javascripts/ueditor/dialogs/emotion/images/fface.gif +0 -0
  142. data/vendor/assets/javascripts/ueditor/dialogs/emotion/images/jxface2.gif +0 -0
  143. data/vendor/assets/javascripts/ueditor/dialogs/emotion/images/neweditor-tab-bg.png +0 -0
  144. data/vendor/assets/javascripts/ueditor/dialogs/emotion/images/tface.gif +0 -0
  145. data/vendor/assets/javascripts/ueditor/dialogs/emotion/images/wface.gif +0 -0
  146. data/vendor/assets/javascripts/ueditor/dialogs/emotion/images/yface.gif +0 -0
  147. data/vendor/assets/javascripts/ueditor/dialogs/gmap/gmap.html +89 -0
  148. data/vendor/assets/javascripts/ueditor/dialogs/help/help.css +7 -0
  149. data/vendor/assets/javascripts/ueditor/dialogs/help/help.html +82 -0
  150. data/vendor/assets/javascripts/ueditor/dialogs/help/help.js +56 -0
  151. data/vendor/assets/javascripts/ueditor/dialogs/image/image.css +894 -0
  152. data/vendor/assets/javascripts/ueditor/dialogs/image/image.html +120 -0
  153. data/vendor/assets/javascripts/ueditor/dialogs/image/image.js +1139 -0
  154. data/vendor/assets/javascripts/ueditor/dialogs/image/images/alignicon.jpg +0 -0
  155. data/vendor/assets/javascripts/ueditor/dialogs/image/images/bg.png +0 -0
  156. data/vendor/assets/javascripts/ueditor/dialogs/image/images/icons.gif +0 -0
  157. data/vendor/assets/javascripts/ueditor/dialogs/image/images/icons.png +0 -0
  158. data/vendor/assets/javascripts/ueditor/dialogs/image/images/image.png +0 -0
  159. data/vendor/assets/javascripts/ueditor/dialogs/image/images/progress.png +0 -0
  160. data/vendor/assets/javascripts/ueditor/dialogs/image/images/success.gif +0 -0
  161. data/vendor/assets/javascripts/ueditor/dialogs/image/images/success.png +0 -0
  162. data/vendor/assets/javascripts/ueditor/dialogs/insertframe/insertframe.html +98 -0
  163. data/vendor/assets/javascripts/ueditor/dialogs/internal.js +81 -0
  164. data/vendor/assets/javascripts/ueditor/dialogs/link/link.html +126 -0
  165. data/vendor/assets/javascripts/ueditor/dialogs/map/map.html +135 -0
  166. data/vendor/assets/javascripts/ueditor/dialogs/map/show.html +118 -0
  167. data/vendor/assets/javascripts/ueditor/dialogs/music/music.css +30 -0
  168. data/vendor/assets/javascripts/ueditor/dialogs/music/music.html +32 -0
  169. data/vendor/assets/javascripts/ueditor/dialogs/music/music.js +192 -0
  170. data/vendor/assets/javascripts/ueditor/dialogs/preview/preview.html +40 -0
  171. data/vendor/assets/javascripts/ueditor/dialogs/scrawl/images/addimg.png +0 -0
  172. data/vendor/assets/javascripts/ueditor/dialogs/scrawl/images/brush.png +0 -0
  173. data/vendor/assets/javascripts/ueditor/dialogs/scrawl/images/delimg.png +0 -0
  174. data/vendor/assets/javascripts/ueditor/dialogs/scrawl/images/delimgH.png +0 -0
  175. data/vendor/assets/javascripts/ueditor/dialogs/scrawl/images/empty.png +0 -0
  176. data/vendor/assets/javascripts/ueditor/dialogs/scrawl/images/emptyH.png +0 -0
  177. data/vendor/assets/javascripts/ueditor/dialogs/scrawl/images/eraser.png +0 -0
  178. data/vendor/assets/javascripts/ueditor/dialogs/scrawl/images/redo.png +0 -0
  179. data/vendor/assets/javascripts/ueditor/dialogs/scrawl/images/redoH.png +0 -0
  180. data/vendor/assets/javascripts/ueditor/dialogs/scrawl/images/scale.png +0 -0
  181. data/vendor/assets/javascripts/ueditor/dialogs/scrawl/images/scaleH.png +0 -0
  182. data/vendor/assets/javascripts/ueditor/dialogs/scrawl/images/size.png +0 -0
  183. data/vendor/assets/javascripts/ueditor/dialogs/scrawl/images/undo.png +0 -0
  184. data/vendor/assets/javascripts/ueditor/dialogs/scrawl/images/undoH.png +0 -0
  185. data/vendor/assets/javascripts/ueditor/dialogs/scrawl/scrawl.css +72 -0
  186. data/vendor/assets/javascripts/ueditor/dialogs/scrawl/scrawl.html +95 -0
  187. data/vendor/assets/javascripts/ueditor/dialogs/scrawl/scrawl.js +671 -0
  188. data/vendor/assets/javascripts/ueditor/dialogs/searchreplace/searchreplace.html +102 -0
  189. data/vendor/assets/javascripts/ueditor/dialogs/searchreplace/searchreplace.js +164 -0
  190. data/vendor/assets/javascripts/ueditor/dialogs/snapscreen/snapscreen.html +58 -0
  191. data/vendor/assets/javascripts/ueditor/dialogs/spechars/spechars.html +21 -0
  192. data/vendor/assets/javascripts/ueditor/dialogs/spechars/spechars.js +57 -0
  193. data/vendor/assets/javascripts/ueditor/dialogs/table/dragicon.png +0 -0
  194. data/vendor/assets/javascripts/ueditor/dialogs/table/edittable.css +84 -0
  195. data/vendor/assets/javascripts/ueditor/dialogs/table/edittable.html +64 -0
  196. data/vendor/assets/javascripts/ueditor/dialogs/table/edittable.js +237 -0
  197. data/vendor/assets/javascripts/ueditor/dialogs/table/edittd.html +61 -0
  198. data/vendor/assets/javascripts/ueditor/dialogs/table/edittip.html +33 -0
  199. data/vendor/assets/javascripts/ueditor/dialogs/template/config.js +42 -0
  200. data/vendor/assets/javascripts/ueditor/dialogs/template/images/bg.gif +0 -0
  201. data/vendor/assets/javascripts/ueditor/dialogs/template/images/pre0.png +0 -0
  202. data/vendor/assets/javascripts/ueditor/dialogs/template/images/pre1.png +0 -0
  203. data/vendor/assets/javascripts/ueditor/dialogs/template/images/pre2.png +0 -0
  204. data/vendor/assets/javascripts/ueditor/dialogs/template/images/pre3.png +0 -0
  205. data/vendor/assets/javascripts/ueditor/dialogs/template/images/pre4.png +0 -0
  206. data/vendor/assets/javascripts/ueditor/dialogs/template/template.css +18 -0
  207. data/vendor/assets/javascripts/ueditor/dialogs/template/template.html +26 -0
  208. data/vendor/assets/javascripts/ueditor/dialogs/template/template.js +53 -0
  209. data/vendor/assets/javascripts/ueditor/dialogs/video/images/bg.png +0 -0
  210. data/vendor/assets/javascripts/ueditor/dialogs/video/images/center_focus.jpg +0 -0
  211. data/vendor/assets/javascripts/ueditor/dialogs/video/images/file-icons.gif +0 -0
  212. data/vendor/assets/javascripts/ueditor/dialogs/video/images/file-icons.png +0 -0
  213. data/vendor/assets/javascripts/ueditor/dialogs/video/images/icons.gif +0 -0
  214. data/vendor/assets/javascripts/ueditor/dialogs/video/images/icons.png +0 -0
  215. data/vendor/assets/javascripts/ueditor/dialogs/video/images/image.png +0 -0
  216. data/vendor/assets/javascripts/ueditor/dialogs/video/images/left_focus.jpg +0 -0
  217. data/vendor/assets/javascripts/ueditor/dialogs/video/images/none_focus.jpg +0 -0
  218. data/vendor/assets/javascripts/ueditor/dialogs/video/images/progress.png +0 -0
  219. data/vendor/assets/javascripts/ueditor/dialogs/video/images/right_focus.jpg +0 -0
  220. data/vendor/assets/javascripts/ueditor/dialogs/video/images/success.gif +0 -0
  221. data/vendor/assets/javascripts/ueditor/dialogs/video/images/success.png +0 -0
  222. data/vendor/assets/javascripts/ueditor/dialogs/video/video.css +635 -0
  223. data/vendor/assets/javascripts/ueditor/dialogs/video/video.html +86 -0
  224. data/vendor/assets/javascripts/ueditor/dialogs/video/video.js +789 -0
  225. data/vendor/assets/javascripts/ueditor/dialogs/webapp/webapp.html +53 -0
  226. data/vendor/assets/javascripts/ueditor/dialogs/wordimage/fClipboard_ueditor.swf +0 -0
  227. data/vendor/assets/javascripts/ueditor/dialogs/wordimage/imageUploader.swf +0 -0
  228. data/vendor/assets/javascripts/ueditor/dialogs/wordimage/tangram.js +1495 -0
  229. data/vendor/assets/javascripts/ueditor/dialogs/wordimage/wordimage.html +111 -0
  230. data/vendor/assets/javascripts/ueditor/dialogs/wordimage/wordimage.js +157 -0
  231. data/vendor/assets/javascripts/ueditor/index.html +175 -0
  232. data/vendor/assets/javascripts/ueditor/lang/en/en.js +684 -0
  233. data/vendor/assets/javascripts/ueditor/lang/en/images/addimage.png +0 -0
  234. data/vendor/assets/javascripts/ueditor/lang/en/images/alldeletebtnhoverskin.png +0 -0
  235. data/vendor/assets/javascripts/ueditor/lang/en/images/alldeletebtnupskin.png +0 -0
  236. data/vendor/assets/javascripts/ueditor/lang/en/images/background.png +0 -0
  237. data/vendor/assets/javascripts/ueditor/lang/en/images/button.png +0 -0
  238. data/vendor/assets/javascripts/ueditor/lang/en/images/copy.png +0 -0
  239. data/vendor/assets/javascripts/ueditor/lang/en/images/deletedisable.png +0 -0
  240. data/vendor/assets/javascripts/ueditor/lang/en/images/deleteenable.png +0 -0
  241. data/vendor/assets/javascripts/ueditor/lang/en/images/listbackground.png +0 -0
  242. data/vendor/assets/javascripts/ueditor/lang/en/images/localimage.png +0 -0
  243. data/vendor/assets/javascripts/ueditor/lang/en/images/music.png +0 -0
  244. data/vendor/assets/javascripts/ueditor/lang/en/images/rotateleftdisable.png +0 -0
  245. data/vendor/assets/javascripts/ueditor/lang/en/images/rotateleftenable.png +0 -0
  246. data/vendor/assets/javascripts/ueditor/lang/en/images/rotaterightdisable.png +0 -0
  247. data/vendor/assets/javascripts/ueditor/lang/en/images/rotaterightenable.png +0 -0
  248. data/vendor/assets/javascripts/ueditor/lang/en/images/upload.png +0 -0
  249. data/vendor/assets/javascripts/ueditor/lang/zh-cn/images/copy.png +0 -0
  250. data/vendor/assets/javascripts/ueditor/lang/zh-cn/images/localimage.png +0 -0
  251. data/vendor/assets/javascripts/ueditor/lang/zh-cn/images/music.png +0 -0
  252. data/vendor/assets/javascripts/ueditor/lang/zh-cn/images/upload.png +0 -0
  253. data/vendor/assets/javascripts/ueditor/lang/zh-cn/zh-cn.js +669 -0
  254. data/vendor/assets/javascripts/ueditor/themes/default/css/ueditor.css +1903 -0
  255. data/vendor/assets/javascripts/ueditor/themes/default/css/ueditor.min.css +8 -0
  256. data/vendor/assets/javascripts/ueditor/themes/default/dialogbase.css +100 -0
  257. data/vendor/assets/javascripts/ueditor/themes/default/images/anchor.gif +0 -0
  258. data/vendor/assets/javascripts/ueditor/themes/default/images/arrow.png +0 -0
  259. data/vendor/assets/javascripts/ueditor/themes/default/images/arrow_down.png +0 -0
  260. data/vendor/assets/javascripts/ueditor/themes/default/images/arrow_up.png +0 -0
  261. data/vendor/assets/javascripts/ueditor/themes/default/images/button-bg.gif +0 -0
  262. data/vendor/assets/javascripts/ueditor/themes/default/images/cancelbutton.gif +0 -0
  263. data/vendor/assets/javascripts/ueditor/themes/default/images/charts.png +0 -0
  264. data/vendor/assets/javascripts/ueditor/themes/default/images/cursor_h.gif +0 -0
  265. data/vendor/assets/javascripts/ueditor/themes/default/images/cursor_h.png +0 -0
  266. data/vendor/assets/javascripts/ueditor/themes/default/images/cursor_v.gif +0 -0
  267. data/vendor/assets/javascripts/ueditor/themes/default/images/cursor_v.png +0 -0
  268. data/vendor/assets/javascripts/ueditor/themes/default/images/dialog-title-bg.png +0 -0
  269. data/vendor/assets/javascripts/ueditor/themes/default/images/filescan.png +0 -0
  270. data/vendor/assets/javascripts/ueditor/themes/default/images/highlighted.gif +0 -0
  271. data/vendor/assets/javascripts/ueditor/themes/default/images/icons-all.gif +0 -0
  272. data/vendor/assets/javascripts/ueditor/themes/default/images/icons.gif +0 -0
  273. data/vendor/assets/javascripts/ueditor/themes/default/images/icons.png +0 -0
  274. data/vendor/assets/javascripts/ueditor/themes/default/images/loaderror.png +0 -0
  275. data/vendor/assets/javascripts/ueditor/themes/default/images/loading.gif +0 -0
  276. data/vendor/assets/javascripts/ueditor/themes/default/images/lock.gif +0 -0
  277. data/vendor/assets/javascripts/ueditor/themes/default/images/neweditor-tab-bg.png +0 -0
  278. data/vendor/assets/javascripts/ueditor/themes/default/images/pagebreak.gif +0 -0
  279. data/vendor/assets/javascripts/ueditor/themes/default/images/scale.png +0 -0
  280. data/vendor/assets/javascripts/ueditor/themes/default/images/sortable.png +0 -0
  281. data/vendor/assets/javascripts/ueditor/themes/default/images/spacer.gif +0 -0
  282. data/vendor/assets/javascripts/ueditor/themes/default/images/sparator_v.png +0 -0
  283. data/vendor/assets/javascripts/ueditor/themes/default/images/table-cell-align.png +0 -0
  284. data/vendor/assets/javascripts/ueditor/themes/default/images/tangram-colorpicker.png +0 -0
  285. data/vendor/assets/javascripts/ueditor/themes/default/images/toolbar_bg.png +0 -0
  286. data/vendor/assets/javascripts/ueditor/themes/default/images/unhighlighted.gif +0 -0
  287. data/vendor/assets/javascripts/ueditor/themes/default/images/upload.png +0 -0
  288. data/vendor/assets/javascripts/ueditor/themes/default/images/videologo.gif +0 -0
  289. data/vendor/assets/javascripts/ueditor/themes/default/images/word.gif +0 -0
  290. data/vendor/assets/javascripts/ueditor/themes/default/images/wordpaste.png +0 -0
  291. data/vendor/assets/javascripts/ueditor/themes/iframe.css +1 -0
  292. data/vendor/assets/javascripts/ueditor/third-party/codemirror/codemirror.css +104 -0
  293. data/vendor/assets/javascripts/ueditor/third-party/codemirror/codemirror.js +3581 -0
  294. data/vendor/assets/javascripts/ueditor/third-party/zeroclipboard/ZeroClipboard.js +1256 -0
  295. data/vendor/assets/javascripts/ueditor/third-party/zeroclipboard/ZeroClipboard.min.js +9 -0
  296. data/vendor/assets/javascripts/ueditor/third-party/zeroclipboard/ZeroClipboard.swf +0 -0
  297. data/vendor/assets/javascripts/ueditor/ueditor.all.js +29429 -0
  298. data/vendor/assets/javascripts/ueditor/ueditor.all.min.js +709 -0
  299. data/vendor/assets/javascripts/ueditor/ueditor.config.js +413 -0
  300. data/vendor/assets/javascripts/ueditor/ueditor.parse.js +1022 -0
  301. data/vendor/assets/javascripts/ueditor/ueditor.parse.min.js +28 -0
  302. metadata +464 -0
@@ -0,0 +1,64 @@
1
+ <!DOCTYPE html>
2
+ <html>
3
+ <head>
4
+ <title></title>
5
+ <script type="text/javascript" src="../internal.js"></script>
6
+ <link rel="stylesheet" type="text/css" href="edittable.css">
7
+ </head>
8
+ <body>
9
+ <div class="wrapper">
10
+ <div class="left">
11
+ <div class="section">
12
+ <h3><var id="lang_tableStyle"></var></h3>
13
+ <ul>
14
+ <li>
15
+ <label onselectstart="return false"><input type="checkbox" id="J_title" name="style"/><var id="lang_insertTitle"></var></label>
16
+ </li>
17
+ <li>
18
+ <label onselectstart="return false"><input type="checkbox" id="J_titleCol" name="style"/><var id="lang_insertTitleCol"></var></label>
19
+ </li>
20
+ </ul>
21
+ <ul>
22
+ <li>
23
+ <label onselectstart="return false"><input type="checkbox" id="J_caption" name="style"/><var id="lang_insertCaption"></var></label>
24
+ </li>
25
+ <li>
26
+ <label onselectstart="return false"><input type="checkbox" id="J_sorttable" name="style"/><var id="lang_orderbycontent"></var></label>
27
+ </li>
28
+ </ul>
29
+ <div class="clear"></div>
30
+ </div>
31
+ <div class="section">
32
+ <h3><var id="lang_tableSize"></var></h3>
33
+ <ul>
34
+ <li>
35
+ <label><input type="radio" id="J_autoSizeContent" name="size"/><var id="lang_autoSizeContent"></var></label>
36
+ </li>
37
+ <li>
38
+ <label><input type="radio" id="J_autoSizePage" name="size"/><var id="lang_autoSizePage"></var></label>
39
+ </li>
40
+ </ul>
41
+ <div class="clear"></div>
42
+ </div>
43
+ <div class="section">
44
+ <h3><var id="lang_borderStyle"></var></h3>
45
+ <ul>
46
+ <li>
47
+ <span><var id="lang_color"></var></span>
48
+ <input type="text" class="tone" id="J_tone" readonly='readonly' />
49
+ </li>
50
+ </ul>
51
+ <div class="clear"></div>
52
+ </div>
53
+ </div>
54
+ <div class="right">
55
+ <div class="section">
56
+ <h3><var id="lang_example"></var></h3>
57
+ <div class="preview" id="J_preview">
58
+ </div>
59
+ </div>
60
+ </div>
61
+ </div>
62
+ <script type="text/javascript" src="edittable.js"></script>
63
+ </body>
64
+ </html>
@@ -0,0 +1,237 @@
1
+ /**
2
+ * Created with JetBrains PhpStorm.
3
+ * User: xuheng
4
+ * Date: 12-12-19
5
+ * Time: 下午4:55
6
+ * To change this template use File | Settings | File Templates.
7
+ */
8
+ (function () {
9
+ var title = $G("J_title"),
10
+ titleCol = $G("J_titleCol"),
11
+ caption = $G("J_caption"),
12
+ sorttable = $G("J_sorttable"),
13
+ autoSizeContent = $G("J_autoSizeContent"),
14
+ autoSizePage = $G("J_autoSizePage"),
15
+ tone = $G("J_tone"),
16
+ me,
17
+ preview = $G("J_preview");
18
+
19
+ var editTable = function () {
20
+ me = this;
21
+ me.init();
22
+ };
23
+ editTable.prototype = {
24
+ init:function () {
25
+ var colorPiker = new UE.ui.ColorPicker({
26
+ editor:editor
27
+ }),
28
+ colorPop = new UE.ui.Popup({
29
+ editor:editor,
30
+ content:colorPiker
31
+ });
32
+
33
+ title.checked = editor.queryCommandState("inserttitle") == -1;
34
+ titleCol.checked = editor.queryCommandState("inserttitlecol") == -1;
35
+ caption.checked = editor.queryCommandState("insertcaption") == -1;
36
+ sorttable.checked = editor.queryCommandState("enablesort") == 1;
37
+
38
+ var enablesortState = editor.queryCommandState("enablesort"),
39
+ disablesortState = editor.queryCommandState("disablesort");
40
+
41
+ sorttable.checked = !!(enablesortState < 0 && disablesortState >=0);
42
+ sorttable.disabled = !!(enablesortState < 0 && disablesortState < 0);
43
+ sorttable.title = enablesortState < 0 && disablesortState < 0 ? lang.errorMsg:'';
44
+
45
+ me.createTable(title.checked, titleCol.checked, caption.checked);
46
+ me.setAutoSize();
47
+ me.setColor(me.getColor());
48
+
49
+ domUtils.on(title, "click", me.titleHanler);
50
+ domUtils.on(titleCol, "click", me.titleColHanler);
51
+ domUtils.on(caption, "click", me.captionHanler);
52
+ domUtils.on(sorttable, "click", me.sorttableHanler);
53
+ domUtils.on(autoSizeContent, "click", me.autoSizeContentHanler);
54
+ domUtils.on(autoSizePage, "click", me.autoSizePageHanler);
55
+
56
+ domUtils.on(tone, "click", function () {
57
+ colorPop.showAnchor(tone);
58
+ });
59
+ domUtils.on(document, 'mousedown', function () {
60
+ colorPop.hide();
61
+ });
62
+ colorPiker.addListener("pickcolor", function () {
63
+ me.setColor(arguments[1]);
64
+ colorPop.hide();
65
+ });
66
+ colorPiker.addListener("picknocolor", function () {
67
+ me.setColor("");
68
+ colorPop.hide();
69
+ });
70
+ },
71
+
72
+ createTable:function (hasTitle, hasTitleCol, hasCaption) {
73
+ var arr = [],
74
+ sortSpan = '<span>^</span>';
75
+ arr.push("<table id='J_example'>");
76
+ if (hasCaption) {
77
+ arr.push("<caption>" + lang.captionName + "</caption>")
78
+ }
79
+ if (hasTitle) {
80
+ arr.push("<tr>");
81
+ if(hasTitleCol) { arr.push("<th>" + lang.titleName + "</th>"); }
82
+ for (var j = 0; j < 5; j++) {
83
+ arr.push("<th>" + lang.titleName + "</th>");
84
+ }
85
+ arr.push("</tr>");
86
+ }
87
+ for (var i = 0; i < 6; i++) {
88
+ arr.push("<tr>");
89
+ if(hasTitleCol) { arr.push("<th>" + lang.titleName + "</th>") }
90
+ for (var k = 0; k < 5; k++) {
91
+ arr.push("<td>" + lang.cellsName + "</td>")
92
+ }
93
+ arr.push("</tr>");
94
+ }
95
+ arr.push("</table>");
96
+ preview.innerHTML = arr.join("");
97
+ this.updateSortSpan();
98
+ },
99
+ titleHanler:function () {
100
+ var example = $G("J_example"),
101
+ frg=document.createDocumentFragment(),
102
+ color = domUtils.getComputedStyle(domUtils.getElementsByTagName(example, "td")[0], "border-color"),
103
+ colCount = example.rows[0].children.length;
104
+
105
+ if (title.checked) {
106
+ example.insertRow(0);
107
+ for (var i = 0, node; i < colCount; i++) {
108
+ node = document.createElement("th");
109
+ node.innerHTML = lang.titleName;
110
+ frg.appendChild(node);
111
+ }
112
+ example.rows[0].appendChild(frg);
113
+
114
+ } else {
115
+ domUtils.remove(example.rows[0]);
116
+ }
117
+ me.setColor(color);
118
+ me.updateSortSpan();
119
+ },
120
+ titleColHanler:function () {
121
+ var example = $G("J_example"),
122
+ color = domUtils.getComputedStyle(domUtils.getElementsByTagName(example, "td")[0], "border-color"),
123
+ colArr = example.rows,
124
+ colCount = colArr.length;
125
+
126
+ if (titleCol.checked) {
127
+ for (var i = 0, node; i < colCount; i++) {
128
+ node = document.createElement("th");
129
+ node.innerHTML = lang.titleName;
130
+ colArr[i].insertBefore(node, colArr[i].children[0]);
131
+ }
132
+ } else {
133
+ for (var i = 0; i < colCount; i++) {
134
+ domUtils.remove(colArr[i].children[0]);
135
+ }
136
+ }
137
+ me.setColor(color);
138
+ me.updateSortSpan();
139
+ },
140
+ captionHanler:function () {
141
+ var example = $G("J_example");
142
+ if (caption.checked) {
143
+ var row = document.createElement('caption');
144
+ row.innerHTML = lang.captionName;
145
+ example.insertBefore(row, example.firstChild);
146
+ } else {
147
+ domUtils.remove(domUtils.getElementsByTagName(example, 'caption')[0]);
148
+ }
149
+ },
150
+ sorttableHanler:function(){
151
+ me.updateSortSpan();
152
+ },
153
+ autoSizeContentHanler:function () {
154
+ var example = $G("J_example");
155
+ example.removeAttribute("width");
156
+ },
157
+ autoSizePageHanler:function () {
158
+ var example = $G("J_example");
159
+ var tds = example.getElementsByTagName(example, "td");
160
+ utils.each(tds, function (td) {
161
+ td.removeAttribute("width");
162
+ });
163
+ example.setAttribute('width', '100%');
164
+ },
165
+ updateSortSpan: function(){
166
+ var example = $G("J_example"),
167
+ row = example.rows[0];
168
+
169
+ var spans = domUtils.getElementsByTagName(example,"span");
170
+ utils.each(spans,function(span){
171
+ span.parentNode.removeChild(span);
172
+ });
173
+ if (sorttable.checked) {
174
+ utils.each(row.cells, function(cell, i){
175
+ var span = document.createElement("span");
176
+ span.innerHTML = "^";
177
+ cell.appendChild(span);
178
+ });
179
+ }
180
+ },
181
+ getColor:function () {
182
+ var start = editor.selection.getStart(), color,
183
+ cell = domUtils.findParentByTagName(start, ["td", "th", "caption"], true);
184
+ color = cell && domUtils.getComputedStyle(cell, "border-color");
185
+ if (!color) color = "#DDDDDD";
186
+ return color;
187
+ },
188
+ setColor:function (color) {
189
+ var example = $G("J_example"),
190
+ arr = domUtils.getElementsByTagName(example, "td").concat(
191
+ domUtils.getElementsByTagName(example, "th"),
192
+ domUtils.getElementsByTagName(example, "caption")
193
+ );
194
+
195
+ tone.value = color;
196
+ utils.each(arr, function (node) {
197
+ node.style.borderColor = color;
198
+ });
199
+
200
+ },
201
+ setAutoSize:function () {
202
+ var me = this;
203
+ autoSizePage.checked = true;
204
+ me.autoSizePageHanler();
205
+ }
206
+ };
207
+
208
+ new editTable;
209
+
210
+ dialog.onok = function () {
211
+ editor.__hasEnterExecCommand = true;
212
+
213
+ var checks = {
214
+ title:"inserttitle deletetitle",
215
+ titleCol:"inserttitlecol deletetitlecol",
216
+ caption:"insertcaption deletecaption",
217
+ sorttable:"enablesort disablesort"
218
+ };
219
+ editor.fireEvent('saveScene');
220
+ for(var i in checks){
221
+ var cmds = checks[i].split(" "),
222
+ input = $G("J_" + i);
223
+ if(input["checked"]){
224
+ editor.queryCommandState(cmds[0])!=-1 &&editor.execCommand(cmds[0]);
225
+ }else{
226
+ editor.queryCommandState(cmds[1])!=-1 &&editor.execCommand(cmds[1]);
227
+ }
228
+ }
229
+
230
+ editor.execCommand("edittable", tone.value);
231
+ autoSizeContent.checked ?editor.execCommand('adaptbytext') : "";
232
+ autoSizePage.checked ? editor.execCommand("adaptbywindow") : "";
233
+ editor.fireEvent('saveScene');
234
+
235
+ editor.__hasEnterExecCommand = false;
236
+ };
237
+ })();
@@ -0,0 +1,61 @@
1
+ <!DOCTYPE html>
2
+ <html>
3
+ <head>
4
+ <title></title>
5
+ <script type="text/javascript" src="../internal.js"></script>
6
+ <style type="text/css">
7
+ .section {
8
+ text-align: center;
9
+ margin-top: 10px;
10
+ }
11
+ .section input {
12
+ margin-left: 5px;
13
+ width: 70px;
14
+ }
15
+ </style>
16
+ </head>
17
+ <body>
18
+ <div class="section">
19
+ <span><var id="lang_tdBkColor"></var></span>
20
+ <input type="text" id="J_tone"/>
21
+ </div>
22
+ <script type="text/javascript">
23
+ var tone = $G("J_tone"),
24
+ colorPiker = new UE.ui.ColorPicker({
25
+ editor:editor
26
+ }),
27
+ colorPop = new UE.ui.Popup({
28
+ editor:editor,
29
+ content:colorPiker
30
+ });
31
+ domUtils.on(tone, "click", function () {
32
+ colorPop.showAnchor(tone);
33
+ });
34
+ domUtils.on(document, 'mousedown', function () {
35
+ colorPop.hide();
36
+ });
37
+ colorPiker.addListener("pickcolor", function () {
38
+ tone.value = arguments[1];
39
+ colorPop.hide();
40
+ });
41
+ colorPiker.addListener("picknocolor", function () {
42
+ tone.value="";
43
+ colorPop.hide();
44
+ });
45
+ dialog.onok=function(){
46
+ editor.execCommand("edittd",tone.value);
47
+ };
48
+
49
+ var start = editor.selection.getStart(),
50
+ cell = start && domUtils.findParentByTagName(start, ["td", "th"], true);
51
+ if(cell){
52
+ var color = domUtils.getComputedStyle(cell,'background-color');
53
+ if(/^#/.test(color)){
54
+ tone.value = color
55
+ }
56
+
57
+ }
58
+
59
+ </script>
60
+ </body>
61
+ </html>
@@ -0,0 +1,33 @@
1
+ <!DOCTYPE html>
2
+ <html>
3
+ <head>
4
+ <title>表格删除提示</title>
5
+ <script type="text/javascript" src="../internal.js"></script>
6
+ <style type="text/css">
7
+ .section {
8
+ width: 200px;
9
+ margin: 10px auto 0;
10
+ font-size: 14px;
11
+ }
12
+
13
+ .item {
14
+ text-align: center;
15
+ }
16
+ </style>
17
+ </head>
18
+ <body>
19
+ <div class="section">
20
+ <div class="item">
21
+ <label><input type="radio" id="J_delRow" name="cmd" checked/><var id="lang_delRow"></var></label>
22
+ </div>
23
+ <div class="item">
24
+ <label><input type="radio" id="J_delCol" name="cmd"/><var id="lang_delCol"></var></label>
25
+ </div>
26
+ </div>
27
+ <script type="text/javascript">
28
+ dialog.onok = function () {
29
+ $G("J_delRow").checked ? editor.execCommand("deleterow") : editor.execCommand("deletecol");
30
+ };
31
+ </script>
32
+ </body>
33
+ </html>
@@ -0,0 +1,42 @@
1
+ /**
2
+ * Created with JetBrains PhpStorm.
3
+ * User: xuheng
4
+ * Date: 12-8-8
5
+ * Time: 下午2:00
6
+ * To change this template use File | Settings | File Templates.
7
+ */
8
+ var templates = [
9
+ {
10
+ "pre":"pre0.png",
11
+ 'title':lang.blank,
12
+ 'preHtml':'<p class="ue_t">&nbsp;欢迎使用UEditor!</p>',
13
+ "html":'<p class="ue_t">欢迎使用UEditor!</p>'
14
+
15
+ },
16
+ {
17
+ "pre":"pre1.png",
18
+ 'title':lang.blog,
19
+ 'preHtml':'<h1 label="Title center" name="tc" style="border-bottom-color:#cccccc;border-bottom-width:2px;border-bottom-style:solid;padding:0px 4px 0px 0px;text-align:center;margin:0px 0px 20px;"><span style="color:#c0504d;">深入理解Range</span></h1><p style="text-align:center;"><strong class=" ">UEditor二次开发</strong></p><h3><span class=" " style="font-family:幼圆">什么是Range</span></h3><p style="text-indent:2em;">对于“插入”选项卡上的库,在设计时都充分考虑了其中的项与文档整体外观的协调性。 </p><br /><h3><span class=" " style="font-family:幼圆">Range能干什么</span></h3><p style="text-indent:2em;">在“开始”选项卡上,通过从快速样式库中为所选文本选择一种外观,您可以方便地更改文档中所选文本的格式。</p>',
20
+ "html":'<h1 class="ue_t" label="Title center" name="tc" style="border-bottom-color:#cccccc;border-bottom-width:2px;border-bottom-style:solid;padding:0px 4px 0px 0px;text-align:center;margin:0px 0px 20px;"><span style="color:#c0504d;">[键入文档标题]</span></h1><p style="text-align:center;"><strong class="ue_t">[键入文档副标题]</strong></p><h3><span class="ue_t" style="font-family:幼圆">[标题 1]</span></h3><p class="ue_t" style="text-indent:2em;">对于“插入”选项卡上的库,在设计时都充分考虑了其中的项与文档整体外观的协调性。 您可以使用这些库来插入表格、页眉、页脚、列表、封面以及其他文档构建基块。 您创建的图片、图表或关系图也将与当前的文档外观协调一致。</p><h3><span class="ue_t" style="font-family:幼圆">[标题 2]</span></h3><p class="ue_t" style="text-indent:2em;">在“开始”选项卡上,通过从快速样式库中为所选文本选择一种外观,您可以方便地更改文档中所选文本的格式。 您还可以使用“开始”选项卡上的其他控件来直接设置文本格式。大多数控件都允许您选择是使用当前主题外观,还是使用某种直接指定的格式。 </p><h3><span class="ue_t" style="font-family:幼圆">[标题 3]</span></h3><p class="ue_t">对于“插入”选项卡上的库,在设计时都充分考虑了其中的项与文档整体外观的协调性。 您可以使用这些库来插入表格、页眉、页脚、列表、封面以及其他文档构建基块。 您创建的图片、图表或关系图也将与当前的文档外观协调一致。</p><p class="ue_t"><br /></p>'
21
+
22
+ },
23
+ {
24
+ "pre":"pre2.png",
25
+ 'title':lang.resume,
26
+ 'preHtml':'<h1 label="Title left" name="tl" style="border-bottom-color:#cccccc;border-bottom-width:2px;border-bottom-style:solid;padding:0px 4px 0px 0px;margin:0px 0px 10px;"><span style="color:#e36c09;" class=" ">WEB前端开发简历</span></h1><table width="100%" border="1" bordercolor="#95B3D7" style="border-collapse:collapse;"><tbody><tr><td width="100" style="text-align:center;"><p><span style="background-color:transparent;">插</span><br /></p><p>入</p><p>照</p><p>片</p></td><td><p><span style="background-color:transparent;"> 联系电话:</span><span class="ue_t" style="background-color:transparent;">[键入您的电话]</span><br /></p><p><span style="background-color:transparent;"> 电子邮件:</span><span class="ue_t" style="background-color:transparent;">[键入您的电子邮件地址]</span><br /></p><p><span style="background-color:transparent;"> 家庭住址:</span><span class="ue_t" style="background-color:transparent;">[键入您的地址]</span><br /></p></td></tr></tbody></table><h3><span style="color:#E36C09;font-size:20px;">目标职位</span></h3><p style="text-indent:2em;" class=" ">WEB前端研发工程师</p><h3><span style="color:#e36c09;font-size:20px;">学历</span></h3><p><span style="display:none;line-height:0px;" id="_baidu_bookmark_start_26"></span></p><ol style="list-style-type:decimal;"><li><p><span class="ue_t">[起止时间]</span> <span class="ue_t">[学校名称] </span> <span class="ue_t">[所学专业]</span> <span class="ue_t">[所获学位]</span></p></li></ol><h3><span style="color:#e36c09;font-size:20px;" class="ue_t">工作经验</span></h3><p><br /></p>',
27
+ "html":'<h1 label="Title left" name="tl" style="border-bottom-color:#cccccc;border-bottom-width:2px;border-bottom-style:solid;padding:0px 4px 0px 0px;margin:0px 0px 10px;"><span style="color:#e36c09;" class="ue_t">[此处键入简历标题]</span></h1><p><span style="color:#e36c09;"><br /></span></p><table width="100%" border="1" bordercolor="#95B3D7" style="border-collapse:collapse;"><tbody><tr><td width="200" style="text-align:center;" class="ue_t">【此处插入照片】</td><td><p><br /></p><p> 联系电话:<span class="ue_t">[键入您的电话]</span></p><p><br /></p><p> 电子邮件:<span class="ue_t">[键入您的电子邮件地址]</span></p><p><br /></p><p> 家庭住址:<span class="ue_t">[键入您的地址]</span></p><p><br /></p></td></tr></tbody></table><h3><span style="color:#e36c09;font-size:20px;">目标职位</span></h3><p style="text-indent:2em;" class="ue_t">[此处键入您的期望职位]</p><h3><span style="color:#e36c09;font-size:20px;">学历</span></h3><p><span style="display:none;line-height:0px;" id="_baidu_bookmark_start_26"></span></p><ol style="list-style-type:decimal;"><li><p><span class="ue_t">[键入起止时间]</span> <span class="ue_t">[键入学校名称] </span> <span class="ue_t">[键入所学专业]</span> <span class="ue_t">[键入所获学位]</span></p></li><li><p><span class="ue_t">[键入起止时间]</span> <span class="ue_t">[键入学校名称]</span> <span class="ue_t">[键入所学专业]</span> <span class="ue_t">[键入所获学位]</span></p></li></ol><h3><span style="color:#e36c09;font-size:20px;" class="ue_t">工作经验</span></h3><ol style="list-style-type:decimal;"><li><p><span class="ue_t">[键入起止时间]</span> <span class="ue_t">[键入公司名称]</span> <span class="ue_t">[键入职位名称]</span> </p></li><ol style="list-style-type:lower-alpha;"><li><p><span class="ue_t">[键入负责项目]</span> <span class="ue_t">[键入项目简介]</span></p></li><li><p><span class="ue_t">[键入负责项目]</span> <span class="ue_t">[键入项目简介]</span></p></li></ol><li><p><span class="ue_t">[键入起止时间]</span> <span class="ue_t">[键入公司名称]</span> <span class="ue_t">[键入职位名称]</span> </p></li><ol style="list-style-type:lower-alpha;"><li><p><span class="ue_t">[键入负责项目]</span> <span class="ue_t">[键入项目简介]</span></p></li></ol></ol><p><span style="color:#e36c09;font-size:20px;">掌握技能</span></p><p style="text-indent:2em;"> &nbsp;<span class="ue_t">[这里可以键入您所掌握的技能]</span><br /></p>'
28
+
29
+ },
30
+ {
31
+ "pre":"pre3.png",
32
+ 'title':lang.richText,
33
+ 'preHtml':'<h1 label="Title center" name="tc" style="border-bottom-color:#cccccc;border-bottom-width:2px;border-bottom-style:solid;padding:0px 4px 0px 0px;text-align:center;margin:0px 0px 20px;" class="ue_t">[此处键入文章标题]</h1><p><img src="http://img.baidu.com/hi/youa/y_0034.gif" width="150" height="100" border="0" hspace="0" vspace="0" style="width:150px;height:100px;float:left;" />图文混排方法</p><p>图片居左,文字围绕图片排版</p><p>方法:在文字前面插入图片,设置居左对齐,然后即可在右边输入多行文</p><p><br /></p><p><img src="http://img.baidu.com/hi/youa/y_0040.gif" width="100" height="100" border="0" hspace="0" vspace="0" style="width:100px;height:100px;float:right;" /></p><p>还有没有什么其他的环绕方式呢?这里是居右环绕</p><p><br /></p><p>欢迎大家多多尝试,为UEditor提供更多高质量模板!</p>',
34
+ "html":'<p><br /></p><h1 label="Title center" name="tc" style="border-bottom-color:#cccccc;border-bottom-width:2px;border-bottom-style:solid;padding:0px 4px 0px 0px;text-align:center;margin:0px 0px 20px;" class="ue_t">[此处键入文章标题]</h1><p><img src="http://img.baidu.com/hi/youa/y_0034.gif" width="300" height="200" border="0" hspace="0" vspace="0" style="width:300px;height:200px;float:left;" />图文混排方法</p><p>1. 图片居左,文字围绕图片排版</p><p>方法:在文字前面插入图片,设置居左对齐,然后即可在右边输入多行文本</p><p><br /></p><p>2. 图片居右,文字围绕图片排版</p><p>方法:在文字前面插入图片,设置居右对齐,然后即可在左边输入多行文本</p><p><br /></p><p>3. 图片居中环绕排版</p><p>方法:亲,这个真心没有办法。。。</p><p><br /></p><p><br /></p><p><img src="http://img.baidu.com/hi/youa/y_0040.gif" width="300" height="300" border="0" hspace="0" vspace="0" style="width:300px;height:300px;float:right;" /></p><p>还有没有什么其他的环绕方式呢?这里是居右环绕</p><p><br /></p><p>欢迎大家多多尝试,为UEditor提供更多高质量模板!</p><p><br /></p><p>占位</p><p><br /></p><p>占位</p><p><br /></p><p>占位</p><p><br /></p><p>占位</p><p><br /></p><p>占位</p><p><br /></p><p><br /></p>'
35
+ },
36
+ {
37
+ "pre":"pre4.png",
38
+ 'title':lang.sciPapers,
39
+ 'preHtml':'<h2 style="border-bottom-color:#cccccc;border-bottom-width:2px;border-bottom-style:solid;padding:0px 4px 0px 0px;margin:0px 0px 10px;text-align:center;" class="ue_t">[键入文章标题]</h2><p><strong><span style="font-size:12px;">摘要</span></strong><span style="font-size:12px;" class="ue_t">:这里可以输入很长很长很长很长很长很长很长很长很差的摘要</span></p><p style="line-height:1.5em;"><strong>标题 1</strong></p><p style="text-indent:2em;"><span style="font-size:14px;" class="ue_t">这里可以输入很多内容,可以图文混排,可以有列表等。</span></p><p style="line-height:1.5em;"><strong>标题 2</strong></p><ol style="list-style-type:lower-alpha;"><li><p class="ue_t">列表 1</p></li><li><p class="ue_t">列表 2</p></li><ol style="list-style-type:lower-roman;"><li><p class="ue_t">多级列表 1</p></li><li><p class="ue_t">多级列表 2</p></li></ol><li><p class="ue_t">列表 3<br /></p></li></ol><p style="line-height:1.5em;"><strong>标题 3</strong></p><p style="text-indent:2em;"><span style="font-size:14px;" class="ue_t">来个文字图文混排的</span></p><p style="text-indent:2em;"><br /></p>',
40
+ 'html':'<h2 style="border-bottom-color:#cccccc;border-bottom-width:2px;border-bottom-style:solid;padding:0px 4px 0px 0px;margin:0px 0px 10px;text-align:center;" class="ue_t">[键入文章标题]</h2><p><strong><span style="font-size:12px;">摘要</span></strong><span style="font-size:12px;" class="ue_t">:这里可以输入很长很长很长很长很长很长很长很长很差的摘要</span></p><p style="line-height:1.5em;"><strong>标题 1</strong></p><p style="text-indent:2em;"><span style="font-size:14px;" class="ue_t">这里可以输入很多内容,可以图文混排,可以有列表等。</span></p><p style="line-height:1.5em;"><strong>标题 2</strong></p><p style="text-indent:2em;"><span style="font-size:14px;" class="ue_t">来个列表瞅瞅:</span></p><ol style="list-style-type:lower-alpha;"><li><p class="ue_t">列表 1</p></li><li><p class="ue_t">列表 2</p></li><ol style="list-style-type:lower-roman;"><li><p class="ue_t">多级列表 1</p></li><li><p class="ue_t">多级列表 2</p></li></ol><li><p class="ue_t">列表 3<br /></p></li></ol><p style="line-height:1.5em;"><strong>标题 3</strong></p><p style="text-indent:2em;"><span style="font-size:14px;" class="ue_t">来个文字图文混排的</span></p><p style="text-indent:2em;"><span style="font-size:14px;" class="ue_t">这里可以多行</span></p><p style="text-indent:2em;"><span style="font-size:14px;" class="ue_t">右边是图片</span></p><p style="text-indent:2em;"><span style="font-size:14px;" class="ue_t">绝对没有问题的,不信你也可以试试看</span></p><p><br /></p>'
41
+ }
42
+ ];