cable 0.9.16 → 0.9.17

Sign up to get free protection for your applications and to get access to all the features.
Files changed (261) hide show
  1. data/VERSION +1 -1
  2. data/app/controllers/admin_controller.rb +1 -1
  3. data/app/views/layouts/admin.html.erb +3 -1
  4. data/lib/generators/cable/install_generator.rb +1 -0
  5. data/lib/generators/cable/menu/templates/erb/menus/_menu.html.erb +1 -1
  6. data/lib/generators/cable/menu/templates/erb/menus/_resources.html.erb +1 -1
  7. data/lib/generators/cable/menu/templates/erb/menus/show.html.erb +1 -1
  8. data/public/javascripts/admin.js +16 -16
  9. metadata +2 -254
  10. data/public/javascripts/tinymce/jquery.tinymce.js +0 -1
  11. data/public/javascripts/tinymce/langs/en.js +0 -222
  12. data/public/javascripts/tinymce/license.txt +0 -504
  13. data/public/javascripts/tinymce/plugins/advhr/css/advhr.css +0 -5
  14. data/public/javascripts/tinymce/plugins/advhr/editor_plugin.js +0 -1
  15. data/public/javascripts/tinymce/plugins/advhr/editor_plugin_src.js +0 -57
  16. data/public/javascripts/tinymce/plugins/advhr/js/rule.js +0 -43
  17. data/public/javascripts/tinymce/plugins/advhr/langs/en_dlg.js +0 -7
  18. data/public/javascripts/tinymce/plugins/advhr/rule.htm +0 -58
  19. data/public/javascripts/tinymce/plugins/advimage/css/advimage.css +0 -13
  20. data/public/javascripts/tinymce/plugins/advimage/editor_plugin.js +0 -1
  21. data/public/javascripts/tinymce/plugins/advimage/editor_plugin_src.js +0 -50
  22. data/public/javascripts/tinymce/plugins/advimage/image.htm +0 -235
  23. data/public/javascripts/tinymce/plugins/advimage/img/sample.gif +0 -0
  24. data/public/javascripts/tinymce/plugins/advimage/js/image.js +0 -445
  25. data/public/javascripts/tinymce/plugins/advimage/langs/en_dlg.js +0 -45
  26. data/public/javascripts/tinymce/plugins/advlink/css/advlink.css +0 -8
  27. data/public/javascripts/tinymce/plugins/advlink/editor_plugin.js +0 -1
  28. data/public/javascripts/tinymce/plugins/advlink/editor_plugin_src.js +0 -61
  29. data/public/javascripts/tinymce/plugins/advlink/js/advlink.js +0 -523
  30. data/public/javascripts/tinymce/plugins/advlink/langs/en_dlg.js +0 -54
  31. data/public/javascripts/tinymce/plugins/advlink/link.htm +0 -338
  32. data/public/javascripts/tinymce/plugins/advlist/editor_plugin.js +0 -1
  33. data/public/javascripts/tinymce/plugins/advlist/editor_plugin_src.js +0 -154
  34. data/public/javascripts/tinymce/plugins/autolink/editor_plugin.js +0 -1
  35. data/public/javascripts/tinymce/plugins/autolink/editor_plugin_src.js +0 -169
  36. data/public/javascripts/tinymce/plugins/autoresize/editor_plugin.js +0 -1
  37. data/public/javascripts/tinymce/plugins/autoresize/editor_plugin_src.js +0 -119
  38. data/public/javascripts/tinymce/plugins/autosave/editor_plugin.js +0 -1
  39. data/public/javascripts/tinymce/plugins/autosave/editor_plugin_src.js +0 -431
  40. data/public/javascripts/tinymce/plugins/autosave/langs/en.js +0 -4
  41. data/public/javascripts/tinymce/plugins/bbcode/editor_plugin.js +0 -1
  42. data/public/javascripts/tinymce/plugins/bbcode/editor_plugin_src.js +0 -120
  43. data/public/javascripts/tinymce/plugins/contextmenu/editor_plugin.js +0 -1
  44. data/public/javascripts/tinymce/plugins/contextmenu/editor_plugin_src.js +0 -156
  45. data/public/javascripts/tinymce/plugins/directionality/editor_plugin.js +0 -1
  46. data/public/javascripts/tinymce/plugins/directionality/editor_plugin_src.js +0 -82
  47. data/public/javascripts/tinymce/plugins/emotions/editor_plugin.js +0 -1
  48. data/public/javascripts/tinymce/plugins/emotions/editor_plugin_src.js +0 -43
  49. data/public/javascripts/tinymce/plugins/emotions/emotions.htm +0 -41
  50. data/public/javascripts/tinymce/plugins/emotions/img/smiley-cool.gif +0 -0
  51. data/public/javascripts/tinymce/plugins/emotions/img/smiley-cry.gif +0 -0
  52. data/public/javascripts/tinymce/plugins/emotions/img/smiley-embarassed.gif +0 -0
  53. data/public/javascripts/tinymce/plugins/emotions/img/smiley-foot-in-mouth.gif +0 -0
  54. data/public/javascripts/tinymce/plugins/emotions/img/smiley-frown.gif +0 -0
  55. data/public/javascripts/tinymce/plugins/emotions/img/smiley-innocent.gif +0 -0
  56. data/public/javascripts/tinymce/plugins/emotions/img/smiley-kiss.gif +0 -0
  57. data/public/javascripts/tinymce/plugins/emotions/img/smiley-laughing.gif +0 -0
  58. data/public/javascripts/tinymce/plugins/emotions/img/smiley-money-mouth.gif +0 -0
  59. data/public/javascripts/tinymce/plugins/emotions/img/smiley-sealed.gif +0 -0
  60. data/public/javascripts/tinymce/plugins/emotions/img/smiley-smile.gif +0 -0
  61. data/public/javascripts/tinymce/plugins/emotions/img/smiley-surprised.gif +0 -0
  62. data/public/javascripts/tinymce/plugins/emotions/img/smiley-tongue-out.gif +0 -0
  63. data/public/javascripts/tinymce/plugins/emotions/img/smiley-undecided.gif +0 -0
  64. data/public/javascripts/tinymce/plugins/emotions/img/smiley-wink.gif +0 -0
  65. data/public/javascripts/tinymce/plugins/emotions/img/smiley-yell.gif +0 -0
  66. data/public/javascripts/tinymce/plugins/emotions/js/emotions.js +0 -22
  67. data/public/javascripts/tinymce/plugins/emotions/langs/en_dlg.js +0 -20
  68. data/public/javascripts/tinymce/plugins/example/dialog.htm +0 -22
  69. data/public/javascripts/tinymce/plugins/example/editor_plugin.js +0 -1
  70. data/public/javascripts/tinymce/plugins/example/editor_plugin_src.js +0 -84
  71. data/public/javascripts/tinymce/plugins/example/img/example.gif +0 -0
  72. data/public/javascripts/tinymce/plugins/example/js/dialog.js +0 -19
  73. data/public/javascripts/tinymce/plugins/example/langs/en.js +0 -3
  74. data/public/javascripts/tinymce/plugins/example/langs/en_dlg.js +0 -3
  75. data/public/javascripts/tinymce/plugins/fullpage/css/fullpage.css +0 -184
  76. data/public/javascripts/tinymce/plugins/fullpage/editor_plugin.js +0 -1
  77. data/public/javascripts/tinymce/plugins/fullpage/editor_plugin_src.js +0 -198
  78. data/public/javascripts/tinymce/plugins/fullpage/fullpage.htm +0 -571
  79. data/public/javascripts/tinymce/plugins/fullpage/js/fullpage.js +0 -497
  80. data/public/javascripts/tinymce/plugins/fullpage/langs/en_dlg.js +0 -85
  81. data/public/javascripts/tinymce/plugins/fullscreen/editor_plugin.js +0 -1
  82. data/public/javascripts/tinymce/plugins/fullscreen/editor_plugin_src.js +0 -159
  83. data/public/javascripts/tinymce/plugins/fullscreen/fullscreen.htm +0 -109
  84. data/public/javascripts/tinymce/plugins/iespell/editor_plugin.js +0 -1
  85. data/public/javascripts/tinymce/plugins/iespell/editor_plugin_src.js +0 -54
  86. data/public/javascripts/tinymce/plugins/inlinepopups/editor_plugin.js +0 -1
  87. data/public/javascripts/tinymce/plugins/inlinepopups/editor_plugin_src.js +0 -696
  88. data/public/javascripts/tinymce/plugins/inlinepopups/skins/clearlooks2/img/alert.gif +0 -0
  89. data/public/javascripts/tinymce/plugins/inlinepopups/skins/clearlooks2/img/button.gif +0 -0
  90. data/public/javascripts/tinymce/plugins/inlinepopups/skins/clearlooks2/img/buttons.gif +0 -0
  91. data/public/javascripts/tinymce/plugins/inlinepopups/skins/clearlooks2/img/confirm.gif +0 -0
  92. data/public/javascripts/tinymce/plugins/inlinepopups/skins/clearlooks2/img/corners.gif +0 -0
  93. data/public/javascripts/tinymce/plugins/inlinepopups/skins/clearlooks2/img/horizontal.gif +0 -0
  94. data/public/javascripts/tinymce/plugins/inlinepopups/skins/clearlooks2/img/vertical.gif +0 -0
  95. data/public/javascripts/tinymce/plugins/inlinepopups/skins/clearlooks2/window.css +0 -90
  96. data/public/javascripts/tinymce/plugins/inlinepopups/template.htm +0 -387
  97. data/public/javascripts/tinymce/plugins/insertdatetime/editor_plugin.js +0 -1
  98. data/public/javascripts/tinymce/plugins/insertdatetime/editor_plugin_src.js +0 -83
  99. data/public/javascripts/tinymce/plugins/layer/editor_plugin.js +0 -1
  100. data/public/javascripts/tinymce/plugins/layer/editor_plugin_src.js +0 -214
  101. data/public/javascripts/tinymce/plugins/legacyoutput/editor_plugin.js +0 -1
  102. data/public/javascripts/tinymce/plugins/legacyoutput/editor_plugin_src.js +0 -139
  103. data/public/javascripts/tinymce/plugins/lists/editor_plugin.js +0 -1
  104. data/public/javascripts/tinymce/plugins/lists/editor_plugin_src.js +0 -617
  105. data/public/javascripts/tinymce/plugins/media/css/media.css +0 -17
  106. data/public/javascripts/tinymce/plugins/media/editor_plugin.js +0 -1
  107. data/public/javascripts/tinymce/plugins/media/editor_plugin_src.js +0 -770
  108. data/public/javascripts/tinymce/plugins/media/js/embed.js +0 -73
  109. data/public/javascripts/tinymce/plugins/media/js/media.js +0 -354
  110. data/public/javascripts/tinymce/plugins/media/langs/en_dlg.js +0 -109
  111. data/public/javascripts/tinymce/plugins/media/media.htm +0 -812
  112. data/public/javascripts/tinymce/plugins/media/moxieplayer.swf +0 -0
  113. data/public/javascripts/tinymce/plugins/nonbreaking/editor_plugin.js +0 -1
  114. data/public/javascripts/tinymce/plugins/nonbreaking/editor_plugin_src.js +0 -53
  115. data/public/javascripts/tinymce/plugins/noneditable/editor_plugin.js +0 -1
  116. data/public/javascripts/tinymce/plugins/noneditable/editor_plugin_src.js +0 -90
  117. data/public/javascripts/tinymce/plugins/pagebreak/editor_plugin.js +0 -1
  118. data/public/javascripts/tinymce/plugins/pagebreak/editor_plugin_src.js +0 -74
  119. data/public/javascripts/tinymce/plugins/paste/editor_plugin.js +0 -1
  120. data/public/javascripts/tinymce/plugins/paste/editor_plugin_src.js +0 -930
  121. data/public/javascripts/tinymce/plugins/paste/js/pastetext.js +0 -36
  122. data/public/javascripts/tinymce/plugins/paste/js/pasteword.js +0 -51
  123. data/public/javascripts/tinymce/plugins/paste/langs/en_dlg.js +0 -5
  124. data/public/javascripts/tinymce/plugins/paste/pastetext.htm +0 -27
  125. data/public/javascripts/tinymce/plugins/paste/pasteword.htm +0 -21
  126. data/public/javascripts/tinymce/plugins/preview/editor_plugin.js +0 -1
  127. data/public/javascripts/tinymce/plugins/preview/editor_plugin_src.js +0 -53
  128. data/public/javascripts/tinymce/plugins/preview/example.html +0 -28
  129. data/public/javascripts/tinymce/plugins/preview/jscripts/embed.js +0 -73
  130. data/public/javascripts/tinymce/plugins/preview/preview.html +0 -17
  131. data/public/javascripts/tinymce/plugins/print/editor_plugin.js +0 -1
  132. data/public/javascripts/tinymce/plugins/print/editor_plugin_src.js +0 -34
  133. data/public/javascripts/tinymce/plugins/save/editor_plugin.js +0 -1
  134. data/public/javascripts/tinymce/plugins/save/editor_plugin_src.js +0 -101
  135. data/public/javascripts/tinymce/plugins/searchreplace/css/searchreplace.css +0 -6
  136. data/public/javascripts/tinymce/plugins/searchreplace/editor_plugin.js +0 -1
  137. data/public/javascripts/tinymce/plugins/searchreplace/editor_plugin_src.js +0 -61
  138. data/public/javascripts/tinymce/plugins/searchreplace/js/searchreplace.js +0 -142
  139. data/public/javascripts/tinymce/plugins/searchreplace/langs/en_dlg.js +0 -16
  140. data/public/javascripts/tinymce/plugins/searchreplace/searchreplace.htm +0 -100
  141. data/public/javascripts/tinymce/plugins/spellchecker/css/content.css +0 -1
  142. data/public/javascripts/tinymce/plugins/spellchecker/editor_plugin.js +0 -1
  143. data/public/javascripts/tinymce/plugins/spellchecker/editor_plugin_src.js +0 -435
  144. data/public/javascripts/tinymce/plugins/spellchecker/img/wline.gif +0 -0
  145. data/public/javascripts/tinymce/plugins/style/css/props.css +0 -13
  146. data/public/javascripts/tinymce/plugins/style/editor_plugin.js +0 -1
  147. data/public/javascripts/tinymce/plugins/style/editor_plugin_src.js +0 -55
  148. data/public/javascripts/tinymce/plugins/style/js/props.js +0 -635
  149. data/public/javascripts/tinymce/plugins/style/langs/en_dlg.js +0 -70
  150. data/public/javascripts/tinymce/plugins/style/props.htm +0 -838
  151. data/public/javascripts/tinymce/plugins/tabfocus/editor_plugin.js +0 -1
  152. data/public/javascripts/tinymce/plugins/tabfocus/editor_plugin_src.js +0 -114
  153. data/public/javascripts/tinymce/plugins/table/cell.htm +0 -178
  154. data/public/javascripts/tinymce/plugins/table/css/cell.css +0 -17
  155. data/public/javascripts/tinymce/plugins/table/css/row.css +0 -25
  156. data/public/javascripts/tinymce/plugins/table/css/table.css +0 -13
  157. data/public/javascripts/tinymce/plugins/table/editor_plugin.js +0 -1
  158. data/public/javascripts/tinymce/plugins/table/editor_plugin_src.js +0 -1198
  159. data/public/javascripts/tinymce/plugins/table/js/cell.js +0 -284
  160. data/public/javascripts/tinymce/plugins/table/js/merge_cells.js +0 -27
  161. data/public/javascripts/tinymce/plugins/table/js/row.js +0 -232
  162. data/public/javascripts/tinymce/plugins/table/js/table.js +0 -450
  163. data/public/javascripts/tinymce/plugins/table/langs/en_dlg.js +0 -74
  164. data/public/javascripts/tinymce/plugins/table/merge_cells.htm +0 -32
  165. data/public/javascripts/tinymce/plugins/table/row.htm +0 -157
  166. data/public/javascripts/tinymce/plugins/table/table.htm +0 -188
  167. data/public/javascripts/tinymce/plugins/template/blank.htm +0 -12
  168. data/public/javascripts/tinymce/plugins/template/css/template.css +0 -23
  169. data/public/javascripts/tinymce/plugins/template/editor_plugin.js +0 -1
  170. data/public/javascripts/tinymce/plugins/template/editor_plugin_src.js +0 -159
  171. data/public/javascripts/tinymce/plugins/template/js/template.js +0 -106
  172. data/public/javascripts/tinymce/plugins/template/langs/en_dlg.js +0 -15
  173. data/public/javascripts/tinymce/plugins/template/template.htm +0 -31
  174. data/public/javascripts/tinymce/plugins/visualchars/editor_plugin.js +0 -1
  175. data/public/javascripts/tinymce/plugins/visualchars/editor_plugin_src.js +0 -83
  176. data/public/javascripts/tinymce/plugins/wordcount/editor_plugin.js +0 -1
  177. data/public/javascripts/tinymce/plugins/wordcount/editor_plugin_src.js +0 -114
  178. data/public/javascripts/tinymce/plugins/xhtmlxtras/abbr.htm +0 -142
  179. data/public/javascripts/tinymce/plugins/xhtmlxtras/acronym.htm +0 -142
  180. data/public/javascripts/tinymce/plugins/xhtmlxtras/attributes.htm +0 -149
  181. data/public/javascripts/tinymce/plugins/xhtmlxtras/cite.htm +0 -142
  182. data/public/javascripts/tinymce/plugins/xhtmlxtras/css/attributes.css +0 -11
  183. data/public/javascripts/tinymce/plugins/xhtmlxtras/css/popup.css +0 -9
  184. data/public/javascripts/tinymce/plugins/xhtmlxtras/del.htm +0 -162
  185. data/public/javascripts/tinymce/plugins/xhtmlxtras/editor_plugin.js +0 -1
  186. data/public/javascripts/tinymce/plugins/xhtmlxtras/editor_plugin_src.js +0 -132
  187. data/public/javascripts/tinymce/plugins/xhtmlxtras/ins.htm +0 -162
  188. data/public/javascripts/tinymce/plugins/xhtmlxtras/js/abbr.js +0 -28
  189. data/public/javascripts/tinymce/plugins/xhtmlxtras/js/acronym.js +0 -28
  190. data/public/javascripts/tinymce/plugins/xhtmlxtras/js/attributes.js +0 -125
  191. data/public/javascripts/tinymce/plugins/xhtmlxtras/js/cite.js +0 -28
  192. data/public/javascripts/tinymce/plugins/xhtmlxtras/js/del.js +0 -53
  193. data/public/javascripts/tinymce/plugins/xhtmlxtras/js/element_common.js +0 -229
  194. data/public/javascripts/tinymce/plugins/xhtmlxtras/js/ins.js +0 -53
  195. data/public/javascripts/tinymce/plugins/xhtmlxtras/langs/en_dlg.js +0 -32
  196. data/public/javascripts/tinymce/themes/advanced/about.htm +0 -52
  197. data/public/javascripts/tinymce/themes/advanced/anchor.htm +0 -26
  198. data/public/javascripts/tinymce/themes/advanced/charmap.htm +0 -51
  199. data/public/javascripts/tinymce/themes/advanced/color_picker.htm +0 -74
  200. data/public/javascripts/tinymce/themes/advanced/editor_template.js +0 -1
  201. data/public/javascripts/tinymce/themes/advanced/editor_template_src.js +0 -1360
  202. data/public/javascripts/tinymce/themes/advanced/image.htm +0 -80
  203. data/public/javascripts/tinymce/themes/advanced/img/colorpicker.jpg +0 -0
  204. data/public/javascripts/tinymce/themes/advanced/img/flash.gif +0 -0
  205. data/public/javascripts/tinymce/themes/advanced/img/icons.gif +0 -0
  206. data/public/javascripts/tinymce/themes/advanced/img/iframe.gif +0 -0
  207. data/public/javascripts/tinymce/themes/advanced/img/pagebreak.gif +0 -0
  208. data/public/javascripts/tinymce/themes/advanced/img/quicktime.gif +0 -0
  209. data/public/javascripts/tinymce/themes/advanced/img/realmedia.gif +0 -0
  210. data/public/javascripts/tinymce/themes/advanced/img/shockwave.gif +0 -0
  211. data/public/javascripts/tinymce/themes/advanced/img/trans.gif +0 -0
  212. data/public/javascripts/tinymce/themes/advanced/img/video.gif +0 -0
  213. data/public/javascripts/tinymce/themes/advanced/img/windowsmedia.gif +0 -0
  214. data/public/javascripts/tinymce/themes/advanced/js/about.js +0 -73
  215. data/public/javascripts/tinymce/themes/advanced/js/anchor.js +0 -42
  216. data/public/javascripts/tinymce/themes/advanced/js/charmap.js +0 -355
  217. data/public/javascripts/tinymce/themes/advanced/js/color_picker.js +0 -329
  218. data/public/javascripts/tinymce/themes/advanced/js/image.js +0 -247
  219. data/public/javascripts/tinymce/themes/advanced/js/link.js +0 -153
  220. data/public/javascripts/tinymce/themes/advanced/js/source_editor.js +0 -56
  221. data/public/javascripts/tinymce/themes/advanced/langs/en.js +0 -68
  222. data/public/javascripts/tinymce/themes/advanced/langs/en_dlg.js +0 -54
  223. data/public/javascripts/tinymce/themes/advanced/link.htm +0 -57
  224. data/public/javascripts/tinymce/themes/advanced/shortcuts.htm +0 -47
  225. data/public/javascripts/tinymce/themes/advanced/skins/default/content.css +0 -47
  226. data/public/javascripts/tinymce/themes/advanced/skins/default/dialog.css +0 -117
  227. data/public/javascripts/tinymce/themes/advanced/skins/default/img/buttons.png +0 -0
  228. data/public/javascripts/tinymce/themes/advanced/skins/default/img/items.gif +0 -0
  229. data/public/javascripts/tinymce/themes/advanced/skins/default/img/menu_arrow.gif +0 -0
  230. data/public/javascripts/tinymce/themes/advanced/skins/default/img/menu_check.gif +0 -0
  231. data/public/javascripts/tinymce/themes/advanced/skins/default/img/progress.gif +0 -0
  232. data/public/javascripts/tinymce/themes/advanced/skins/default/img/tabs.gif +0 -0
  233. data/public/javascripts/tinymce/themes/advanced/skins/default/ui.css +0 -213
  234. data/public/javascripts/tinymce/themes/advanced/skins/highcontrast/content.css +0 -23
  235. data/public/javascripts/tinymce/themes/advanced/skins/highcontrast/dialog.css +0 -105
  236. data/public/javascripts/tinymce/themes/advanced/skins/highcontrast/ui.css +0 -101
  237. data/public/javascripts/tinymce/themes/advanced/skins/o2k7/content.css +0 -46
  238. data/public/javascripts/tinymce/themes/advanced/skins/o2k7/dialog.css +0 -117
  239. data/public/javascripts/tinymce/themes/advanced/skins/o2k7/img/button_bg.png +0 -0
  240. data/public/javascripts/tinymce/themes/advanced/skins/o2k7/img/button_bg_black.png +0 -0
  241. data/public/javascripts/tinymce/themes/advanced/skins/o2k7/img/button_bg_silver.png +0 -0
  242. data/public/javascripts/tinymce/themes/advanced/skins/o2k7/ui.css +0 -216
  243. data/public/javascripts/tinymce/themes/advanced/skins/o2k7/ui_black.css +0 -8
  244. data/public/javascripts/tinymce/themes/advanced/skins/o2k7/ui_silver.css +0 -5
  245. data/public/javascripts/tinymce/themes/advanced/source_editor.htm +0 -25
  246. data/public/javascripts/tinymce/themes/simple/editor_template.js +0 -1
  247. data/public/javascripts/tinymce/themes/simple/editor_template_src.js +0 -84
  248. data/public/javascripts/tinymce/themes/simple/img/icons.gif +0 -0
  249. data/public/javascripts/tinymce/themes/simple/langs/en.js +0 -11
  250. data/public/javascripts/tinymce/themes/simple/skins/default/content.css +0 -25
  251. data/public/javascripts/tinymce/themes/simple/skins/default/ui.css +0 -32
  252. data/public/javascripts/tinymce/themes/simple/skins/o2k7/content.css +0 -17
  253. data/public/javascripts/tinymce/themes/simple/skins/o2k7/img/button_bg.png +0 -0
  254. data/public/javascripts/tinymce/themes/simple/skins/o2k7/ui.css +0 -35
  255. data/public/javascripts/tinymce/tiny_mce.js +0 -1
  256. data/public/javascripts/tinymce/tiny_mce_popup.js +0 -5
  257. data/public/javascripts/tinymce/tiny_mce_src.js +0 -15752
  258. data/public/javascripts/tinymce/utils/editable_selects.js +0 -70
  259. data/public/javascripts/tinymce/utils/form_utils.js +0 -210
  260. data/public/javascripts/tinymce/utils/mctabs.js +0 -162
  261. data/public/javascripts/tinymce/utils/validate.js +0 -252
