tiny_mce 0.1.4 → 0.1.7

Sign up to get free protection for your applications and to get access to all the features.
Files changed (711) hide show
  1. data/CHANGELOG_PLUGIN.rdoc +48 -35
  2. data/CHANGELOG_TINYMCE +180 -7
  3. data/DEV_UPGRADE_NOTES.rdoc +1 -1
  4. data/README.rdoc +69 -4
  5. data/lib/tasks/tiny_mce.rake +9 -0
  6. data/lib/tiny_mce.rb +69 -0
  7. data/lib/tiny_mce/assets/tiny_mce/jquery.tinymce.js +1 -0
  8. data/lib/tiny_mce/assets/tiny_mce/langs/ca.js +1 -170
  9. data/lib/tiny_mce/assets/tiny_mce/langs/cs.js +1 -176
  10. data/lib/tiny_mce/assets/tiny_mce/langs/da.js +1 -0
  11. data/lib/tiny_mce/assets/tiny_mce/langs/en.js +1 -170
  12. data/lib/tiny_mce/assets/tiny_mce/langs/fi.js +1 -0
  13. data/lib/tiny_mce/assets/tiny_mce/langs/fr.js +1 -170
  14. data/lib/tiny_mce/assets/tiny_mce/langs/hu.js +1 -170
  15. data/lib/tiny_mce/assets/tiny_mce/langs/ja.js +1 -170
  16. data/lib/tiny_mce/assets/tiny_mce/langs/ka.js +1 -173
  17. data/lib/tiny_mce/assets/tiny_mce/langs/km.js +1 -0
  18. data/lib/tiny_mce/assets/tiny_mce/langs/nb.js +1 -0
  19. data/lib/tiny_mce/assets/tiny_mce/langs/no.js +1 -0
  20. data/lib/tiny_mce/assets/tiny_mce/langs/pl.js +1 -170
  21. data/lib/tiny_mce/assets/tiny_mce/langs/pt.js +1 -170
  22. data/lib/tiny_mce/assets/tiny_mce/langs/ru.js +1 -173
  23. data/lib/tiny_mce/assets/tiny_mce/langs/sk.js +1 -176
  24. data/lib/tiny_mce/assets/tiny_mce/langs/sl.js +1 -0
  25. data/lib/tiny_mce/assets/tiny_mce/langs/sv.js +1 -170
  26. data/lib/tiny_mce/assets/tiny_mce/langs/zh-cn.js +1 -0
  27. data/lib/tiny_mce/assets/tiny_mce/plugins/advhr/langs/ca_dlg.js +1 -5
  28. data/lib/tiny_mce/assets/tiny_mce/plugins/advhr/langs/cs_dlg.js +1 -5
  29. data/lib/tiny_mce/assets/tiny_mce/plugins/advhr/langs/da_dlg.js +1 -0
  30. data/lib/tiny_mce/assets/tiny_mce/plugins/advhr/langs/en_dlg.js +1 -5
  31. data/lib/tiny_mce/assets/tiny_mce/plugins/advhr/langs/fi_dlg.js +1 -0
  32. data/lib/tiny_mce/assets/tiny_mce/plugins/advhr/langs/fr_dlg.js +1 -5
  33. data/lib/tiny_mce/assets/tiny_mce/plugins/advhr/langs/hu_dlg.js +1 -5
  34. data/lib/tiny_mce/assets/tiny_mce/plugins/advhr/langs/ja_dlg.js +1 -5
  35. data/lib/tiny_mce/assets/tiny_mce/plugins/advhr/langs/ka_dlg.js +1 -5
  36. data/lib/tiny_mce/assets/tiny_mce/plugins/advhr/langs/km_dlg.js +1 -0
  37. data/lib/tiny_mce/assets/tiny_mce/plugins/advhr/langs/nb_dlg.js +1 -0
  38. data/lib/tiny_mce/assets/tiny_mce/plugins/advhr/langs/no_dlg.js +1 -0
  39. data/lib/tiny_mce/assets/tiny_mce/plugins/advhr/langs/pl_dlg.js +1 -5
  40. data/lib/tiny_mce/assets/tiny_mce/plugins/advhr/langs/pt_dlg.js +1 -5
  41. data/lib/tiny_mce/assets/tiny_mce/plugins/advhr/langs/ru_dlg.js +1 -5
  42. data/lib/tiny_mce/assets/tiny_mce/plugins/advhr/langs/sk_dlg.js +1 -5
  43. data/lib/tiny_mce/assets/tiny_mce/plugins/advhr/langs/sl_dlg.js +1 -0
  44. data/lib/tiny_mce/assets/tiny_mce/plugins/advhr/langs/sv_dlg.js +1 -5
  45. data/lib/tiny_mce/assets/tiny_mce/plugins/advhr/langs/zh-cn_dlg.js +1 -0
  46. data/lib/tiny_mce/assets/tiny_mce/plugins/advhr/rule.htm +30 -29
  47. data/lib/tiny_mce/assets/tiny_mce/plugins/advimage/image.htm +34 -31
  48. data/lib/tiny_mce/assets/tiny_mce/plugins/advimage/js/image.js +3 -1
  49. data/lib/tiny_mce/assets/tiny_mce/plugins/advimage/langs/ca_dlg.js +1 -43
  50. data/lib/tiny_mce/assets/tiny_mce/plugins/advimage/langs/cs_dlg.js +1 -43
  51. data/lib/tiny_mce/assets/tiny_mce/plugins/advimage/langs/da_dlg.js +1 -0
  52. data/lib/tiny_mce/assets/tiny_mce/plugins/advimage/langs/en_dlg.js +1 -43
  53. data/lib/tiny_mce/assets/tiny_mce/plugins/advimage/langs/fi_dlg.js +1 -0
  54. data/lib/tiny_mce/assets/tiny_mce/plugins/advimage/langs/fr_dlg.js +1 -43
  55. data/lib/tiny_mce/assets/tiny_mce/plugins/advimage/langs/hu_dlg.js +1 -43
  56. data/lib/tiny_mce/assets/tiny_mce/plugins/advimage/langs/ja_dlg.js +1 -43
  57. data/lib/tiny_mce/assets/tiny_mce/plugins/advimage/langs/ka_dlg.js +1 -43
  58. data/lib/tiny_mce/assets/tiny_mce/plugins/advimage/langs/km_dlg.js +1 -0
  59. data/lib/tiny_mce/assets/tiny_mce/plugins/advimage/langs/nb_dlg.js +1 -0
  60. data/lib/tiny_mce/assets/tiny_mce/plugins/advimage/langs/no_dlg.js +1 -0
  61. data/lib/tiny_mce/assets/tiny_mce/plugins/advimage/langs/pl_dlg.js +1 -43
  62. data/lib/tiny_mce/assets/tiny_mce/plugins/advimage/langs/pt_dlg.js +1 -43
  63. data/lib/tiny_mce/assets/tiny_mce/plugins/advimage/langs/ru_dlg.js +1 -43
  64. data/lib/tiny_mce/assets/tiny_mce/plugins/advimage/langs/sk_dlg.js +1 -43
  65. data/lib/tiny_mce/assets/tiny_mce/plugins/advimage/langs/sl_dlg.js +1 -0
  66. data/lib/tiny_mce/assets/tiny_mce/plugins/advimage/langs/sv_dlg.js +1 -43
  67. data/lib/tiny_mce/assets/tiny_mce/plugins/advimage/langs/zh-cn_dlg.js +1 -0
  68. data/lib/tiny_mce/assets/tiny_mce/plugins/advlink/js/advlink.js +2 -5
  69. data/lib/tiny_mce/assets/tiny_mce/plugins/advlink/langs/ca_dlg.js +1 -52
  70. data/lib/tiny_mce/assets/tiny_mce/plugins/advlink/langs/cs_dlg.js +1 -52
  71. data/lib/tiny_mce/assets/tiny_mce/plugins/advlink/langs/da_dlg.js +1 -0
  72. data/lib/tiny_mce/assets/tiny_mce/plugins/advlink/langs/en_dlg.js +1 -52
  73. data/lib/tiny_mce/assets/tiny_mce/plugins/advlink/langs/fi_dlg.js +1 -0
  74. data/lib/tiny_mce/assets/tiny_mce/plugins/advlink/langs/fr_dlg.js +1 -52
  75. data/lib/tiny_mce/assets/tiny_mce/plugins/advlink/langs/hu_dlg.js +1 -52
  76. data/lib/tiny_mce/assets/tiny_mce/plugins/advlink/langs/ja_dlg.js +1 -52
  77. data/lib/tiny_mce/assets/tiny_mce/plugins/advlink/langs/ka_dlg.js +1 -52
  78. data/lib/tiny_mce/assets/tiny_mce/plugins/advlink/langs/km_dlg.js +1 -0
  79. data/lib/tiny_mce/assets/tiny_mce/plugins/advlink/langs/nb_dlg.js +1 -0
  80. data/lib/tiny_mce/assets/tiny_mce/plugins/advlink/langs/no_dlg.js +1 -0
  81. data/lib/tiny_mce/assets/tiny_mce/plugins/advlink/langs/pl_dlg.js +1 -52
  82. data/lib/tiny_mce/assets/tiny_mce/plugins/advlink/langs/pt_dlg.js +1 -52
  83. data/lib/tiny_mce/assets/tiny_mce/plugins/advlink/langs/ru_dlg.js +1 -52
  84. data/lib/tiny_mce/assets/tiny_mce/plugins/advlink/langs/sk_dlg.js +1 -52
  85. data/lib/tiny_mce/assets/tiny_mce/plugins/advlink/langs/sl_dlg.js +1 -0
  86. data/lib/tiny_mce/assets/tiny_mce/plugins/advlink/langs/sv_dlg.js +1 -52
  87. data/lib/tiny_mce/assets/tiny_mce/plugins/advlink/langs/zh-cn_dlg.js +1 -0
  88. data/lib/tiny_mce/assets/tiny_mce/plugins/advlink/link.htm +34 -29
  89. data/lib/tiny_mce/assets/tiny_mce/plugins/advlist/editor_plugin.js +1 -1
  90. data/lib/tiny_mce/assets/tiny_mce/plugins/advlist/editor_plugin_src.js +3 -3
  91. data/lib/tiny_mce/assets/tiny_mce/plugins/autosave/editor_plugin.js +1 -1
  92. data/lib/tiny_mce/assets/tiny_mce/plugins/autosave/editor_plugin_src.js +15 -6
  93. data/lib/tiny_mce/assets/tiny_mce/plugins/bbcode/editor_plugin.js +1 -1
  94. data/lib/tiny_mce/assets/tiny_mce/plugins/bbcode/editor_plugin_src.js +1 -1
  95. data/lib/tiny_mce/assets/tiny_mce/plugins/contextmenu/editor_plugin.js +1 -1
  96. data/lib/tiny_mce/assets/tiny_mce/plugins/contextmenu/editor_plugin_src.js +19 -5
  97. data/lib/tiny_mce/assets/tiny_mce/plugins/emotions/emotions.htm +15 -14
  98. data/lib/tiny_mce/assets/tiny_mce/plugins/emotions/langs/ca_dlg.js +1 -20
  99. data/lib/tiny_mce/assets/tiny_mce/plugins/emotions/langs/cs_dlg.js +1 -20
  100. data/lib/tiny_mce/assets/tiny_mce/plugins/emotions/langs/da_dlg.js +1 -0
  101. data/lib/tiny_mce/assets/tiny_mce/plugins/emotions/langs/en_dlg.js +1 -20
  102. data/lib/tiny_mce/assets/tiny_mce/plugins/emotions/langs/fi_dlg.js +1 -0
  103. data/lib/tiny_mce/assets/tiny_mce/plugins/emotions/langs/fr_dlg.js +1 -20
  104. data/lib/tiny_mce/assets/tiny_mce/plugins/emotions/langs/hu_dlg.js +1 -20
  105. data/lib/tiny_mce/assets/tiny_mce/plugins/emotions/langs/ja_dlg.js +1 -20
  106. data/lib/tiny_mce/assets/tiny_mce/plugins/emotions/langs/ka_dlg.js +1 -20
  107. data/lib/tiny_mce/assets/tiny_mce/plugins/emotions/langs/km_dlg.js +1 -0
  108. data/lib/tiny_mce/assets/tiny_mce/plugins/emotions/langs/nb_dlg.js +1 -0
  109. data/lib/tiny_mce/assets/tiny_mce/plugins/emotions/langs/no_dlg.js +1 -0
  110. data/lib/tiny_mce/assets/tiny_mce/plugins/emotions/langs/pl_dlg.js +1 -20
  111. data/lib/tiny_mce/assets/tiny_mce/plugins/emotions/langs/pt_dlg.js +1 -20
  112. data/lib/tiny_mce/assets/tiny_mce/plugins/emotions/langs/ru_dlg.js +1 -20
  113. data/lib/tiny_mce/assets/tiny_mce/plugins/emotions/langs/sk_dlg.js +1 -20
  114. data/lib/tiny_mce/assets/tiny_mce/plugins/emotions/langs/sl_dlg.js +1 -0
  115. data/lib/tiny_mce/assets/tiny_mce/plugins/emotions/langs/sv_dlg.js +1 -20
  116. data/lib/tiny_mce/assets/tiny_mce/plugins/emotions/langs/zh-cn_dlg.js +1 -0
  117. data/lib/tiny_mce/assets/tiny_mce/plugins/fullpage/editor_plugin.js +1 -1
  118. data/lib/tiny_mce/assets/tiny_mce/plugins/fullpage/editor_plugin_src.js +21 -4
  119. data/lib/tiny_mce/assets/tiny_mce/plugins/fullpage/fullpage.htm +2 -2
  120. data/lib/tiny_mce/assets/tiny_mce/plugins/fullpage/js/fullpage.js +38 -17
  121. data/lib/tiny_mce/assets/tiny_mce/plugins/fullpage/langs/ca_dlg.js +1 -85
  122. data/lib/tiny_mce/assets/tiny_mce/plugins/fullpage/langs/cs_dlg.js +1 -85
  123. data/lib/tiny_mce/assets/tiny_mce/plugins/fullpage/langs/da_dlg.js +1 -0
  124. data/lib/tiny_mce/assets/tiny_mce/plugins/fullpage/langs/en_dlg.js +1 -85
  125. data/lib/tiny_mce/assets/tiny_mce/plugins/fullpage/langs/fi_dlg.js +1 -0
  126. data/lib/tiny_mce/assets/tiny_mce/plugins/fullpage/langs/fr_dlg.js +1 -85
  127. data/lib/tiny_mce/assets/tiny_mce/plugins/fullpage/langs/hu_dlg.js +1 -85
  128. data/lib/tiny_mce/assets/tiny_mce/plugins/fullpage/langs/ja_dlg.js +1 -85
  129. data/lib/tiny_mce/assets/tiny_mce/plugins/fullpage/langs/ka_dlg.js +1 -85
  130. data/lib/tiny_mce/assets/tiny_mce/plugins/fullpage/langs/km_dlg.js +1 -0
  131. data/lib/tiny_mce/assets/tiny_mce/plugins/fullpage/langs/nb_dlg.js +1 -0
  132. data/lib/tiny_mce/assets/tiny_mce/plugins/fullpage/langs/no_dlg.js +1 -0
  133. data/lib/tiny_mce/assets/tiny_mce/plugins/fullpage/langs/pl_dlg.js +1 -85
  134. data/lib/tiny_mce/assets/tiny_mce/plugins/fullpage/langs/pt_dlg.js +1 -85
  135. data/lib/tiny_mce/assets/tiny_mce/plugins/fullpage/langs/ru_dlg.js +1 -85
  136. data/lib/tiny_mce/assets/tiny_mce/plugins/fullpage/langs/sk_dlg.js +1 -85
  137. data/lib/tiny_mce/assets/tiny_mce/plugins/fullpage/langs/sl_dlg.js +1 -0
  138. data/lib/tiny_mce/assets/tiny_mce/plugins/fullpage/langs/sv_dlg.js +1 -85
  139. data/lib/tiny_mce/assets/tiny_mce/plugins/fullpage/langs/zh-cn_dlg.js +1 -0
  140. data/lib/tiny_mce/assets/tiny_mce/plugins/fullscreen/editor_plugin.js +1 -1
  141. data/lib/tiny_mce/assets/tiny_mce/plugins/fullscreen/editor_plugin_src.js +11 -3
  142. data/lib/tiny_mce/assets/tiny_mce/plugins/inlinepopups/editor_plugin.js +1 -1
  143. data/lib/tiny_mce/assets/tiny_mce/plugins/inlinepopups/editor_plugin_src.js +76 -15
  144. data/lib/tiny_mce/assets/tiny_mce/plugins/inlinepopups/skins/clearlooks2/window.css +1 -1
  145. data/lib/tiny_mce/assets/tiny_mce/plugins/layer/editor_plugin.js +1 -1
  146. data/lib/tiny_mce/assets/tiny_mce/plugins/layer/editor_plugin_src.js +2 -0
  147. data/lib/tiny_mce/assets/tiny_mce/plugins/legacyoutput/editor_plugin.js +1 -1
  148. data/lib/tiny_mce/assets/tiny_mce/plugins/legacyoutput/editor_plugin_src.js +29 -26
  149. data/lib/tiny_mce/assets/tiny_mce/plugins/media/css/media.css +5 -4
  150. data/lib/tiny_mce/assets/tiny_mce/plugins/media/editor_plugin.js +1 -1
  151. data/lib/tiny_mce/assets/tiny_mce/plugins/media/editor_plugin_src.js +652 -296
  152. data/lib/tiny_mce/assets/tiny_mce/plugins/media/js/media.js +308 -598
  153. data/lib/tiny_mce/assets/tiny_mce/plugins/media/langs/ca_dlg.js +1 -103
  154. data/lib/tiny_mce/assets/tiny_mce/plugins/media/langs/cs_dlg.js +1 -103
  155. data/lib/tiny_mce/assets/tiny_mce/plugins/media/langs/da_dlg.js +1 -0
  156. data/lib/tiny_mce/assets/tiny_mce/plugins/media/langs/en_dlg.js +1 -103
  157. data/lib/tiny_mce/assets/tiny_mce/plugins/media/langs/fi_dlg.js +1 -0
  158. data/lib/tiny_mce/assets/tiny_mce/plugins/media/langs/fr_dlg.js +1 -103
  159. data/lib/tiny_mce/assets/tiny_mce/plugins/media/langs/hu_dlg.js +1 -103
  160. data/lib/tiny_mce/assets/tiny_mce/plugins/media/langs/ja_dlg.js +1 -103
  161. data/lib/tiny_mce/assets/tiny_mce/plugins/media/langs/ka_dlg.js +1 -103
  162. data/lib/tiny_mce/assets/tiny_mce/plugins/media/langs/km_dlg.js +1 -0
  163. data/lib/tiny_mce/assets/tiny_mce/plugins/media/langs/nb_dlg.js +1 -0
  164. data/lib/tiny_mce/assets/tiny_mce/plugins/media/langs/no_dlg.js +1 -0
  165. data/lib/tiny_mce/assets/tiny_mce/plugins/media/langs/pl_dlg.js +1 -103
  166. data/lib/tiny_mce/assets/tiny_mce/plugins/media/langs/pt_dlg.js +1 -103
  167. data/lib/tiny_mce/assets/tiny_mce/plugins/media/langs/ru_dlg.js +1 -103
  168. data/lib/tiny_mce/assets/tiny_mce/plugins/media/langs/sk_dlg.js +1 -103
  169. data/lib/tiny_mce/assets/tiny_mce/plugins/media/langs/sl_dlg.js +1 -0
  170. data/lib/tiny_mce/assets/tiny_mce/plugins/media/langs/sv_dlg.js +1 -103
  171. data/lib/tiny_mce/assets/tiny_mce/plugins/media/langs/zh-cn_dlg.js +1 -0
  172. data/lib/tiny_mce/assets/tiny_mce/plugins/media/media.htm +282 -287
  173. data/lib/tiny_mce/assets/tiny_mce/plugins/media/moxieplayer.swf +0 -0
  174. data/lib/tiny_mce/assets/tiny_mce/plugins/nonbreaking/editor_plugin.js +1 -1
  175. data/lib/tiny_mce/assets/tiny_mce/plugins/nonbreaking/editor_plugin_src.js +1 -1
  176. data/lib/tiny_mce/assets/tiny_mce/plugins/pagebreak/editor_plugin.js +1 -1
  177. data/lib/tiny_mce/assets/tiny_mce/plugins/pagebreak/editor_plugin_src.js +1 -4
  178. data/lib/tiny_mce/assets/tiny_mce/plugins/paste/editor_plugin.js +1 -1
  179. data/lib/tiny_mce/assets/tiny_mce/plugins/paste/editor_plugin_src.js +68 -109
  180. data/lib/tiny_mce/assets/tiny_mce/plugins/paste/langs/ca_dlg.js +1 -5
  181. data/lib/tiny_mce/assets/tiny_mce/plugins/paste/langs/cs_dlg.js +1 -5
  182. data/lib/tiny_mce/assets/tiny_mce/plugins/paste/langs/da_dlg.js +1 -0
  183. data/lib/tiny_mce/assets/tiny_mce/plugins/paste/langs/en_dlg.js +1 -5
  184. data/lib/tiny_mce/assets/tiny_mce/plugins/paste/langs/fi_dlg.js +1 -0
  185. data/lib/tiny_mce/assets/tiny_mce/plugins/paste/langs/fr_dlg.js +1 -5
  186. data/lib/tiny_mce/assets/tiny_mce/plugins/paste/langs/hu_dlg.js +1 -5
  187. data/lib/tiny_mce/assets/tiny_mce/plugins/paste/langs/ja_dlg.js +1 -5
  188. data/lib/tiny_mce/assets/tiny_mce/plugins/paste/langs/ka_dlg.js +1 -5
  189. data/lib/tiny_mce/assets/tiny_mce/plugins/paste/langs/km_dlg.js +1 -0
  190. data/lib/tiny_mce/assets/tiny_mce/plugins/paste/langs/nb_dlg.js +1 -0
  191. data/lib/tiny_mce/assets/tiny_mce/plugins/paste/langs/no_dlg.js +1 -0
  192. data/lib/tiny_mce/assets/tiny_mce/plugins/paste/langs/pl_dlg.js +1 -5
  193. data/lib/tiny_mce/assets/tiny_mce/plugins/paste/langs/pt_dlg.js +1 -5
  194. data/lib/tiny_mce/assets/tiny_mce/plugins/paste/langs/ru_dlg.js +1 -5
  195. data/lib/tiny_mce/assets/tiny_mce/plugins/paste/langs/sk_dlg.js +1 -5
  196. data/lib/tiny_mce/assets/tiny_mce/plugins/paste/langs/sl_dlg.js +1 -0
  197. data/lib/tiny_mce/assets/tiny_mce/plugins/paste/langs/sv_dlg.js +1 -5
  198. data/lib/tiny_mce/assets/tiny_mce/plugins/paste/langs/zh-cn_dlg.js +1 -0
  199. data/lib/tiny_mce/assets/tiny_mce/plugins/searchreplace/editor_plugin.js +1 -1
  200. data/lib/tiny_mce/assets/tiny_mce/plugins/searchreplace/editor_plugin_src.js +4 -0
  201. data/lib/tiny_mce/assets/tiny_mce/plugins/searchreplace/js/searchreplace.js +16 -6
  202. data/lib/tiny_mce/assets/tiny_mce/plugins/searchreplace/langs/ca_dlg.js +1 -16
  203. data/lib/tiny_mce/assets/tiny_mce/plugins/searchreplace/langs/cs_dlg.js +1 -16
  204. data/lib/tiny_mce/assets/tiny_mce/plugins/searchreplace/langs/da_dlg.js +1 -0
  205. data/lib/tiny_mce/assets/tiny_mce/plugins/searchreplace/langs/en_dlg.js +1 -16
  206. data/lib/tiny_mce/assets/tiny_mce/plugins/searchreplace/langs/fi_dlg.js +1 -0
  207. data/lib/tiny_mce/assets/tiny_mce/plugins/searchreplace/langs/fr_dlg.js +1 -16
  208. data/lib/tiny_mce/assets/tiny_mce/plugins/searchreplace/langs/hu_dlg.js +1 -16
  209. data/lib/tiny_mce/assets/tiny_mce/plugins/searchreplace/langs/ja_dlg.js +1 -16
  210. data/lib/tiny_mce/assets/tiny_mce/plugins/searchreplace/langs/ka_dlg.js +1 -16
  211. data/lib/tiny_mce/assets/tiny_mce/plugins/searchreplace/langs/km_dlg.js +1 -0
  212. data/lib/tiny_mce/assets/tiny_mce/plugins/searchreplace/langs/nb_dlg.js +1 -0
  213. data/lib/tiny_mce/assets/tiny_mce/plugins/searchreplace/langs/no_dlg.js +1 -0
  214. data/lib/tiny_mce/assets/tiny_mce/plugins/searchreplace/langs/pl_dlg.js +1 -16
  215. data/lib/tiny_mce/assets/tiny_mce/plugins/searchreplace/langs/pt_dlg.js +1 -16
  216. data/lib/tiny_mce/assets/tiny_mce/plugins/searchreplace/langs/ru_dlg.js +1 -16
  217. data/lib/tiny_mce/assets/tiny_mce/plugins/searchreplace/langs/sk_dlg.js +1 -16
  218. data/lib/tiny_mce/assets/tiny_mce/plugins/searchreplace/langs/sl_dlg.js +1 -0
  219. data/lib/tiny_mce/assets/tiny_mce/plugins/searchreplace/langs/sv_dlg.js +1 -16
  220. data/lib/tiny_mce/assets/tiny_mce/plugins/searchreplace/langs/zh-cn_dlg.js +1 -0
  221. data/lib/tiny_mce/assets/tiny_mce/plugins/searchreplace/searchreplace.htm +17 -16
  222. data/lib/tiny_mce/assets/tiny_mce/plugins/spellchecker/editor_plugin.js +1 -1
  223. data/lib/tiny_mce/assets/tiny_mce/plugins/spellchecker/editor_plugin_src.js +16 -16
  224. data/lib/tiny_mce/assets/tiny_mce/plugins/style/js/props.js +2 -8
  225. data/lib/tiny_mce/assets/tiny_mce/plugins/style/langs/ca_dlg.js +1 -63
  226. data/lib/tiny_mce/assets/tiny_mce/plugins/style/langs/cs_dlg.js +1 -63
  227. data/lib/tiny_mce/assets/tiny_mce/plugins/style/langs/da_dlg.js +1 -0
  228. data/lib/tiny_mce/assets/tiny_mce/plugins/style/langs/en_dlg.js +1 -63
  229. data/lib/tiny_mce/assets/tiny_mce/plugins/style/langs/fi_dlg.js +1 -0
  230. data/lib/tiny_mce/assets/tiny_mce/plugins/style/langs/fr_dlg.js +1 -63
  231. data/lib/tiny_mce/assets/tiny_mce/plugins/style/langs/hu_dlg.js +1 -63
  232. data/lib/tiny_mce/assets/tiny_mce/plugins/style/langs/ja_dlg.js +1 -63
  233. data/lib/tiny_mce/assets/tiny_mce/plugins/style/langs/ka_dlg.js +1 -63
  234. data/lib/tiny_mce/assets/tiny_mce/plugins/style/langs/km_dlg.js +1 -0
  235. data/lib/tiny_mce/assets/tiny_mce/plugins/style/langs/nb_dlg.js +1 -0
  236. data/lib/tiny_mce/assets/tiny_mce/plugins/style/langs/no_dlg.js +1 -0
  237. data/lib/tiny_mce/assets/tiny_mce/plugins/style/langs/pl_dlg.js +1 -63
  238. data/lib/tiny_mce/assets/tiny_mce/plugins/style/langs/pt_dlg.js +1 -63
  239. data/lib/tiny_mce/assets/tiny_mce/plugins/style/langs/ru_dlg.js +1 -63
  240. data/lib/tiny_mce/assets/tiny_mce/plugins/style/langs/sk_dlg.js +1 -63
  241. data/lib/tiny_mce/assets/tiny_mce/plugins/style/langs/sl_dlg.js +1 -0
  242. data/lib/tiny_mce/assets/tiny_mce/plugins/style/langs/sv_dlg.js +1 -63
  243. data/lib/tiny_mce/assets/tiny_mce/plugins/style/langs/zh-cn_dlg.js +1 -0
  244. data/lib/tiny_mce/assets/tiny_mce/plugins/style/props.htm +513 -398
  245. data/lib/tiny_mce/assets/tiny_mce/plugins/tabfocus/editor_plugin.js +1 -1
  246. data/lib/tiny_mce/assets/tiny_mce/plugins/tabfocus/editor_plugin_src.js +30 -28
  247. data/lib/tiny_mce/assets/tiny_mce/plugins/table/cell.htm +12 -12
  248. data/lib/tiny_mce/assets/tiny_mce/plugins/table/editor_plugin.js +1 -1
  249. data/lib/tiny_mce/assets/tiny_mce/plugins/table/editor_plugin_src.js +80 -22
  250. data/lib/tiny_mce/assets/tiny_mce/plugins/table/js/cell.js +9 -11
  251. data/lib/tiny_mce/assets/tiny_mce/plugins/table/js/row.js +13 -18
  252. data/lib/tiny_mce/assets/tiny_mce/plugins/table/js/table.js +17 -16
  253. data/lib/tiny_mce/assets/tiny_mce/plugins/table/langs/ca_dlg.js +1 -74
  254. data/lib/tiny_mce/assets/tiny_mce/plugins/table/langs/cs_dlg.js +1 -74
  255. data/lib/tiny_mce/assets/tiny_mce/plugins/table/langs/da_dlg.js +1 -0
  256. data/lib/tiny_mce/assets/tiny_mce/plugins/table/langs/en_dlg.js +1 -74
  257. data/lib/tiny_mce/assets/tiny_mce/plugins/table/langs/fi_dlg.js +1 -0
  258. data/lib/tiny_mce/assets/tiny_mce/plugins/table/langs/fr_dlg.js +1 -74
  259. data/lib/tiny_mce/assets/tiny_mce/plugins/table/langs/hu_dlg.js +1 -74
  260. data/lib/tiny_mce/assets/tiny_mce/plugins/table/langs/ja_dlg.js +1 -74
  261. data/lib/tiny_mce/assets/tiny_mce/plugins/table/langs/ka_dlg.js +1 -74
  262. data/lib/tiny_mce/assets/tiny_mce/plugins/table/langs/km_dlg.js +1 -0
  263. data/lib/tiny_mce/assets/tiny_mce/plugins/table/langs/nb_dlg.js +1 -0
  264. data/lib/tiny_mce/assets/tiny_mce/plugins/table/langs/no_dlg.js +1 -0
  265. data/lib/tiny_mce/assets/tiny_mce/plugins/table/langs/pl_dlg.js +1 -74
  266. data/lib/tiny_mce/assets/tiny_mce/plugins/table/langs/pt_dlg.js +1 -74
  267. data/lib/tiny_mce/assets/tiny_mce/plugins/table/langs/ru_dlg.js +1 -74
  268. data/lib/tiny_mce/assets/tiny_mce/plugins/table/langs/sk_dlg.js +1 -74
  269. data/lib/tiny_mce/assets/tiny_mce/plugins/table/langs/sl_dlg.js +1 -0
  270. data/lib/tiny_mce/assets/tiny_mce/plugins/table/langs/sv_dlg.js +1 -73
  271. data/lib/tiny_mce/assets/tiny_mce/plugins/table/langs/zh-cn_dlg.js +1 -0
  272. data/lib/tiny_mce/assets/tiny_mce/plugins/table/merge_cells.htm +11 -11
  273. data/lib/tiny_mce/assets/tiny_mce/plugins/table/row.htm +10 -8
  274. data/lib/tiny_mce/assets/tiny_mce/plugins/table/table.htm +54 -53
  275. data/lib/tiny_mce/assets/tiny_mce/plugins/template/js/template.js +1 -1
  276. data/lib/tiny_mce/assets/tiny_mce/plugins/template/langs/ca_dlg.js +1 -15
  277. data/lib/tiny_mce/assets/tiny_mce/plugins/template/langs/cs_dlg.js +1 -15
  278. data/lib/tiny_mce/assets/tiny_mce/plugins/template/langs/da_dlg.js +1 -0
  279. data/lib/tiny_mce/assets/tiny_mce/plugins/template/langs/en_dlg.js +1 -15
  280. data/lib/tiny_mce/assets/tiny_mce/plugins/template/langs/fi_dlg.js +1 -0
  281. data/lib/tiny_mce/assets/tiny_mce/plugins/template/langs/fr_dlg.js +1 -15
  282. data/lib/tiny_mce/assets/tiny_mce/plugins/template/langs/hu_dlg.js +1 -15
  283. data/lib/tiny_mce/assets/tiny_mce/plugins/template/langs/ja_dlg.js +1 -15
  284. data/lib/tiny_mce/assets/tiny_mce/plugins/template/langs/ka_dlg.js +1 -15
  285. data/lib/tiny_mce/assets/tiny_mce/plugins/template/langs/km_dlg.js +1 -0
  286. data/lib/tiny_mce/assets/tiny_mce/plugins/template/langs/nb_dlg.js +1 -0
  287. data/lib/tiny_mce/assets/tiny_mce/plugins/template/langs/no_dlg.js +1 -0
  288. data/lib/tiny_mce/assets/tiny_mce/plugins/template/langs/pl_dlg.js +1 -15
  289. data/lib/tiny_mce/assets/tiny_mce/plugins/template/langs/pt_dlg.js +1 -15
  290. data/lib/tiny_mce/assets/tiny_mce/plugins/template/langs/ru_dlg.js +1 -15
  291. data/lib/tiny_mce/assets/tiny_mce/plugins/template/langs/sk_dlg.js +1 -15
  292. data/lib/tiny_mce/assets/tiny_mce/plugins/template/langs/sl_dlg.js +1 -0
  293. data/lib/tiny_mce/assets/tiny_mce/plugins/template/langs/sv_dlg.js +1 -15
  294. data/lib/tiny_mce/assets/tiny_mce/plugins/template/langs/zh-cn_dlg.js +1 -0
  295. data/lib/tiny_mce/assets/tiny_mce/plugins/visualchars/editor_plugin.js +1 -1
  296. data/lib/tiny_mce/assets/tiny_mce/plugins/visualchars/editor_plugin_src.js +20 -13
  297. data/lib/tiny_mce/assets/tiny_mce/plugins/wordcount/editor_plugin.js +1 -1
  298. data/lib/tiny_mce/assets/tiny_mce/plugins/wordcount/editor_plugin_src.js +35 -19
  299. data/lib/tiny_mce/assets/tiny_mce/plugins/xhtmlxtras/abbr.htm +6 -5
  300. data/lib/tiny_mce/assets/tiny_mce/plugins/xhtmlxtras/acronym.htm +6 -5
  301. data/lib/tiny_mce/assets/tiny_mce/plugins/xhtmlxtras/attributes.htm +6 -5
  302. data/lib/tiny_mce/assets/tiny_mce/plugins/xhtmlxtras/cite.htm +5 -4
  303. data/lib/tiny_mce/assets/tiny_mce/plugins/xhtmlxtras/del.htm +9 -8
  304. data/lib/tiny_mce/assets/tiny_mce/plugins/xhtmlxtras/editor_plugin.js +1 -1
  305. data/lib/tiny_mce/assets/tiny_mce/plugins/xhtmlxtras/editor_plugin_src.js +0 -12
  306. data/lib/tiny_mce/assets/tiny_mce/plugins/xhtmlxtras/ins.htm +11 -10
  307. data/lib/tiny_mce/assets/tiny_mce/plugins/xhtmlxtras/js/attributes.js +0 -1
  308. data/lib/tiny_mce/assets/tiny_mce/plugins/xhtmlxtras/js/del.js +2 -12
  309. data/lib/tiny_mce/assets/tiny_mce/plugins/xhtmlxtras/js/element_common.js +3 -5
  310. data/lib/tiny_mce/assets/tiny_mce/plugins/xhtmlxtras/js/ins.js +4 -13
  311. data/lib/tiny_mce/assets/tiny_mce/plugins/xhtmlxtras/langs/ca_dlg.js +1 -32
  312. data/lib/tiny_mce/assets/tiny_mce/plugins/xhtmlxtras/langs/cs_dlg.js +1 -32
  313. data/lib/tiny_mce/assets/tiny_mce/plugins/xhtmlxtras/langs/da_dlg.js +1 -0
  314. data/lib/tiny_mce/assets/tiny_mce/plugins/xhtmlxtras/langs/en_dlg.js +1 -32
  315. data/lib/tiny_mce/assets/tiny_mce/plugins/xhtmlxtras/langs/fi_dlg.js +1 -0
  316. data/lib/tiny_mce/assets/tiny_mce/plugins/xhtmlxtras/langs/fr_dlg.js +1 -32
  317. data/lib/tiny_mce/assets/tiny_mce/plugins/xhtmlxtras/langs/hu_dlg.js +1 -32
  318. data/lib/tiny_mce/assets/tiny_mce/plugins/xhtmlxtras/langs/ja_dlg.js +1 -32
  319. data/lib/tiny_mce/assets/tiny_mce/plugins/xhtmlxtras/langs/ka_dlg.js +1 -32
  320. data/lib/tiny_mce/assets/tiny_mce/plugins/xhtmlxtras/langs/km_dlg.js +1 -0
  321. data/lib/tiny_mce/assets/tiny_mce/plugins/xhtmlxtras/langs/nb_dlg.js +1 -0
  322. data/lib/tiny_mce/assets/tiny_mce/plugins/xhtmlxtras/langs/no_dlg.js +1 -0
  323. data/lib/tiny_mce/assets/tiny_mce/plugins/xhtmlxtras/langs/pl_dlg.js +1 -32
  324. data/lib/tiny_mce/assets/tiny_mce/plugins/xhtmlxtras/langs/pt_dlg.js +1 -32
  325. data/lib/tiny_mce/assets/tiny_mce/plugins/xhtmlxtras/langs/ru_dlg.js +1 -32
  326. data/lib/tiny_mce/assets/tiny_mce/plugins/xhtmlxtras/langs/sk_dlg.js +1 -32
  327. data/lib/tiny_mce/assets/tiny_mce/plugins/xhtmlxtras/langs/sl_dlg.js +1 -0
  328. data/lib/tiny_mce/assets/tiny_mce/plugins/xhtmlxtras/langs/sv_dlg.js +1 -32
  329. data/lib/tiny_mce/assets/tiny_mce/plugins/xhtmlxtras/langs/zh-cn_dlg.js +1 -0
  330. data/lib/tiny_mce/assets/tiny_mce/themes/advanced/about.htm +3 -5
  331. data/lib/tiny_mce/assets/tiny_mce/themes/advanced/anchor.htm +5 -5
  332. data/lib/tiny_mce/assets/tiny_mce/themes/advanced/charmap.htm +39 -40
  333. data/lib/tiny_mce/assets/tiny_mce/themes/advanced/color_picker.htm +10 -9
  334. data/lib/tiny_mce/assets/tiny_mce/themes/advanced/editor_template.js +1 -1
  335. data/lib/tiny_mce/assets/tiny_mce/themes/advanced/editor_template_src.js +204 -52
  336. data/lib/tiny_mce/assets/tiny_mce/themes/advanced/image.htm +51 -51
  337. data/lib/tiny_mce/assets/tiny_mce/{plugins/media → themes/advanced}/img/flash.gif +0 -0
  338. data/lib/tiny_mce/assets/tiny_mce/themes/advanced/img/iframe.gif +0 -0
  339. data/lib/tiny_mce/assets/tiny_mce/{plugins/pagebreak → themes/advanced}/img/pagebreak.gif +0 -0
  340. data/lib/tiny_mce/assets/tiny_mce/{plugins/media → themes/advanced}/img/quicktime.gif +0 -0
  341. data/lib/tiny_mce/assets/tiny_mce/{plugins/media → themes/advanced}/img/realmedia.gif +0 -0
  342. data/lib/tiny_mce/assets/tiny_mce/{plugins/media → themes/advanced}/img/shockwave.gif +0 -0
  343. data/lib/tiny_mce/assets/tiny_mce/{plugins/media → themes/advanced}/img/trans.gif +0 -0
  344. data/lib/tiny_mce/assets/tiny_mce/themes/advanced/img/video.gif +0 -0
  345. data/lib/tiny_mce/assets/tiny_mce/{plugins/media → themes/advanced}/img/windowsmedia.gif +0 -0
  346. data/lib/tiny_mce/assets/tiny_mce/themes/advanced/js/about.js +1 -0
  347. data/lib/tiny_mce/assets/tiny_mce/themes/advanced/js/anchor.js +5 -0
  348. data/lib/tiny_mce/assets/tiny_mce/themes/advanced/js/charmap.js +23 -4
  349. data/lib/tiny_mce/assets/tiny_mce/themes/advanced/js/color_picker.js +108 -32
  350. data/lib/tiny_mce/assets/tiny_mce/themes/advanced/js/image.js +3 -1
  351. data/lib/tiny_mce/assets/tiny_mce/themes/advanced/js/link.js +4 -7
  352. data/lib/tiny_mce/assets/tiny_mce/themes/advanced/js/source_editor.js +6 -12
  353. data/lib/tiny_mce/assets/tiny_mce/themes/advanced/langs/ca.js +1 -62
  354. data/lib/tiny_mce/assets/tiny_mce/themes/advanced/langs/ca_dlg.js +1 -51
  355. data/lib/tiny_mce/assets/tiny_mce/themes/advanced/langs/cs.js +1 -62
  356. data/lib/tiny_mce/assets/tiny_mce/themes/advanced/langs/cs_dlg.js +1 -51
  357. data/lib/tiny_mce/assets/tiny_mce/themes/advanced/langs/da.js +1 -0
  358. data/lib/tiny_mce/assets/tiny_mce/themes/advanced/langs/da_dlg.js +1 -0
  359. data/lib/tiny_mce/assets/tiny_mce/themes/advanced/langs/en.js +1 -62
  360. data/lib/tiny_mce/assets/tiny_mce/themes/advanced/langs/en_dlg.js +1 -51
  361. data/lib/tiny_mce/assets/tiny_mce/themes/advanced/langs/fi.js +1 -0
  362. data/lib/tiny_mce/assets/tiny_mce/themes/advanced/langs/fi_dlg.js +1 -0
  363. data/lib/tiny_mce/assets/tiny_mce/themes/advanced/langs/fr.js +1 -62
  364. data/lib/tiny_mce/assets/tiny_mce/themes/advanced/langs/fr_dlg.js +1 -51
  365. data/lib/tiny_mce/assets/tiny_mce/themes/advanced/langs/hu.js +1 -62
  366. data/lib/tiny_mce/assets/tiny_mce/themes/advanced/langs/hu_dlg.js +1 -51
  367. data/lib/tiny_mce/assets/tiny_mce/themes/advanced/langs/ja.js +1 -62
  368. data/lib/tiny_mce/assets/tiny_mce/themes/advanced/langs/ja_dlg.js +1 -51
  369. data/lib/tiny_mce/assets/tiny_mce/themes/advanced/langs/ka.js +1 -62
  370. data/lib/tiny_mce/assets/tiny_mce/themes/advanced/langs/ka_dlg.js +1 -51
  371. data/lib/tiny_mce/assets/tiny_mce/themes/advanced/langs/km.js +1 -0
  372. data/lib/tiny_mce/assets/tiny_mce/themes/advanced/langs/km_dlg.js +1 -0
  373. data/lib/tiny_mce/assets/tiny_mce/themes/advanced/langs/nb.js +1 -0
  374. data/lib/tiny_mce/assets/tiny_mce/themes/advanced/langs/nb_dlg.js +1 -0
  375. data/lib/tiny_mce/assets/tiny_mce/themes/advanced/langs/no.js +1 -0
  376. data/lib/tiny_mce/assets/tiny_mce/themes/advanced/langs/no_dlg.js +1 -0
  377. data/lib/tiny_mce/assets/tiny_mce/themes/advanced/langs/pl.js +1 -62
  378. data/lib/tiny_mce/assets/tiny_mce/themes/advanced/langs/pl_dlg.js +1 -51
  379. data/lib/tiny_mce/assets/tiny_mce/themes/advanced/langs/pt.js +1 -62
  380. data/lib/tiny_mce/assets/tiny_mce/themes/advanced/langs/pt_dlg.js +1 -51
  381. data/lib/tiny_mce/assets/tiny_mce/themes/advanced/langs/ru.js +1 -62
  382. data/lib/tiny_mce/assets/tiny_mce/themes/advanced/langs/ru_dlg.js +1 -51
  383. data/lib/tiny_mce/assets/tiny_mce/themes/advanced/langs/sk.js +1 -62
  384. data/lib/tiny_mce/assets/tiny_mce/themes/advanced/langs/sk_dlg.js +1 -51
  385. data/lib/tiny_mce/assets/tiny_mce/themes/advanced/langs/sl.js +1 -0
  386. data/lib/tiny_mce/assets/tiny_mce/themes/advanced/langs/sl_dlg.js +1 -0
  387. data/lib/tiny_mce/assets/tiny_mce/themes/advanced/langs/sv.js +1 -60
  388. data/lib/tiny_mce/assets/tiny_mce/themes/advanced/langs/sv_dlg.js +1 -51
  389. data/lib/tiny_mce/assets/tiny_mce/themes/advanced/langs/zh-cn.js +1 -0
  390. data/lib/tiny_mce/assets/tiny_mce/themes/advanced/langs/zh-cn_dlg.js +1 -0
  391. data/lib/tiny_mce/assets/tiny_mce/themes/advanced/link.htm +27 -28
  392. data/lib/tiny_mce/assets/tiny_mce/themes/advanced/shortcuts.htm +47 -0
  393. data/lib/tiny_mce/assets/tiny_mce/themes/advanced/skins/default/content.css +12 -0
  394. data/lib/tiny_mce/assets/tiny_mce/themes/advanced/skins/default/ui.css +3 -3
  395. data/lib/tiny_mce/assets/tiny_mce/themes/advanced/skins/highcontrast/content.css +23 -0
  396. data/lib/tiny_mce/assets/tiny_mce/themes/advanced/skins/highcontrast/dialog.css +105 -0
  397. data/lib/tiny_mce/assets/tiny_mce/themes/advanced/skins/highcontrast/ui.css +101 -0
  398. data/lib/tiny_mce/assets/tiny_mce/themes/advanced/skins/o2k7/content.css +11 -0
  399. data/lib/tiny_mce/assets/tiny_mce/themes/advanced/skins/o2k7/ui.css +1 -1
  400. data/lib/tiny_mce/assets/tiny_mce/themes/advanced/source_editor.htm +3 -3
  401. data/lib/tiny_mce/assets/tiny_mce/themes/simple/editor_template.js +1 -1
  402. data/lib/tiny_mce/assets/tiny_mce/themes/simple/editor_template_src.js +1 -2
  403. data/lib/tiny_mce/assets/tiny_mce/themes/simple/langs/ca.js +1 -11
  404. data/lib/tiny_mce/assets/tiny_mce/themes/simple/langs/cs.js +1 -11
  405. data/lib/tiny_mce/assets/tiny_mce/themes/simple/langs/da.js +1 -0
  406. data/lib/tiny_mce/assets/tiny_mce/themes/simple/langs/en.js +1 -11
  407. data/lib/tiny_mce/assets/tiny_mce/themes/simple/langs/fi.js +1 -0
  408. data/lib/tiny_mce/assets/tiny_mce/themes/simple/langs/fr.js +1 -11
  409. data/lib/tiny_mce/assets/tiny_mce/themes/simple/langs/hu.js +1 -11
  410. data/lib/tiny_mce/assets/tiny_mce/themes/simple/langs/ja.js +1 -11
  411. data/lib/tiny_mce/assets/tiny_mce/themes/simple/langs/ka.js +1 -11
  412. data/lib/tiny_mce/assets/tiny_mce/themes/simple/langs/km.js +1 -0
  413. data/lib/tiny_mce/assets/tiny_mce/themes/simple/langs/nb.js +1 -0
  414. data/lib/tiny_mce/assets/tiny_mce/themes/simple/langs/no.js +1 -0
  415. data/lib/tiny_mce/assets/tiny_mce/themes/simple/langs/pl.js +1 -11
  416. data/lib/tiny_mce/assets/tiny_mce/themes/simple/langs/pt.js +1 -11
  417. data/lib/tiny_mce/assets/tiny_mce/themes/simple/langs/ru.js +1 -11
  418. data/lib/tiny_mce/assets/tiny_mce/themes/simple/langs/sk.js +1 -11
  419. data/lib/tiny_mce/assets/tiny_mce/themes/simple/langs/sl.js +1 -0
  420. data/lib/tiny_mce/assets/tiny_mce/themes/simple/langs/sv.js +1 -11
  421. data/lib/tiny_mce/assets/tiny_mce/themes/simple/langs/zh-cn.js +1 -0
  422. data/lib/tiny_mce/assets/tiny_mce/tiny_mce.js +1 -1
  423. data/lib/tiny_mce/assets/tiny_mce/tiny_mce_popup.js +1 -1
  424. data/lib/tiny_mce/assets/tiny_mce/tiny_mce_src.js +6062 -5297
  425. data/lib/tiny_mce/assets/tiny_mce/utils/form_utils.js +10 -3
  426. data/lib/tiny_mce/assets/tiny_mce/utils/mctabs.js +95 -10
  427. data/lib/tiny_mce/assets/tiny_mce/utils/validate.js +34 -2
  428. data/lib/tiny_mce/base.rb +9 -1
  429. data/lib/tiny_mce/configuration.rb +11 -1
  430. data/lib/tiny_mce/helpers.rb +38 -6
  431. data/lib/tiny_mce/valid_tinymce_langs.yml +9 -19
  432. data/lib/tiny_mce/valid_tinymce_options.yml +1 -0
  433. data/test/test_helper.rb +1 -1
  434. data/tiny_mce.gemspec +4 -3
  435. metadata +148 -288
  436. data/lib/tiny_mce/assets/tiny_mce/langs/ar.js +0 -170
  437. data/lib/tiny_mce/assets/tiny_mce/langs/ch.js +0 -178
  438. data/lib/tiny_mce/assets/tiny_mce/langs/cy.js +0 -170
  439. data/lib/tiny_mce/assets/tiny_mce/langs/de.js +0 -171
  440. data/lib/tiny_mce/assets/tiny_mce/langs/es.js +0 -172
  441. data/lib/tiny_mce/assets/tiny_mce/langs/he.js +0 -170
  442. data/lib/tiny_mce/assets/tiny_mce/langs/hi.js +0 -170
  443. data/lib/tiny_mce/assets/tiny_mce/langs/hr.js +0 -171
  444. data/lib/tiny_mce/assets/tiny_mce/langs/it.js +0 -206
  445. data/lib/tiny_mce/assets/tiny_mce/langs/kl.js +0 -170
  446. data/lib/tiny_mce/assets/tiny_mce/langs/ko.js +0 -170
  447. data/lib/tiny_mce/assets/tiny_mce/langs/lb.js +0 -171
  448. data/lib/tiny_mce/assets/tiny_mce/langs/nl.js +0 -170
  449. data/lib/tiny_mce/assets/tiny_mce/langs/ta.js +0 -170
  450. data/lib/tiny_mce/assets/tiny_mce/langs/uk.js +0 -173
  451. data/lib/tiny_mce/assets/tiny_mce/langs/vi.js +0 -170
  452. data/lib/tiny_mce/assets/tiny_mce/langs/zh.js +0 -178
  453. data/lib/tiny_mce/assets/tiny_mce/plugins/advhr/langs/ar_dlg.js +0 -5
  454. data/lib/tiny_mce/assets/tiny_mce/plugins/advhr/langs/ch_dlg.js +0 -5
  455. data/lib/tiny_mce/assets/tiny_mce/plugins/advhr/langs/cy_dlg.js +0 -5
  456. data/lib/tiny_mce/assets/tiny_mce/plugins/advhr/langs/de_dlg.js +0 -5
  457. data/lib/tiny_mce/assets/tiny_mce/plugins/advhr/langs/es_dlg.js +0 -5
  458. data/lib/tiny_mce/assets/tiny_mce/plugins/advhr/langs/he_dlg.js +0 -5
  459. data/lib/tiny_mce/assets/tiny_mce/plugins/advhr/langs/hi_dlg.js +0 -5
  460. data/lib/tiny_mce/assets/tiny_mce/plugins/advhr/langs/hr_dlg.js +0 -5
  461. data/lib/tiny_mce/assets/tiny_mce/plugins/advhr/langs/it_dlg.js +0 -5
  462. data/lib/tiny_mce/assets/tiny_mce/plugins/advhr/langs/kl_dlg.js +0 -5
  463. data/lib/tiny_mce/assets/tiny_mce/plugins/advhr/langs/ko_dlg.js +0 -5
  464. data/lib/tiny_mce/assets/tiny_mce/plugins/advhr/langs/lb_dlg.js +0 -5
  465. data/lib/tiny_mce/assets/tiny_mce/plugins/advhr/langs/nl_dlg.js +0 -5
  466. data/lib/tiny_mce/assets/tiny_mce/plugins/advhr/langs/ta_dlg.js +0 -5
  467. data/lib/tiny_mce/assets/tiny_mce/plugins/advhr/langs/uk_dlg.js +0 -5
  468. data/lib/tiny_mce/assets/tiny_mce/plugins/advhr/langs/vi_dlg.js +0 -5
  469. data/lib/tiny_mce/assets/tiny_mce/plugins/advhr/langs/zh_dlg.js +0 -5
  470. data/lib/tiny_mce/assets/tiny_mce/plugins/advimage/langs/ar_dlg.js +0 -43
  471. data/lib/tiny_mce/assets/tiny_mce/plugins/advimage/langs/ch_dlg.js +0 -43
  472. data/lib/tiny_mce/assets/tiny_mce/plugins/advimage/langs/cy_dlg.js +0 -43
  473. data/lib/tiny_mce/assets/tiny_mce/plugins/advimage/langs/de_dlg.js +0 -43
  474. data/lib/tiny_mce/assets/tiny_mce/plugins/advimage/langs/es_dlg.js +0 -43
  475. data/lib/tiny_mce/assets/tiny_mce/plugins/advimage/langs/he_dlg.js +0 -43
  476. data/lib/tiny_mce/assets/tiny_mce/plugins/advimage/langs/hi_dlg.js +0 -43
  477. data/lib/tiny_mce/assets/tiny_mce/plugins/advimage/langs/hr_dlg.js +0 -43
  478. data/lib/tiny_mce/assets/tiny_mce/plugins/advimage/langs/it_dlg.js +0 -43
  479. data/lib/tiny_mce/assets/tiny_mce/plugins/advimage/langs/kl_dlg.js +0 -43
  480. data/lib/tiny_mce/assets/tiny_mce/plugins/advimage/langs/ko_dlg.js +0 -43
  481. data/lib/tiny_mce/assets/tiny_mce/plugins/advimage/langs/lb_dlg.js +0 -43
  482. data/lib/tiny_mce/assets/tiny_mce/plugins/advimage/langs/nl_dlg.js +0 -43
  483. data/lib/tiny_mce/assets/tiny_mce/plugins/advimage/langs/ta_dlg.js +0 -43
  484. data/lib/tiny_mce/assets/tiny_mce/plugins/advimage/langs/uk_dlg.js +0 -43
  485. data/lib/tiny_mce/assets/tiny_mce/plugins/advimage/langs/vi_dlg.js +0 -43
  486. data/lib/tiny_mce/assets/tiny_mce/plugins/advimage/langs/zh_dlg.js +0 -43
  487. data/lib/tiny_mce/assets/tiny_mce/plugins/advlink/langs/ar_dlg.js +0 -52
  488. data/lib/tiny_mce/assets/tiny_mce/plugins/advlink/langs/ch_dlg.js +0 -52
  489. data/lib/tiny_mce/assets/tiny_mce/plugins/advlink/langs/cy_dlg.js +0 -52
  490. data/lib/tiny_mce/assets/tiny_mce/plugins/advlink/langs/de_dlg.js +0 -52
  491. data/lib/tiny_mce/assets/tiny_mce/plugins/advlink/langs/es_dlg.js +0 -52
  492. data/lib/tiny_mce/assets/tiny_mce/plugins/advlink/langs/he_dlg.js +0 -52
  493. data/lib/tiny_mce/assets/tiny_mce/plugins/advlink/langs/hi_dlg.js +0 -52
  494. data/lib/tiny_mce/assets/tiny_mce/plugins/advlink/langs/hr_dlg.js +0 -52
  495. data/lib/tiny_mce/assets/tiny_mce/plugins/advlink/langs/it_dlg.js +0 -52
  496. data/lib/tiny_mce/assets/tiny_mce/plugins/advlink/langs/kl_dlg.js +0 -52
  497. data/lib/tiny_mce/assets/tiny_mce/plugins/advlink/langs/ko_dlg.js +0 -52
  498. data/lib/tiny_mce/assets/tiny_mce/plugins/advlink/langs/lb_dlg.js +0 -52
  499. data/lib/tiny_mce/assets/tiny_mce/plugins/advlink/langs/nl_dlg.js +0 -52
  500. data/lib/tiny_mce/assets/tiny_mce/plugins/advlink/langs/ta_dlg.js +0 -52
  501. data/lib/tiny_mce/assets/tiny_mce/plugins/advlink/langs/uk_dlg.js +0 -52
  502. data/lib/tiny_mce/assets/tiny_mce/plugins/advlink/langs/vi_dlg.js +0 -52
  503. data/lib/tiny_mce/assets/tiny_mce/plugins/advlink/langs/zh_dlg.js +0 -52
  504. data/lib/tiny_mce/assets/tiny_mce/plugins/emotions/langs/ar_dlg.js +0 -20
  505. data/lib/tiny_mce/assets/tiny_mce/plugins/emotions/langs/ch_dlg.js +0 -20
  506. data/lib/tiny_mce/assets/tiny_mce/plugins/emotions/langs/cy_dlg.js +0 -20
  507. data/lib/tiny_mce/assets/tiny_mce/plugins/emotions/langs/de_dlg.js +0 -20
  508. data/lib/tiny_mce/assets/tiny_mce/plugins/emotions/langs/es_dlg.js +0 -20
  509. data/lib/tiny_mce/assets/tiny_mce/plugins/emotions/langs/he_dlg.js +0 -20
  510. data/lib/tiny_mce/assets/tiny_mce/plugins/emotions/langs/hi_dlg.js +0 -20
  511. data/lib/tiny_mce/assets/tiny_mce/plugins/emotions/langs/hr_dlg.js +0 -20
  512. data/lib/tiny_mce/assets/tiny_mce/plugins/emotions/langs/it_dlg.js +0 -20
  513. data/lib/tiny_mce/assets/tiny_mce/plugins/emotions/langs/kl_dlg.js +0 -20
  514. data/lib/tiny_mce/assets/tiny_mce/plugins/emotions/langs/ko_dlg.js +0 -20
  515. data/lib/tiny_mce/assets/tiny_mce/plugins/emotions/langs/lb_dlg.js +0 -20
  516. data/lib/tiny_mce/assets/tiny_mce/plugins/emotions/langs/nl_dlg.js +0 -20
  517. data/lib/tiny_mce/assets/tiny_mce/plugins/emotions/langs/ta_dlg.js +0 -20
  518. data/lib/tiny_mce/assets/tiny_mce/plugins/emotions/langs/uk_dlg.js +0 -20
  519. data/lib/tiny_mce/assets/tiny_mce/plugins/emotions/langs/vi_dlg.js +0 -20
  520. data/lib/tiny_mce/assets/tiny_mce/plugins/emotions/langs/zh_dlg.js +0 -20
  521. data/lib/tiny_mce/assets/tiny_mce/plugins/fullpage/langs/ar_dlg.js +0 -85
  522. data/lib/tiny_mce/assets/tiny_mce/plugins/fullpage/langs/ch_dlg.js +0 -85
  523. data/lib/tiny_mce/assets/tiny_mce/plugins/fullpage/langs/cy_dlg.js +0 -85
  524. data/lib/tiny_mce/assets/tiny_mce/plugins/fullpage/langs/de_dlg.js +0 -85
  525. data/lib/tiny_mce/assets/tiny_mce/plugins/fullpage/langs/es_dlg.js +0 -85
  526. data/lib/tiny_mce/assets/tiny_mce/plugins/fullpage/langs/he_dlg.js +0 -85
  527. data/lib/tiny_mce/assets/tiny_mce/plugins/fullpage/langs/hi_dlg.js +0 -85
  528. data/lib/tiny_mce/assets/tiny_mce/plugins/fullpage/langs/hr_dlg.js +0 -85
  529. data/lib/tiny_mce/assets/tiny_mce/plugins/fullpage/langs/it_dlg.js +0 -85
  530. data/lib/tiny_mce/assets/tiny_mce/plugins/fullpage/langs/kl_dlg.js +0 -85
  531. data/lib/tiny_mce/assets/tiny_mce/plugins/fullpage/langs/ko_dlg.js +0 -85
  532. data/lib/tiny_mce/assets/tiny_mce/plugins/fullpage/langs/lb_dlg.js +0 -85
  533. data/lib/tiny_mce/assets/tiny_mce/plugins/fullpage/langs/nl_dlg.js +0 -85
  534. data/lib/tiny_mce/assets/tiny_mce/plugins/fullpage/langs/ta_dlg.js +0 -85
  535. data/lib/tiny_mce/assets/tiny_mce/plugins/fullpage/langs/uk_dlg.js +0 -85
  536. data/lib/tiny_mce/assets/tiny_mce/plugins/fullpage/langs/vi_dlg.js +0 -85
  537. data/lib/tiny_mce/assets/tiny_mce/plugins/fullpage/langs/zh_dlg.js +0 -85
  538. data/lib/tiny_mce/assets/tiny_mce/plugins/media/css/content.css +0 -6
  539. data/lib/tiny_mce/assets/tiny_mce/plugins/media/img/flv_player.swf +0 -0
  540. data/lib/tiny_mce/assets/tiny_mce/plugins/media/langs/ar_dlg.js +0 -103
  541. data/lib/tiny_mce/assets/tiny_mce/plugins/media/langs/ch_dlg.js +0 -103
  542. data/lib/tiny_mce/assets/tiny_mce/plugins/media/langs/cy_dlg.js +0 -103
  543. data/lib/tiny_mce/assets/tiny_mce/plugins/media/langs/de_dlg.js +0 -103
  544. data/lib/tiny_mce/assets/tiny_mce/plugins/media/langs/es_dlg.js +0 -103
  545. data/lib/tiny_mce/assets/tiny_mce/plugins/media/langs/he_dlg.js +0 -103
  546. data/lib/tiny_mce/assets/tiny_mce/plugins/media/langs/hi_dlg.js +0 -103
  547. data/lib/tiny_mce/assets/tiny_mce/plugins/media/langs/hr_dlg.js +0 -103
  548. data/lib/tiny_mce/assets/tiny_mce/plugins/media/langs/it_dlg.js +0 -103
  549. data/lib/tiny_mce/assets/tiny_mce/plugins/media/langs/kl_dlg.js +0 -103
  550. data/lib/tiny_mce/assets/tiny_mce/plugins/media/langs/ko_dlg.js +0 -103
  551. data/lib/tiny_mce/assets/tiny_mce/plugins/media/langs/lb_dlg.js +0 -103
  552. data/lib/tiny_mce/assets/tiny_mce/plugins/media/langs/nl_dlg.js +0 -103
  553. data/lib/tiny_mce/assets/tiny_mce/plugins/media/langs/ta_dlg.js +0 -103
  554. data/lib/tiny_mce/assets/tiny_mce/plugins/media/langs/uk_dlg.js +0 -103
  555. data/lib/tiny_mce/assets/tiny_mce/plugins/media/langs/vi_dlg.js +0 -103
  556. data/lib/tiny_mce/assets/tiny_mce/plugins/media/langs/zh_dlg.js +0 -103
  557. data/lib/tiny_mce/assets/tiny_mce/plugins/pagebreak/css/content.css +0 -1
  558. data/lib/tiny_mce/assets/tiny_mce/plugins/pagebreak/img/trans.gif +0 -0
  559. data/lib/tiny_mce/assets/tiny_mce/plugins/paste/langs/ar_dlg.js +0 -5
  560. data/lib/tiny_mce/assets/tiny_mce/plugins/paste/langs/ch_dlg.js +0 -5
  561. data/lib/tiny_mce/assets/tiny_mce/plugins/paste/langs/cy_dlg.js +0 -5
  562. data/lib/tiny_mce/assets/tiny_mce/plugins/paste/langs/de_dlg.js +0 -5
  563. data/lib/tiny_mce/assets/tiny_mce/plugins/paste/langs/es_dlg.js +0 -5
  564. data/lib/tiny_mce/assets/tiny_mce/plugins/paste/langs/he_dlg.js +0 -5
  565. data/lib/tiny_mce/assets/tiny_mce/plugins/paste/langs/hi_dlg.js +0 -5
  566. data/lib/tiny_mce/assets/tiny_mce/plugins/paste/langs/hr_dlg.js +0 -5
  567. data/lib/tiny_mce/assets/tiny_mce/plugins/paste/langs/it_dlg.js +0 -5
  568. data/lib/tiny_mce/assets/tiny_mce/plugins/paste/langs/kl_dlg.js +0 -5
  569. data/lib/tiny_mce/assets/tiny_mce/plugins/paste/langs/ko_dlg.js +0 -5
  570. data/lib/tiny_mce/assets/tiny_mce/plugins/paste/langs/lb_dlg.js +0 -5
  571. data/lib/tiny_mce/assets/tiny_mce/plugins/paste/langs/nl_dlg.js +0 -5
  572. data/lib/tiny_mce/assets/tiny_mce/plugins/paste/langs/ta_dlg.js +0 -5
  573. data/lib/tiny_mce/assets/tiny_mce/plugins/paste/langs/uk_dlg.js +0 -5
  574. data/lib/tiny_mce/assets/tiny_mce/plugins/paste/langs/vi_dlg.js +0 -5
  575. data/lib/tiny_mce/assets/tiny_mce/plugins/paste/langs/zh_dlg.js +0 -5
  576. data/lib/tiny_mce/assets/tiny_mce/plugins/searchreplace/langs/ar_dlg.js +0 -16
  577. data/lib/tiny_mce/assets/tiny_mce/plugins/searchreplace/langs/ch_dlg.js +0 -16
  578. data/lib/tiny_mce/assets/tiny_mce/plugins/searchreplace/langs/cy_dlg.js +0 -16
  579. data/lib/tiny_mce/assets/tiny_mce/plugins/searchreplace/langs/de_dlg.js +0 -16
  580. data/lib/tiny_mce/assets/tiny_mce/plugins/searchreplace/langs/es_dlg.js +0 -16
  581. data/lib/tiny_mce/assets/tiny_mce/plugins/searchreplace/langs/he_dlg.js +0 -16
  582. data/lib/tiny_mce/assets/tiny_mce/plugins/searchreplace/langs/hi_dlg.js +0 -16
  583. data/lib/tiny_mce/assets/tiny_mce/plugins/searchreplace/langs/hr_dlg.js +0 -16
  584. data/lib/tiny_mce/assets/tiny_mce/plugins/searchreplace/langs/it_dlg.js +0 -16
  585. data/lib/tiny_mce/assets/tiny_mce/plugins/searchreplace/langs/kl_dlg.js +0 -16
  586. data/lib/tiny_mce/assets/tiny_mce/plugins/searchreplace/langs/ko_dlg.js +0 -16
  587. data/lib/tiny_mce/assets/tiny_mce/plugins/searchreplace/langs/lb_dlg.js +0 -16
  588. data/lib/tiny_mce/assets/tiny_mce/plugins/searchreplace/langs/nl_dlg.js +0 -16
  589. data/lib/tiny_mce/assets/tiny_mce/plugins/searchreplace/langs/ta_dlg.js +0 -16
  590. data/lib/tiny_mce/assets/tiny_mce/plugins/searchreplace/langs/uk_dlg.js +0 -16
  591. data/lib/tiny_mce/assets/tiny_mce/plugins/searchreplace/langs/vi_dlg.js +0 -16
  592. data/lib/tiny_mce/assets/tiny_mce/plugins/searchreplace/langs/zh_dlg.js +0 -16
  593. data/lib/tiny_mce/assets/tiny_mce/plugins/style/langs/ar_dlg.js +0 -63
  594. data/lib/tiny_mce/assets/tiny_mce/plugins/style/langs/ch_dlg.js +0 -63
  595. data/lib/tiny_mce/assets/tiny_mce/plugins/style/langs/cy_dlg.js +0 -63
  596. data/lib/tiny_mce/assets/tiny_mce/plugins/style/langs/de_dlg.js +0 -63
  597. data/lib/tiny_mce/assets/tiny_mce/plugins/style/langs/es_dlg.js +0 -63
  598. data/lib/tiny_mce/assets/tiny_mce/plugins/style/langs/he_dlg.js +0 -63
  599. data/lib/tiny_mce/assets/tiny_mce/plugins/style/langs/hi_dlg.js +0 -63
  600. data/lib/tiny_mce/assets/tiny_mce/plugins/style/langs/hr_dlg.js +0 -63
  601. data/lib/tiny_mce/assets/tiny_mce/plugins/style/langs/it_dlg.js +0 -63
  602. data/lib/tiny_mce/assets/tiny_mce/plugins/style/langs/kl_dlg.js +0 -63
  603. data/lib/tiny_mce/assets/tiny_mce/plugins/style/langs/ko_dlg.js +0 -63
  604. data/lib/tiny_mce/assets/tiny_mce/plugins/style/langs/lb_dlg.js +0 -63
  605. data/lib/tiny_mce/assets/tiny_mce/plugins/style/langs/nl_dlg.js +0 -63
  606. data/lib/tiny_mce/assets/tiny_mce/plugins/style/langs/ta_dlg.js +0 -63
  607. data/lib/tiny_mce/assets/tiny_mce/plugins/style/langs/uk_dlg.js +0 -63
  608. data/lib/tiny_mce/assets/tiny_mce/plugins/style/langs/vi_dlg.js +0 -63
  609. data/lib/tiny_mce/assets/tiny_mce/plugins/style/langs/zh_dlg.js +0 -63
  610. data/lib/tiny_mce/assets/tiny_mce/plugins/table/langs/ar_dlg.js +0 -74
  611. data/lib/tiny_mce/assets/tiny_mce/plugins/table/langs/ch_dlg.js +0 -74
  612. data/lib/tiny_mce/assets/tiny_mce/plugins/table/langs/cy_dlg.js +0 -74
  613. data/lib/tiny_mce/assets/tiny_mce/plugins/table/langs/de_dlg.js +0 -74
  614. data/lib/tiny_mce/assets/tiny_mce/plugins/table/langs/es_dlg.js +0 -74
  615. data/lib/tiny_mce/assets/tiny_mce/plugins/table/langs/he_dlg.js +0 -74
  616. data/lib/tiny_mce/assets/tiny_mce/plugins/table/langs/hi_dlg.js +0 -74
  617. data/lib/tiny_mce/assets/tiny_mce/plugins/table/langs/hr_dlg.js +0 -74
  618. data/lib/tiny_mce/assets/tiny_mce/plugins/table/langs/it_dlg.js +0 -74
  619. data/lib/tiny_mce/assets/tiny_mce/plugins/table/langs/kl_dlg.js +0 -74
  620. data/lib/tiny_mce/assets/tiny_mce/plugins/table/langs/ko_dlg.js +0 -74
  621. data/lib/tiny_mce/assets/tiny_mce/plugins/table/langs/lb_dlg.js +0 -74
  622. data/lib/tiny_mce/assets/tiny_mce/plugins/table/langs/nl_dlg.js +0 -74
  623. data/lib/tiny_mce/assets/tiny_mce/plugins/table/langs/ta_dlg.js +0 -74
  624. data/lib/tiny_mce/assets/tiny_mce/plugins/table/langs/uk_dlg.js +0 -74
  625. data/lib/tiny_mce/assets/tiny_mce/plugins/table/langs/vi_dlg.js +0 -74
  626. data/lib/tiny_mce/assets/tiny_mce/plugins/table/langs/zh_dlg.js +0 -74
  627. data/lib/tiny_mce/assets/tiny_mce/plugins/template/langs/ar_dlg.js +0 -15
  628. data/lib/tiny_mce/assets/tiny_mce/plugins/template/langs/ch_dlg.js +0 -15
  629. data/lib/tiny_mce/assets/tiny_mce/plugins/template/langs/cy_dlg.js +0 -15
  630. data/lib/tiny_mce/assets/tiny_mce/plugins/template/langs/de_dlg.js +0 -15
  631. data/lib/tiny_mce/assets/tiny_mce/plugins/template/langs/es_dlg.js +0 -15
  632. data/lib/tiny_mce/assets/tiny_mce/plugins/template/langs/he_dlg.js +0 -15
  633. data/lib/tiny_mce/assets/tiny_mce/plugins/template/langs/hi_dlg.js +0 -15
  634. data/lib/tiny_mce/assets/tiny_mce/plugins/template/langs/hr_dlg.js +0 -15
  635. data/lib/tiny_mce/assets/tiny_mce/plugins/template/langs/it_dlg.js +0 -15
  636. data/lib/tiny_mce/assets/tiny_mce/plugins/template/langs/kl_dlg.js +0 -15
  637. data/lib/tiny_mce/assets/tiny_mce/plugins/template/langs/ko_dlg.js +0 -15
  638. data/lib/tiny_mce/assets/tiny_mce/plugins/template/langs/lb_dlg.js +0 -15
  639. data/lib/tiny_mce/assets/tiny_mce/plugins/template/langs/nl_dlg.js +0 -15
  640. data/lib/tiny_mce/assets/tiny_mce/plugins/template/langs/ta_dlg.js +0 -15
  641. data/lib/tiny_mce/assets/tiny_mce/plugins/template/langs/uk_dlg.js +0 -15
  642. data/lib/tiny_mce/assets/tiny_mce/plugins/template/langs/vi_dlg.js +0 -15
  643. data/lib/tiny_mce/assets/tiny_mce/plugins/template/langs/zh_dlg.js +0 -15
  644. data/lib/tiny_mce/assets/tiny_mce/plugins/xhtmlxtras/langs/ar_dlg.js +0 -32
  645. data/lib/tiny_mce/assets/tiny_mce/plugins/xhtmlxtras/langs/ch_dlg.js +0 -32
  646. data/lib/tiny_mce/assets/tiny_mce/plugins/xhtmlxtras/langs/cy_dlg.js +0 -32
  647. data/lib/tiny_mce/assets/tiny_mce/plugins/xhtmlxtras/langs/de_dlg.js +0 -32
  648. data/lib/tiny_mce/assets/tiny_mce/plugins/xhtmlxtras/langs/es_dlg.js +0 -32
  649. data/lib/tiny_mce/assets/tiny_mce/plugins/xhtmlxtras/langs/he_dlg.js +0 -32
  650. data/lib/tiny_mce/assets/tiny_mce/plugins/xhtmlxtras/langs/hi_dlg.js +0 -32
  651. data/lib/tiny_mce/assets/tiny_mce/plugins/xhtmlxtras/langs/hr_dlg.js +0 -32
  652. data/lib/tiny_mce/assets/tiny_mce/plugins/xhtmlxtras/langs/it_dlg.js +0 -32
  653. data/lib/tiny_mce/assets/tiny_mce/plugins/xhtmlxtras/langs/kl_dlg.js +0 -32
  654. data/lib/tiny_mce/assets/tiny_mce/plugins/xhtmlxtras/langs/ko_dlg.js +0 -32
  655. data/lib/tiny_mce/assets/tiny_mce/plugins/xhtmlxtras/langs/lb_dlg.js +0 -32
  656. data/lib/tiny_mce/assets/tiny_mce/plugins/xhtmlxtras/langs/nl_dlg.js +0 -32
  657. data/lib/tiny_mce/assets/tiny_mce/plugins/xhtmlxtras/langs/ta_dlg.js +0 -32
  658. data/lib/tiny_mce/assets/tiny_mce/plugins/xhtmlxtras/langs/uk_dlg.js +0 -32
  659. data/lib/tiny_mce/assets/tiny_mce/plugins/xhtmlxtras/langs/vi_dlg.js +0 -32
  660. data/lib/tiny_mce/assets/tiny_mce/plugins/xhtmlxtras/langs/zh_dlg.js +0 -32
  661. data/lib/tiny_mce/assets/tiny_mce/themes/advanced/langs/ar.js +0 -62
  662. data/lib/tiny_mce/assets/tiny_mce/themes/advanced/langs/ar_dlg.js +0 -51
  663. data/lib/tiny_mce/assets/tiny_mce/themes/advanced/langs/ch.js +0 -64
  664. data/lib/tiny_mce/assets/tiny_mce/themes/advanced/langs/ch_dlg.js +0 -51
  665. data/lib/tiny_mce/assets/tiny_mce/themes/advanced/langs/cy.js +0 -62
  666. data/lib/tiny_mce/assets/tiny_mce/themes/advanced/langs/cy_dlg.js +0 -51
  667. data/lib/tiny_mce/assets/tiny_mce/themes/advanced/langs/de.js +0 -63
  668. data/lib/tiny_mce/assets/tiny_mce/themes/advanced/langs/de_dlg.js +0 -51
  669. data/lib/tiny_mce/assets/tiny_mce/themes/advanced/langs/es.js +0 -62
  670. data/lib/tiny_mce/assets/tiny_mce/themes/advanced/langs/es_dlg.js +0 -51
  671. data/lib/tiny_mce/assets/tiny_mce/themes/advanced/langs/he.js +0 -62
  672. data/lib/tiny_mce/assets/tiny_mce/themes/advanced/langs/he_dlg.js +0 -51
  673. data/lib/tiny_mce/assets/tiny_mce/themes/advanced/langs/hi.js +0 -62
  674. data/lib/tiny_mce/assets/tiny_mce/themes/advanced/langs/hi_dlg.js +0 -51
  675. data/lib/tiny_mce/assets/tiny_mce/themes/advanced/langs/hr.js +0 -62
  676. data/lib/tiny_mce/assets/tiny_mce/themes/advanced/langs/hr_dlg.js +0 -51
  677. data/lib/tiny_mce/assets/tiny_mce/themes/advanced/langs/it.js +0 -72
  678. data/lib/tiny_mce/assets/tiny_mce/themes/advanced/langs/it_dlg.js +0 -51
  679. data/lib/tiny_mce/assets/tiny_mce/themes/advanced/langs/kl.js +0 -62
  680. data/lib/tiny_mce/assets/tiny_mce/themes/advanced/langs/kl_dlg.js +0 -51
  681. data/lib/tiny_mce/assets/tiny_mce/themes/advanced/langs/ko.js +0 -62
  682. data/lib/tiny_mce/assets/tiny_mce/themes/advanced/langs/ko_dlg.js +0 -51
  683. data/lib/tiny_mce/assets/tiny_mce/themes/advanced/langs/lb.js +0 -63
  684. data/lib/tiny_mce/assets/tiny_mce/themes/advanced/langs/lb_dlg.js +0 -51
  685. data/lib/tiny_mce/assets/tiny_mce/themes/advanced/langs/nl.js +0 -62
  686. data/lib/tiny_mce/assets/tiny_mce/themes/advanced/langs/nl_dlg.js +0 -51
  687. data/lib/tiny_mce/assets/tiny_mce/themes/advanced/langs/ta.js +0 -62
  688. data/lib/tiny_mce/assets/tiny_mce/themes/advanced/langs/ta_dlg.js +0 -51
  689. data/lib/tiny_mce/assets/tiny_mce/themes/advanced/langs/uk.js +0 -62
  690. data/lib/tiny_mce/assets/tiny_mce/themes/advanced/langs/uk_dlg.js +0 -51
  691. data/lib/tiny_mce/assets/tiny_mce/themes/advanced/langs/vi.js +0 -62
  692. data/lib/tiny_mce/assets/tiny_mce/themes/advanced/langs/vi_dlg.js +0 -51
  693. data/lib/tiny_mce/assets/tiny_mce/themes/advanced/langs/zh.js +0 -64
  694. data/lib/tiny_mce/assets/tiny_mce/themes/advanced/langs/zh_dlg.js +0 -51
  695. data/lib/tiny_mce/assets/tiny_mce/themes/simple/langs/ar.js +0 -11
  696. data/lib/tiny_mce/assets/tiny_mce/themes/simple/langs/ch.js +0 -11
  697. data/lib/tiny_mce/assets/tiny_mce/themes/simple/langs/cy.js +0 -11
  698. data/lib/tiny_mce/assets/tiny_mce/themes/simple/langs/de.js +0 -11
  699. data/lib/tiny_mce/assets/tiny_mce/themes/simple/langs/es.js +0 -11
  700. data/lib/tiny_mce/assets/tiny_mce/themes/simple/langs/he.js +0 -11
  701. data/lib/tiny_mce/assets/tiny_mce/themes/simple/langs/hi.js +0 -11
  702. data/lib/tiny_mce/assets/tiny_mce/themes/simple/langs/hr.js +0 -11
  703. data/lib/tiny_mce/assets/tiny_mce/themes/simple/langs/it.js +0 -11
  704. data/lib/tiny_mce/assets/tiny_mce/themes/simple/langs/kl.js +0 -11
  705. data/lib/tiny_mce/assets/tiny_mce/themes/simple/langs/ko.js +0 -11
  706. data/lib/tiny_mce/assets/tiny_mce/themes/simple/langs/lb.js +0 -11
  707. data/lib/tiny_mce/assets/tiny_mce/themes/simple/langs/nl.js +0 -11
  708. data/lib/tiny_mce/assets/tiny_mce/themes/simple/langs/ta.js +0 -11
  709. data/lib/tiny_mce/assets/tiny_mce/themes/simple/langs/uk.js +0 -11
  710. data/lib/tiny_mce/assets/tiny_mce/themes/simple/langs/vi.js +0 -11
  711. data/lib/tiny_mce/assets/tiny_mce/themes/simple/langs/zh.js +0 -11
