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
@@ -17,57 +17,57 @@
17
17
 
18
18
  <div class="panel_wrapper">
19
19
  <div id="general_panel" class="panel current">
20
- <table border="0" cellpadding="4" cellspacing="0">
21
- <tr>
22
- <td class="nowrap"><label for="src">{#advanced_dlg.image_src}</label></td>
23
- <td><table border="0" cellspacing="0" cellpadding="0">
24
- <tr>
25
- <td><input id="src" name="src" type="text" class="mceFocus" value="" style="width: 200px" onchange="ImageDialog.getImageData();" /></td>
26
- <td id="srcbrowsercontainer">&nbsp;</td>
27
- </tr>
28
- </table></td>
29
- </tr>
30
- <tr>
31
- <td><label for="image_list">{#advanced_dlg.image_list}</label></td>
32
- <td><select id="image_list" name="image_list" onchange="document.getElementById('src').value=this.options[this.selectedIndex].value;document.getElementById('alt').value=this.options[this.selectedIndex].text;"></select></td>
33
- </tr>
34
- <tr>
35
- <td class="nowrap"><label for="alt">{#advanced_dlg.image_alt}</label></td>
36
- <td><input id="alt" name="alt" type="text" value="" style="width: 200px" /></td>
37
- </tr>
38
- <tr>
39
- <td class="nowrap"><label for="align">{#advanced_dlg.image_align}</label></td>
40
- <td><select id="align" name="align" onchange="ImageDialog.updateStyle();">
41
- <option value="">{#not_set}</option>
42
- <option value="baseline">{#advanced_dlg.image_align_baseline}</option>
43
- <option value="top">{#advanced_dlg.image_align_top}</option>
44
- <option value="middle">{#advanced_dlg.image_align_middle}</option>
45
- <option value="bottom">{#advanced_dlg.image_align_bottom}</option>
46
- <option value="text-top">{#advanced_dlg.image_align_texttop}</option>
47
- <option value="text-bottom">{#advanced_dlg.image_align_textbottom}</option>
48
- <option value="left">{#advanced_dlg.image_align_left}</option>
49
- <option value="right">{#advanced_dlg.image_align_right}</option>
50
- </select></td>
51
- </tr>
52
- <tr>
53
- <td class="nowrap"><label for="width">{#advanced_dlg.image_dimensions}</label></td>
54
- <td><input id="width" name="width" type="text" value="" size="3" maxlength="5" />
55
- x
56
- <input id="height" name="height" type="text" value="" size="3" maxlength="5" /></td>
57
- </tr>
58
- <tr>
59
- <td class="nowrap"><label for="border">{#advanced_dlg.image_border}</label></td>
60
- <td><input id="border" name="border" type="text" value="" size="3" maxlength="3" onchange="ImageDialog.updateStyle();" /></td>
61
- </tr>
62
- <tr>
63
- <td class="nowrap"><label for="vspace">{#advanced_dlg.image_vspace}</label></td>
64
- <td><input id="vspace" name="vspace" type="text" value="" size="3" maxlength="3" onchange="ImageDialog.updateStyle();" /></td>
65
- </tr>
66
- <tr>
67
- <td class="nowrap"><label for="hspace">{#advanced_dlg.image_hspace}</label></td>
68
- <td><input id="hspace" name="hspace" type="text" value="" size="3" maxlength="3" onchange="ImageDialog.updateStyle();" /></td>
69
- </tr>
70
- </table>
20
+ <table border="0" cellpadding="4" cellspacing="0">
21
+ <tr>
22
+ <td class="nowrap"><label for="src">{#advanced_dlg.image_src}</label></td>
23
+ <td><table border="0" cellspacing="0" cellpadding="0">
24
+ <tr>
25
+ <td><input id="src" name="src" type="text" class="mceFocus" value="" style="width: 200px" onchange="ImageDialog.getImageData();" /></td>
26
+ <td id="srcbrowsercontainer">&nbsp;</td>
27
+ </tr>
28
+ </table></td>
29
+ </tr>
30
+ <tr>
31
+ <td><label for="image_list">{#advanced_dlg.image_list}</label></td>
32
+ <td><select id="image_list" name="image_list" onchange="document.getElementById('src').value=this.options[this.selectedIndex].value;document.getElementById('alt').value=this.options[this.selectedIndex].text;"></select></td>
33
+ </tr>
34
+ <tr>
35
+ <td class="nowrap"><label for="alt">{#advanced_dlg.image_alt}</label></td>
36
+ <td><input id="alt" name="alt" type="text" value="" style="width: 200px" /></td>
37
+ </tr>
38
+ <tr>
39
+ <td class="nowrap"><label for="align">{#advanced_dlg.image_align}</label></td>
40
+ <td><select id="align" name="align" onchange="ImageDialog.updateStyle();">
41
+ <option value="">{#not_set}</option>
42
+ <option value="baseline">{#advanced_dlg.image_align_baseline}</option>
43
+ <option value="top">{#advanced_dlg.image_align_top}</option>
44
+ <option value="middle">{#advanced_dlg.image_align_middle}</option>
45
+ <option value="bottom">{#advanced_dlg.image_align_bottom}</option>
46
+ <option value="text-top">{#advanced_dlg.image_align_texttop}</option>
47
+ <option value="text-bottom">{#advanced_dlg.image_align_textbottom}</option>
48
+ <option value="left">{#advanced_dlg.image_align_left}</option>
49
+ <option value="right">{#advanced_dlg.image_align_right}</option>
50
+ </select></td>
51
+ </tr>
52
+ <tr>
53
+ <td class="nowrap"><label for="width">{#advanced_dlg.image_dimensions}</label></td>
54
+ <td><input id="width" name="width" type="text" value="" size="3" maxlength="5" />
55
+ x
56
+ <input id="height" name="height" type="text" value="" size="3" maxlength="5" /></td>
57
+ </tr>
58
+ <tr>
59
+ <td class="nowrap"><label for="border">{#advanced_dlg.image_border}</label></td>
60
+ <td><input id="border" name="border" type="text" value="" size="3" maxlength="3" onchange="ImageDialog.updateStyle();" /></td>
61
+ </tr>
62
+ <tr>
63
+ <td class="nowrap"><label for="vspace">{#advanced_dlg.image_vspace}</label></td>
64
+ <td><input id="vspace" name="vspace" type="text" value="" size="3" maxlength="3" onchange="ImageDialog.updateStyle();" /></td>
65
+ </tr>
66
+ <tr>
67
+ <td class="nowrap"><label for="hspace">{#advanced_dlg.image_hspace}</label></td>
68
+ <td><input id="hspace" name="hspace" type="text" value="" size="3" maxlength="3" onchange="ImageDialog.updateStyle();" /></td>
69
+ </tr>
70
+ </table>
71
71
  </div>
72
72
  </div>
73
73
 
@@ -66,6 +66,7 @@ function insertHelpIFrame() {
66
66
  html = '<iframe width="100%" height="300" src="' + tinyMCEPopup.editor.baseURI.toAbsolute(tinyMCEPopup.getParam('docs_url')) + '"></iframe>';
67
67
  document.getElementById('iframecontainer').innerHTML = html;
68
68
  document.getElementById('help_tab').style.display = 'block';
69
+ document.getElementById('help_tab').setAttribute("aria-hidden", "false");
69
70
  }
70
71
  }
71
72
 
@@ -19,6 +19,11 @@ var AnchorDialog = {
19
19
  update : function() {
20
20
  var ed = this.editor, elm, name = document.forms[0].anchorName.value;
21
21
 
22
+ if (!name || !/^[a-z][a-z0-9\-\_:\.]*$/i.test(name)) {
23
+ tinyMCEPopup.alert('advanced_dlg.anchor_invalid');
24
+ return;
25
+ }
26
+
22
27
  tinyMCEPopup.restoreSelection();
23
28
 
24
29
  if (this.action != 'update')
@@ -173,7 +173,7 @@ var charmap = [
173
173
  ['&yacute;', '&#253;', true, 'y - acute'],
174
174
  ['&thorn;', '&#254;', true, 'thorn'],
175
175
  ['&yuml;', '&#255;', true, 'y - diaeresis'],
176
- ['&Alpha;', '&#913;', true, 'Alpha'],
176
+ ['&Alpha;', '&#913;', true, 'Alpha'],
177
177
  ['&Beta;', '&#914;', true, 'Beta'],
178
178
  ['&Gamma;', '&#915;', true, 'Gamma'],
179
179
  ['&Delta;', '&#916;', true, 'Delta'],
@@ -275,19 +275,38 @@ var charmap = [
275
275
 
276
276
  tinyMCEPopup.onInit.add(function() {
277
277
  tinyMCEPopup.dom.setHTML('charmapView', renderCharMapHTML());
278
+ addKeyboardNavigation();
278
279
  });
279
280
 
281
+ function addKeyboardNavigation(){
282
+ var tableElm, cells, settings;
283
+
284
+ cells = tinyMCEPopup.dom.select(".charmaplink", "charmapgroup");
285
+
286
+ settings ={
287
+ root: "charmapgroup",
288
+ items: cells
289
+ };
290
+
291
+ tinyMCEPopup.editor.windowManager.createInstance('tinymce.ui.KeyboardNavigation', settings, tinyMCEPopup.dom);
292
+ }
293
+
280
294
  function renderCharMapHTML() {
281
295
  var charsPerRow = 20, tdWidth=20, tdHeight=20, i;
282
- var html = '<table border="0" cellspacing="1" cellpadding="0" width="' + (tdWidth*charsPerRow) + '"><tr height="' + tdHeight + '">';
296
+ var html = '<div id="charmapgroup" aria-labelledby="charmap_label" tabindex="0" role="listbox">'+
297
+ '<table role="presentation" border="0" cellspacing="1" cellpadding="0" width="' + (tdWidth*charsPerRow) +
298
+ '"><tr height="' + tdHeight + '">';
283
299
  var cols=-1;
284
300
 
285
301
  for (i=0; i<charmap.length; i++) {
302
+ var previewCharFn;
303
+
286
304
  if (charmap[i][2]==true) {
287
305
  cols++;
306
+ previewCharFn = 'previewChar(\'' + charmap[i][1].substring(1,charmap[i][1].length) + '\',\'' + charmap[i][0].substring(1,charmap[i][0].length) + '\',\'' + charmap[i][3] + '\');';
288
307
  html += ''
289
308
  + '<td class="charmap">'
290
- + '<a onmouseover="previewChar(\'' + charmap[i][1].substring(1,charmap[i][1].length) + '\',\'' + charmap[i][0].substring(1,charmap[i][0].length) + '\',\'' + charmap[i][3] + '\');" onfocus="previewChar(\'' + charmap[i][1].substring(1,charmap[i][1].length) + '\',\'' + charmap[i][0].substring(1,charmap[i][0].length) + '\',\'' + charmap[i][3] + '\');" href="javascript:void(0)" onclick="insertChar(\'' + charmap[i][1].substring(2,charmap[i][1].length-1) + '\');" onclick="return false;" onmousedown="return false;" title="' + charmap[i][3] + '">'
309
+ + '<a class="charmaplink" role="button" onmouseover="'+previewCharFn+'" onfocus="'+previewCharFn+'" href="javascript:void(0)" onclick="insertChar(\'' + charmap[i][1].substring(2,charmap[i][1].length-1) + '\');" onclick="return false;" onmousedown="return false;" title="' + charmap[i][3] + '">'
291
310
  + charmap[i][1]
292
311
  + '</a></td>';
293
312
  if ((cols+1) % charsPerRow == 0)
@@ -301,7 +320,7 @@ function renderCharMapHTML() {
301
320
  html += '<td width="' + tdWidth + '" height="' + tdHeight + '" class="charmap">&nbsp;</td>';
302
321
  }
303
322
 
304
- html += '</tr></table>';
323
+ html += '</tr></table></div>';
305
324
 
306
325
  return html;
307
326
  }
@@ -1,6 +1,6 @@
1
1
  tinyMCEPopup.requireLangPack();
2
2
 
3
- var detail = 50, strhex = "0123456789abcdef", i, isMouseDown = false, isMouseOver = false;
3
+ var detail = 50, strhex = "0123456789ABCDEF", i, isMouseDown = false, isMouseOver = false;
4
4
 
5
5
  var colors = [
6
6
  "#000000","#000033","#000066","#000099","#0000cc","#0000ff","#330000","#330033",
@@ -33,37 +33,41 @@ var colors = [
33
33
  ];
34
34
 
35
35
  var named = {
36
- '#F0F8FF':'AliceBlue','#FAEBD7':'AntiqueWhite','#00FFFF':'Aqua','#7FFFD4':'Aquamarine','#F0FFFF':'Azure','#F5F5DC':'Beige',
37
- '#FFE4C4':'Bisque','#000000':'Black','#FFEBCD':'BlanchedAlmond','#0000FF':'Blue','#8A2BE2':'BlueViolet','#A52A2A':'Brown',
38
- '#DEB887':'BurlyWood','#5F9EA0':'CadetBlue','#7FFF00':'Chartreuse','#D2691E':'Chocolate','#FF7F50':'Coral','#6495ED':'CornflowerBlue',
39
- '#FFF8DC':'Cornsilk','#DC143C':'Crimson','#00FFFF':'Cyan','#00008B':'DarkBlue','#008B8B':'DarkCyan','#B8860B':'DarkGoldenRod',
40
- '#A9A9A9':'DarkGray','#A9A9A9':'DarkGrey','#006400':'DarkGreen','#BDB76B':'DarkKhaki','#8B008B':'DarkMagenta','#556B2F':'DarkOliveGreen',
41
- '#FF8C00':'Darkorange','#9932CC':'DarkOrchid','#8B0000':'DarkRed','#E9967A':'DarkSalmon','#8FBC8F':'DarkSeaGreen','#483D8B':'DarkSlateBlue',
42
- '#2F4F4F':'DarkSlateGray','#2F4F4F':'DarkSlateGrey','#00CED1':'DarkTurquoise','#9400D3':'DarkViolet','#FF1493':'DeepPink','#00BFFF':'DeepSkyBlue',
43
- '#696969':'DimGray','#696969':'DimGrey','#1E90FF':'DodgerBlue','#B22222':'FireBrick','#FFFAF0':'FloralWhite','#228B22':'ForestGreen',
44
- '#FF00FF':'Fuchsia','#DCDCDC':'Gainsboro','#F8F8FF':'GhostWhite','#FFD700':'Gold','#DAA520':'GoldenRod','#808080':'Gray','#808080':'Grey',
45
- '#008000':'Green','#ADFF2F':'GreenYellow','#F0FFF0':'HoneyDew','#FF69B4':'HotPink','#CD5C5C':'IndianRed','#4B0082':'Indigo','#FFFFF0':'Ivory',
46
- '#F0E68C':'Khaki','#E6E6FA':'Lavender','#FFF0F5':'LavenderBlush','#7CFC00':'LawnGreen','#FFFACD':'LemonChiffon','#ADD8E6':'LightBlue',
47
- '#F08080':'LightCoral','#E0FFFF':'LightCyan','#FAFAD2':'LightGoldenRodYellow','#D3D3D3':'LightGray','#D3D3D3':'LightGrey','#90EE90':'LightGreen',
48
- '#FFB6C1':'LightPink','#FFA07A':'LightSalmon','#20B2AA':'LightSeaGreen','#87CEFA':'LightSkyBlue','#778899':'LightSlateGray','#778899':'LightSlateGrey',
49
- '#B0C4DE':'LightSteelBlue','#FFFFE0':'LightYellow','#00FF00':'Lime','#32CD32':'LimeGreen','#FAF0E6':'Linen','#FF00FF':'Magenta','#800000':'Maroon',
50
- '#66CDAA':'MediumAquaMarine','#0000CD':'MediumBlue','#BA55D3':'MediumOrchid','#9370D8':'MediumPurple','#3CB371':'MediumSeaGreen','#7B68EE':'MediumSlateBlue',
51
- '#00FA9A':'MediumSpringGreen','#48D1CC':'MediumTurquoise','#C71585':'MediumVioletRed','#191970':'MidnightBlue','#F5FFFA':'MintCream','#FFE4E1':'MistyRose','#FFE4B5':'Moccasin',
52
- '#FFDEAD':'NavajoWhite','#000080':'Navy','#FDF5E6':'OldLace','#808000':'Olive','#6B8E23':'OliveDrab','#FFA500':'Orange','#FF4500':'OrangeRed','#DA70D6':'Orchid',
53
- '#EEE8AA':'PaleGoldenRod','#98FB98':'PaleGreen','#AFEEEE':'PaleTurquoise','#D87093':'PaleVioletRed','#FFEFD5':'PapayaWhip','#FFDAB9':'PeachPuff',
54
- '#CD853F':'Peru','#FFC0CB':'Pink','#DDA0DD':'Plum','#B0E0E6':'PowderBlue','#800080':'Purple','#FF0000':'Red','#BC8F8F':'RosyBrown','#4169E1':'RoyalBlue',
55
- '#8B4513':'SaddleBrown','#FA8072':'Salmon','#F4A460':'SandyBrown','#2E8B57':'SeaGreen','#FFF5EE':'SeaShell','#A0522D':'Sienna','#C0C0C0':'Silver',
56
- '#87CEEB':'SkyBlue','#6A5ACD':'SlateBlue','#708090':'SlateGray','#708090':'SlateGrey','#FFFAFA':'Snow','#00FF7F':'SpringGreen',
57
- '#4682B4':'SteelBlue','#D2B48C':'Tan','#008080':'Teal','#D8BFD8':'Thistle','#FF6347':'Tomato','#40E0D0':'Turquoise','#EE82EE':'Violet',
58
- '#F5DEB3':'Wheat','#FFFFFF':'White','#F5F5F5':'WhiteSmoke','#FFFF00':'Yellow','#9ACD32':'YellowGreen'
36
+ '#F0F8FF':'Alice Blue','#FAEBD7':'Antique White','#00FFFF':'Aqua','#7FFFD4':'Aquamarine','#F0FFFF':'Azure','#F5F5DC':'Beige',
37
+ '#FFE4C4':'Bisque','#000000':'Black','#FFEBCD':'Blanched Almond','#0000FF':'Blue','#8A2BE2':'Blue Violet','#A52A2A':'Brown',
38
+ '#DEB887':'Burly Wood','#5F9EA0':'Cadet Blue','#7FFF00':'Chartreuse','#D2691E':'Chocolate','#FF7F50':'Coral','#6495ED':'Cornflower Blue',
39
+ '#FFF8DC':'Cornsilk','#DC143C':'Crimson','#00FFFF':'Cyan','#00008B':'Dark Blue','#008B8B':'Dark Cyan','#B8860B':'Dark Golden Rod',
40
+ '#A9A9A9':'Dark Gray','#A9A9A9':'Dark Grey','#006400':'Dark Green','#BDB76B':'Dark Khaki','#8B008B':'Dark Magenta','#556B2F':'Dark Olive Green',
41
+ '#FF8C00':'Darkorange','#9932CC':'Dark Orchid','#8B0000':'Dark Red','#E9967A':'Dark Salmon','#8FBC8F':'Dark Sea Green','#483D8B':'Dark Slate Blue',
42
+ '#2F4F4F':'Dark Slate Gray','#2F4F4F':'Dark Slate Grey','#00CED1':'Dark Turquoise','#9400D3':'Dark Violet','#FF1493':'Deep Pink','#00BFFF':'Deep Sky Blue',
43
+ '#696969':'Dim Gray','#696969':'Dim Grey','#1E90FF':'Dodger Blue','#B22222':'Fire Brick','#FFFAF0':'Floral White','#228B22':'Forest Green',
44
+ '#FF00FF':'Fuchsia','#DCDCDC':'Gainsboro','#F8F8FF':'Ghost White','#FFD700':'Gold','#DAA520':'Golden Rod','#808080':'Gray','#808080':'Grey',
45
+ '#008000':'Green','#ADFF2F':'Green Yellow','#F0FFF0':'Honey Dew','#FF69B4':'Hot Pink','#CD5C5C':'Indian Red','#4B0082':'Indigo','#FFFFF0':'Ivory',
46
+ '#F0E68C':'Khaki','#E6E6FA':'Lavender','#FFF0F5':'Lavender Blush','#7CFC00':'Lawn Green','#FFFACD':'Lemon Chiffon','#ADD8E6':'Light Blue',
47
+ '#F08080':'Light Coral','#E0FFFF':'Light Cyan','#FAFAD2':'Light Golden Rod Yellow','#D3D3D3':'Light Gray','#D3D3D3':'Light Grey','#90EE90':'Light Green',
48
+ '#FFB6C1':'Light Pink','#FFA07A':'Light Salmon','#20B2AA':'Light Sea Green','#87CEFA':'Light Sky Blue','#778899':'Light Slate Gray','#778899':'Light Slate Grey',
49
+ '#B0C4DE':'Light Steel Blue','#FFFFE0':'Light Yellow','#00FF00':'Lime','#32CD32':'Lime Green','#FAF0E6':'Linen','#FF00FF':'Magenta','#800000':'Maroon',
50
+ '#66CDAA':'Medium Aqua Marine','#0000CD':'Medium Blue','#BA55D3':'Medium Orchid','#9370D8':'Medium Purple','#3CB371':'Medium Sea Green','#7B68EE':'Medium Slate Blue',
51
+ '#00FA9A':'Medium Spring Green','#48D1CC':'Medium Turquoise','#C71585':'Medium Violet Red','#191970':'Midnight Blue','#F5FFFA':'Mint Cream','#FFE4E1':'Misty Rose','#FFE4B5':'Moccasin',
52
+ '#FFDEAD':'Navajo White','#000080':'Navy','#FDF5E6':'Old Lace','#808000':'Olive','#6B8E23':'Olive Drab','#FFA500':'Orange','#FF4500':'Orange Red','#DA70D6':'Orchid',
53
+ '#EEE8AA':'Pale Golden Rod','#98FB98':'Pale Green','#AFEEEE':'Pale Turquoise','#D87093':'Pale Violet Red','#FFEFD5':'Papaya Whip','#FFDAB9':'Peach Puff',
54
+ '#CD853F':'Peru','#FFC0CB':'Pink','#DDA0DD':'Plum','#B0E0E6':'Powder Blue','#800080':'Purple','#FF0000':'Red','#BC8F8F':'Rosy Brown','#4169E1':'Royal Blue',
55
+ '#8B4513':'Saddle Brown','#FA8072':'Salmon','#F4A460':'Sandy Brown','#2E8B57':'Sea Green','#FFF5EE':'Sea Shell','#A0522D':'Sienna','#C0C0C0':'Silver',
56
+ '#87CEEB':'Sky Blue','#6A5ACD':'Slate Blue','#708090':'Slate Gray','#708090':'Slate Grey','#FFFAFA':'Snow','#00FF7F':'Spring Green',
57
+ '#4682B4':'Steel Blue','#D2B48C':'Tan','#008080':'Teal','#D8BFD8':'Thistle','#FF6347':'Tomato','#40E0D0':'Turquoise','#EE82EE':'Violet',
58
+ '#F5DEB3':'Wheat','#FFFFFF':'White','#F5F5F5':'White Smoke','#FFFF00':'Yellow','#9ACD32':'Yellow Green'
59
59
  };
60
60
 
61
+ var namedLookup = {};
62
+
61
63
  function init() {
62
- var inputColor = convertRGBToHex(tinyMCEPopup.getWindowArg('input_color'));
64
+ var inputColor = convertRGBToHex(tinyMCEPopup.getWindowArg('input_color')), key, value;
63
65
 
64
66
  tinyMCEPopup.resizeToInnerSize();
65
67
 
66
68
  generatePicker();
69
+ generateWebColors();
70
+ generateNamedColors();
67
71
 
68
72
  if (inputColor) {
69
73
  changeFinalColor(inputColor);
@@ -73,6 +77,45 @@ function init() {
73
77
  if (col)
74
78
  updateLight(col.r, col.g, col.b);
75
79
  }
80
+
81
+ for (key in named) {
82
+ value = named[key];
83
+ namedLookup[value.replace(/\s+/, '').toLowerCase()] = key.replace(/#/, '').toLowerCase();
84
+ }
85
+ }
86
+
87
+ function toHexColor(color) {
88
+ var matches, red, green, blue, toInt = parseInt;
89
+
90
+ function hex(value) {
91
+ value = parseInt(value).toString(16);
92
+
93
+ return value.length > 1 ? value : '0' + value; // Padd with leading zero
94
+ };
95
+
96
+ color = color.replace(/[\s#]+/g, '').toLowerCase();
97
+ color = namedLookup[color] || color;
98
+ matches = /^rgb\((\d{1,3}),(\d{1,3}),(\d{1,3})\)|([a-f0-9]{2})([a-f0-9]{2})([a-f0-9]{2})|([a-f0-9])([a-f0-9])([a-f0-9])$/.exec(color);
99
+
100
+ if (matches) {
101
+ if (matches[1]) {
102
+ red = toInt(matches[1]);
103
+ green = toInt(matches[2]);
104
+ blue = toInt(matches[3]);
105
+ } else if (matches[4]) {
106
+ red = toInt(matches[4], 16);
107
+ green = toInt(matches[5], 16);
108
+ blue = toInt(matches[6], 16);
109
+ } else if (matches[7]) {
110
+ red = toInt(matches[7] + matches[7], 16);
111
+ green = toInt(matches[8] + matches[8], 16);
112
+ blue = toInt(matches[9] + matches[9], 16);
113
+ }
114
+
115
+ return '#' + hex(red) + hex(green) + hex(blue);
116
+ }
117
+
118
+ return '';
76
119
  }
77
120
 
78
121
  function insertAction() {
@@ -81,7 +124,7 @@ function insertAction() {
81
124
  tinyMCEPopup.restoreSelection();
82
125
 
83
126
  if (f)
84
- f(color);
127
+ f(toHexColor(color));
85
128
 
86
129
  tinyMCEPopup.close();
87
130
  }
@@ -91,7 +134,7 @@ function showColor(color, name) {
91
134
  document.getElementById("colorname").innerHTML = name;
92
135
 
93
136
  document.getElementById("preview").style.backgroundColor = color;
94
- document.getElementById("color").value = color.toLowerCase();
137
+ document.getElementById("color").value = color.toUpperCase();
95
138
  }
96
139
 
97
140
  function convertRGBToHex(col) {
@@ -153,23 +196,40 @@ function generateWebColors() {
153
196
  if (el.className == 'generated')
154
197
  return;
155
198
 
156
- h += '<table border="0" cellspacing="1" cellpadding="0">'
199
+ // TODO: VoiceOver doesn't seem to support legend as a label referenced by labelledby.
200
+ h += '<div role="listbox" aria-labelledby="webcolors_title" tabindex="0"><table role="presentation" border="0" cellspacing="1" cellpadding="0">'
157
201
  + '<tr>';
158
202
 
159
203
  for (i=0; i<colors.length; i++) {
160
204
  h += '<td bgcolor="' + colors[i] + '" width="10" height="10">'
161
- + '<a href="javascript:insertAction();" onfocus="showColor(\'' + colors[i] + '\');" onmouseover="showColor(\'' + colors[i] + '\');" style="display:block;width:10px;height:10px;overflow:hidden;">'
162
- + '</a></td>';
205
+ + '<a href="javascript:insertAction();" role="option" tabindex="-1" aria-labelledby="web_colors_' + i + '" onfocus="showColor(\'' + colors[i] + '\');" onmouseover="showColor(\'' + colors[i] + '\');" style="display:block;width:10px;height:10px;overflow:hidden;">';
206
+ if (tinyMCEPopup.editor.forcedHighContrastMode) {
207
+ h += '<canvas class="mceColorSwatch" height="10" width="10" data-color="' + colors[i] + '"></canvas>';
208
+ }
209
+ h += '<span class="mceVoiceLabel" style="display:none;" id="web_colors_' + i + '">' + colors[i].toUpperCase() + '</span>';
210
+ h += '</a></td>';
163
211
  if ((i+1) % 18 == 0)
164
212
  h += '</tr><tr>';
165
213
  }
166
214
 
167
- h += '</table>';
215
+ h += '</table></div>';
168
216
 
169
217
  el.innerHTML = h;
170
218
  el.className = 'generated';
219
+
220
+ paintCanvas(el);
221
+ enableKeyboardNavigation(el.firstChild);
171
222
  }
172
223
 
224
+ function paintCanvas(el) {
225
+ tinyMCEPopup.getWin().tinymce.each(tinyMCEPopup.dom.select('canvas.mceColorSwatch', el), function(canvas) {
226
+ var context;
227
+ if (canvas.getContext && (context = canvas.getContext("2d"))) {
228
+ context.fillStyle = canvas.getAttribute('data-color');
229
+ context.fillRect(0, 0, 10, 10);
230
+ }
231
+ });
232
+ }
173
233
  function generateNamedColors() {
174
234
  var el = document.getElementById('namedcolors'), h = '', n, v, i = 0;
175
235
 
@@ -178,11 +238,27 @@ function generateNamedColors() {
178
238
 
179
239
  for (n in named) {
180
240
  v = named[n];
181
- h += '<a href="javascript:insertAction();" onmouseover="showColor(\'' + n + '\',\'' + v + '\');" style="background-color: ' + n + '"><!-- IE --></a>'
241
+ h += '<a href="javascript:insertAction();" role="option" tabindex="-1" aria-labelledby="named_colors_' + i + '" onfocus="showColor(\'' + n + '\',\'' + v + '\');" onmouseover="showColor(\'' + n + '\',\'' + v + '\');" style="background-color: ' + n + '">';
242
+ if (tinyMCEPopup.editor.forcedHighContrastMode) {
243
+ h += '<canvas class="mceColorSwatch" height="10" width="10" data-color="' + colors[i] + '"></canvas>';
244
+ }
245
+ h += '<span class="mceVoiceLabel" style="display:none;" id="named_colors_' + i + '">' + v + '</span>';
246
+ h += '</a>';
247
+ i++;
182
248
  }
183
249
 
184
250
  el.innerHTML = h;
185
251
  el.className = 'generated';
252
+
253
+ paintCanvas(el);
254
+ enableKeyboardNavigation(el);
255
+ }
256
+
257
+ function enableKeyboardNavigation(el) {
258
+ tinyMCEPopup.editor.windowManager.createInstance('tinymce.ui.KeyboardNavigation', {
259
+ root: el,
260
+ items: tinyMCEPopup.dom.select('a', el)
261
+ }, tinyMCEPopup.dom);
186
262
  }
187
263
 
188
264
  function dechex(n) {
@@ -77,7 +77,7 @@ var ImageDialog = {
77
77
  args.style = this.styleVal;
78
78
 
79
79
  tinymce.extend(args, {
80
- src : f.src.value,
80
+ src : f.src.value.replace(/ /g, '%20'),
81
81
  alt : f.alt.value,
82
82
  width : f.width.value,
83
83
  height : f.height.value
@@ -87,6 +87,8 @@ var ImageDialog = {
87
87
 
88
88
  if (el && el.nodeName == 'IMG') {
89
89
  ed.dom.setAttribs(el, args);
90
+ tinyMCEPopup.editor.execCommand('mceRepaint');
91
+ tinyMCEPopup.editor.focus();
90
92
  } else {
91
93
  ed.execCommand('mceInsertContent', false, '<img id="__mce_tmp" />', {skip_undo : 1});
92
94
  ed.dom.setAttribs('__mce_tmp', args);
@@ -31,7 +31,7 @@ var LinkDialog = {
31
31
  },
32
32
 
33
33
  update : function() {
34
- var f = document.forms[0], ed = tinyMCEPopup.editor, e, b;
34
+ var f = document.forms[0], ed = tinyMCEPopup.editor, e, b, href = f.href.value.replace(/ /g, '%20');
35
35
 
36
36
  tinyMCEPopup.restoreSelection();
37
37
  e = ed.dom.getParent(ed.selection.getNode(), 'A');
@@ -39,7 +39,6 @@ var LinkDialog = {
39
39
  // Remove element if there is no href
40
40
  if (!f.href.value) {
41
41
  if (e) {
42
- tinyMCEPopup.execCommand("mceBeginUndoLevel");
43
42
  b = ed.selection.getBookmark();
44
43
  ed.dom.remove(e, 1);
45
44
  ed.selection.moveToBookmark(b);
@@ -49,19 +48,17 @@ var LinkDialog = {
49
48
  }
50
49
  }
51
50
 
52
- tinyMCEPopup.execCommand("mceBeginUndoLevel");
53
-
54
51
  // Create new anchor elements
55
52
  if (e == null) {
56
53
  ed.getDoc().execCommand("unlink", false, null);
57
- tinyMCEPopup.execCommand("CreateLink", false, "#mce_temp_url#", {skip_undo : 1});
54
+ tinyMCEPopup.execCommand("mceInsertLink", false, "#mce_temp_url#", {skip_undo : 1});
58
55
 
59
56
  tinymce.each(ed.dom.select("a"), function(n) {
60
57
  if (ed.dom.getAttrib(n, 'href') == '#mce_temp_url#') {
61
58
  e = n;
62
59
 
63
60
  ed.dom.setAttribs(e, {
64
- href : f.href.value,
61
+ href : href,
65
62
  title : f.linktitle.value,
66
63
  target : f.target_list ? getSelectValue(f, "target_list") : null,
67
64
  'class' : f.class_list ? getSelectValue(f, "class_list") : null
@@ -70,7 +67,7 @@ var LinkDialog = {
70
67
  });
71
68
  } else {
72
69
  ed.dom.setAttribs(e, {
73
- href : f.href.value,
70
+ href : href,
74
71
  title : f.linktitle.value,
75
72
  target : f.target_list ? getSelectValue(f, "target_list") : null,
76
73
  'class' : f.class_list ? getSelectValue(f, "class_list") : null