baidu_ueditor_rails 0.0.2 → 0.0.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (242) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile +14 -0
  3. data/Gemfile.lock +88 -0
  4. data/bin/rails +8 -0
  5. data/vendor/assets/javascripts/ueditor/dialogs/anchor/anchor.html +40 -0
  6. data/vendor/assets/javascripts/ueditor/dialogs/attachment/attachment.css +130 -0
  7. data/vendor/assets/javascripts/ueditor/dialogs/attachment/attachment.html +128 -0
  8. data/vendor/assets/javascripts/ueditor/dialogs/attachment/callbacks.js +166 -0
  9. data/vendor/assets/javascripts/ueditor/dialogs/attachment/fileTypeImages/icon_chm.gif +0 -0
  10. data/vendor/assets/javascripts/ueditor/dialogs/attachment/fileTypeImages/icon_default.png +0 -0
  11. data/vendor/assets/javascripts/ueditor/dialogs/attachment/fileTypeImages/icon_doc.gif +0 -0
  12. data/vendor/assets/javascripts/ueditor/dialogs/attachment/fileTypeImages/icon_exe.gif +0 -0
  13. data/vendor/assets/javascripts/ueditor/dialogs/attachment/fileTypeImages/icon_mp3.gif +0 -0
  14. data/vendor/assets/javascripts/ueditor/dialogs/attachment/fileTypeImages/icon_mv.gif +0 -0
  15. data/vendor/assets/javascripts/ueditor/dialogs/attachment/fileTypeImages/icon_pdf.gif +0 -0
  16. data/vendor/assets/javascripts/ueditor/dialogs/attachment/fileTypeImages/icon_ppt.gif +0 -0
  17. data/vendor/assets/javascripts/ueditor/dialogs/attachment/fileTypeImages/icon_psd.gif +0 -0
  18. data/vendor/assets/javascripts/ueditor/dialogs/attachment/fileTypeImages/icon_rar.gif +0 -0
  19. data/vendor/assets/javascripts/ueditor/dialogs/attachment/fileTypeImages/icon_txt.gif +0 -0
  20. data/vendor/assets/javascripts/ueditor/dialogs/attachment/fileTypeImages/icon_xls.gif +0 -0
  21. data/vendor/assets/javascripts/ueditor/dialogs/attachment/fileTypeMaps.js +29 -0
  22. data/vendor/assets/javascripts/ueditor/dialogs/background/background.css +25 -0
  23. data/vendor/assets/javascripts/ueditor/dialogs/background/background.html +56 -0
  24. data/vendor/assets/javascripts/ueditor/dialogs/background/background.js +251 -0
  25. data/vendor/assets/javascripts/ueditor/dialogs/charts/chart.config.js +65 -0
  26. data/vendor/assets/javascripts/ueditor/dialogs/charts/charts.css +165 -0
  27. data/vendor/assets/javascripts/ueditor/dialogs/charts/charts.html +89 -0
  28. data/vendor/assets/javascripts/ueditor/dialogs/charts/charts.js +519 -0
  29. data/vendor/assets/javascripts/ueditor/dialogs/charts/images/charts0.png +0 -0
  30. data/vendor/assets/javascripts/ueditor/dialogs/charts/images/charts1.png +0 -0
  31. data/vendor/assets/javascripts/ueditor/dialogs/charts/images/charts2.png +0 -0
  32. data/vendor/assets/javascripts/ueditor/dialogs/charts/images/charts3.png +0 -0
  33. data/vendor/assets/javascripts/ueditor/dialogs/charts/images/charts4.png +0 -0
  34. data/vendor/assets/javascripts/ueditor/dialogs/charts/images/charts5.png +0 -0
  35. data/vendor/assets/javascripts/ueditor/dialogs/emotion/emotion.css +43 -0
  36. data/vendor/assets/javascripts/ueditor/dialogs/emotion/emotion.html +54 -0
  37. data/vendor/assets/javascripts/ueditor/dialogs/emotion/emotion.js +186 -0
  38. data/vendor/assets/javascripts/ueditor/dialogs/emotion/images/0.gif +0 -0
  39. data/vendor/assets/javascripts/ueditor/dialogs/emotion/images/bface.gif +0 -0
  40. data/vendor/assets/javascripts/ueditor/dialogs/emotion/images/cface.gif +0 -0
  41. data/vendor/assets/javascripts/ueditor/dialogs/emotion/images/fface.gif +0 -0
  42. data/vendor/assets/javascripts/ueditor/dialogs/emotion/images/jxface2.gif +0 -0
  43. data/vendor/assets/javascripts/ueditor/dialogs/emotion/images/neweditor-tab-bg.png +0 -0
  44. data/vendor/assets/javascripts/ueditor/dialogs/emotion/images/tface.gif +0 -0
  45. data/vendor/assets/javascripts/ueditor/dialogs/emotion/images/wface.gif +0 -0
  46. data/vendor/assets/javascripts/ueditor/dialogs/emotion/images/yface.gif +0 -0
  47. data/vendor/assets/javascripts/ueditor/dialogs/gmap/gmap.html +89 -0
  48. data/vendor/assets/javascripts/ueditor/dialogs/help/help.css +7 -0
  49. data/vendor/assets/javascripts/ueditor/dialogs/help/help.html +82 -0
  50. data/vendor/assets/javascripts/ueditor/dialogs/help/help.js +56 -0
  51. data/vendor/assets/javascripts/ueditor/dialogs/image/image.css +69 -0
  52. data/vendor/assets/javascripts/ueditor/dialogs/image/image.html +257 -0
  53. data/vendor/assets/javascripts/ueditor/dialogs/image/image.js +713 -0
  54. data/vendor/assets/javascripts/ueditor/dialogs/image/imageUploader.swf +0 -0
  55. data/vendor/assets/javascripts/ueditor/dialogs/image/images/center_focus.jpg +0 -0
  56. data/vendor/assets/javascripts/ueditor/dialogs/image/images/left_focus.jpg +0 -0
  57. data/vendor/assets/javascripts/ueditor/dialogs/image/images/none_focus.jpg +0 -0
  58. data/vendor/assets/javascripts/ueditor/dialogs/image/images/right_focus.jpg +0 -0
  59. data/vendor/assets/javascripts/ueditor/dialogs/insertframe/insertframe.html +98 -0
  60. data/vendor/assets/javascripts/ueditor/dialogs/internal.js +81 -0
  61. data/vendor/assets/javascripts/ueditor/dialogs/link/link.html +126 -0
  62. data/vendor/assets/javascripts/ueditor/dialogs/map/map.html +135 -0
  63. data/vendor/assets/javascripts/ueditor/dialogs/map/show.html +118 -0
  64. data/vendor/assets/javascripts/ueditor/dialogs/music/music.css +30 -0
  65. data/vendor/assets/javascripts/ueditor/dialogs/music/music.html +32 -0
  66. data/vendor/assets/javascripts/ueditor/dialogs/music/music.js +192 -0
  67. data/vendor/assets/javascripts/ueditor/dialogs/preview/preview.html +40 -0
  68. data/vendor/assets/javascripts/ueditor/dialogs/scrawl/images/addimg.png +0 -0
  69. data/vendor/assets/javascripts/ueditor/dialogs/scrawl/images/brush.png +0 -0
  70. data/vendor/assets/javascripts/ueditor/dialogs/scrawl/images/delimg.png +0 -0
  71. data/vendor/assets/javascripts/ueditor/dialogs/scrawl/images/delimgH.png +0 -0
  72. data/vendor/assets/javascripts/ueditor/dialogs/scrawl/images/empty.png +0 -0
  73. data/vendor/assets/javascripts/ueditor/dialogs/scrawl/images/emptyH.png +0 -0
  74. data/vendor/assets/javascripts/ueditor/dialogs/scrawl/images/eraser.png +0 -0
  75. data/vendor/assets/javascripts/ueditor/dialogs/scrawl/images/redo.png +0 -0
  76. data/vendor/assets/javascripts/ueditor/dialogs/scrawl/images/redoH.png +0 -0
  77. data/vendor/assets/javascripts/ueditor/dialogs/scrawl/images/scale.png +0 -0
  78. data/vendor/assets/javascripts/ueditor/dialogs/scrawl/images/scaleH.png +0 -0
  79. data/vendor/assets/javascripts/ueditor/dialogs/scrawl/images/size.png +0 -0
  80. data/vendor/assets/javascripts/ueditor/dialogs/scrawl/images/undo.png +0 -0
  81. data/vendor/assets/javascripts/ueditor/dialogs/scrawl/images/undoH.png +0 -0
  82. data/vendor/assets/javascripts/ueditor/dialogs/scrawl/scrawl.css +72 -0
  83. data/vendor/assets/javascripts/ueditor/dialogs/scrawl/scrawl.html +95 -0
  84. data/vendor/assets/javascripts/ueditor/dialogs/scrawl/scrawl.js +655 -0
  85. data/vendor/assets/javascripts/ueditor/dialogs/searchreplace/searchreplace.html +102 -0
  86. data/vendor/assets/javascripts/ueditor/dialogs/searchreplace/searchreplace.js +164 -0
  87. data/vendor/assets/javascripts/ueditor/dialogs/snapscreen/snapscreen.html +58 -0
  88. data/vendor/assets/javascripts/ueditor/dialogs/spechars/spechars.html +21 -0
  89. data/vendor/assets/javascripts/ueditor/dialogs/spechars/spechars.js +57 -0
  90. data/vendor/assets/javascripts/ueditor/dialogs/table/dragicon.png +0 -0
  91. data/vendor/assets/javascripts/ueditor/dialogs/table/edittable.css +84 -0
  92. data/vendor/assets/javascripts/ueditor/dialogs/table/edittable.html +64 -0
  93. data/vendor/assets/javascripts/ueditor/dialogs/table/edittable.js +237 -0
  94. data/vendor/assets/javascripts/ueditor/dialogs/table/edittd.html +61 -0
  95. data/vendor/assets/javascripts/ueditor/dialogs/table/edittip.html +33 -0
  96. data/vendor/assets/javascripts/ueditor/dialogs/tangram.js +1495 -0
  97. data/vendor/assets/javascripts/ueditor/dialogs/template/config.js +42 -0
  98. data/vendor/assets/javascripts/ueditor/dialogs/template/images/bg.gif +0 -0
  99. data/vendor/assets/javascripts/ueditor/dialogs/template/images/pre0.png +0 -0
  100. data/vendor/assets/javascripts/ueditor/dialogs/template/images/pre1.png +0 -0
  101. data/vendor/assets/javascripts/ueditor/dialogs/template/images/pre2.png +0 -0
  102. data/vendor/assets/javascripts/ueditor/dialogs/template/images/pre3.png +0 -0
  103. data/vendor/assets/javascripts/ueditor/dialogs/template/images/pre4.png +0 -0
  104. data/vendor/assets/javascripts/ueditor/dialogs/template/template.css +18 -0
  105. data/vendor/assets/javascripts/ueditor/dialogs/template/template.html +26 -0
  106. data/vendor/assets/javascripts/ueditor/dialogs/template/template.js +53 -0
  107. data/vendor/assets/javascripts/ueditor/dialogs/video/callbacks.js +166 -0
  108. data/vendor/assets/javascripts/ueditor/dialogs/video/images/center_focus.jpg +0 -0
  109. data/vendor/assets/javascripts/ueditor/dialogs/video/images/left_focus.jpg +0 -0
  110. data/vendor/assets/javascripts/ueditor/dialogs/video/images/none_focus.jpg +0 -0
  111. data/vendor/assets/javascripts/ueditor/dialogs/video/images/right_focus.jpg +0 -0
  112. data/vendor/assets/javascripts/ueditor/dialogs/video/video.css +150 -0
  113. data/vendor/assets/javascripts/ueditor/dialogs/video/video.html +95 -0
  114. data/vendor/assets/javascripts/ueditor/dialogs/video/video.js +471 -0
  115. data/vendor/assets/javascripts/ueditor/dialogs/webapp/webapp.html +53 -0
  116. data/vendor/assets/javascripts/ueditor/dialogs/wordimage/fClipboard_ueditor.swf +0 -0
  117. data/vendor/assets/javascripts/ueditor/dialogs/wordimage/imageUploader.swf +0 -0
  118. data/vendor/assets/javascripts/ueditor/dialogs/wordimage/wordimage.html +104 -0
  119. data/vendor/assets/javascripts/ueditor/dialogs/wordimage/wordimage.js +158 -0
  120. data/vendor/assets/javascripts/ueditor/index.html +175 -0
  121. data/vendor/assets/javascripts/ueditor/lang/en/en.js +638 -0
  122. data/vendor/assets/javascripts/ueditor/lang/en/images/addimage.png +0 -0
  123. data/vendor/assets/javascripts/ueditor/lang/en/images/alldeletebtnhoverskin.png +0 -0
  124. data/vendor/assets/javascripts/ueditor/lang/en/images/alldeletebtnupskin.png +0 -0
  125. data/vendor/assets/javascripts/ueditor/lang/en/images/background.png +0 -0
  126. data/vendor/assets/javascripts/ueditor/lang/en/images/button.png +0 -0
  127. data/vendor/assets/javascripts/ueditor/lang/en/images/copy.png +0 -0
  128. data/vendor/assets/javascripts/ueditor/lang/en/images/deletedisable.png +0 -0
  129. data/vendor/assets/javascripts/ueditor/lang/en/images/deleteenable.png +0 -0
  130. data/vendor/assets/javascripts/ueditor/lang/en/images/imglabel.png +0 -0
  131. data/vendor/assets/javascripts/ueditor/lang/en/images/listbackground.png +0 -0
  132. data/vendor/assets/javascripts/ueditor/lang/en/images/localimage.png +0 -0
  133. data/vendor/assets/javascripts/ueditor/lang/en/images/music.png +0 -0
  134. data/vendor/assets/javascripts/ueditor/lang/en/images/rotateleftdisable.png +0 -0
  135. data/vendor/assets/javascripts/ueditor/lang/en/images/rotateleftenable.png +0 -0
  136. data/vendor/assets/javascripts/ueditor/lang/en/images/rotaterightdisable.png +0 -0
  137. data/vendor/assets/javascripts/ueditor/lang/en/images/rotaterightenable.png +0 -0
  138. data/vendor/assets/javascripts/ueditor/lang/en/images/upload.png +0 -0
  139. data/vendor/assets/javascripts/ueditor/lang/zh-cn/images/copy.png +0 -0
  140. data/vendor/assets/javascripts/ueditor/lang/zh-cn/images/imglabel.png +0 -0
  141. data/vendor/assets/javascripts/ueditor/lang/zh-cn/images/localimage.png +0 -0
  142. data/vendor/assets/javascripts/ueditor/lang/zh-cn/images/music.png +0 -0
  143. data/vendor/assets/javascripts/ueditor/lang/zh-cn/images/upload.png +0 -0
  144. data/vendor/assets/javascripts/ueditor/lang/zh-cn/zh-cn.js +605 -0
  145. data/vendor/assets/javascripts/ueditor/themes/default/css/ueditor.css +1823 -0
  146. data/vendor/assets/javascripts/ueditor/themes/default/css/ueditor.min.css +8 -0
  147. data/vendor/assets/javascripts/ueditor/themes/default/dialogbase.css +100 -0
  148. data/vendor/assets/javascripts/ueditor/themes/default/images/anchor.gif +0 -0
  149. data/vendor/assets/javascripts/ueditor/themes/default/images/arrow.png +0 -0
  150. data/vendor/assets/javascripts/ueditor/themes/default/images/arrow_down.png +0 -0
  151. data/vendor/assets/javascripts/ueditor/themes/default/images/arrow_up.png +0 -0
  152. data/vendor/assets/javascripts/ueditor/themes/default/images/button-bg.gif +0 -0
  153. data/vendor/assets/javascripts/ueditor/themes/default/images/cancelbutton.gif +0 -0
  154. data/vendor/assets/javascripts/ueditor/themes/default/images/charts.png +0 -0
  155. data/vendor/assets/javascripts/ueditor/themes/default/images/cursor_h.gif +0 -0
  156. data/vendor/assets/javascripts/ueditor/themes/default/images/cursor_h.png +0 -0
  157. data/vendor/assets/javascripts/ueditor/themes/default/images/cursor_v.gif +0 -0
  158. data/vendor/assets/javascripts/ueditor/themes/default/images/cursor_v.png +0 -0
  159. data/vendor/assets/javascripts/ueditor/themes/default/images/dialog-title-bg.png +0 -0
  160. data/vendor/assets/javascripts/ueditor/themes/default/images/filescan.png +0 -0
  161. data/vendor/assets/javascripts/ueditor/themes/default/images/highlighted.gif +0 -0
  162. data/vendor/assets/javascripts/ueditor/themes/default/images/icons-all.gif +0 -0
  163. data/vendor/assets/javascripts/ueditor/themes/default/images/icons.gif +0 -0
  164. data/vendor/assets/javascripts/ueditor/themes/default/images/icons.png +0 -0
  165. data/vendor/assets/javascripts/ueditor/themes/default/images/lock.gif +0 -0
  166. data/vendor/assets/javascripts/ueditor/themes/default/images/neweditor-tab-bg.png +0 -0
  167. data/vendor/assets/javascripts/ueditor/themes/default/images/pagebreak.gif +0 -0
  168. data/vendor/assets/javascripts/ueditor/themes/default/images/scale.png +0 -0
  169. data/vendor/assets/javascripts/ueditor/themes/default/images/sortable.png +0 -0
  170. data/vendor/assets/javascripts/ueditor/themes/default/images/spacer.gif +0 -0
  171. data/vendor/assets/javascripts/ueditor/themes/default/images/sparator_v.png +0 -0
  172. data/vendor/assets/javascripts/ueditor/themes/default/images/table-cell-align.png +0 -0
  173. data/vendor/assets/javascripts/ueditor/themes/default/images/tangram-colorpicker.png +0 -0
  174. data/vendor/assets/javascripts/ueditor/themes/default/images/toolbar_bg.png +0 -0
  175. data/vendor/assets/javascripts/ueditor/themes/default/images/unhighlighted.gif +0 -0
  176. data/vendor/assets/javascripts/ueditor/themes/default/images/upload.png +0 -0
  177. data/vendor/assets/javascripts/ueditor/themes/default/images/videologo.gif +0 -0
  178. data/vendor/assets/javascripts/ueditor/themes/default/images/word.gif +0 -0
  179. data/vendor/assets/javascripts/ueditor/themes/default/images/wordpaste.png +0 -0
  180. data/vendor/assets/javascripts/ueditor/themes/iframe.css +1 -0
  181. data/vendor/assets/javascripts/ueditor/third-party/SyntaxHighlighter/shCore.js +3655 -0
  182. data/vendor/assets/javascripts/ueditor/third-party/SyntaxHighlighter/shCoreDefault.css +1 -0
  183. data/vendor/assets/javascripts/ueditor/third-party/codemirror/codemirror.css +104 -0
  184. data/vendor/assets/javascripts/ueditor/third-party/codemirror/codemirror.js +3581 -0
  185. data/vendor/assets/javascripts/ueditor/third-party/highcharts/adapters/mootools-adapter.js +13 -0
  186. data/vendor/assets/javascripts/ueditor/third-party/highcharts/adapters/mootools-adapter.src.js +313 -0
  187. data/vendor/assets/javascripts/ueditor/third-party/highcharts/adapters/prototype-adapter.js +15 -0
  188. data/vendor/assets/javascripts/ueditor/third-party/highcharts/adapters/prototype-adapter.src.js +316 -0
  189. data/vendor/assets/javascripts/ueditor/third-party/highcharts/adapters/standalone-framework.js +17 -0
  190. data/vendor/assets/javascripts/ueditor/third-party/highcharts/adapters/standalone-framework.src.js +583 -0
  191. data/vendor/assets/javascripts/ueditor/third-party/highcharts/highcharts-more.js +50 -0
  192. data/vendor/assets/javascripts/ueditor/third-party/highcharts/highcharts-more.src.js +2430 -0
  193. data/vendor/assets/javascripts/ueditor/third-party/highcharts/highcharts.js +283 -0
  194. data/vendor/assets/javascripts/ueditor/third-party/highcharts/highcharts.src.js +16974 -0
  195. data/vendor/assets/javascripts/ueditor/third-party/highcharts/modules/annotations.js +7 -0
  196. data/vendor/assets/javascripts/ueditor/third-party/highcharts/modules/annotations.src.js +401 -0
  197. data/vendor/assets/javascripts/ueditor/third-party/highcharts/modules/canvas-tools.js +133 -0
  198. data/vendor/assets/javascripts/ueditor/third-party/highcharts/modules/canvas-tools.src.js +3113 -0
  199. data/vendor/assets/javascripts/ueditor/third-party/highcharts/modules/data.js +17 -0
  200. data/vendor/assets/javascripts/ueditor/third-party/highcharts/modules/data.src.js +582 -0
  201. data/vendor/assets/javascripts/ueditor/third-party/highcharts/modules/drilldown.js +11 -0
  202. data/vendor/assets/javascripts/ueditor/third-party/highcharts/modules/drilldown.src.js +447 -0
  203. data/vendor/assets/javascripts/ueditor/third-party/highcharts/modules/exporting.js +22 -0
  204. data/vendor/assets/javascripts/ueditor/third-party/highcharts/modules/exporting.src.js +709 -0
  205. data/vendor/assets/javascripts/ueditor/third-party/highcharts/modules/funnel.js +12 -0
  206. data/vendor/assets/javascripts/ueditor/third-party/highcharts/modules/funnel.src.js +289 -0
  207. data/vendor/assets/javascripts/ueditor/third-party/highcharts/modules/heatmap.js +1 -0
  208. data/vendor/assets/javascripts/ueditor/third-party/highcharts/modules/heatmap.src.js +53 -0
  209. data/vendor/assets/javascripts/ueditor/third-party/highcharts/modules/map.js +27 -0
  210. data/vendor/assets/javascripts/ueditor/third-party/highcharts/modules/map.src.js +1002 -0
  211. data/vendor/assets/javascripts/ueditor/third-party/highcharts/modules/no-data-to-display.js +12 -0
  212. data/vendor/assets/javascripts/ueditor/third-party/highcharts/modules/no-data-to-display.src.js +128 -0
  213. data/vendor/assets/javascripts/ueditor/third-party/highcharts/themes/dark-blue.js +254 -0
  214. data/vendor/assets/javascripts/ueditor/third-party/highcharts/themes/dark-green.js +255 -0
  215. data/vendor/assets/javascripts/ueditor/third-party/highcharts/themes/gray.js +257 -0
  216. data/vendor/assets/javascripts/ueditor/third-party/highcharts/themes/grid.js +103 -0
  217. data/vendor/assets/javascripts/ueditor/third-party/highcharts/themes/skies.js +89 -0
  218. data/vendor/assets/javascripts/ueditor/third-party/jquery-1.10.2.min.js +6 -0
  219. data/vendor/assets/javascripts/ueditor/third-party/snapscreen/UEditorSnapscreen.exe +0 -0
  220. data/vendor/assets/javascripts/ueditor/third-party/swfupload/fileprogress.js +215 -0
  221. data/vendor/assets/javascripts/ueditor/third-party/swfupload/swfupload.cookies.js +53 -0
  222. data/vendor/assets/javascripts/ueditor/third-party/swfupload/swfupload.js +1132 -0
  223. data/vendor/assets/javascripts/ueditor/third-party/swfupload/swfupload.proxy.js +96 -0
  224. data/vendor/assets/javascripts/ueditor/third-party/swfupload/swfupload.queue.js +98 -0
  225. data/vendor/assets/javascripts/ueditor/third-party/swfupload/swfupload.speed.js +346 -0
  226. data/vendor/assets/javascripts/ueditor/third-party/swfupload/swfupload.swf +0 -0
  227. data/vendor/assets/javascripts/ueditor/third-party/swfupload/swfupload_fp9.swf +0 -0
  228. data/vendor/assets/javascripts/ueditor/third-party/video-js/font/vjs.eot +0 -0
  229. data/vendor/assets/javascripts/ueditor/third-party/video-js/font/vjs.svg +65 -0
  230. data/vendor/assets/javascripts/ueditor/third-party/video-js/font/vjs.ttf +0 -0
  231. data/vendor/assets/javascripts/ueditor/third-party/video-js/font/vjs.woff +0 -0
  232. data/vendor/assets/javascripts/ueditor/third-party/video-js/video-js.css +766 -0
  233. data/vendor/assets/javascripts/ueditor/third-party/video-js/video-js.min.css +5 -0
  234. data/vendor/assets/javascripts/ueditor/third-party/video-js/video-js.swf +0 -0
  235. data/vendor/assets/javascripts/ueditor/third-party/video-js/video.dev.js +7108 -0
  236. data/vendor/assets/javascripts/ueditor/third-party/video-js/video.js +129 -0
  237. data/vendor/assets/javascripts/ueditor/ueditor.all.js +27535 -0
  238. data/vendor/assets/javascripts/ueditor/ueditor.all.min.js +664 -0
  239. data/vendor/assets/javascripts/ueditor/ueditor.config.js +452 -0
  240. data/vendor/assets/javascripts/ueditor/ueditor.parse.js +1015 -0
  241. data/vendor/assets/javascripts/ueditor/ueditor.parse.min.js +28 -0
  242. metadata +241 -1