@@ -1,630 +1,340 @@
1
- tinyMCEPopup.requireLangPack();
1
+ (function() {
2
+ var url;
2
3
 
3
- var oldWidth, oldHeight, ed, url;
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>');
4
6
 
5
- if (url = tinyMCEPopup.getParam("media_external_list_url"))
6
- document.write('<script language="javascript" type="text/javascript" src="' + tinyMCEPopup.editor.documentBaseURI.toAbsolute(url) + '"></script>');
7
-
8
- function init() {
9
- var pl = "", f, val;
10
- var type = "flash", fe, i;
11
-
12
- ed = tinyMCEPopup.editor;
13
-
14
- tinyMCEPopup.resizeToInnerSize();
15
- f = document.forms[0]
16
-
17
- fe = ed.selection.getNode();
18
- if (/mceItem(Flash|ShockWave|WindowsMedia|QuickTime|RealMedia)/.test(ed.dom.getAttrib(fe, 'class'))) {
19
- pl = fe.title;
20
-
21
- switch (ed.dom.getAttrib(fe, 'class')) {
22
- case 'mceItemFlash':
23
- type = 'flash';
24
- break;
25
-
26
- case 'mceItemFlashVideo':
27
- type = 'flv';
28
- break;
29
-
30
- case 'mceItemShockWave':
31
- type = 'shockwave';
32
- break;
33
-
34
- case 'mceItemWindowsMedia':
35
- type = 'wmp';
36
- break;
37
-
38
- case 'mceItemQuickTime':
39
- type = 'qt';
40
- break;
41
-
42
- case 'mceItemRealMedia':
43
- type = 'rmp';
44
- break;
45
- }
46
-
47
- document.forms[0].insert.value = ed.getLang('update', 'Insert', true);
7
+ function get(id) {
8
+ return document.getElementById(id);
48
9
  }
49
10
 
50
- document.getElementById('filebrowsercontainer').innerHTML = getBrowserHTML('filebrowser','src','media','media');
51
- document.getElementById('qtsrcfilebrowsercontainer').innerHTML = getBrowserHTML('qtsrcfilebrowser','qt_qtsrc','media','media');
52
- document.getElementById('bgcolor_pickcontainer').innerHTML = getColorPickerHTML('bgcolor_pick','bgcolor');
53
-
54
- var html = getMediaListHTML('medialist','src','media','media');
55
- if (html == "")
56
- document.getElementById("linklistrow").style.display = 'none';
57
- else
58
- document.getElementById("linklistcontainer").innerHTML = html;
59
-
60
- // Resize some elements
61
- if (isVisible('filebrowser'))
62
- document.getElementById('src').style.width = '230px';
63
-
64
- // Setup form
65
- if (pl != "") {
66
- pl = tinyMCEPopup.editor.plugins.media._parse(pl);
67
-
68
- switch (type) {
69
- case "flash":
70
- setBool(pl, 'flash', 'play');
71
- setBool(pl, 'flash', 'loop');
72
- setBool(pl, 'flash', 'menu');
73
- setBool(pl, 'flash', 'swliveconnect');
74
- setStr(pl, 'flash', 'quality');
75
- setStr(pl, 'flash', 'scale');
76
- setStr(pl, 'flash', 'salign');
77
- setStr(pl, 'flash', 'wmode');
78
- setStr(pl, 'flash', 'base');
79
- setStr(pl, 'flash', 'flashvars');
80
- break;
81
-
82
- case "qt":
83
- setBool(pl, 'qt', 'loop');
84
- setBool(pl, 'qt', 'autoplay');
85
- setBool(pl, 'qt', 'cache');
86
- setBool(pl, 'qt', 'controller');
87
- setBool(pl, 'qt', 'correction');
88
- setBool(pl, 'qt', 'enablejavascript');
89
- setBool(pl, 'qt', 'kioskmode');
90
- setBool(pl, 'qt', 'autohref');
91
- setBool(pl, 'qt', 'playeveryframe');
92
- setBool(pl, 'qt', 'tarsetcache');
93
- setStr(pl, 'qt', 'scale');
94
- setStr(pl, 'qt', 'starttime');
95
- setStr(pl, 'qt', 'endtime');
96
- setStr(pl, 'qt', 'tarset');
97
- setStr(pl, 'qt', 'qtsrcchokespeed');
98
- setStr(pl, 'qt', 'volume');
99
- setStr(pl, 'qt', 'qtsrc');
100
- break;
101
-
102
- case "shockwave":
103
- setBool(pl, 'shockwave', 'sound');
104
- setBool(pl, 'shockwave', 'progress');
105
- setBool(pl, 'shockwave', 'autostart');
106
- setBool(pl, 'shockwave', 'swliveconnect');
107
- setStr(pl, 'shockwave', 'swvolume');
108
- setStr(pl, 'shockwave', 'swstretchstyle');
109
- setStr(pl, 'shockwave', 'swstretchhalign');
110
- setStr(pl, 'shockwave', 'swstretchvalign');
111
- break;
112
-
113
- case "wmp":
114
- setBool(pl, 'wmp', 'autostart');
115
- setBool(pl, 'wmp', 'enabled');
116
- setBool(pl, 'wmp', 'enablecontextmenu');
117
- setBool(pl, 'wmp', 'fullscreen');
118
- setBool(pl, 'wmp', 'invokeurls');
119
- setBool(pl, 'wmp', 'mute');
120
- setBool(pl, 'wmp', 'stretchtofit');
121
- setBool(pl, 'wmp', 'windowlessvideo');
122
- setStr(pl, 'wmp', 'balance');
123
- setStr(pl, 'wmp', 'baseurl');
124
- setStr(pl, 'wmp', 'captioningid');
125
- setStr(pl, 'wmp', 'currentmarker');
126
- setStr(pl, 'wmp', 'currentposition');
127
- setStr(pl, 'wmp', 'defaultframe');
128
- setStr(pl, 'wmp', 'playcount');
129
- setStr(pl, 'wmp', 'rate');
130
- setStr(pl, 'wmp', 'uimode');
131
- setStr(pl, 'wmp', 'volume');
132
- break;
133
-
134
- case "rmp":
135
- setBool(pl, 'rmp', 'autostart');
136
- setBool(pl, 'rmp', 'loop');
137
- setBool(pl, 'rmp', 'autogotourl');
138
- setBool(pl, 'rmp', 'center');
139
- setBool(pl, 'rmp', 'imagestatus');
140
- setBool(pl, 'rmp', 'maintainaspect');
141
- setBool(pl, 'rmp', 'nojava');
142
- setBool(pl, 'rmp', 'prefetch');
143
- setBool(pl, 'rmp', 'shuffle');
144
- setStr(pl, 'rmp', 'console');
145
- setStr(pl, 'rmp', 'controls');
146
- setStr(pl, 'rmp', 'numloop');
147
- setStr(pl, 'rmp', 'scriptcallbacks');
148
- break;
149
- }
150
-
151
- setStr(pl, null, 'src');
152
- setStr(pl, null, 'id');
153
- setStr(pl, null, 'name');
154
- setStr(pl, null, 'vspace');
155
- setStr(pl, null, 'hspace');
156
- setStr(pl, null, 'bgcolor');
157
- setStr(pl, null, 'align');
158
- setStr(pl, null, 'width');
159
- setStr(pl, null, 'height');
160
-
161
- if ((val = ed.dom.getAttrib(fe, "width")) != "")
162
- pl.width = f.width.value = val;
163
-
164
- if ((val = ed.dom.getAttrib(fe, "height")) != "")
165
- pl.height = f.height.value = val;
166
-
167
- oldWidth = pl.width ? parseInt(pl.width) : 0;
168
- oldHeight = pl.height ? parseInt(pl.height) : 0;
169
- } else
170
- oldWidth = oldHeight = 0;
11
+ function getVal(id) {
12
+ var elm = get(id);
171
13
 
172
- selectByValue(f, 'media_type', type);
173
- changedType(type);
174
- updateColor('bgcolor_pick', 'bgcolor');
14
+ if (elm.nodeName == "SELECT")
15
+ return elm.options[elm.selectedIndex].value;
175
16
 
176
- TinyMCE_EditableSelects.init();
177
- generatePreview();
178
- }
17
+ if (elm.type == "checkbox")
18
+ return elm.checked;
179
19
 
180
- function insertMedia() {
181
- var fe, f = document.forms[0], h;
182
-
183
- tinyMCEPopup.restoreSelection();
184
-
185
- if (!AutoValidator.validate(f)) {
186
- tinyMCEPopup.alert(ed.getLang('invalid_data'));
187
- return false;
20
+ return elm.value;
188
21
  }
189
22
 
190
- f.width.value = f.width.value == "" ? 100 : f.width.value;
191
- f.height.value = f.height.value == "" ? 100 : f.height.value;
192
-
193
- fe = ed.selection.getNode();
194
- if (fe != null && /mceItem(Flash|ShockWave|WindowsMedia|QuickTime|RealMedia)/.test(ed.dom.getAttrib(fe, 'class'))) {
195
- switch (f.media_type.options[f.media_type.selectedIndex].value) {
196
- case "flash":
197
- fe.className = "mceItemFlash";
198
- break;
199
-
200
- case "flv":
201
- fe.className = "mceItemFlashVideo";
202
- break;
203
-
204
- case "shockwave":
205
- fe.className = "mceItemShockWave";
206
- break;
23
+ function setVal(id, value) {
24
+ if (typeof(value) != 'undefined') {
25
+ var elm = get(id);
207
26
 
208
- case "qt":
209
- fe.className = "mceItemQuickTime";
210
- break;
211
-
212
- case "wmp":
213
- fe.className = "mceItemWindowsMedia";
214
- break;
215
-
216
- case "rmp":
217
- fe.className = "mceItemRealMedia";
218
- break;
219
- }
220
-
221
- if (fe.width != f.width.value || fe.height != f.height.value)
222
- ed.execCommand('mceRepaint');
223
-
224
- fe.title = serializeParameters();
225
- fe.width = f.width.value;
226
- fe.height = f.height.value;
227
- fe.style.width = f.width.value + (f.width.value.indexOf('%') == -1 ? 'px' : '');
228
- fe.style.height = f.height.value + (f.height.value.indexOf('%') == -1 ? 'px' : '');
229
- fe.align = f.align.options[f.align.selectedIndex].value;
230
- } else {
231
- h = '<img src="' + tinyMCEPopup.getWindowArg("plugin_url") + '/img/trans.gif"' ;
232
-
233
- switch (f.media_type.options[f.media_type.selectedIndex].value) {
234
- case "flash":
235
- h += ' class="mceItemFlash"';
236
- break;
237
-
238
- case "flv":
239
- h += ' class="mceItemFlashVideo"';
240
- break;
241
-
242
- case "shockwave":
243
- h += ' class="mceItemShockWave"';
244
- break;
245
-
246
- case "qt":
247
- h += ' class="mceItemQuickTime"';
248
- break;
249
-
250
- case "wmp":
251
- h += ' class="mceItemWindowsMedia"';
252
- break;
253
-
254
- case "rmp":
255
- h += ' class="mceItemRealMedia"';
256
- break;
27
+ if (elm.nodeName == "SELECT")
28
+ selectByValue(document.forms[0], id, value);
29
+ else if (elm.type == "checkbox")
30
+ elm.checked = !!value;
31
+ else
32
+ elm.value = value;
257
33
  }
258
-
259
- h += ' title="' + serializeParameters() + '"';
260
- h += ' width="' + f.width.value + '"';
261
- h += ' height="' + f.height.value + '"';
262
- h += ' align="' + f.align.options[f.align.selectedIndex].value + '"';
263
-
264
- h += ' />';
265
-
266
- ed.execCommand('mceInsertContent', false, h);
267
- }
268
-
269
- tinyMCEPopup.close();
270
- }
271
-
272
- function updatePreview() {
273
- var f = document.forms[0], type;
274
-
275
- f.width.value = f.width.value || '320';
276
- f.height.value = f.height.value || '240';
277
-
278
- type = getType(f.src.value);
279
- selectByValue(f, 'media_type', type);
280
- changedType(type);
281
- generatePreview();
282
- }
283
-
284
- function getMediaListHTML() {
285
- if (typeof(tinyMCEMediaList) != "undefined" && tinyMCEMediaList.length > 0) {
286
- var html = "";
287
-
288
- html += '<select id="linklist" name="linklist" style="width: 250px" onchange="this.form.src.value=this.options[this.selectedIndex].value;updatePreview();">';
289
- html += '<option value="">---</option>';
290
-
291
- for (var i=0; i<tinyMCEMediaList.length; i++)
292
- html += '<option value="' + tinyMCEMediaList[i][1] + '">' + tinyMCEMediaList[i][0] + '</option>';
293
-
294
- html += '</select>';
295
-
296
- return html;
297
- }
298
-
299
- return "";
300
- }
301
-
302
- function getType(v) {
303
- var fo, i, c, el, x, f = document.forms[0];
304
-
305
- fo = ed.getParam("media_types", "flash=swf;flv=flv;shockwave=dcr;qt=mov,qt,mpg,mp3,mp4,mpeg;shockwave=dcr;wmp=avi,wmv,wm,asf,asx,wmx,wvx;rmp=rm,ra,ram").split(';');
306
-
307
- // YouTube
308
- if (v.match(/watch\?v=(.+)(.*)/)) {
309
- f.width.value = '425';
310
- f.height.value = '350';
311
- f.src.value = 'http://www.youtube.com/v/' + v.match(/v=(.*)(.*)/)[0].split('=')[1];
312
- return 'flash';
313
- }
314
-
315
- // Google video
316
- if (v.indexOf('http://video.google.com/videoplay?docid=') == 0) {
317
- f.width.value = '425';
318
- f.height.value = '326';
319
- f.src.value = 'http://video.google.com/googleplayer.swf?docId=' + v.substring('http://video.google.com/videoplay?docid='.length) + '&hl=en';
320
- return 'flash';
321
- }
322
-
323
- for (i=0; i<fo.length; i++) {
324
- c = fo[i].split('=');
325
-
326
- el = c[1].split(',');
327
- for (x=0; x<el.length; x++)
328
- if (v.indexOf('.' + el[x]) != -1)
329
- return c[0];
330
- }
331
-
332
- return null;
333
- }
334
-
335
- function switchType(v) {
336
- var t = getType(v), d = document, f = d.forms[0];
337
-
338
- if (!t)
339
- return;
340
-
341
- selectByValue(d.forms[0], 'media_type', t);
342
- changedType(t);
343
-
344
- // Update qtsrc also
345
- if (t == 'qt' && f.src.value.toLowerCase().indexOf('rtsp://') != -1) {
346
- alert(ed.getLang("media_qt_stream_warn"));
347
-
348
- if (f.qt_qtsrc.value == '')
349
- f.qt_qtsrc.value = f.src.value;
350
- }
351
- }
352
-
353
- function changedType(t) {
354
- var d = document;
355
-
356
- d.getElementById('flash_options').style.display = 'none';
357
- d.getElementById('flv_options').style.display = 'none';
358
- d.getElementById('qt_options').style.display = 'none';
359
- d.getElementById('shockwave_options').style.display = 'none';
360
- d.getElementById('wmp_options').style.display = 'none';
361
- d.getElementById('rmp_options').style.display = 'none';
362
-
363
- if (t)
364
- d.getElementById(t + '_options').style.display = 'block';
365
- }
366
-
367
- function serializeParameters() {
368
- var d = document, f = d.forms[0], s = '';
369
-
370
- switch (f.media_type.options[f.media_type.selectedIndex].value) {
371
- case "flash":
372
- s += getBool('flash', 'play', true);
373
- s += getBool('flash', 'loop', true);
374
- s += getBool('flash', 'menu', true);
375
- s += getBool('flash', 'swliveconnect', false);
376
- s += getStr('flash', 'quality');
377
- s += getStr('flash', 'scale');
378
- s += getStr('flash', 'salign');
379
- s += getStr('flash', 'wmode');
380
- s += getStr('flash', 'base');
381
- s += getStr('flash', 'flashvars');
382
- break;
383
-
384
- case "qt":
385
- s += getBool('qt', 'loop', false);
386
- s += getBool('qt', 'autoplay', true);
387
- s += getBool('qt', 'cache', false);
388
- s += getBool('qt', 'controller', true);
389
- s += getBool('qt', 'correction', false, 'none', 'full');
390
- s += getBool('qt', 'enablejavascript', false);
391
- s += getBool('qt', 'kioskmode', false);
392
- s += getBool('qt', 'autohref', false);
393
- s += getBool('qt', 'playeveryframe', false);
394
- s += getBool('qt', 'targetcache', false);
395
- s += getStr('qt', 'scale');
396
- s += getStr('qt', 'starttime');
397
- s += getStr('qt', 'endtime');
398
- s += getStr('qt', 'target');
399
- s += getStr('qt', 'qtsrcchokespeed');
400
- s += getStr('qt', 'volume');
401
- s += getStr('qt', 'qtsrc');
402
- break;
403
-
404
- case "shockwave":
405
- s += getBool('shockwave', 'sound');
406
- s += getBool('shockwave', 'progress');
407
- s += getBool('shockwave', 'autostart');
408
- s += getBool('shockwave', 'swliveconnect');
409
- s += getStr('shockwave', 'swvolume');
410
- s += getStr('shockwave', 'swstretchstyle');
411
- s += getStr('shockwave', 'swstretchhalign');
412
- s += getStr('shockwave', 'swstretchvalign');
413
- break;
414
-
415
- case "wmp":
416
- s += getBool('wmp', 'autostart', true);
417
- s += getBool('wmp', 'enabled', false);
418
- s += getBool('wmp', 'enablecontextmenu', true);
419
- s += getBool('wmp', 'fullscreen', false);
420
- s += getBool('wmp', 'invokeurls', true);
421
- s += getBool('wmp', 'mute', false);
422
- s += getBool('wmp', 'stretchtofit', false);
423
- s += getBool('wmp', 'windowlessvideo', false);
424
- s += getStr('wmp', 'balance');
425
- s += getStr('wmp', 'baseurl');
426
- s += getStr('wmp', 'captioningid');
427
- s += getStr('wmp', 'currentmarker');
428
- s += getStr('wmp', 'currentposition');
429
- s += getStr('wmp', 'defaultframe');
430
- s += getStr('wmp', 'playcount');
431
- s += getStr('wmp', 'rate');
432
- s += getStr('wmp', 'uimode');
433
- s += getStr('wmp', 'volume');
434
- break;
435
-
436
- case "rmp":
437
- s += getBool('rmp', 'autostart', false);
438
- s += getBool('rmp', 'loop', false);
439
- s += getBool('rmp', 'autogotourl', true);
440
- s += getBool('rmp', 'center', false);
441
- s += getBool('rmp', 'imagestatus', true);
442
- s += getBool('rmp', 'maintainaspect', false);
443
- s += getBool('rmp', 'nojava', false);
444
- s += getBool('rmp', 'prefetch', false);
445
- s += getBool('rmp', 'shuffle', false);
446
- s += getStr('rmp', 'console');
447
- s += getStr('rmp', 'controls');
448
- s += getStr('rmp', 'numloop');
449
- s += getStr('rmp', 'scriptcallbacks');
450
- break;
451
34
  }
452
35
 
453
- s += getStr(null, 'id');
454
- s += getStr(null, 'name');
455
- s += getStr(null, 'src');
456
- s += getStr(null, 'align');
457
- s += getStr(null, 'bgcolor');
458
- s += getInt(null, 'vspace');
459
- s += getInt(null, 'hspace');
460
- s += getStr(null, 'width');
461
- s += getStr(null, 'height');
462
-
463
- s = s.length > 0 ? s.substring(0, s.length - 1) : s;
464
-
465
- return s;
466
- }
467
-
468
- function setBool(pl, p, n) {
469
- if (typeof(pl[n]) == "undefined")
470
- return;
471
-
472
- document.forms[0].elements[p + "_" + n].checked = pl[n] != 'false';
473
- }
474
-
475
- function setStr(pl, p, n) {
476
- var f = document.forms[0], e = f.elements[(p != null ? p + "_" : '') + n];
477
-
478
- if (typeof(pl[n]) == "undefined")
479
- return;
480
-
481
- if (e.type == "text")
482
- e.value = pl[n];
483
- else
484
- selectByValue(f, (p != null ? p + "_" : '') + n, pl[n]);
485
- }
486
-
487
- function getBool(p, n, d, tv, fv) {
488
- var v = document.forms[0].elements[p + "_" + n].checked;
489
-
490
- tv = typeof(tv) == 'undefined' ? 'true' : "'" + jsEncode(tv) + "'";
491
- fv = typeof(fv) == 'undefined' ? 'false' : "'" + jsEncode(fv) + "'";
492
-
493
- return (v == d) ? '' : n + (v ? ':' + tv + ',' : ":\'" + fv + "\',");
494
- }
495
-
496
- function getStr(p, n, d) {
497
- var e = document.forms[0].elements[(p != null ? p + "_" : "") + n];
498
- var v = e.type == "text" ? e.value : e.options[e.selectedIndex].value;
499
-
500
- if (n == 'src')
501
- v = tinyMCEPopup.editor.convertURL(v, 'src', null);
36
+ window.Media = {
37
+ init : function() {
38
+ var html, editor;
39
+
40
+ this.editor = editor = tinyMCEPopup.editor;
41
+
42
+ // Setup file browsers and color pickers
43
+ get('filebrowsercontainer').innerHTML = getBrowserHTML('filebrowser','src','media','media');
44
+ get('qtsrcfilebrowsercontainer').innerHTML = getBrowserHTML('qtsrcfilebrowser','quicktime_qtsrc','media','media');
45
+ get('bgcolor_pickcontainer').innerHTML = getColorPickerHTML('bgcolor_pick','bgcolor');
46
+ get('video_altsource1_filebrowser').innerHTML = getBrowserHTML('filebrowser_altsource1','video_altsource1','media','media');
47
+ get('video_altsource2_filebrowser').innerHTML = getBrowserHTML('filebrowser_altsource2','video_altsource2','media','media');
48
+ get('video_poster_filebrowser').innerHTML = getBrowserHTML('filebrowser_poster','video_poster','media','image');
49
+
50
+ html = this.getMediaListHTML('medialist', 'src', 'media', 'media');
51
+ if (html == "")
52
+ get("linklistrow").style.display = 'none';
53
+ else
54
+ get("linklistcontainer").innerHTML = html;
55
+
56
+ if (isVisible('filebrowser'))
57
+ get('src').style.width = '230px';
58
+
59
+ if (isVisible('filebrowser_altsource1'))
60
+ get('video_altsource1').style.width = '220px';
61
+
62
+ if (isVisible('filebrowser_altsource2'))
63
+ get('video_altsource2').style.width = '220px';
64
+
65
+ if (isVisible('filebrowser_poster'))
66
+ get('video_poster').style.width = '220px';
67
+
68
+ this.data = tinyMCEPopup.getWindowArg('data');
69
+ this.dataToForm();
70
+ this.preview();
71
+ },
72
+
73
+ insert : function() {
74
+ var editor = tinyMCEPopup.editor;
75
+
76
+ this.formToData();
77
+ editor.execCommand('mceRepaint');
78
+ tinyMCEPopup.restoreSelection();
79
+ editor.selection.setNode(editor.plugins.media.dataToImg(this.data));
80
+ tinyMCEPopup.close();
81
+ },
82
+
83
+ preview : function() {
84
+ get('prev').innerHTML = this.editor.plugins.media.dataToHtml(this.data, true);
85
+ },
86
+
87
+ moveStates : function(to_form, field) {
88
+ var data = this.data, editor = this.editor, data = this.data,
89
+ mediaPlugin = editor.plugins.media, ext, src, typeInfo, defaultStates, src;
90
+
91
+ defaultStates = {
92
+ // QuickTime
93
+ quicktime_autoplay : true,
94
+ quicktime_controller : true,
95
+
96
+ // Flash
97
+ flash_play : true,
98
+ flash_loop : true,
99
+ flash_menu : true,
100
+
101
+ // WindowsMedia
102
+ windowsmedia_autostart : true,
103
+ windowsmedia_enablecontextmenu : true,
104
+ windowsmedia_invokeurls : true,
105
+
106
+ // RealMedia
107
+ realmedia_autogotourl : true,
108
+ realmedia_imagestatus : true
109
+ };
110
+
111
+ function parseQueryParams(str) {
112
+ var out = {};
113
+
114
+ if (str) {
115
+ tinymce.each(str.split('&'), function(item) {
116
+ var parts = item.split('=');
117
+
118
+ out[unescape(parts[0])] = unescape(parts[1]);
119
+ });
120
+ }
121
+
122
+ return out;
123
+ };
124
+
125
+ function setOptions(type, names) {
126
+ var i, name, formItemName, value, list;
127
+
128
+ if (type == data.type || type == 'global') {
129
+ names = tinymce.explode(names);
130
+ for (i = 0; i < names.length; i++) {
131
+ name = names[i];
132
+ formItemName = type == 'global' ? name : type + '_' + name;
133
+
134
+ if (type == 'global')
135
+ list = data;
136
+ else if (type == 'video') {
137
+ list = data.video.attrs;
138
+
139
+ if (!list && !to_form)
140
+ data.video.attrs = list = {};
141
+ } else
142
+ list = data.params;
143
+
144
+ if (list) {
145
+ if (to_form) {
146
+ setVal(formItemName, list[name]);
147
+ } else {
148
+ delete list[name];
149
+
150
+ value = getVal(formItemName);
151
+ if (type == 'video' && value === true)
152
+ value = name;
153
+
154
+ if (defaultStates[formItemName]) {
155
+ if (value !== defaultStates[formItemName]) {
156
+ value = "" + value;
157
+ list[name] = value;
158
+ }
159
+ } else if (value) {
160
+ value = "" + value;
161
+ list[name] = value;
162
+ }
163
+ }
164
+ }
165
+ }
166
+ }
167
+ }
502
168
 
503
- return ((n == d || v == '') ? '' : n + ":'" + jsEncode(v) + "',");
504
- }
169
+ if (!to_form) {
170
+ data.type = get('media_type').options[get('media_type').selectedIndex].value;
171
+ data.width = getVal('width');
172
+ data.height = getVal('height');
505
173
 
506
- function getInt(p, n, d) {
507
- var e = document.forms[0].elements[(p != null ? p + "_" : "") + n];
508
- var v = e.type == "text" ? e.value : e.options[e.selectedIndex].value;
174
+ // Switch type based on extension
175
+ src = getVal('src');
176
+ if (field == 'src') {
177
+ ext = src.replace(/^.*\.([^.]+)$/, '$1');
178
+ if (typeInfo = mediaPlugin.getType(ext))
179
+ data.type = typeInfo.name.toLowerCase();
509
180
 
510
- return ((n == d || v == '') ? '' : n + ":" + v.replace(/[^0-9]+/g, '') + ",");
511
- }
181
+ setVal('media_type', data.type);
182
+ }
512
183
 
513
- function jsEncode(s) {
514
- s = s.replace(new RegExp('\\\\', 'g'), '\\\\');
515
- s = s.replace(new RegExp('"', 'g'), '\\"');
516
- s = s.replace(new RegExp("'", 'g'), "\\'");
184
+ if (data.type == "video") {
185
+ if (!data.video.sources)
186
+ data.video.sources = [];
517
187
 
518
- return s;
519
- }
188
+ data.video.sources[0] = {src: getVal('src')};
189
+ }
190
+ }
520
191
 
521
- function generatePreview(c) {
522
- var f = document.forms[0], p = document.getElementById('prev'), h = '', cls, pl, n, type, codebase, wp, hp, nw, nh;
192
+ // Hide all fieldsets and show the one active
193
+ get('video_options').style.display = 'none';
194
+ get('flash_options').style.display = 'none';
195
+ get('quicktime_options').style.display = 'none';
196
+ get('shockwave_options').style.display = 'none';
197
+ get('windowsmedia_options').style.display = 'none';
198
+ get('realmedia_options').style.display = 'none';
199
+
200
+ if (get(data.type + '_options'))
201
+ get(data.type + '_options').style.display = 'block';
202
+
203
+ setVal('media_type', data.type);
204
+
205
+ setOptions('flash', 'play,loop,menu,swliveconnect,quality,scale,salign,wmode,base,flashvars');
206
+ setOptions('quicktime', 'loop,autoplay,cache,controller,correction,enablejavascript,kioskmode,autohref,playeveryframe,targetcache,scale,starttime,endtime,target,qtsrcchokespeed,volume,qtsrc');
207
+ setOptions('shockwave', 'sound,progress,autostart,swliveconnect,swvolume,swstretchstyle,swstretchhalign,swstretchvalign');
208
+ setOptions('windowsmedia', 'autostart,enabled,enablecontextmenu,fullscreen,invokeurls,mute,stretchtofit,windowlessvideo,balance,baseurl,captioningid,currentmarker,currentposition,defaultframe,playcount,rate,uimode,volume');
209
+ setOptions('realmedia', 'autostart,loop,autogotourl,center,imagestatus,maintainaspect,nojava,prefetch,shuffle,console,controls,numloop,scriptcallbacks');
210
+ setOptions('video', 'poster,autoplay,loop,preload,controls');
211
+ setOptions('global', 'id,name,vspace,hspace,bgcolor,align,width,height');
212
+
213
+ if (to_form) {
214
+ if (data.type == 'video') {
215
+ if (data.video.sources[0])
216
+ setVal('src', data.video.sources[0].src);
217
+
218
+ src = data.video.sources[1];
219
+ if (src)
220
+ setVal('video_altsource1', src.src);
221
+
222
+ src = data.video.sources[2];
223
+ if (src)
224
+ setVal('video_altsource2', src.src);
225
+ } else {
226
+ // Check flash vars
227
+ if (data.type == 'flash') {
228
+ tinymce.each(editor.getParam('flash_video_player_flashvars', {url : '$url', poster : '$poster'}), function(value, name) {
229
+ if (value == '$url')
230
+ data.params.src = parseQueryParams(data.params.flashvars)[name] || data.params.src;
231
+ });
232
+ }
233
+
234
+ setVal('src', data.params.src);
235
+ }
236
+ } else {
237
+ src = getVal("src");
238
+
239
+ // YouTube
240
+ if (src.match(/youtube.com(.+)v=([^&]+)/)) {
241
+ data.width = 425;
242
+ data.height = 350;
243
+ data.params.frameborder = '0';
244
+ data.type = 'iframe';
245
+ src = 'http://www.youtube.com/embed/' + src.match(/v=([^&]+)/)[1];
246
+ setVal('src', src);
247
+ }
248
+
249
+ // Google video
250
+ if (src.match(/video.google.com(.+)docid=([^&]+)/)) {
251
+ data.width = 425;
252
+ data.height = 326;
253
+ data.type = 'flash';
254
+ src = 'http://video.google.com/googleplayer.swf?docId=' + src.match(/docid=([^&]+)/)[1] + '&hl=en';
255
+ setVal('src', src);
256
+ }
257
+
258
+ if (data.type == 'video') {
259
+ if (!data.video.sources)
260
+ data.video.sources = [];
261
+
262
+ data.video.sources[0] = {src : src};
263
+
264
+ src = getVal("video_altsource1");
265
+ if (src)
266
+ data.video.sources[1] = {src : src};
267
+
268
+ src = getVal("video_altsource2");
269
+ if (src)
270
+ data.video.sources[2] = {src : src};
271
+ } else
272
+ data.params.src = src;
273
+
274
+ // Set default size
275
+ setVal('width', data.width || 320);
276
+ setVal('height', data.height || 240);
277
+ }
278
+ },
279
+
280
+ dataToForm : function() {
281
+ this.moveStates(true);
282
+ },
283
+
284
+ formToData : function(field) {
285
+ if (field == 'source') {
286
+ this.moveStates(false, field);
287
+ setVal('source', this.editor.plugins.media.dataToHtml(this.data));
288
+ this.panel = 'source';
289
+ } else {
290
+ if (this.panel == 'source') {
291
+ this.data = this.editor.plugins.media.htmlToData(getVal('source'));
292
+ this.dataToForm();
293
+ this.panel = '';
294
+ }
295
+
296
+ this.moveStates(false, field);
297
+ this.preview();
298
+ }
299
+ },
523
300
 
524
- p.innerHTML = '<!-- x --->';
301
+ changeSize : function(type) {
302
+ var width, height, scale, size;
525
303
 
526
- nw = parseInt(f.width.value);
527
- nh = parseInt(f.height.value);
304
+ if (get('constrain').checked) {
305
+ width = parseInt(getVal('width') || "320", 10);
306
+ height = parseInt(getVal('height') || "240", 10);
528
307
 
529
- if (f.width.value != "" && f.height.value != "") {
530
- if (f.constrain.checked) {
531
- if (c == 'width' && oldWidth != 0) {
532
- wp = nw / oldWidth;
533
- nh = Math.round(wp * nh);
534
- f.height.value = nh;
535
- } else if (c == 'height' && oldHeight != 0) {
536
- hp = nh / oldHeight;
537
- nw = Math.round(hp * nw);
538
- f.width.value = nw;
308
+ if (type == 'width')
309
+ setVal('height', Math.round((width / this.data.width) * width));
310
+ else
311
+ setVal('width', Math.round((height / this.data.height) * height));
539
312
  }
540
- }
541
- }
542
313
 
543
- if (f.width.value != "")
544
- oldWidth = nw;
545
-
546
- if (f.height.value != "")
547
- oldHeight = nh;
548
-
549
- // After constrain
550
- pl = serializeParameters();
551
-
552
- switch (f.media_type.options[f.media_type.selectedIndex].value) {
553
- case "flash":
554
- cls = 'clsid:D27CDB6E-AE6D-11cf-96B8-444553540000';
555
- codebase = 'http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0';
556
- type = 'application/x-shockwave-flash';
557
- break;
558
-
559
- case "shockwave":
560
- cls = 'clsid:166B1BCA-3F9C-11CF-8075-444553540000';
561
- codebase = 'http://download.macromedia.com/pub/shockwave/cabs/director/sw.cab#version=8,5,1,0';
562
- type = 'application/x-director';
563
- break;
564
-
565
- case "qt":
566
- cls = 'clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B';
567
- codebase = 'http://www.apple.com/qtactivex/qtplugin.cab#version=6,0,2,0';
568
- type = 'video/quicktime';
569
- break;
570
-
571
- case "wmp":
572
- cls = ed.getParam('media_wmp6_compatible') ? 'clsid:05589FA1-C356-11CE-BF01-00AA0055595A' : 'clsid:6BF52A52-394A-11D3-B153-00C04F79FAA6';
573
- codebase = 'http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=5,1,52,701';
574
- type = 'application/x-mplayer2';
575
- break;
576
-
577
- case "rmp":
578
- cls = 'clsid:CFCDAA03-8BE4-11cf-B84B-0020AFBBCCFA';
579
- codebase = 'http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=5,1,52,701';
580
- type = 'audio/x-pn-realaudio-plugin';
581
- break;
582
- }
314
+ this.formToData();
315
+ },
583
316
 
584
- if (pl == '') {
585
- p.innerHTML = '';
586
- return;
587
- }
588
-
589
- pl = tinyMCEPopup.editor.plugins.media._parse(pl);
317
+ getMediaListHTML : function() {
318
+ if (typeof(tinyMCEMediaList) != "undefined" && tinyMCEMediaList.length > 0) {
319
+ var html = "";
590
320
 
591
- if (!pl.src) {
592
- p.innerHTML = '';
593
- return;
594
- }
321
+ html += '<select id="linklist" name="linklist" style="width: 250px" onchange="this.form.src.value=this.options[this.selectedIndex].value;Media.formToData(\'src\');">';
322
+ html += '<option value="">---</option>';
595
323
 
596
- pl.src = tinyMCEPopup.editor.documentBaseURI.toAbsolute(pl.src);
597
- pl.width = !pl.width ? 100 : pl.width;
598
- pl.height = !pl.height ? 100 : pl.height;
599
- pl.id = !pl.id ? 'obj' : pl.id;
600
- pl.name = !pl.name ? 'eobj' : pl.name;
601
- pl.align = !pl.align ? '' : pl.align;
324
+ for (var i=0; i<tinyMCEMediaList.length; i++)
325
+ html += '<option value="' + tinyMCEMediaList[i][1] + '">' + tinyMCEMediaList[i][0] + '</option>';
602
326
 
603
- // Avoid annoying warning about insecure items
604
- if (!tinymce.isIE || document.location.protocol != 'https:') {
605
- h += '<object classid="' + cls + '" codebase="' + codebase + '" width="' + pl.width + '" height="' + pl.height + '" id="' + pl.id + '" name="' + pl.name + '" align="' + pl.align + '">';
327
+ html += '</select>';
606
328
 
607
- for (n in pl) {
608
- h += '<param name="' + n + '" value="' + pl[n] + '">';
329
+ return html;
330
+ }
609
331
 
610
- // Add extra url parameter if it's an absolute URL
611
- if (n == 'src' && pl[n].indexOf('://') != -1)
612
- h += '<param name="url" value="' + pl[n] + '" />';
332
+ return "";
613
333
  }
614
- }
615
-
616
- h += '<embed type="' + type + '" ';
617
-
618
- for (n in pl)
619
- h += n + '="' + pl[n] + '" ';
620
-
621
- h += '></embed>';
622
-
623
- // Avoid annoying warning about insecure items
624
- if (!tinymce.isIE || document.location.protocol != 'https:')
625
- h += '</object>';
626
-
627
- p.innerHTML = "<!-- x --->" + h;
628
- }
334
+ };
629
335
 
630
- tinyMCEPopup.onInit.add(init);
336
+ tinyMCEPopup.requireLangPack();
337
+ tinyMCEPopup.onInit.add(function() {
338
+ Media.init();
339
+ });
340
+ })();