@@ -1,73 +0,0 @@
1
- /**
2
- * This script contains embed functions for common plugins. This scripts are complety free to use for any purpose.
3
- */
4
-
5
- function writeFlash(p) {
6
- writeEmbed(
7
- 'D27CDB6E-AE6D-11cf-96B8-444553540000',
8
- 'http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0',
9
- 'application/x-shockwave-flash',
10
- p
11
- );
12
- }
13
-
14
- function writeShockWave(p) {
15
- writeEmbed(
16
- '166B1BCA-3F9C-11CF-8075-444553540000',
17
- 'http://download.macromedia.com/pub/shockwave/cabs/director/sw.cab#version=8,5,1,0',
18
- 'application/x-director',
19
- p
20
- );
21
- }
22
-
23
- function writeQuickTime(p) {
24
- writeEmbed(
25
- '02BF25D5-8C17-4B23-BC80-D3488ABDDC6B',
26
- 'http://www.apple.com/qtactivex/qtplugin.cab#version=6,0,2,0',
27
- 'video/quicktime',
28
- p
29
- );
30
- }
31
-
32
- function writeRealMedia(p) {
33
- writeEmbed(
34
- 'CFCDAA03-8BE4-11cf-B84B-0020AFBBCCFA',
35
- 'http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0',
36
- 'audio/x-pn-realaudio-plugin',
37
- p
38
- );
39
- }
40
-
41
- function writeWindowsMedia(p) {
42
- p.url = p.src;
43
- writeEmbed(
44
- '6BF52A52-394A-11D3-B153-00C04F79FAA6',
45
- 'http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=5,1,52,701',
46
- 'application/x-mplayer2',
47
- p
48
- );
49
- }
50
-
51
- function writeEmbed(cls, cb, mt, p) {
52
- var h = '', n;
53
-
54
- h += '<object classid="clsid:' + cls + '" codebase="' + cb + '"';
55
- h += typeof(p.id) != "undefined" ? 'id="' + p.id + '"' : '';
56
- h += typeof(p.name) != "undefined" ? 'name="' + p.name + '"' : '';
57
- h += typeof(p.width) != "undefined" ? 'width="' + p.width + '"' : '';
58
- h += typeof(p.height) != "undefined" ? 'height="' + p.height + '"' : '';
59
- h += typeof(p.align) != "undefined" ? 'align="' + p.align + '"' : '';
60
- h += '>';
61
-
62
- for (n in p)
63
- h += '<param name="' + n + '" value="' + p[n] + '">';
64
-
65
- h += '<embed type="' + mt + '"';
66
-
67
- for (n in p)
68
- h += n + '="' + p[n] + '" ';
69
-
70
- h += '></embed></object>';
71
-
72
- document.write(h);
73
- }
@@ -1,354 +0,0 @@
1
- (function() {
2
- var url;
3
-
4
- if (url = tinyMCEPopup.getParam("media_external_list_url"))
5
- document.write('<script language="javascript" type="text/javascript" src="' + tinyMCEPopup.editor.documentBaseURI.toAbsolute(url) + '"></script>');
6
-
7
- function get(id) {
8
- return document.getElementById(id);
9
- }
10
-
11
- function getVal(id) {
12
- var elm = get(id);
13
-
14
- if (elm.nodeName == "SELECT")
15
- return elm.options[elm.selectedIndex].value;
16
-
17
- if (elm.type == "checkbox")
18
- return elm.checked;
19
-
20
- return elm.value;
21
- }
22
-
23
- function setVal(id, value) {
24
- if (typeof(value) != 'undefined') {
25
- var elm = get(id);
26
-
27
- if (elm.nodeName == "SELECT")
28
- selectByValue(document.forms[0], id, value);
29
- else if (elm.type == "checkbox") {
30
- if (typeof(value) == 'string')
31
- elm.checked = value.toLowerCase() === 'true' ? true : false;
32
- else
33
- elm.checked = !!value;
34
- } else
35
- elm.value = value;
36
- }
37
- }
38
-
39
- window.Media = {
40
- init : function() {
41
- var html, editor;
42
-
43
- this.editor = editor = tinyMCEPopup.editor;
44
-
45
- // Setup file browsers and color pickers
46
- get('filebrowsercontainer').innerHTML = getBrowserHTML('filebrowser','src','media','media');
47
- get('qtsrcfilebrowsercontainer').innerHTML = getBrowserHTML('qtsrcfilebrowser','quicktime_qtsrc','media','media');
48
- get('bgcolor_pickcontainer').innerHTML = getColorPickerHTML('bgcolor_pick','bgcolor');
49
- get('video_altsource1_filebrowser').innerHTML = getBrowserHTML('filebrowser_altsource1','video_altsource1','media','media');
50
- get('video_altsource2_filebrowser').innerHTML = getBrowserHTML('filebrowser_altsource2','video_altsource2','media','media');
51
- get('video_poster_filebrowser').innerHTML = getBrowserHTML('filebrowser_poster','video_poster','media','image');
52
-
53
- html = this.getMediaListHTML('medialist', 'src', 'media', 'media');
54
- if (html == "")
55
- get("linklistrow").style.display = 'none';
56
- else
57
- get("linklistcontainer").innerHTML = html;
58
-
59
- if (isVisible('filebrowser'))
60
- get('src').style.width = '230px';
61
-
62
- if (isVisible('filebrowser_altsource1'))
63
- get('video_altsource1').style.width = '220px';
64
-
65
- if (isVisible('filebrowser_altsource2'))
66
- get('video_altsource2').style.width = '220px';
67
-
68
- if (isVisible('filebrowser_poster'))
69
- get('video_poster').style.width = '220px';
70
-
71
- this.data = tinyMCEPopup.getWindowArg('data');
72
- this.dataToForm();
73
- this.preview();
74
- },
75
-
76
- insert : function() {
77
- var editor = tinyMCEPopup.editor;
78
-
79
- this.formToData();
80
- editor.execCommand('mceRepaint');
81
- tinyMCEPopup.restoreSelection();
82
- editor.selection.setNode(editor.plugins.media.dataToImg(this.data));
83
- tinyMCEPopup.close();
84
- },
85
-
86
- preview : function() {
87
- get('prev').innerHTML = this.editor.plugins.media.dataToHtml(this.data, true);
88
- },
89
-
90
- moveStates : function(to_form, field) {
91
- var data = this.data, editor = this.editor, data = this.data,
92
- mediaPlugin = editor.plugins.media, ext, src, typeInfo, defaultStates, src;
93
-
94
- defaultStates = {
95
- // QuickTime
96
- quicktime_autoplay : true,
97
- quicktime_controller : true,
98
-
99
- // Flash
100
- flash_play : true,
101
- flash_loop : true,
102
- flash_menu : true,
103
-
104
- // WindowsMedia
105
- windowsmedia_autostart : true,
106
- windowsmedia_enablecontextmenu : true,
107
- windowsmedia_invokeurls : true,
108
-
109
- // RealMedia
110
- realmedia_autogotourl : true,
111
- realmedia_imagestatus : true
112
- };
113
-
114
- function parseQueryParams(str) {
115
- var out = {};
116
-
117
- if (str) {
118
- tinymce.each(str.split('&'), function(item) {
119
- var parts = item.split('=');
120
-
121
- out[unescape(parts[0])] = unescape(parts[1]);
122
- });
123
- }
124
-
125
- return out;
126
- };
127
-
128
- function setOptions(type, names) {
129
- var i, name, formItemName, value, list;
130
-
131
- if (type == data.type || type == 'global') {
132
- names = tinymce.explode(names);
133
- for (i = 0; i < names.length; i++) {
134
- name = names[i];
135
- formItemName = type == 'global' ? name : type + '_' + name;
136
-
137
- if (type == 'global')
138
- list = data;
139
- else if (type == 'video') {
140
- list = data.video.attrs;
141
-
142
- if (!list && !to_form)
143
- data.video.attrs = list = {};
144
- } else
145
- list = data.params;
146
-
147
- if (list) {
148
- if (to_form) {
149
- setVal(formItemName, list[name]);
150
- } else {
151
- delete list[name];
152
-
153
- value = getVal(formItemName);
154
- if (type == 'video' && value === true)
155
- value = name;
156
-
157
- if (defaultStates[formItemName]) {
158
- if (value !== defaultStates[formItemName]) {
159
- value = "" + value;
160
- list[name] = value;
161
- }
162
- } else if (value) {
163
- value = "" + value;
164
- list[name] = value;
165
- }
166
- }
167
- }
168
- }
169
- }
170
- }
171
-
172
- if (!to_form) {
173
- data.type = get('media_type').options[get('media_type').selectedIndex].value;
174
- data.width = getVal('width');
175
- data.height = getVal('height');
176
-
177
- // Switch type based on extension
178
- src = getVal('src');
179
- if (field == 'src') {
180
- ext = src.replace(/^.*\.([^.]+)$/, '$1');
181
- if (typeInfo = mediaPlugin.getType(ext))
182
- data.type = typeInfo.name.toLowerCase();
183
-
184
- setVal('media_type', data.type);
185
- }
186
-
187
- if (data.type == "video") {
188
- if (!data.video.sources)
189
- data.video.sources = [];
190
-
191
- data.video.sources[0] = {src: getVal('src')};
192
- }
193
- }
194
-
195
- // Hide all fieldsets and show the one active
196
- get('video_options').style.display = 'none';
197
- get('flash_options').style.display = 'none';
198
- get('quicktime_options').style.display = 'none';
199
- get('shockwave_options').style.display = 'none';
200
- get('windowsmedia_options').style.display = 'none';
201
- get('realmedia_options').style.display = 'none';
202
-
203
- if (get(data.type + '_options'))
204
- get(data.type + '_options').style.display = 'block';
205
-
206
- setVal('media_type', data.type);
207
-
208
- setOptions('flash', 'play,loop,menu,swliveconnect,quality,scale,salign,wmode,base,flashvars');
209
- setOptions('quicktime', 'loop,autoplay,cache,controller,correction,enablejavascript,kioskmode,autohref,playeveryframe,targetcache,scale,starttime,endtime,target,qtsrcchokespeed,volume,qtsrc');
210
- setOptions('shockwave', 'sound,progress,autostart,swliveconnect,swvolume,swstretchstyle,swstretchhalign,swstretchvalign');
211
- setOptions('windowsmedia', 'autostart,enabled,enablecontextmenu,fullscreen,invokeurls,mute,stretchtofit,windowlessvideo,balance,baseurl,captioningid,currentmarker,currentposition,defaultframe,playcount,rate,uimode,volume');
212
- setOptions('realmedia', 'autostart,loop,autogotourl,center,imagestatus,maintainaspect,nojava,prefetch,shuffle,console,controls,numloop,scriptcallbacks');
213
- setOptions('video', 'poster,autoplay,loop,preload,controls');
214
- setOptions('global', 'id,name,vspace,hspace,bgcolor,align,width,height');
215
-
216
- if (to_form) {
217
- if (data.type == 'video') {
218
- if (data.video.sources[0])
219
- setVal('src', data.video.sources[0].src);
220
-
221
- src = data.video.sources[1];
222
- if (src)
223
- setVal('video_altsource1', src.src);
224
-
225
- src = data.video.sources[2];
226
- if (src)
227
- setVal('video_altsource2', src.src);
228
- } else {
229
- // Check flash vars
230
- if (data.type == 'flash') {
231
- tinymce.each(editor.getParam('flash_video_player_flashvars', {url : '$url', poster : '$poster'}), function(value, name) {
232
- if (value == '$url')
233
- data.params.src = parseQueryParams(data.params.flashvars)[name] || data.params.src;
234
- });
235
- }
236
-
237
- setVal('src', data.params.src);
238
- }
239
- } else {
240
- src = getVal("src");
241
-
242
- // YouTube
243
- if (src.match(/youtube.com(.+)v=([^&]+)/)) {
244
- data.width = 425;
245
- data.height = 350;
246
- data.params.frameborder = '0';
247
- data.type = 'iframe';
248
- src = 'http://www.youtube.com/embed/' + src.match(/v=([^&]+)/)[1];
249
- setVal('src', src);
250
- setVal('media_type', data.type);
251
- }
252
-
253
- // Google video
254
- if (src.match(/video.google.com(.+)docid=([^&]+)/)) {
255
- data.width = 425;
256
- data.height = 326;
257
- data.type = 'flash';
258
- src = 'http://video.google.com/googleplayer.swf?docId=' + src.match(/docid=([^&]+)/)[1] + '&hl=en';
259
- setVal('src', src);
260
- setVal('media_type', data.type);
261
- }
262
-
263
- if (data.type == 'video') {
264
- if (!data.video.sources)
265
- data.video.sources = [];
266
-
267
- data.video.sources[0] = {src : src};
268
-
269
- src = getVal("video_altsource1");
270
- if (src)
271
- data.video.sources[1] = {src : src};
272
-
273
- src = getVal("video_altsource2");
274
- if (src)
275
- data.video.sources[2] = {src : src};
276
- } else
277
- data.params.src = src;
278
-
279
- // Set default size
280
- setVal('width', data.width || 320);
281
- setVal('height', data.height || 240);
282
- }
283
- },
284
-
285
- dataToForm : function() {
286
- this.moveStates(true);
287
- },
288
-
289
- formToData : function(field) {
290
- if (field == "width" || field == "height")
291
- this.changeSize(field);
292
-
293
- if (field == 'source') {
294
- this.moveStates(false, field);
295
- setVal('source', this.editor.plugins.media.dataToHtml(this.data));
296
- this.panel = 'source';
297
- } else {
298
- if (this.panel == 'source') {
299
- this.data = this.editor.plugins.media.htmlToData(getVal('source'));
300
- this.dataToForm();
301
- this.panel = '';
302
- }
303
-
304
- this.moveStates(false, field);
305
- this.preview();
306
- }
307
- },
308
-
309
- beforeResize : function() {
310
- this.width = parseInt(getVal('width') || "320", 10);
311
- this.height = parseInt(getVal('height') || "240", 10);
312
- },
313
-
314
- changeSize : function(type) {
315
- var width, height, scale, size;
316
-
317
- if (get('constrain').checked) {
318
- width = parseInt(getVal('width') || "320", 10);
319
- height = parseInt(getVal('height') || "240", 10);
320
-
321
- if (type == 'width') {
322
- this.height = Math.round((width / this.width) * height);
323
- setVal('height', this.height);
324
- } else {
325
- this.width = Math.round((height / this.height) * width);
326
- setVal('width', this.width);
327
- }
328
- }
329
- },
330
-
331
- getMediaListHTML : function() {
332
- if (typeof(tinyMCEMediaList) != "undefined" && tinyMCEMediaList.length > 0) {
333
- var html = "";
334
-
335
- html += '<select id="linklist" name="linklist" style="width: 250px" onchange="this.form.src.value=this.options[this.selectedIndex].value;Media.formToData(\'src\');">';
336
- html += '<option value="">---</option>';
337
-
338
- for (var i=0; i<tinyMCEMediaList.length; i++)
339
- html += '<option value="' + tinyMCEMediaList[i][1] + '">' + tinyMCEMediaList[i][0] + '</option>';
340
-
341
- html += '</select>';
342
-
343
- return html;
344
- }
345
-
346
- return "";
347
- }
348
- };
349
-
350
- tinyMCEPopup.requireLangPack();
351
- tinyMCEPopup.onInit.add(function() {
352
- Media.init();
353
- });
354
- })();
@@ -1,109 +0,0 @@
1
- tinyMCE.addI18n('en.media_dlg',{
2
- title:"Insert / edit embedded media",
3
- general:"General",
4
- advanced:"Advanced",
5
- file:"File/URL",
6
- list:"List",
7
- size:"Dimensions",
8
- preview:"Preview",
9
- constrain_proportions:"Constrain proportions",
10
- type:"Type",
11
- id:"Id",
12
- name:"Name",
13
- class_name:"Class",
14
- vspace:"V-Space",
15
- hspace:"H-Space",
16
- play:"Auto play",
17
- loop:"Loop",
18
- menu:"Show menu",
19
- quality:"Quality",
20
- scale:"Scale",
21
- align:"Align",
22
- salign:"SAlign",
23
- wmode:"WMode",
24
- bgcolor:"Background",
25
- base:"Base",
26
- flashvars:"Flashvars",
27
- liveconnect:"SWLiveConnect",
28
- autohref:"AutoHREF",
29
- cache:"Cache",
30
- hidden:"Hidden",
31
- controller:"Controller",
32
- kioskmode:"Kiosk mode",
33
- playeveryframe:"Play every frame",
34
- targetcache:"Target cache",
35
- correction:"No correction",
36
- enablejavascript:"Enable JavaScript",
37
- starttime:"Start time",
38
- endtime:"End time",
39
- href:"Href",
40
- qtsrcchokespeed:"Choke speed",
41
- target:"Target",
42
- volume:"Volume",
43
- autostart:"Auto start",
44
- enabled:"Enabled",
45
- fullscreen:"Fullscreen",
46
- invokeurls:"Invoke URLs",
47
- mute:"Mute",
48
- stretchtofit:"Stretch to fit",
49
- windowlessvideo:"Windowless video",
50
- balance:"Balance",
51
- baseurl:"Base URL",
52
- captioningid:"Captioning id",
53
- currentmarker:"Current marker",
54
- currentposition:"Current position",
55
- defaultframe:"Default frame",
56
- playcount:"Play count",
57
- rate:"Rate",
58
- uimode:"UI Mode",
59
- flash_options:"Flash options",
60
- qt_options:"Quicktime options",
61
- wmp_options:"Windows media player options",
62
- rmp_options:"Real media player options",
63
- shockwave_options:"Shockwave options",
64
- autogotourl:"Auto goto URL",
65
- center:"Center",
66
- imagestatus:"Image status",
67
- maintainaspect:"Maintain aspect",
68
- nojava:"No java",
69
- prefetch:"Prefetch",
70
- shuffle:"Shuffle",
71
- console:"Console",
72
- numloop:"Num loops",
73
- controls:"Controls",
74
- scriptcallbacks:"Script callbacks",
75
- swstretchstyle:"Stretch style",
76
- swstretchhalign:"Stretch H-Align",
77
- swstretchvalign:"Stretch V-Align",
78
- sound:"Sound",
79
- progress:"Progress",
80
- qtsrc:"QT Src",
81
- qt_stream_warn:"Streamed rtsp resources should be added to the QT Src field under the advanced tab.\nYou should also add a non streamed version to the Src field..",
82
- align_top:"Top",
83
- align_right:"Right",
84
- align_bottom:"Bottom",
85
- align_left:"Left",
86
- align_center:"Center",
87
- align_top_left:"Top left",
88
- align_top_right:"Top right",
89
- align_bottom_left:"Bottom left",
90
- align_bottom_right:"Bottom right",
91
- flv_options:"Flash video options",
92
- flv_scalemode:"Scale mode",
93
- flv_buffer:"Buffer",
94
- flv_starttime:"Start time",
95
- flv_defaultvolume:"Default volumne",
96
- flv_hiddengui:"Hidden GUI",
97
- flv_autostart:"Auto start",
98
- flv_loop:"Loop",
99
- flv_showscalemodes:"Show scale modes",
100
- flv_smoothvideo:"Smooth video",
101
- flv_jscallback:"JS Callback",
102
- html5_video_options:"HTML5 Video Options",
103
- altsource1:"Alternative source 1",
104
- altsource2:"Alternative source 2",
105
- preload:"Preload",
106
- poster:"Poster",
107
-
108
- source:"Source"
109
- });