@@ -0,0 +1,17 @@
1
+ /*
2
+ Highcharts JS v3.0.6 (2013-10-04)
3
+
4
+ Standalone Highcharts Framework
5
+
6
+ License: MIT License
7
+ */
8
+ var HighchartsAdapter=function(){function o(c){function a(a,b,d){a.removeEventListener(b,d,!1)}function d(a,b,d){d=a.HCProxiedMethods[d.toString()];a.detachEvent("on"+b,d)}function b(b,c){var f=b.HCEvents,i,g,k,j;if(b.removeEventListener)i=a;else if(b.attachEvent)i=d;else return;c?(g={},g[c]=!0):g=f;for(j in g)if(f[j])for(k=f[j].length;k--;)i(b,j,f[j][k])}c.HCExtended||Highcharts.extend(c,{HCExtended:!0,HCEvents:{},bind:function(b,a){var d=this,c=this.HCEvents,g;if(d.addEventListener)d.addEventListener(b,
9
+ a,!1);else if(d.attachEvent){g=function(b){a.call(d,b)};if(!d.HCProxiedMethods)d.HCProxiedMethods={};d.HCProxiedMethods[a.toString()]=g;d.attachEvent("on"+b,g)}c[b]===r&&(c[b]=[]);c[b].push(a)},unbind:function(c,h){var f,i;c?(f=this.HCEvents[c]||[],h?(i=HighchartsAdapter.inArray(h,f),i>-1&&(f.splice(i,1),this.HCEvents[c]=f),this.removeEventListener?a(this,c,h):this.attachEvent&&d(this,c,h)):(b(this,c),this.HCEvents[c]=[])):(b(this),this.HCEvents={})},trigger:function(b,a){var d=this.HCEvents[b]||
10
+ [],c=d.length,g,k,j;k=function(){a.defaultPrevented=!0};for(g=0;g<c;g++){j=d[g];if(a.stopped)break;a.preventDefault=k;a.target=this;a.type=b;j.call(this,a)===!1&&a.preventDefault()}}});return c}var r,l=document,p=[],m=[],q,n;Math.easeInOutSine=function(c,a,d,b){return-d/2*(Math.cos(Math.PI*c/b)-1)+a};return{init:function(c){if(!l.defaultView)this._getStyle=function(a,d){var b;return a.style[d]?a.style[d]:(d==="opacity"&&(d="filter"),b=a.currentStyle[d.replace(/\-(\w)/g,function(a,b){return b.toUpperCase()})],
11
+ d==="filter"&&(b=b.replace(/alpha\(opacity=([0-9]+)\)/,function(b,a){return a/100})),b===""?1:b)},this.adapterRun=function(a,d){var b={width:"clientWidth",height:"clientHeight"}[d];if(b)return a.style.zoom=1,a[b]-2*parseInt(HighchartsAdapter._getStyle(a,"padding"),10)};if(!Array.prototype.forEach)this.each=function(a,d){for(var b=0,c=a.length;b<c;b++)if(d.call(a[b],a[b],b,a)===!1)return b};if(!Array.prototype.indexOf)this.inArray=function(a,d){var b,c=0;if(d)for(b=d.length;c<b;c++)if(d[c]===a)return c;
12
+ return-1};if(!Array.prototype.filter)this.grep=function(a,d){for(var b=[],c=0,h=a.length;c<h;c++)d(a[c],c)&&b.push(a[c]);return b};n=function(a,c,b){this.options=c;this.elem=a;this.prop=b};n.prototype={update:function(){var a;a=this.paths;var d=this.elem,b=d.element;a&&b?d.attr("d",c.step(a[0],a[1],this.now,this.toD)):d.attr?b&&d.attr(this.prop,this.now):(a={},a[d]=this.now+this.unit,Highcharts.css(d,a));this.options.step&&this.options.step.call(this.elem,this.now,this)},custom:function(a,c,b){var e=
13
+ this,h=function(a){return e.step(a)},f;this.startTime=+new Date;this.start=a;this.end=c;this.unit=b;this.now=this.start;this.pos=this.state=0;h.elem=this.elem;h()&&m.push(h)===1&&(q=setInterval(function(){for(f=0;f<m.length;f++)m[f]()||m.splice(f--,1);m.length||clearInterval(q)},13))},step:function(a){var c=+new Date,b;b=this.options;var e;if(this.elem.stopAnimation)b=!1;else if(a||c>=b.duration+this.startTime){this.now=this.end;this.pos=this.state=1;this.update();a=this.options.curAnim[this.prop]=
14
+ !0;for(e in b.curAnim)b.curAnim[e]!==!0&&(a=!1);a&&b.complete&&b.complete.call(this.elem);b=!1}else e=c-this.startTime,this.state=e/b.duration,this.pos=b.easing(e,0,1,b.duration),this.now=this.start+(this.end-this.start)*this.pos,this.update(),b=!0;return b}};this.animate=function(a,d,b){var e,h="",f,i,g;a.stopAnimation=!1;if(typeof b!=="object"||b===null)e=arguments,b={duration:e[2],easing:e[3],complete:e[4]};if(typeof b.duration!=="number")b.duration=400;b.easing=Math[b.easing]||Math.easeInOutSine;
15
+ b.curAnim=Highcharts.extend({},d);for(g in d)i=new n(a,b,g),f=null,g==="d"?(i.paths=c.init(a,a.d,d.d),i.toD=d.d,e=0,f=1):a.attr?e=a.attr(g):(e=parseFloat(HighchartsAdapter._getStyle(a,g))||0,g!=="opacity"&&(h="px")),f||(f=parseFloat(d[g])),i.custom(e,f,h)}},_getStyle:function(c,a){return window.getComputedStyle(c).getPropertyValue(a)},getScript:function(c,a){var d=l.getElementsByTagName("head")[0],b=l.createElement("script");b.type="text/javascript";b.src=c;b.onload=a;d.appendChild(b)},inArray:function(c,
16
+ a){return a.indexOf?a.indexOf(c):p.indexOf.call(a,c)},adapterRun:function(c,a){return parseInt(HighchartsAdapter._getStyle(c,a),10)},grep:function(c,a){return p.filter.call(c,a)},map:function(c,a){for(var d=[],b=0,e=c.length;b<e;b++)d[b]=a.call(c[b],c[b],b,c);return d},offset:function(c){for(var a=0,d=0;c;)a+=c.offsetLeft,d+=c.offsetTop,c=c.offsetParent;return{left:a,top:d}},addEvent:function(c,a,d){o(c).bind(a,d)},removeEvent:function(c,a,d){o(c).unbind(a,d)},fireEvent:function(c,a,d,b){var e;l.createEvent&&
17
+ (c.dispatchEvent||c.fireEvent)?(e=l.createEvent("Events"),e.initEvent(a,!0,!0),e.target=c,Highcharts.extend(e,d),c.dispatchEvent?c.dispatchEvent(e):c.fireEvent(a,e)):c.HCExtended===!0&&(d=d||{},c.trigger(a,d));d&&d.defaultPrevented&&(b=null);b&&b(d)},washMouseEvent:function(c){return c},stop:function(c){c.stopAnimation=!0},each:function(c,a){return Array.prototype.forEach.call(c,a)}}}();
@@ -0,0 +1,583 @@
1
+ /**
2
+ * @license Highcharts JS v3.0.6 (2013-10-04)
3
+ *
4
+ * Standalone Highcharts Framework
5
+ *
6
+ * License: MIT License
7
+ */
8
+
9
+
10
+ /*global Highcharts */
11
+ var HighchartsAdapter = (function () {
12
+
13
+ var UNDEFINED,
14
+ doc = document,
15
+ emptyArray = [],
16
+ timers = [],
17
+ timerId,
18
+ Fx;
19
+
20
+ Math.easeInOutSine = function (t, b, c, d) {
21
+ return -c / 2 * (Math.cos(Math.PI * t / d) - 1) + b;
22
+ };
23
+
24
+
25
+
26
+ /**
27
+ * Extend given object with custom events
28
+ */
29
+ function augment(obj) {
30
+ function removeOneEvent(el, type, fn) {
31
+ el.removeEventListener(type, fn, false);
32
+ }
33
+
34
+ function IERemoveOneEvent(el, type, fn) {
35
+ fn = el.HCProxiedMethods[fn.toString()];
36
+ el.detachEvent('on' + type, fn);
37
+ }
38
+
39
+ function removeAllEvents(el, type) {
40
+ var events = el.HCEvents,
41
+ remove,
42
+ types,
43
+ len,
44
+ n;
45
+
46
+ if (el.removeEventListener) {
47
+ remove = removeOneEvent;
48
+ } else if (el.attachEvent) {
49
+ remove = IERemoveOneEvent;
50
+ } else {
51
+ return; // break on non-DOM events
52
+ }
53
+
54
+
55
+ if (type) {
56
+ types = {};
57
+ types[type] = true;
58
+ } else {
59
+ types = events;
60
+ }
61
+
62
+ for (n in types) {
63
+ if (events[n]) {
64
+ len = events[n].length;
65
+ while (len--) {
66
+ remove(el, n, events[n][len]);
67
+ }
68
+ }
69
+ }
70
+ }
71
+
72
+ if (!obj.HCExtended) {
73
+ Highcharts.extend(obj, {
74
+ HCExtended: true,
75
+
76
+ HCEvents: {},
77
+
78
+ bind: function (name, fn) {
79
+ var el = this,
80
+ events = this.HCEvents,
81
+ wrappedFn;
82
+
83
+ // handle DOM events in modern browsers
84
+ if (el.addEventListener) {
85
+ el.addEventListener(name, fn, false);
86
+
87
+ // handle old IE implementation
88
+ } else if (el.attachEvent) {
89
+
90
+ wrappedFn = function (e) {
91
+ fn.call(el, e);
92
+ };
93
+
94
+ if (!el.HCProxiedMethods) {
95
+ el.HCProxiedMethods = {};
96
+ }
97
+
98
+ // link wrapped fn with original fn, so we can get this in removeEvent
99
+ el.HCProxiedMethods[fn.toString()] = wrappedFn;
100
+
101
+ el.attachEvent('on' + name, wrappedFn);
102
+ }
103
+
104
+
105
+ if (events[name] === UNDEFINED) {
106
+ events[name] = [];
107
+ }
108
+
109
+ events[name].push(fn);
110
+ },
111
+
112
+ unbind: function (name, fn) {
113
+ var events,
114
+ index;
115
+
116
+ if (name) {
117
+ events = this.HCEvents[name] || [];
118
+ if (fn) {
119
+ index = HighchartsAdapter.inArray(fn, events);
120
+ if (index > -1) {
121
+ events.splice(index, 1);
122
+ this.HCEvents[name] = events;
123
+ }
124
+ if (this.removeEventListener) {
125
+ removeOneEvent(this, name, fn);
126
+ } else if (this.attachEvent) {
127
+ IERemoveOneEvent(this, name, fn);
128
+ }
129
+ } else {
130
+ removeAllEvents(this, name);
131
+ this.HCEvents[name] = [];
132
+ }
133
+ } else {
134
+ removeAllEvents(this);
135
+ this.HCEvents = {};
136
+ }
137
+ },
138
+
139
+ trigger: function (name, args) {
140
+ var events = this.HCEvents[name] || [],
141
+ target = this,
142
+ len = events.length,
143
+ i,
144
+ preventDefault,
145
+ fn;
146
+
147
+ // Attach a simple preventDefault function to skip default handler if called
148
+ preventDefault = function () {
149
+ args.defaultPrevented = true;
150
+ };
151
+
152
+ for (i = 0; i < len; i++) {
153
+ fn = events[i];
154
+
155
+ // args is never null here
156
+ if (args.stopped) {
157
+ return;
158
+ }
159
+
160
+ args.preventDefault = preventDefault;
161
+ args.target = target;
162
+ args.type = name; // #2297
163
+
164
+ // If the event handler return false, prevent the default handler from executing
165
+ if (fn.call(this, args) === false) {
166
+ args.preventDefault();
167
+ }
168
+ }
169
+ }
170
+ });
171
+ }
172
+
173
+ return obj;
174
+ }
175
+
176
+
177
+ return {
178
+ /**
179
+ * Initialize the adapter. This is run once as Highcharts is first run.
180
+ */
181
+ init: function (pathAnim) {
182
+
183
+ /**
184
+ * Compatibility section to add support for legacy IE. This can be removed if old IE
185
+ * support is not needed.
186
+ */
187
+ if (!doc.defaultView) {
188
+ this._getStyle = function (el, prop) {
189
+ var val;
190
+ if (el.style[prop]) {
191
+ return el.style[prop];
192
+ } else {
193
+ if (prop === 'opacity') {
194
+ prop = 'filter';
195
+ }
196
+ /*jslint unparam: true*/
197
+ val = el.currentStyle[prop.replace(/\-(\w)/g, function (a, b) { return b.toUpperCase(); })];
198
+ if (prop === 'filter') {
199
+ val = val.replace(
200
+ /alpha\(opacity=([0-9]+)\)/,
201
+ function (a, b) {
202
+ return b / 100;
203
+ }
204
+ );
205
+ }
206
+ /*jslint unparam: false*/
207
+ return val === '' ? 1 : val;
208
+ }
209
+ };
210
+ this.adapterRun = function (elem, method) {
211
+ var alias = { width: 'clientWidth', height: 'clientHeight' }[method];
212
+
213
+ if (alias) {
214
+ elem.style.zoom = 1;
215
+ return elem[alias] - 2 * parseInt(HighchartsAdapter._getStyle(elem, 'padding'), 10);
216
+ }
217
+ };
218
+ }
219
+
220
+ if (!Array.prototype.forEach) {
221
+ this.each = function (arr, fn) { // legacy
222
+ var i = 0,
223
+ len = arr.length;
224
+ for (; i < len; i++) {
225
+ if (fn.call(arr[i], arr[i], i, arr) === false) {
226
+ return i;
227
+ }
228
+ }
229
+ };
230
+ }
231
+
232
+ if (!Array.prototype.indexOf) {
233
+ this.inArray = function (item, arr) {
234
+ var len,
235
+ i = 0;
236
+
237
+ if (arr) {
238
+ len = arr.length;
239
+
240
+ for (; i < len; i++) {
241
+ if (arr[i] === item) {
242
+ return i;
243
+ }
244
+ }
245
+ }
246
+
247
+ return -1;
248
+ };
249
+ }
250
+
251
+ if (!Array.prototype.filter) {
252
+ this.grep = function (elements, callback) {
253
+ var ret = [],
254
+ i = 0,
255
+ length = elements.length;
256
+
257
+ for (; i < length; i++) {
258
+ if (!!callback(elements[i], i)) {
259
+ ret.push(elements[i]);
260
+ }
261
+ }
262
+
263
+ return ret;
264
+ };
265
+ }
266
+
267
+ //--- End compatibility section ---
268
+
269
+
270
+ /**
271
+ * Start of animation specific code
272
+ */
273
+ Fx = function (elem, options, prop) {
274
+ this.options = options;
275
+ this.elem = elem;
276
+ this.prop = prop;
277
+ };
278
+ Fx.prototype = {
279
+
280
+ update: function () {
281
+ var styles,
282
+ paths = this.paths,
283
+ elem = this.elem,
284
+ elemelem = elem.element; // if destroyed, it is null
285
+
286
+ // Animating a path definition on SVGElement
287
+ if (paths && elemelem) {
288
+ elem.attr('d', pathAnim.step(paths[0], paths[1], this.now, this.toD));
289
+
290
+ // Other animations on SVGElement
291
+ } else if (elem.attr) {
292
+ if (elemelem) {
293
+ elem.attr(this.prop, this.now);
294
+ }
295
+
296
+ // HTML styles
297
+ } else {
298
+ styles = {};
299
+ styles[elem] = this.now + this.unit;
300
+ Highcharts.css(elem, styles);
301
+ }
302
+
303
+ if (this.options.step) {
304
+ this.options.step.call(this.elem, this.now, this);
305
+ }
306
+
307
+ },
308
+ custom: function (from, to, unit) {
309
+ var self = this,
310
+ t = function (gotoEnd) {
311
+ return self.step(gotoEnd);
312
+ },
313
+ i;
314
+
315
+ this.startTime = +new Date();
316
+ this.start = from;
317
+ this.end = to;
318
+ this.unit = unit;
319
+ this.now = this.start;
320
+ this.pos = this.state = 0;
321
+
322
+ t.elem = this.elem;
323
+
324
+ if (t() && timers.push(t) === 1) {
325
+ timerId = setInterval(function () {
326
+
327
+ for (i = 0; i < timers.length; i++) {
328
+ if (!timers[i]()) {
329
+ timers.splice(i--, 1);
330
+ }
331
+ }
332
+
333
+ if (!timers.length) {
334
+ clearInterval(timerId);
335
+ }
336
+ }, 13);
337
+ }
338
+ },
339
+
340
+ step: function (gotoEnd) {
341
+ var t = +new Date(),
342
+ ret,
343
+ done,
344
+ options = this.options,
345
+ i;
346
+
347
+ if (this.elem.stopAnimation) {
348
+ ret = false;
349
+
350
+ } else if (gotoEnd || t >= options.duration + this.startTime) {
351
+ this.now = this.end;
352
+ this.pos = this.state = 1;
353
+ this.update();
354
+
355
+ this.options.curAnim[this.prop] = true;
356
+
357
+ done = true;
358
+ for (i in options.curAnim) {
359
+ if (options.curAnim[i] !== true) {
360
+ done = false;
361
+ }
362
+ }
363
+
364
+ if (done) {
365
+ if (options.complete) {
366
+ options.complete.call(this.elem);
367
+ }
368
+ }
369
+ ret = false;
370
+
371
+ } else {
372
+ var n = t - this.startTime;
373
+ this.state = n / options.duration;
374
+ this.pos = options.easing(n, 0, 1, options.duration);
375
+ this.now = this.start + ((this.end - this.start) * this.pos);
376
+ this.update();
377
+ ret = true;
378
+ }
379
+ return ret;
380
+ }
381
+ };
382
+
383
+ /**
384
+ * The adapter animate method
385
+ */
386
+ this.animate = function (el, prop, opt) {
387
+ var start,
388
+ unit = '',
389
+ end,
390
+ fx,
391
+ args,
392
+ name;
393
+
394
+ el.stopAnimation = false; // ready for new
395
+
396
+ if (typeof opt !== 'object' || opt === null) {
397
+ args = arguments;
398
+ opt = {
399
+ duration: args[2],
400
+ easing: args[3],
401
+ complete: args[4]
402
+ };
403
+ }
404
+ if (typeof opt.duration !== 'number') {
405
+ opt.duration = 400;
406
+ }
407
+ opt.easing = Math[opt.easing] || Math.easeInOutSine;
408
+ opt.curAnim = Highcharts.extend({}, prop);
409
+
410
+ for (name in prop) {
411
+ fx = new Fx(el, opt, name);
412
+ end = null;
413
+
414
+ if (name === 'd') {
415
+ fx.paths = pathAnim.init(
416
+ el,
417
+ el.d,
418
+ prop.d
419
+ );
420
+ fx.toD = prop.d;
421
+ start = 0;
422
+ end = 1;
423
+ } else if (el.attr) {
424
+ start = el.attr(name);
425
+ } else {
426
+ start = parseFloat(HighchartsAdapter._getStyle(el, name)) || 0;
427
+ if (name !== 'opacity') {
428
+ unit = 'px';
429
+ }
430
+ }
431
+
432
+ if (!end) {
433
+ end = parseFloat(prop[name]);
434
+ }
435
+ fx.custom(start, end, unit);
436
+ }
437
+ };
438
+ },
439
+
440
+ /**
441
+ * Internal method to return CSS value for given element and property
442
+ */
443
+ _getStyle: function (el, prop) {
444
+ return window.getComputedStyle(el).getPropertyValue(prop);
445
+ },
446
+
447
+ /**
448
+ * Downloads a script and executes a callback when done.
449
+ * @param {String} scriptLocation
450
+ * @param {Function} callback
451
+ */
452
+ getScript: function (scriptLocation, callback) {
453
+ // We cannot assume that Assets class from mootools-more is available so instead insert a script tag to download script.
454
+ var head = doc.getElementsByTagName('head')[0],
455
+ script = doc.createElement('script');
456
+
457
+ script.type = 'text/javascript';
458
+ script.src = scriptLocation;
459
+ script.onload = callback;
460
+
461
+ head.appendChild(script);
462
+ },
463
+
464
+ /**
465
+ * Return the index of an item in an array, or -1 if not found
466
+ */
467
+ inArray: function (item, arr) {
468
+ return arr.indexOf ? arr.indexOf(item) : emptyArray.indexOf.call(arr, item);
469
+ },
470
+
471
+
472
+ /**
473
+ * A direct link to adapter methods
474
+ */
475
+ adapterRun: function (elem, method) {
476
+ return parseInt(HighchartsAdapter._getStyle(elem, method), 10);
477
+ },
478
+
479
+ /**
480
+ * Filter an array
481
+ */
482
+ grep: function (elements, callback) {
483
+ return emptyArray.filter.call(elements, callback);
484
+ },
485
+
486
+ /**
487
+ * Map an array
488
+ */
489
+ map: function (arr, fn) {
490
+ var results = [], i = 0, len = arr.length;
491
+
492
+ for (; i < len; i++) {
493
+ results[i] = fn.call(arr[i], arr[i], i, arr);
494
+ }
495
+
496
+ return results;
497
+ },
498
+
499
+ offset: function (el) {
500
+ var left = 0,
501
+ top = 0;
502
+
503
+ while (el) {
504
+ left += el.offsetLeft;
505
+ top += el.offsetTop;
506
+ el = el.offsetParent;
507
+ }
508
+
509
+ return {
510
+ left: left,
511
+ top: top
512
+ };
513
+ },
514
+
515
+ /**
516
+ * Add an event listener
517
+ */
518
+ addEvent: function (el, type, fn) {
519
+ augment(el).bind(type, fn);
520
+ },
521
+
522
+ /**
523
+ * Remove event added with addEvent
524
+ */
525
+ removeEvent: function (el, type, fn) {
526
+ augment(el).unbind(type, fn);
527
+ },
528
+
529
+ /**
530
+ * Fire an event on a custom object
531
+ */
532
+ fireEvent: function (el, type, eventArguments, defaultFunction) {
533
+ var e;
534
+
535
+ if (doc.createEvent && (el.dispatchEvent || el.fireEvent)) {
536
+ e = doc.createEvent('Events');
537
+ e.initEvent(type, true, true);
538
+ e.target = el;
539
+
540
+ Highcharts.extend(e, eventArguments);
541
+
542
+ if (el.dispatchEvent) {
543
+ el.dispatchEvent(e);
544
+ } else {
545
+ el.fireEvent(type, e);
546
+ }
547
+
548
+ } else if (el.HCExtended === true) {
549
+ eventArguments = eventArguments || {};
550
+ el.trigger(type, eventArguments);
551
+ }
552
+
553
+ if (eventArguments && eventArguments.defaultPrevented) {
554
+ defaultFunction = null;
555
+ }
556
+
557
+ if (defaultFunction) {
558
+ defaultFunction(eventArguments);
559
+ }
560
+ },
561
+
562
+ washMouseEvent: function (e) {
563
+ return e;
564
+ },
565
+
566
+
567
+ /**
568
+ * Stop running animation
569
+ */
570
+ stop: function (el) {
571
+ el.stopAnimation = true;
572
+ },
573
+
574
+ /**
575
+ * Utility for iterating over an array. Parameters are reversed compared to jQuery.
576
+ * @param {Array} arr
577
+ * @param {Function} fn
578
+ */
579
+ each: function (arr, fn) { // modern browsers
580
+ return Array.prototype.forEach.call(arr, fn);
581
+ }
582
+ };
583
+ }());