locomotive-tinymce-rails 3.4.7.5 → 3.5.8.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (627) hide show
  1. data/README.md +3 -21
  2. data/Rakefile +15 -16
  3. data/app/assets/javascripts/tinymce-jquery.js +1 -1
  4. data/lib/tinymce/rails/version.rb +2 -2
  5. data/vendor/assets/javascripts/tinymce/jquery.tinymce.js +1 -1
  6. data/vendor/assets/javascripts/tinymce/langs/de.js +1 -1
  7. data/vendor/assets/javascripts/tinymce/langs/en.js +1 -1
  8. data/vendor/assets/javascripts/tinymce/langs/es.js +1 -1
  9. data/vendor/assets/javascripts/tinymce/langs/et.js +0 -0
  10. data/vendor/assets/javascripts/tinymce/langs/fr.js +0 -0
  11. data/vendor/assets/javascripts/tinymce/langs/it.js +0 -0
  12. data/vendor/assets/javascripts/tinymce/langs/nb.js +1 -0
  13. data/vendor/assets/javascripts/tinymce/langs/nl.js +0 -0
  14. data/vendor/assets/javascripts/tinymce/langs/pl.js +0 -0
  15. data/vendor/assets/javascripts/tinymce/langs/pt.js +0 -0
  16. data/vendor/assets/javascripts/tinymce/langs/ru.js +0 -0
  17. data/vendor/assets/javascripts/tinymce/plugins/advhr/langs/de_dlg.js +0 -0
  18. data/vendor/assets/javascripts/tinymce/plugins/advhr/langs/es_dlg.js +0 -0
  19. data/vendor/assets/javascripts/tinymce/plugins/advhr/langs/et_dlg.js +0 -0
  20. data/vendor/assets/javascripts/tinymce/plugins/advhr/langs/fr_dlg.js +0 -0
  21. data/vendor/assets/javascripts/tinymce/plugins/advhr/langs/it_dlg.js +0 -0
  22. data/vendor/assets/javascripts/tinymce/plugins/advhr/langs/nb_dlg.js +1 -0
  23. data/vendor/assets/javascripts/tinymce/plugins/advhr/langs/nl_dlg.js +0 -0
  24. data/vendor/assets/javascripts/tinymce/plugins/advhr/langs/pl_dlg.js +0 -0
  25. data/vendor/assets/javascripts/tinymce/plugins/advhr/langs/pt_dlg.js +0 -0
  26. data/vendor/assets/javascripts/tinymce/plugins/advhr/langs/ru_dlg.js +0 -0
  27. data/vendor/assets/javascripts/tinymce/plugins/advimage/js/image.js +5 -3
  28. data/vendor/assets/javascripts/tinymce/plugins/advimage/langs/de_dlg.js +1 -1
  29. data/vendor/assets/javascripts/tinymce/plugins/advimage/langs/es_dlg.js +0 -0
  30. data/vendor/assets/javascripts/tinymce/plugins/advimage/langs/et_dlg.js +0 -0
  31. data/vendor/assets/javascripts/tinymce/plugins/advimage/langs/fr_dlg.js +0 -0
  32. data/vendor/assets/javascripts/tinymce/plugins/advimage/langs/it_dlg.js +0 -0
  33. data/vendor/assets/javascripts/tinymce/plugins/advimage/langs/nb_dlg.js +1 -0
  34. data/vendor/assets/javascripts/tinymce/plugins/advimage/langs/nl_dlg.js +0 -0
  35. data/vendor/assets/javascripts/tinymce/plugins/advimage/langs/pl_dlg.js +0 -0
  36. data/vendor/assets/javascripts/tinymce/plugins/advimage/langs/pt_dlg.js +0 -0
  37. data/vendor/assets/javascripts/tinymce/plugins/advimage/langs/ru_dlg.js +0 -0
  38. data/vendor/assets/javascripts/tinymce/plugins/advlink/js/advlink.js +16 -5
  39. data/vendor/assets/javascripts/tinymce/plugins/advlink/langs/de_dlg.js +1 -1
  40. data/vendor/assets/javascripts/tinymce/plugins/advlink/langs/es_dlg.js +0 -0
  41. data/vendor/assets/javascripts/tinymce/plugins/advlink/langs/et_dlg.js +0 -0
  42. data/vendor/assets/javascripts/tinymce/plugins/advlink/langs/fr_dlg.js +0 -0
  43. data/vendor/assets/javascripts/tinymce/plugins/advlink/langs/it_dlg.js +0 -0
  44. data/vendor/assets/javascripts/tinymce/plugins/advlink/langs/nb_dlg.js +1 -0
  45. data/vendor/assets/javascripts/tinymce/plugins/advlink/langs/nl_dlg.js +0 -0
  46. data/vendor/assets/javascripts/tinymce/plugins/advlink/langs/pl_dlg.js +0 -0
  47. data/vendor/assets/javascripts/tinymce/plugins/advlink/langs/pt_dlg.js +0 -0
  48. data/vendor/assets/javascripts/tinymce/plugins/advlink/langs/ru_dlg.js +0 -0
  49. data/vendor/assets/javascripts/tinymce/plugins/autolink/editor_plugin.js +1 -1
  50. data/vendor/assets/javascripts/tinymce/plugins/autolink/editor_plugin_src.js +24 -12
  51. data/vendor/assets/javascripts/tinymce/plugins/autoresize/editor_plugin.js +1 -1
  52. data/vendor/assets/javascripts/tinymce/plugins/autoresize/editor_plugin_src.js +20 -38
  53. data/vendor/assets/javascripts/tinymce/plugins/autosave/editor_plugin.js +1 -1
  54. data/vendor/assets/javascripts/tinymce/plugins/autosave/editor_plugin_src.js +4 -2
  55. data/vendor/assets/javascripts/tinymce/plugins/contextmenu/editor_plugin.js +1 -1
  56. data/vendor/assets/javascripts/tinymce/plugins/contextmenu/editor_plugin_src.js +10 -7
  57. data/vendor/assets/javascripts/tinymce/plugins/directionality/editor_plugin.js +1 -1
  58. data/vendor/assets/javascripts/tinymce/plugins/directionality/editor_plugin_src.js +22 -19
  59. data/vendor/assets/javascripts/tinymce/plugins/emotions/emotions.htm +1 -1
  60. data/vendor/assets/javascripts/tinymce/plugins/emotions/langs/de_dlg.js +1 -0
  61. data/vendor/assets/javascripts/tinymce/plugins/emotions/langs/en_dlg.js +1 -1
  62. data/vendor/assets/javascripts/tinymce/plugins/emotions/langs/es_dlg.js +1 -0
  63. data/vendor/assets/javascripts/tinymce/plugins/emotions/langs/et_dlg.js +1 -0
  64. data/vendor/assets/javascripts/tinymce/plugins/emotions/langs/fr_dlg.js +1 -0
  65. data/vendor/assets/javascripts/tinymce/plugins/emotions/langs/it_dlg.js +1 -0
  66. data/vendor/assets/javascripts/tinymce/plugins/emotions/langs/nb_dlg.js +1 -0
  67. data/vendor/assets/javascripts/tinymce/plugins/emotions/langs/nl_dlg.js +1 -0
  68. data/vendor/assets/javascripts/tinymce/plugins/emotions/langs/pl_dlg.js +0 -0
  69. data/vendor/assets/javascripts/tinymce/plugins/emotions/langs/pt_dlg.js +1 -0
  70. data/vendor/assets/javascripts/tinymce/plugins/emotions/langs/ru_dlg.js +1 -0
  71. data/vendor/assets/javascripts/tinymce/plugins/fullpage/langs/de_dlg.js +0 -0
  72. data/vendor/assets/javascripts/tinymce/plugins/fullpage/langs/es_dlg.js +0 -0
  73. data/vendor/assets/javascripts/tinymce/plugins/fullpage/langs/et_dlg.js +0 -0
  74. data/vendor/assets/javascripts/tinymce/plugins/fullpage/langs/fr_dlg.js +0 -0
  75. data/vendor/assets/javascripts/tinymce/plugins/fullpage/langs/it_dlg.js +0 -0
  76. data/vendor/assets/javascripts/tinymce/plugins/fullpage/langs/nb_dlg.js +1 -0
  77. data/vendor/assets/javascripts/tinymce/plugins/fullpage/langs/nl_dlg.js +0 -0
  78. data/vendor/assets/javascripts/tinymce/plugins/fullpage/langs/pl_dlg.js +0 -0
  79. data/vendor/assets/javascripts/tinymce/plugins/fullpage/langs/pt_dlg.js +0 -0
  80. data/vendor/assets/javascripts/tinymce/plugins/fullpage/langs/ru_dlg.js +0 -0
  81. data/vendor/assets/javascripts/tinymce/plugins/fullscreen/editor_plugin.js +1 -1
  82. data/vendor/assets/javascripts/tinymce/plugins/fullscreen/editor_plugin_src.js +5 -5
  83. data/vendor/assets/javascripts/tinymce/plugins/legacyoutput/editor_plugin.js +1 -1
  84. data/vendor/assets/javascripts/tinymce/plugins/legacyoutput/editor_plugin_src.js +1 -1
  85. data/vendor/assets/javascripts/tinymce/plugins/lists/editor_plugin.js +1 -1
  86. data/vendor/assets/javascripts/tinymce/plugins/lists/editor_plugin_src.js +98 -68
  87. data/vendor/assets/javascripts/tinymce/plugins/media/editor_plugin.js +1 -1
  88. data/vendor/assets/javascripts/tinymce/plugins/media/editor_plugin_src.js +23 -15
  89. data/vendor/assets/javascripts/tinymce/plugins/media/js/media.js +75 -26
  90. data/vendor/assets/javascripts/tinymce/plugins/media/langs/de_dlg.js +1 -1
  91. data/vendor/assets/javascripts/tinymce/plugins/media/langs/en_dlg.js +1 -1
  92. data/vendor/assets/javascripts/tinymce/plugins/media/langs/es_dlg.js +0 -0
  93. data/vendor/assets/javascripts/tinymce/plugins/media/langs/et_dlg.js +0 -0
  94. data/vendor/assets/javascripts/tinymce/plugins/media/langs/fr_dlg.js +0 -0
  95. data/vendor/assets/javascripts/tinymce/plugins/media/langs/it_dlg.js +0 -0
  96. data/vendor/assets/javascripts/tinymce/plugins/media/langs/nb_dlg.js +1 -0
  97. data/vendor/assets/javascripts/tinymce/plugins/media/langs/nl_dlg.js +0 -0
  98. data/vendor/assets/javascripts/tinymce/plugins/media/langs/pl_dlg.js +0 -0
  99. data/vendor/assets/javascripts/tinymce/plugins/media/langs/pt_dlg.js +0 -0
  100. data/vendor/assets/javascripts/tinymce/plugins/media/langs/ru_dlg.js +0 -0
  101. data/vendor/assets/javascripts/tinymce/plugins/noneditable/editor_plugin.js +1 -1
  102. data/vendor/assets/javascripts/tinymce/plugins/noneditable/editor_plugin_src.js +499 -57
  103. data/vendor/assets/javascripts/tinymce/plugins/paste/editor_plugin.js +1 -1
  104. data/vendor/assets/javascripts/tinymce/plugins/paste/editor_plugin_src.js +17 -3
  105. data/vendor/assets/javascripts/tinymce/plugins/paste/langs/de_dlg.js +1 -1
  106. data/vendor/assets/javascripts/tinymce/plugins/paste/langs/es_dlg.js +0 -0
  107. data/vendor/assets/javascripts/tinymce/plugins/paste/langs/et_dlg.js +0 -0
  108. data/vendor/assets/javascripts/tinymce/plugins/paste/langs/fr_dlg.js +0 -0
  109. data/vendor/assets/javascripts/tinymce/plugins/paste/langs/it_dlg.js +0 -0
  110. data/vendor/assets/javascripts/tinymce/plugins/paste/langs/nb_dlg.js +1 -0
  111. data/vendor/assets/javascripts/tinymce/plugins/paste/langs/nl_dlg.js +0 -0
  112. data/vendor/assets/javascripts/tinymce/plugins/paste/langs/pl_dlg.js +0 -0
  113. data/vendor/assets/javascripts/tinymce/plugins/paste/langs/pt_dlg.js +0 -0
  114. data/vendor/assets/javascripts/tinymce/plugins/paste/langs/ru_dlg.js +0 -0
  115. data/vendor/assets/javascripts/tinymce/plugins/searchreplace/langs/de_dlg.js +0 -0
  116. data/vendor/assets/javascripts/tinymce/plugins/searchreplace/langs/es_dlg.js +0 -0
  117. data/vendor/assets/javascripts/tinymce/plugins/searchreplace/langs/et_dlg.js +0 -0
  118. data/vendor/assets/javascripts/tinymce/plugins/searchreplace/langs/fr_dlg.js +0 -0
  119. data/vendor/assets/javascripts/tinymce/plugins/searchreplace/langs/it_dlg.js +0 -0
  120. data/vendor/assets/javascripts/tinymce/plugins/searchreplace/langs/nb_dlg.js +1 -0
  121. data/vendor/assets/javascripts/tinymce/plugins/searchreplace/langs/nl_dlg.js +0 -0
  122. data/vendor/assets/javascripts/tinymce/plugins/searchreplace/langs/pl_dlg.js +0 -0
  123. data/vendor/assets/javascripts/tinymce/plugins/searchreplace/langs/pt_dlg.js +0 -0
  124. data/vendor/assets/javascripts/tinymce/plugins/searchreplace/langs/ru_dlg.js +0 -0
  125. data/vendor/assets/javascripts/tinymce/plugins/searchreplace/searchreplace.htm +1 -1
  126. data/vendor/assets/javascripts/tinymce/plugins/spellchecker/editor_plugin.js +1 -1
  127. data/vendor/assets/javascripts/tinymce/plugins/spellchecker/editor_plugin_src.js +4 -4
  128. data/vendor/assets/javascripts/tinymce/plugins/style/css/props.css +1 -0
  129. data/vendor/assets/javascripts/tinymce/plugins/style/editor_plugin.js +1 -1
  130. data/vendor/assets/javascripts/tinymce/plugins/style/editor_plugin_src.js +19 -3
  131. data/vendor/assets/javascripts/tinymce/plugins/style/js/props.js +77 -3
  132. data/vendor/assets/javascripts/tinymce/plugins/style/langs/de_dlg.js +0 -0
  133. data/vendor/assets/javascripts/tinymce/plugins/style/langs/es_dlg.js +0 -0
  134. data/vendor/assets/javascripts/tinymce/plugins/style/langs/et_dlg.js +0 -0
  135. data/vendor/assets/javascripts/tinymce/plugins/style/langs/fr_dlg.js +0 -0
  136. data/vendor/assets/javascripts/tinymce/plugins/style/langs/it_dlg.js +0 -0
  137. data/vendor/assets/javascripts/tinymce/plugins/style/langs/nb_dlg.js +1 -0
  138. data/vendor/assets/javascripts/tinymce/plugins/style/langs/nl_dlg.js +0 -0
  139. data/vendor/assets/javascripts/tinymce/plugins/style/langs/pl_dlg.js +0 -0
  140. data/vendor/assets/javascripts/tinymce/plugins/style/langs/pt_dlg.js +0 -0
  141. data/vendor/assets/javascripts/tinymce/plugins/style/langs/ru_dlg.js +0 -0
  142. data/vendor/assets/javascripts/tinymce/plugins/style/props.htm +6 -1
  143. data/vendor/assets/javascripts/tinymce/plugins/style/readme.txt +19 -0
  144. data/vendor/assets/javascripts/tinymce/plugins/tabfocus/editor_plugin.js +1 -1
  145. data/vendor/assets/javascripts/tinymce/plugins/tabfocus/editor_plugin_src.js +1 -1
  146. data/vendor/assets/javascripts/tinymce/plugins/table/editor_plugin.js +1 -1
  147. data/vendor/assets/javascripts/tinymce/plugins/table/editor_plugin_src.js +88 -40
  148. data/vendor/assets/javascripts/tinymce/plugins/table/js/cell.js +2 -2
  149. data/vendor/assets/javascripts/tinymce/plugins/table/js/row.js +17 -0
  150. data/vendor/assets/javascripts/tinymce/plugins/table/js/table.js +20 -3
  151. data/vendor/assets/javascripts/tinymce/plugins/table/langs/de_dlg.js +1 -1
  152. data/vendor/assets/javascripts/tinymce/plugins/table/langs/es_dlg.js +0 -0
  153. data/vendor/assets/javascripts/tinymce/plugins/table/langs/et_dlg.js +0 -0
  154. data/vendor/assets/javascripts/tinymce/plugins/table/langs/fr_dlg.js +0 -0
  155. data/vendor/assets/javascripts/tinymce/plugins/table/langs/it_dlg.js +0 -0
  156. data/vendor/assets/javascripts/tinymce/plugins/table/langs/nb_dlg.js +1 -0
  157. data/vendor/assets/javascripts/tinymce/plugins/table/langs/nl_dlg.js +0 -0
  158. data/vendor/assets/javascripts/tinymce/plugins/table/langs/pl_dlg.js +0 -0
  159. data/vendor/assets/javascripts/tinymce/plugins/table/langs/pt_dlg.js +0 -0
  160. data/vendor/assets/javascripts/tinymce/plugins/table/langs/ru_dlg.js +0 -0
  161. data/vendor/assets/javascripts/tinymce/plugins/table/row.htm +15 -15
  162. data/vendor/assets/javascripts/tinymce/plugins/template/langs/de_dlg.js +1 -0
  163. data/vendor/assets/javascripts/tinymce/plugins/template/langs/es_dlg.js +1 -0
  164. data/vendor/assets/javascripts/tinymce/plugins/template/langs/et_dlg.js +1 -0
  165. data/vendor/assets/javascripts/tinymce/plugins/template/langs/fr_dlg.js +1 -0
  166. data/vendor/assets/javascripts/tinymce/plugins/template/langs/it_dlg.js +1 -0
  167. data/vendor/assets/javascripts/tinymce/plugins/template/langs/nb_dlg.js +1 -0
  168. data/vendor/assets/javascripts/tinymce/plugins/template/langs/nl_dlg.js +1 -0
  169. data/vendor/assets/javascripts/tinymce/plugins/template/langs/pl_dlg.js +0 -0
  170. data/vendor/assets/javascripts/tinymce/plugins/template/langs/pt_dlg.js +1 -0
  171. data/vendor/assets/javascripts/tinymce/plugins/template/langs/ru_dlg.js +1 -0
  172. data/vendor/assets/javascripts/tinymce/plugins/visualblocks/css/visualblocks.css +21 -0
  173. data/vendor/assets/javascripts/tinymce/plugins/visualblocks/editor_plugin.js +1 -0
  174. data/vendor/assets/javascripts/tinymce/plugins/visualblocks/editor_plugin_src.js +63 -0
  175. data/vendor/assets/javascripts/tinymce/plugins/wordcount/editor_plugin.js +1 -1
  176. data/vendor/assets/javascripts/tinymce/plugins/wordcount/editor_plugin_src.js +14 -6
  177. data/vendor/assets/javascripts/tinymce/plugins/xhtmlxtras/langs/de_dlg.js +0 -0
  178. data/vendor/assets/javascripts/tinymce/plugins/xhtmlxtras/langs/es_dlg.js +0 -0
  179. data/vendor/assets/javascripts/tinymce/plugins/xhtmlxtras/langs/et_dlg.js +0 -0
  180. data/vendor/assets/javascripts/tinymce/plugins/xhtmlxtras/langs/fr_dlg.js +0 -0
  181. data/vendor/assets/javascripts/tinymce/plugins/xhtmlxtras/langs/it_dlg.js +0 -0
  182. data/vendor/assets/javascripts/tinymce/plugins/xhtmlxtras/langs/nb_dlg.js +1 -0
  183. data/vendor/assets/javascripts/tinymce/plugins/xhtmlxtras/langs/nl_dlg.js +0 -0
  184. data/vendor/assets/javascripts/tinymce/plugins/xhtmlxtras/langs/pl_dlg.js +0 -0
  185. data/vendor/assets/javascripts/tinymce/plugins/xhtmlxtras/langs/pt_dlg.js +0 -0
  186. data/vendor/assets/javascripts/tinymce/plugins/xhtmlxtras/langs/ru_dlg.js +0 -0
  187. data/vendor/assets/javascripts/tinymce/themes/advanced/color_picker.htm +2 -6
  188. data/vendor/assets/javascripts/tinymce/themes/advanced/editor_template.js +1 -1
  189. data/vendor/assets/javascripts/tinymce/themes/advanced/editor_template_src.js +176 -48
  190. data/vendor/assets/javascripts/tinymce/themes/advanced/img/icons.gif +0 -0
  191. data/vendor/assets/javascripts/tinymce/themes/advanced/js/anchor.js +19 -6
  192. data/vendor/assets/javascripts/tinymce/themes/advanced/js/color_picker.js +345 -329
  193. data/vendor/assets/javascripts/tinymce/themes/advanced/js/image.js +4 -2
  194. data/vendor/assets/javascripts/tinymce/themes/advanced/js/link.js +9 -3
  195. data/vendor/assets/javascripts/tinymce/themes/advanced/js/source_editor.js +27 -5
  196. data/vendor/assets/javascripts/tinymce/themes/advanced/langs/de.js +1 -1
  197. data/vendor/assets/javascripts/tinymce/themes/advanced/langs/de_dlg.js +1 -1
  198. data/vendor/assets/javascripts/tinymce/themes/advanced/langs/en.js +1 -1
  199. data/vendor/assets/javascripts/tinymce/themes/advanced/langs/en_dlg.js +1 -1
  200. data/vendor/assets/javascripts/tinymce/themes/advanced/langs/es.js +0 -0
  201. data/vendor/assets/javascripts/tinymce/themes/advanced/langs/es_dlg.js +0 -0
  202. data/vendor/assets/javascripts/tinymce/themes/advanced/langs/et.js +0 -0
  203. data/vendor/assets/javascripts/tinymce/themes/advanced/langs/et_dlg.js +0 -0
  204. data/vendor/assets/javascripts/tinymce/themes/advanced/langs/fr.js +0 -0
  205. data/vendor/assets/javascripts/tinymce/themes/advanced/langs/fr_dlg.js +0 -0
  206. data/vendor/assets/javascripts/tinymce/themes/advanced/langs/it.js +0 -0
  207. data/vendor/assets/javascripts/tinymce/themes/advanced/langs/it_dlg.js +0 -0
  208. data/vendor/assets/javascripts/tinymce/themes/advanced/langs/nb.js +1 -0
  209. data/vendor/assets/javascripts/tinymce/themes/advanced/langs/nb_dlg.js +1 -0
  210. data/vendor/assets/javascripts/tinymce/themes/advanced/langs/nl.js +0 -0
  211. data/vendor/assets/javascripts/tinymce/themes/advanced/langs/nl_dlg.js +0 -0
  212. data/vendor/assets/javascripts/tinymce/themes/advanced/langs/pl.js +0 -0
  213. data/vendor/assets/javascripts/tinymce/themes/advanced/langs/pl_dlg.js +0 -0
  214. data/vendor/assets/javascripts/tinymce/themes/advanced/langs/pt.js +0 -0
  215. data/vendor/assets/javascripts/tinymce/themes/advanced/langs/pt_dlg.js +0 -0
  216. data/vendor/assets/javascripts/tinymce/themes/advanced/langs/ru.js +0 -0
  217. data/vendor/assets/javascripts/tinymce/themes/advanced/langs/ru_dlg.js +0 -0
  218. data/vendor/assets/javascripts/tinymce/themes/advanced/skins/default/dialog.css +3 -2
  219. data/vendor/assets/javascripts/tinymce/themes/advanced/skins/default/ui.css +6 -1
  220. data/vendor/assets/javascripts/tinymce/themes/advanced/skins/highcontrast/dialog.css +4 -3
  221. data/vendor/assets/javascripts/tinymce/themes/advanced/skins/highcontrast/ui.css +5 -1
  222. data/vendor/assets/javascripts/tinymce/themes/advanced/skins/o2k7/dialog.css +3 -2
  223. data/vendor/assets/javascripts/tinymce/themes/advanced/skins/o2k7/ui.css +6 -1
  224. data/vendor/assets/javascripts/tinymce/themes/advanced/source_editor.htm +1 -1
  225. data/vendor/assets/javascripts/tinymce/themes/simple/langs/de.js +1 -0
  226. data/vendor/assets/javascripts/tinymce/themes/simple/langs/es.js +1 -0
  227. data/vendor/assets/javascripts/tinymce/themes/simple/langs/et.js +1 -0
  228. data/vendor/assets/javascripts/tinymce/themes/simple/langs/fr.js +1 -0
  229. data/vendor/assets/javascripts/tinymce/themes/simple/langs/it.js +1 -0
  230. data/vendor/assets/javascripts/tinymce/themes/simple/langs/nb.js +1 -0
  231. data/vendor/assets/javascripts/tinymce/themes/simple/langs/nl.js +1 -0
  232. data/vendor/assets/javascripts/tinymce/themes/simple/langs/pl.js +0 -0
  233. data/vendor/assets/javascripts/tinymce/themes/simple/langs/pt.js +1 -0
  234. data/vendor/assets/javascripts/tinymce/themes/simple/langs/ru.js +1 -0
  235. data/vendor/assets/javascripts/tinymce/tiny_mce.js +1 -1
  236. data/vendor/assets/javascripts/tinymce/tiny_mce_popup.js +1 -1
  237. data/vendor/assets/javascripts/tinymce/tiny_mce_src.js +9799 -8716
  238. data/vendor/assets/javascripts_old/tinymce/jquery.tinymce.js +1 -0
  239. data/vendor/assets/javascripts_old/tinymce/langs/de.js +1 -0
  240. data/vendor/assets/javascripts_old/tinymce/langs/en.js +1 -0
  241. data/vendor/assets/javascripts_old/tinymce/langs/es.js +1 -0
  242. data/vendor/assets/javascripts_old/tinymce/langs/et.js +1 -0
  243. data/vendor/assets/javascripts_old/tinymce/langs/fr.js +1 -0
  244. data/vendor/assets/javascripts_old/tinymce/langs/it.js +1 -0
  245. data/vendor/assets/javascripts_old/tinymce/langs/nl.js +1 -0
  246. data/vendor/assets/{javascripts → javascripts_old}/tinymce/langs/no.js +0 -0
  247. data/vendor/assets/javascripts_old/tinymce/langs/pl.js +1 -0
  248. data/vendor/assets/javascripts_old/tinymce/langs/pt.js +1 -0
  249. data/vendor/assets/javascripts_old/tinymce/langs/ru.js +1 -0
  250. data/vendor/assets/javascripts_old/tinymce/license.txt +504 -0
  251. data/vendor/assets/javascripts_old/tinymce/plugins/advhr/css/advhr.css +5 -0
  252. data/vendor/assets/javascripts_old/tinymce/plugins/advhr/editor_plugin.js +1 -0
  253. data/vendor/assets/javascripts_old/tinymce/plugins/advhr/editor_plugin_src.js +57 -0
  254. data/vendor/assets/javascripts_old/tinymce/plugins/advhr/js/rule.js +43 -0
  255. data/vendor/assets/javascripts_old/tinymce/plugins/advhr/langs/de_dlg.js +1 -0
  256. data/vendor/assets/javascripts_old/tinymce/plugins/advhr/langs/en_dlg.js +1 -0
  257. data/vendor/assets/javascripts_old/tinymce/plugins/advhr/langs/es_dlg.js +1 -0
  258. data/vendor/assets/javascripts_old/tinymce/plugins/advhr/langs/et_dlg.js +1 -0
  259. data/vendor/assets/javascripts_old/tinymce/plugins/advhr/langs/fr_dlg.js +1 -0
  260. data/vendor/assets/javascripts_old/tinymce/plugins/advhr/langs/it_dlg.js +1 -0
  261. data/vendor/assets/javascripts_old/tinymce/plugins/advhr/langs/nl_dlg.js +1 -0
  262. data/vendor/assets/{javascripts → javascripts_old}/tinymce/plugins/advhr/langs/no_dlg.js +0 -0
  263. data/vendor/assets/javascripts_old/tinymce/plugins/advhr/langs/pl_dlg.js +1 -0
  264. data/vendor/assets/javascripts_old/tinymce/plugins/advhr/langs/pt_dlg.js +1 -0
  265. data/vendor/assets/javascripts_old/tinymce/plugins/advhr/langs/ru_dlg.js +1 -0
  266. data/vendor/assets/javascripts_old/tinymce/plugins/advhr/rule.htm +58 -0
  267. data/vendor/assets/javascripts_old/tinymce/plugins/advimage/css/advimage.css +13 -0
  268. data/vendor/assets/javascripts_old/tinymce/plugins/advimage/editor_plugin.js +1 -0
  269. data/vendor/assets/javascripts_old/tinymce/plugins/advimage/editor_plugin_src.js +50 -0
  270. data/vendor/assets/javascripts_old/tinymce/plugins/advimage/image.htm +235 -0
  271. data/vendor/assets/javascripts_old/tinymce/plugins/advimage/img/sample.gif +0 -0
  272. data/vendor/assets/javascripts_old/tinymce/plugins/advimage/js/image.js +462 -0
  273. data/vendor/assets/javascripts_old/tinymce/plugins/advimage/langs/de_dlg.js +1 -0
  274. data/vendor/assets/javascripts_old/tinymce/plugins/advimage/langs/en_dlg.js +1 -0
  275. data/vendor/assets/javascripts_old/tinymce/plugins/advimage/langs/es_dlg.js +1 -0
  276. data/vendor/assets/javascripts_old/tinymce/plugins/advimage/langs/et_dlg.js +1 -0
  277. data/vendor/assets/javascripts_old/tinymce/plugins/advimage/langs/fr_dlg.js +1 -0
  278. data/vendor/assets/javascripts_old/tinymce/plugins/advimage/langs/it_dlg.js +1 -0
  279. data/vendor/assets/javascripts_old/tinymce/plugins/advimage/langs/nl_dlg.js +1 -0
  280. data/vendor/assets/{javascripts → javascripts_old}/tinymce/plugins/advimage/langs/no_dlg.js +0 -0
  281. data/vendor/assets/javascripts_old/tinymce/plugins/advimage/langs/pl_dlg.js +1 -0
  282. data/vendor/assets/javascripts_old/tinymce/plugins/advimage/langs/pt_dlg.js +1 -0
  283. data/vendor/assets/javascripts_old/tinymce/plugins/advimage/langs/ru_dlg.js +1 -0
  284. data/vendor/assets/javascripts_old/tinymce/plugins/advlink/css/advlink.css +8 -0
  285. data/vendor/assets/javascripts_old/tinymce/plugins/advlink/editor_plugin.js +1 -0
  286. data/vendor/assets/javascripts_old/tinymce/plugins/advlink/editor_plugin_src.js +61 -0
  287. data/vendor/assets/javascripts_old/tinymce/plugins/advlink/js/advlink.js +532 -0
  288. data/vendor/assets/javascripts_old/tinymce/plugins/advlink/langs/de_dlg.js +1 -0
  289. data/vendor/assets/javascripts_old/tinymce/plugins/advlink/langs/en_dlg.js +1 -0
  290. data/vendor/assets/javascripts_old/tinymce/plugins/advlink/langs/es_dlg.js +1 -0
  291. data/vendor/assets/javascripts_old/tinymce/plugins/advlink/langs/et_dlg.js +1 -0
  292. data/vendor/assets/javascripts_old/tinymce/plugins/advlink/langs/fr_dlg.js +1 -0
  293. data/vendor/assets/javascripts_old/tinymce/plugins/advlink/langs/it_dlg.js +1 -0
  294. data/vendor/assets/javascripts_old/tinymce/plugins/advlink/langs/nl_dlg.js +1 -0
  295. data/vendor/assets/{javascripts → javascripts_old}/tinymce/plugins/advlink/langs/no_dlg.js +0 -0
  296. data/vendor/assets/javascripts_old/tinymce/plugins/advlink/langs/pl_dlg.js +1 -0
  297. data/vendor/assets/javascripts_old/tinymce/plugins/advlink/langs/pt_dlg.js +1 -0
  298. data/vendor/assets/javascripts_old/tinymce/plugins/advlink/langs/ru_dlg.js +1 -0
  299. data/vendor/assets/javascripts_old/tinymce/plugins/advlink/link.htm +338 -0
  300. data/vendor/assets/javascripts_old/tinymce/plugins/advlist/editor_plugin.js +1 -0
  301. data/vendor/assets/javascripts_old/tinymce/plugins/advlist/editor_plugin_src.js +176 -0
  302. data/vendor/assets/javascripts_old/tinymce/plugins/autolink/editor_plugin.js +1 -0
  303. data/vendor/assets/javascripts_old/tinymce/plugins/autolink/editor_plugin_src.js +172 -0
  304. data/vendor/assets/javascripts_old/tinymce/plugins/autoresize/editor_plugin.js +1 -0
  305. data/vendor/assets/javascripts_old/tinymce/plugins/autoresize/editor_plugin_src.js +137 -0
  306. data/vendor/assets/javascripts_old/tinymce/plugins/autosave/editor_plugin.js +1 -0
  307. data/vendor/assets/javascripts_old/tinymce/plugins/autosave/editor_plugin_src.js +431 -0
  308. data/vendor/assets/{javascripts → javascripts_old}/tinymce/plugins/autosave/langs/en.js +0 -0
  309. data/vendor/assets/javascripts_old/tinymce/plugins/bbcode/editor_plugin.js +1 -0
  310. data/vendor/assets/javascripts_old/tinymce/plugins/bbcode/editor_plugin_src.js +120 -0
  311. data/vendor/assets/javascripts_old/tinymce/plugins/contextmenu/editor_plugin.js +1 -0
  312. data/vendor/assets/javascripts_old/tinymce/plugins/contextmenu/editor_plugin_src.js +160 -0
  313. data/vendor/assets/javascripts_old/tinymce/plugins/directionality/editor_plugin.js +1 -0
  314. data/vendor/assets/javascripts_old/tinymce/plugins/directionality/editor_plugin_src.js +82 -0
  315. data/vendor/assets/javascripts_old/tinymce/plugins/emotions/editor_plugin.js +1 -0
  316. data/vendor/assets/javascripts_old/tinymce/plugins/emotions/editor_plugin_src.js +43 -0
  317. data/vendor/assets/javascripts_old/tinymce/plugins/emotions/emotions.htm +42 -0
  318. data/vendor/assets/javascripts_old/tinymce/plugins/emotions/img/smiley-cool.gif +0 -0
  319. data/vendor/assets/javascripts_old/tinymce/plugins/emotions/img/smiley-cry.gif +0 -0
  320. data/vendor/assets/javascripts_old/tinymce/plugins/emotions/img/smiley-embarassed.gif +0 -0
  321. data/vendor/assets/javascripts_old/tinymce/plugins/emotions/img/smiley-foot-in-mouth.gif +0 -0
  322. data/vendor/assets/javascripts_old/tinymce/plugins/emotions/img/smiley-frown.gif +0 -0
  323. data/vendor/assets/javascripts_old/tinymce/plugins/emotions/img/smiley-innocent.gif +0 -0
  324. data/vendor/assets/javascripts_old/tinymce/plugins/emotions/img/smiley-kiss.gif +0 -0
  325. data/vendor/assets/javascripts_old/tinymce/plugins/emotions/img/smiley-laughing.gif +0 -0
  326. data/vendor/assets/javascripts_old/tinymce/plugins/emotions/img/smiley-money-mouth.gif +0 -0
  327. data/vendor/assets/javascripts_old/tinymce/plugins/emotions/img/smiley-sealed.gif +0 -0
  328. data/vendor/assets/javascripts_old/tinymce/plugins/emotions/img/smiley-smile.gif +0 -0
  329. data/vendor/assets/javascripts_old/tinymce/plugins/emotions/img/smiley-surprised.gif +0 -0
  330. data/vendor/assets/javascripts_old/tinymce/plugins/emotions/img/smiley-tongue-out.gif +0 -0
  331. data/vendor/assets/javascripts_old/tinymce/plugins/emotions/img/smiley-undecided.gif +0 -0
  332. data/vendor/assets/javascripts_old/tinymce/plugins/emotions/img/smiley-wink.gif +0 -0
  333. data/vendor/assets/javascripts_old/tinymce/plugins/emotions/img/smiley-yell.gif +0 -0
  334. data/vendor/assets/javascripts_old/tinymce/plugins/emotions/js/emotions.js +43 -0
  335. data/vendor/assets/javascripts_old/tinymce/plugins/emotions/langs/en_dlg.js +1 -0
  336. data/vendor/assets/javascripts_old/tinymce/plugins/emotions/langs/pl_dlg.js +1 -0
  337. data/vendor/assets/javascripts_old/tinymce/plugins/example/dialog.htm +22 -0
  338. data/vendor/assets/javascripts_old/tinymce/plugins/example/editor_plugin.js +1 -0
  339. data/vendor/assets/javascripts_old/tinymce/plugins/example/editor_plugin_src.js +84 -0
  340. data/vendor/assets/javascripts_old/tinymce/plugins/example/img/example.gif +0 -0
  341. data/vendor/assets/javascripts_old/tinymce/plugins/example/js/dialog.js +19 -0
  342. data/vendor/assets/javascripts_old/tinymce/plugins/example/langs/en.js +3 -0
  343. data/vendor/assets/javascripts_old/tinymce/plugins/example/langs/en_dlg.js +3 -0
  344. data/vendor/assets/javascripts_old/tinymce/plugins/example_dependency/editor_plugin.js +1 -0
  345. data/vendor/assets/javascripts_old/tinymce/plugins/example_dependency/editor_plugin_src.js +50 -0
  346. data/vendor/assets/javascripts_old/tinymce/plugins/fullpage/css/fullpage.css +143 -0
  347. data/vendor/assets/javascripts_old/tinymce/plugins/fullpage/editor_plugin.js +1 -0
  348. data/vendor/assets/javascripts_old/tinymce/plugins/fullpage/editor_plugin_src.js +405 -0
  349. data/vendor/assets/javascripts_old/tinymce/plugins/fullpage/fullpage.htm +259 -0
  350. data/vendor/assets/javascripts_old/tinymce/plugins/fullpage/js/fullpage.js +232 -0
  351. data/vendor/assets/javascripts_old/tinymce/plugins/fullpage/langs/de_dlg.js +1 -0
  352. data/vendor/assets/javascripts_old/tinymce/plugins/fullpage/langs/en_dlg.js +1 -0
  353. data/vendor/assets/javascripts_old/tinymce/plugins/fullpage/langs/es_dlg.js +1 -0
  354. data/vendor/assets/javascripts_old/tinymce/plugins/fullpage/langs/et_dlg.js +1 -0
  355. data/vendor/assets/javascripts_old/tinymce/plugins/fullpage/langs/fr_dlg.js +1 -0
  356. data/vendor/assets/javascripts_old/tinymce/plugins/fullpage/langs/it_dlg.js +1 -0
  357. data/vendor/assets/javascripts_old/tinymce/plugins/fullpage/langs/nl_dlg.js +1 -0
  358. data/vendor/assets/{javascripts → javascripts_old}/tinymce/plugins/fullpage/langs/no_dlg.js +0 -0
  359. data/vendor/assets/javascripts_old/tinymce/plugins/fullpage/langs/pl_dlg.js +1 -0
  360. data/vendor/assets/javascripts_old/tinymce/plugins/fullpage/langs/pt_dlg.js +1 -0
  361. data/vendor/assets/javascripts_old/tinymce/plugins/fullpage/langs/ru_dlg.js +1 -0
  362. data/vendor/assets/javascripts_old/tinymce/plugins/fullscreen/editor_plugin.js +1 -0
  363. data/vendor/assets/javascripts_old/tinymce/plugins/fullscreen/editor_plugin_src.js +159 -0
  364. data/vendor/assets/javascripts_old/tinymce/plugins/fullscreen/fullscreen.htm +110 -0
  365. data/vendor/assets/javascripts_old/tinymce/plugins/iespell/editor_plugin.js +1 -0
  366. data/vendor/assets/javascripts_old/tinymce/plugins/iespell/editor_plugin_src.js +54 -0
  367. data/vendor/assets/javascripts_old/tinymce/plugins/inlinepopups/editor_plugin.js +1 -0
  368. data/vendor/assets/javascripts_old/tinymce/plugins/inlinepopups/editor_plugin_src.js +699 -0
  369. data/vendor/assets/javascripts_old/tinymce/plugins/inlinepopups/skins/clearlooks2/img/alert.gif +0 -0
  370. data/vendor/assets/javascripts_old/tinymce/plugins/inlinepopups/skins/clearlooks2/img/button.gif +0 -0
  371. data/vendor/assets/javascripts_old/tinymce/plugins/inlinepopups/skins/clearlooks2/img/buttons.gif +0 -0
  372. data/vendor/assets/javascripts_old/tinymce/plugins/inlinepopups/skins/clearlooks2/img/confirm.gif +0 -0
  373. data/vendor/assets/javascripts_old/tinymce/plugins/inlinepopups/skins/clearlooks2/img/corners.gif +0 -0
  374. data/vendor/assets/javascripts_old/tinymce/plugins/inlinepopups/skins/clearlooks2/img/horizontal.gif +0 -0
  375. data/vendor/assets/javascripts_old/tinymce/plugins/inlinepopups/skins/clearlooks2/img/vertical.gif +0 -0
  376. data/vendor/assets/javascripts_old/tinymce/plugins/inlinepopups/skins/clearlooks2/window.css +90 -0
  377. data/vendor/assets/javascripts_old/tinymce/plugins/inlinepopups/template.htm +387 -0
  378. data/vendor/assets/javascripts_old/tinymce/plugins/insertdatetime/editor_plugin.js +1 -0
  379. data/vendor/assets/javascripts_old/tinymce/plugins/insertdatetime/editor_plugin_src.js +83 -0
  380. data/vendor/assets/javascripts_old/tinymce/plugins/layer/editor_plugin.js +1 -0
  381. data/vendor/assets/javascripts_old/tinymce/plugins/layer/editor_plugin_src.js +262 -0
  382. data/vendor/assets/javascripts_old/tinymce/plugins/legacyoutput/editor_plugin.js +1 -0
  383. data/vendor/assets/javascripts_old/tinymce/plugins/legacyoutput/editor_plugin_src.js +139 -0
  384. data/vendor/assets/javascripts_old/tinymce/plugins/lists/editor_plugin.js +1 -0
  385. data/vendor/assets/javascripts_old/tinymce/plugins/lists/editor_plugin_src.js +925 -0
  386. data/vendor/assets/javascripts_old/tinymce/plugins/media/css/media.css +17 -0
  387. data/vendor/assets/javascripts_old/tinymce/plugins/media/editor_plugin.js +1 -0
  388. data/vendor/assets/javascripts_old/tinymce/plugins/media/editor_plugin_src.js +890 -0
  389. data/vendor/assets/javascripts_old/tinymce/plugins/media/js/embed.js +73 -0
  390. data/vendor/assets/javascripts_old/tinymce/plugins/media/js/media.js +464 -0
  391. data/vendor/assets/javascripts_old/tinymce/plugins/media/langs/de_dlg.js +1 -0
  392. data/vendor/assets/javascripts_old/tinymce/plugins/media/langs/en_dlg.js +1 -0
  393. data/vendor/assets/javascripts_old/tinymce/plugins/media/langs/es_dlg.js +1 -0
  394. data/vendor/assets/javascripts_old/tinymce/plugins/media/langs/et_dlg.js +1 -0
  395. data/vendor/assets/javascripts_old/tinymce/plugins/media/langs/fr_dlg.js +1 -0
  396. data/vendor/assets/javascripts_old/tinymce/plugins/media/langs/it_dlg.js +1 -0
  397. data/vendor/assets/javascripts_old/tinymce/plugins/media/langs/nl_dlg.js +1 -0
  398. data/vendor/assets/{javascripts → javascripts_old}/tinymce/plugins/media/langs/no_dlg.js +0 -0
  399. data/vendor/assets/javascripts_old/tinymce/plugins/media/langs/pl_dlg.js +1 -0
  400. data/vendor/assets/javascripts_old/tinymce/plugins/media/langs/pt_dlg.js +1 -0
  401. data/vendor/assets/javascripts_old/tinymce/plugins/media/langs/ru_dlg.js +1 -0
  402. data/vendor/assets/javascripts_old/tinymce/plugins/media/media.htm +922 -0
  403. data/vendor/assets/javascripts_old/tinymce/plugins/media/moxieplayer.swf +0 -0
  404. data/vendor/assets/javascripts_old/tinymce/plugins/nonbreaking/editor_plugin.js +1 -0
  405. data/vendor/assets/javascripts_old/tinymce/plugins/nonbreaking/editor_plugin_src.js +54 -0
  406. data/vendor/assets/javascripts_old/tinymce/plugins/noneditable/editor_plugin.js +1 -0
  407. data/vendor/assets/javascripts_old/tinymce/plugins/noneditable/editor_plugin_src.js +95 -0
  408. data/vendor/assets/javascripts_old/tinymce/plugins/pagebreak/editor_plugin.js +1 -0
  409. data/vendor/assets/javascripts_old/tinymce/plugins/pagebreak/editor_plugin_src.js +74 -0
  410. data/vendor/assets/javascripts_old/tinymce/plugins/paste/editor_plugin.js +1 -0
  411. data/vendor/assets/javascripts_old/tinymce/plugins/paste/editor_plugin_src.js +871 -0
  412. data/vendor/assets/javascripts_old/tinymce/plugins/paste/js/pastetext.js +36 -0
  413. data/vendor/assets/javascripts_old/tinymce/plugins/paste/js/pasteword.js +51 -0
  414. data/vendor/assets/javascripts_old/tinymce/plugins/paste/langs/de_dlg.js +1 -0
  415. data/vendor/assets/javascripts_old/tinymce/plugins/paste/langs/en_dlg.js +1 -0
  416. data/vendor/assets/javascripts_old/tinymce/plugins/paste/langs/es_dlg.js +1 -0
  417. data/vendor/assets/javascripts_old/tinymce/plugins/paste/langs/et_dlg.js +1 -0
  418. data/vendor/assets/javascripts_old/tinymce/plugins/paste/langs/fr_dlg.js +1 -0
  419. data/vendor/assets/javascripts_old/tinymce/plugins/paste/langs/it_dlg.js +1 -0
  420. data/vendor/assets/javascripts_old/tinymce/plugins/paste/langs/nl_dlg.js +1 -0
  421. data/vendor/assets/{javascripts → javascripts_old}/tinymce/plugins/paste/langs/no_dlg.js +0 -0
  422. data/vendor/assets/javascripts_old/tinymce/plugins/paste/langs/pl_dlg.js +1 -0
  423. data/vendor/assets/javascripts_old/tinymce/plugins/paste/langs/pt_dlg.js +1 -0
  424. data/vendor/assets/javascripts_old/tinymce/plugins/paste/langs/ru_dlg.js +1 -0
  425. data/vendor/assets/javascripts_old/tinymce/plugins/paste/pastetext.htm +27 -0
  426. data/vendor/assets/javascripts_old/tinymce/plugins/paste/pasteword.htm +21 -0
  427. data/vendor/assets/javascripts_old/tinymce/plugins/preview/editor_plugin.js +1 -0
  428. data/vendor/assets/javascripts_old/tinymce/plugins/preview/editor_plugin_src.js +53 -0
  429. data/vendor/assets/javascripts_old/tinymce/plugins/preview/example.html +28 -0
  430. data/vendor/assets/javascripts_old/tinymce/plugins/preview/jscripts/embed.js +73 -0
  431. data/vendor/assets/javascripts_old/tinymce/plugins/preview/preview.html +17 -0
  432. data/vendor/assets/javascripts_old/tinymce/plugins/print/editor_plugin.js +1 -0
  433. data/vendor/assets/javascripts_old/tinymce/plugins/print/editor_plugin_src.js +34 -0
  434. data/vendor/assets/javascripts_old/tinymce/plugins/save/editor_plugin.js +1 -0
  435. data/vendor/assets/javascripts_old/tinymce/plugins/save/editor_plugin_src.js +101 -0
  436. data/vendor/assets/javascripts_old/tinymce/plugins/searchreplace/css/searchreplace.css +6 -0
  437. data/vendor/assets/javascripts_old/tinymce/plugins/searchreplace/editor_plugin.js +1 -0
  438. data/vendor/assets/javascripts_old/tinymce/plugins/searchreplace/editor_plugin_src.js +61 -0
  439. data/vendor/assets/javascripts_old/tinymce/plugins/searchreplace/js/searchreplace.js +142 -0
  440. data/vendor/assets/javascripts_old/tinymce/plugins/searchreplace/langs/de_dlg.js +1 -0
  441. data/vendor/assets/javascripts_old/tinymce/plugins/searchreplace/langs/en_dlg.js +1 -0
  442. data/vendor/assets/javascripts_old/tinymce/plugins/searchreplace/langs/es_dlg.js +1 -0
  443. data/vendor/assets/javascripts_old/tinymce/plugins/searchreplace/langs/et_dlg.js +1 -0
  444. data/vendor/assets/javascripts_old/tinymce/plugins/searchreplace/langs/fr_dlg.js +1 -0
  445. data/vendor/assets/javascripts_old/tinymce/plugins/searchreplace/langs/it_dlg.js +1 -0
  446. data/vendor/assets/javascripts_old/tinymce/plugins/searchreplace/langs/nl_dlg.js +1 -0
  447. data/vendor/assets/{javascripts → javascripts_old}/tinymce/plugins/searchreplace/langs/no_dlg.js +0 -0
  448. data/vendor/assets/javascripts_old/tinymce/plugins/searchreplace/langs/pl_dlg.js +1 -0
  449. data/vendor/assets/javascripts_old/tinymce/plugins/searchreplace/langs/pt_dlg.js +1 -0
  450. data/vendor/assets/javascripts_old/tinymce/plugins/searchreplace/langs/ru_dlg.js +1 -0
  451. data/vendor/assets/javascripts_old/tinymce/plugins/searchreplace/searchreplace.htm +100 -0
  452. data/vendor/assets/javascripts_old/tinymce/plugins/spellchecker/css/content.css +1 -0
  453. data/vendor/assets/javascripts_old/tinymce/plugins/spellchecker/editor_plugin.js +1 -0
  454. data/vendor/assets/javascripts_old/tinymce/plugins/spellchecker/editor_plugin_src.js +436 -0
  455. data/vendor/assets/javascripts_old/tinymce/plugins/spellchecker/img/wline.gif +0 -0
  456. data/vendor/assets/javascripts_old/tinymce/plugins/style/css/props.css +13 -0
  457. data/vendor/assets/javascripts_old/tinymce/plugins/style/editor_plugin.js +1 -0
  458. data/vendor/assets/javascripts_old/tinymce/plugins/style/editor_plugin_src.js +55 -0
  459. data/vendor/assets/javascripts_old/tinymce/plugins/style/js/props.js +635 -0
  460. data/vendor/assets/javascripts_old/tinymce/plugins/style/langs/de_dlg.js +1 -0
  461. data/vendor/assets/javascripts_old/tinymce/plugins/style/langs/en_dlg.js +1 -0
  462. data/vendor/assets/javascripts_old/tinymce/plugins/style/langs/es_dlg.js +1 -0
  463. data/vendor/assets/javascripts_old/tinymce/plugins/style/langs/et_dlg.js +1 -0
  464. data/vendor/assets/javascripts_old/tinymce/plugins/style/langs/fr_dlg.js +1 -0
  465. data/vendor/assets/javascripts_old/tinymce/plugins/style/langs/it_dlg.js +1 -0
  466. data/vendor/assets/javascripts_old/tinymce/plugins/style/langs/nl_dlg.js +1 -0
  467. data/vendor/assets/{javascripts → javascripts_old}/tinymce/plugins/style/langs/no_dlg.js +0 -0
  468. data/vendor/assets/javascripts_old/tinymce/plugins/style/langs/pl_dlg.js +1 -0
  469. data/vendor/assets/javascripts_old/tinymce/plugins/style/langs/pt_dlg.js +1 -0
  470. data/vendor/assets/javascripts_old/tinymce/plugins/style/langs/ru_dlg.js +1 -0
  471. data/vendor/assets/javascripts_old/tinymce/plugins/style/props.htm +840 -0
  472. data/vendor/assets/javascripts_old/tinymce/plugins/tabfocus/editor_plugin.js +1 -0
  473. data/vendor/assets/javascripts_old/tinymce/plugins/tabfocus/editor_plugin_src.js +122 -0
  474. data/vendor/assets/javascripts_old/tinymce/plugins/table/cell.htm +180 -0
  475. data/vendor/assets/javascripts_old/tinymce/plugins/table/css/cell.css +17 -0
  476. data/vendor/assets/javascripts_old/tinymce/plugins/table/css/row.css +25 -0
  477. data/vendor/assets/javascripts_old/tinymce/plugins/table/css/table.css +13 -0
  478. data/vendor/assets/javascripts_old/tinymce/plugins/table/editor_plugin.js +1 -0
  479. data/vendor/assets/javascripts_old/tinymce/plugins/table/editor_plugin_src.js +1408 -0
  480. data/vendor/assets/javascripts_old/tinymce/plugins/table/js/cell.js +319 -0
  481. data/vendor/assets/javascripts_old/tinymce/plugins/table/js/merge_cells.js +27 -0
  482. data/vendor/assets/javascripts_old/tinymce/plugins/table/js/row.js +237 -0
  483. data/vendor/assets/javascripts_old/tinymce/plugins/table/js/table.js +484 -0
  484. data/vendor/assets/javascripts_old/tinymce/plugins/table/langs/de_dlg.js +1 -0
  485. data/vendor/assets/javascripts_old/tinymce/plugins/table/langs/en_dlg.js +1 -0
  486. data/vendor/assets/javascripts_old/tinymce/plugins/table/langs/es_dlg.js +1 -0
  487. data/vendor/assets/javascripts_old/tinymce/plugins/table/langs/et_dlg.js +1 -0
  488. data/vendor/assets/javascripts_old/tinymce/plugins/table/langs/fr_dlg.js +1 -0
  489. data/vendor/assets/javascripts_old/tinymce/plugins/table/langs/it_dlg.js +1 -0
  490. data/vendor/assets/javascripts_old/tinymce/plugins/table/langs/nl_dlg.js +1 -0
  491. data/vendor/assets/{javascripts → javascripts_old}/tinymce/plugins/table/langs/no_dlg.js +0 -0
  492. data/vendor/assets/javascripts_old/tinymce/plugins/table/langs/pl_dlg.js +1 -0
  493. data/vendor/assets/javascripts_old/tinymce/plugins/table/langs/pt_dlg.js +1 -0
  494. data/vendor/assets/javascripts_old/tinymce/plugins/table/langs/ru_dlg.js +1 -0
  495. data/vendor/assets/javascripts_old/tinymce/plugins/table/merge_cells.htm +32 -0
  496. data/vendor/assets/javascripts_old/tinymce/plugins/table/row.htm +158 -0
  497. data/vendor/assets/javascripts_old/tinymce/plugins/table/table.htm +188 -0
  498. data/vendor/assets/javascripts_old/tinymce/plugins/template/blank.htm +12 -0
  499. data/vendor/assets/javascripts_old/tinymce/plugins/template/css/template.css +23 -0
  500. data/vendor/assets/javascripts_old/tinymce/plugins/template/editor_plugin.js +1 -0
  501. data/vendor/assets/javascripts_old/tinymce/plugins/template/editor_plugin_src.js +159 -0
  502. data/vendor/assets/javascripts_old/tinymce/plugins/template/js/template.js +106 -0
  503. data/vendor/assets/javascripts_old/tinymce/plugins/template/langs/en_dlg.js +1 -0
  504. data/vendor/assets/javascripts_old/tinymce/plugins/template/langs/pl_dlg.js +1 -0
  505. data/vendor/assets/javascripts_old/tinymce/plugins/template/template.htm +31 -0
  506. data/vendor/assets/javascripts_old/tinymce/plugins/visualchars/editor_plugin.js +1 -0
  507. data/vendor/assets/javascripts_old/tinymce/plugins/visualchars/editor_plugin_src.js +83 -0
  508. data/vendor/assets/javascripts_old/tinymce/plugins/wordcount/editor_plugin.js +1 -0
  509. data/vendor/assets/javascripts_old/tinymce/plugins/wordcount/editor_plugin_src.js +114 -0
  510. data/vendor/assets/javascripts_old/tinymce/plugins/xhtmlxtras/abbr.htm +142 -0
  511. data/vendor/assets/javascripts_old/tinymce/plugins/xhtmlxtras/acronym.htm +142 -0
  512. data/vendor/assets/javascripts_old/tinymce/plugins/xhtmlxtras/attributes.htm +149 -0
  513. data/vendor/assets/javascripts_old/tinymce/plugins/xhtmlxtras/cite.htm +142 -0
  514. data/vendor/assets/javascripts_old/tinymce/plugins/xhtmlxtras/css/attributes.css +11 -0
  515. data/vendor/assets/javascripts_old/tinymce/plugins/xhtmlxtras/css/popup.css +9 -0
  516. data/vendor/assets/javascripts_old/tinymce/plugins/xhtmlxtras/del.htm +162 -0
  517. data/vendor/assets/javascripts_old/tinymce/plugins/xhtmlxtras/editor_plugin.js +1 -0
  518. data/vendor/assets/javascripts_old/tinymce/plugins/xhtmlxtras/editor_plugin_src.js +132 -0
  519. data/vendor/assets/javascripts_old/tinymce/plugins/xhtmlxtras/ins.htm +162 -0
  520. data/vendor/assets/javascripts_old/tinymce/plugins/xhtmlxtras/js/abbr.js +28 -0
  521. data/vendor/assets/javascripts_old/tinymce/plugins/xhtmlxtras/js/acronym.js +28 -0
  522. data/vendor/assets/javascripts_old/tinymce/plugins/xhtmlxtras/js/attributes.js +111 -0
  523. data/vendor/assets/javascripts_old/tinymce/plugins/xhtmlxtras/js/cite.js +28 -0
  524. data/vendor/assets/javascripts_old/tinymce/plugins/xhtmlxtras/js/del.js +53 -0
  525. data/vendor/assets/javascripts_old/tinymce/plugins/xhtmlxtras/js/element_common.js +229 -0
  526. data/vendor/assets/javascripts_old/tinymce/plugins/xhtmlxtras/js/ins.js +53 -0
  527. data/vendor/assets/javascripts_old/tinymce/plugins/xhtmlxtras/langs/de_dlg.js +1 -0
  528. data/vendor/assets/javascripts_old/tinymce/plugins/xhtmlxtras/langs/en_dlg.js +1 -0
  529. data/vendor/assets/javascripts_old/tinymce/plugins/xhtmlxtras/langs/es_dlg.js +1 -0
  530. data/vendor/assets/javascripts_old/tinymce/plugins/xhtmlxtras/langs/et_dlg.js +1 -0
  531. data/vendor/assets/javascripts_old/tinymce/plugins/xhtmlxtras/langs/fr_dlg.js +1 -0
  532. data/vendor/assets/javascripts_old/tinymce/plugins/xhtmlxtras/langs/it_dlg.js +1 -0
  533. data/vendor/assets/javascripts_old/tinymce/plugins/xhtmlxtras/langs/nl_dlg.js +1 -0
  534. data/vendor/assets/{javascripts → javascripts_old}/tinymce/plugins/xhtmlxtras/langs/no_dlg.js +0 -0
  535. data/vendor/assets/javascripts_old/tinymce/plugins/xhtmlxtras/langs/pl_dlg.js +1 -0
  536. data/vendor/assets/javascripts_old/tinymce/plugins/xhtmlxtras/langs/pt_dlg.js +1 -0
  537. data/vendor/assets/javascripts_old/tinymce/plugins/xhtmlxtras/langs/ru_dlg.js +1 -0
  538. data/vendor/assets/javascripts_old/tinymce/themes/advanced/about.htm +52 -0
  539. data/vendor/assets/javascripts_old/tinymce/themes/advanced/anchor.htm +26 -0
  540. data/vendor/assets/javascripts_old/tinymce/themes/advanced/charmap.htm +55 -0
  541. data/vendor/assets/javascripts_old/tinymce/themes/advanced/color_picker.htm +74 -0
  542. data/vendor/assets/javascripts_old/tinymce/themes/advanced/editor_template.js +1 -0
  543. data/vendor/assets/javascripts_old/tinymce/themes/advanced/editor_template_src.js +1362 -0
  544. data/vendor/assets/javascripts_old/tinymce/themes/advanced/image.htm +80 -0
  545. data/vendor/assets/javascripts_old/tinymce/themes/advanced/img/colorpicker.jpg +0 -0
  546. data/vendor/assets/javascripts_old/tinymce/themes/advanced/img/flash.gif +0 -0
  547. data/vendor/assets/javascripts_old/tinymce/themes/advanced/img/icons.gif +0 -0
  548. data/vendor/assets/javascripts_old/tinymce/themes/advanced/img/iframe.gif +0 -0
  549. data/vendor/assets/javascripts_old/tinymce/themes/advanced/img/pagebreak.gif +0 -0
  550. data/vendor/assets/javascripts_old/tinymce/themes/advanced/img/quicktime.gif +0 -0
  551. data/vendor/assets/javascripts_old/tinymce/themes/advanced/img/realmedia.gif +0 -0
  552. data/vendor/assets/javascripts_old/tinymce/themes/advanced/img/shockwave.gif +0 -0
  553. data/vendor/assets/javascripts_old/tinymce/themes/advanced/img/trans.gif +0 -0
  554. data/vendor/assets/javascripts_old/tinymce/themes/advanced/img/video.gif +0 -0
  555. data/vendor/assets/javascripts_old/tinymce/themes/advanced/img/windowsmedia.gif +0 -0
  556. data/vendor/assets/javascripts_old/tinymce/themes/advanced/js/about.js +73 -0
  557. data/vendor/assets/javascripts_old/tinymce/themes/advanced/js/anchor.js +43 -0
  558. data/vendor/assets/javascripts_old/tinymce/themes/advanced/js/charmap.js +363 -0
  559. data/vendor/assets/javascripts_old/tinymce/themes/advanced/js/color_picker.js +329 -0
  560. data/vendor/assets/javascripts_old/tinymce/themes/advanced/js/image.js +251 -0
  561. data/vendor/assets/javascripts_old/tinymce/themes/advanced/js/link.js +153 -0
  562. data/vendor/assets/javascripts_old/tinymce/themes/advanced/js/source_editor.js +56 -0
  563. data/vendor/assets/javascripts_old/tinymce/themes/advanced/langs/de.js +1 -0
  564. data/vendor/assets/javascripts_old/tinymce/themes/advanced/langs/de_dlg.js +1 -0
  565. data/vendor/assets/javascripts_old/tinymce/themes/advanced/langs/en.js +1 -0
  566. data/vendor/assets/javascripts_old/tinymce/themes/advanced/langs/en_dlg.js +1 -0
  567. data/vendor/assets/javascripts_old/tinymce/themes/advanced/langs/es.js +1 -0
  568. data/vendor/assets/javascripts_old/tinymce/themes/advanced/langs/es_dlg.js +1 -0
  569. data/vendor/assets/javascripts_old/tinymce/themes/advanced/langs/et.js +1 -0
  570. data/vendor/assets/javascripts_old/tinymce/themes/advanced/langs/et_dlg.js +1 -0
  571. data/vendor/assets/javascripts_old/tinymce/themes/advanced/langs/fr.js +1 -0
  572. data/vendor/assets/javascripts_old/tinymce/themes/advanced/langs/fr_dlg.js +1 -0
  573. data/vendor/assets/javascripts_old/tinymce/themes/advanced/langs/it.js +1 -0
  574. data/vendor/assets/javascripts_old/tinymce/themes/advanced/langs/it_dlg.js +1 -0
  575. data/vendor/assets/javascripts_old/tinymce/themes/advanced/langs/nl.js +1 -0
  576. data/vendor/assets/javascripts_old/tinymce/themes/advanced/langs/nl_dlg.js +1 -0
  577. data/vendor/assets/{javascripts → javascripts_old}/tinymce/themes/advanced/langs/no.js +0 -0
  578. data/vendor/assets/{javascripts → javascripts_old}/tinymce/themes/advanced/langs/no_dlg.js +0 -0
  579. data/vendor/assets/javascripts_old/tinymce/themes/advanced/langs/pl.js +1 -0
  580. data/vendor/assets/javascripts_old/tinymce/themes/advanced/langs/pl_dlg.js +1 -0
  581. data/vendor/assets/javascripts_old/tinymce/themes/advanced/langs/pt.js +1 -0
  582. data/vendor/assets/javascripts_old/tinymce/themes/advanced/langs/pt_dlg.js +1 -0
  583. data/vendor/assets/javascripts_old/tinymce/themes/advanced/langs/ru.js +1 -0
  584. data/vendor/assets/javascripts_old/tinymce/themes/advanced/langs/ru_dlg.js +1 -0
  585. data/vendor/assets/javascripts_old/tinymce/themes/advanced/link.htm +57 -0
  586. data/vendor/assets/javascripts_old/tinymce/themes/advanced/shortcuts.htm +47 -0
  587. data/vendor/assets/javascripts_old/tinymce/themes/advanced/skins/default/content.css +50 -0
  588. data/vendor/assets/javascripts_old/tinymce/themes/advanced/skins/default/dialog.css +117 -0
  589. data/vendor/assets/javascripts_old/tinymce/themes/advanced/skins/default/img/buttons.png +0 -0
  590. data/vendor/assets/javascripts_old/tinymce/themes/advanced/skins/default/img/items.gif +0 -0
  591. data/vendor/assets/javascripts_old/tinymce/themes/advanced/skins/default/img/menu_arrow.gif +0 -0
  592. data/vendor/assets/javascripts_old/tinymce/themes/advanced/skins/default/img/menu_check.gif +0 -0
  593. data/vendor/assets/javascripts_old/tinymce/themes/advanced/skins/default/img/progress.gif +0 -0
  594. data/vendor/assets/javascripts_old/tinymce/themes/advanced/skins/default/img/tabs.gif +0 -0
  595. data/vendor/assets/javascripts_old/tinymce/themes/advanced/skins/default/ui.css +214 -0
  596. data/vendor/assets/javascripts_old/tinymce/themes/advanced/skins/highcontrast/content.css +24 -0
  597. data/vendor/assets/javascripts_old/tinymce/themes/advanced/skins/highcontrast/dialog.css +105 -0
  598. data/vendor/assets/javascripts_old/tinymce/themes/advanced/skins/highcontrast/ui.css +102 -0
  599. data/vendor/assets/javascripts_old/tinymce/themes/advanced/skins/o2k7/content.css +48 -0
  600. data/vendor/assets/javascripts_old/tinymce/themes/advanced/skins/o2k7/dialog.css +117 -0
  601. data/vendor/assets/javascripts_old/tinymce/themes/advanced/skins/o2k7/img/button_bg.png +0 -0
  602. data/vendor/assets/javascripts_old/tinymce/themes/advanced/skins/o2k7/img/button_bg_black.png +0 -0
  603. data/vendor/assets/javascripts_old/tinymce/themes/advanced/skins/o2k7/img/button_bg_silver.png +0 -0
  604. data/vendor/assets/javascripts_old/tinymce/themes/advanced/skins/o2k7/ui.css +217 -0
  605. data/vendor/assets/javascripts_old/tinymce/themes/advanced/skins/o2k7/ui_black.css +8 -0
  606. data/vendor/assets/javascripts_old/tinymce/themes/advanced/skins/o2k7/ui_silver.css +5 -0
  607. data/vendor/assets/javascripts_old/tinymce/themes/advanced/source_editor.htm +25 -0
  608. data/vendor/assets/javascripts_old/tinymce/themes/simple/editor_template.js +1 -0
  609. data/vendor/assets/javascripts_old/tinymce/themes/simple/editor_template_src.js +84 -0
  610. data/vendor/assets/javascripts_old/tinymce/themes/simple/img/icons.gif +0 -0
  611. data/vendor/assets/javascripts_old/tinymce/themes/simple/langs/en.js +1 -0
  612. data/vendor/assets/javascripts_old/tinymce/themes/simple/langs/pl.js +1 -0
  613. data/vendor/assets/javascripts_old/tinymce/themes/simple/skins/default/content.css +25 -0
  614. data/vendor/assets/javascripts_old/tinymce/themes/simple/skins/default/ui.css +32 -0
  615. data/vendor/assets/javascripts_old/tinymce/themes/simple/skins/o2k7/content.css +17 -0
  616. data/vendor/assets/javascripts_old/tinymce/themes/simple/skins/o2k7/img/button_bg.png +0 -0
  617. data/vendor/assets/javascripts_old/tinymce/themes/simple/skins/o2k7/ui.css +35 -0
  618. data/vendor/assets/javascripts_old/tinymce/tiny_mce.js +1 -0
  619. data/vendor/assets/{javascripts → javascripts_old}/tinymce/tiny_mce_jquery.js +0 -0
  620. data/vendor/assets/{javascripts → javascripts_old}/tinymce/tiny_mce_jquery_src.js +0 -0
  621. data/vendor/assets/javascripts_old/tinymce/tiny_mce_popup.js +5 -0
  622. data/vendor/assets/javascripts_old/tinymce/tiny_mce_src.js +16728 -0
  623. data/vendor/assets/javascripts_old/tinymce/utils/editable_selects.js +70 -0
  624. data/vendor/assets/javascripts_old/tinymce/utils/form_utils.js +210 -0
  625. data/vendor/assets/javascripts_old/tinymce/utils/mctabs.js +162 -0
  626. data/vendor/assets/javascripts_old/tinymce/utils/validate.js +252 -0
  627. metadata +437 -20
@@ -0,0 +1,53 @@
1
+ /**
2
+ * ins.js
3
+ *
4
+ * Copyright 2009, Moxiecode Systems AB
5
+ * Released under LGPL License.
6
+ *
7
+ * License: http://tinymce.moxiecode.com/license
8
+ * Contributing: http://tinymce.moxiecode.com/contributing
9
+ */
10
+
11
+ function init() {
12
+ SXE.initElementDialog('ins');
13
+ if (SXE.currentAction == "update") {
14
+ setFormValue('datetime', tinyMCEPopup.editor.dom.getAttrib(SXE.updateElement, 'datetime'));
15
+ setFormValue('cite', tinyMCEPopup.editor.dom.getAttrib(SXE.updateElement, 'cite'));
16
+ SXE.showRemoveButton();
17
+ }
18
+ }
19
+
20
+ function setElementAttribs(elm) {
21
+ setAllCommonAttribs(elm);
22
+ setAttrib(elm, 'datetime');
23
+ setAttrib(elm, 'cite');
24
+ elm.removeAttribute('data-mce-new');
25
+ }
26
+
27
+ function insertIns() {
28
+ var elm = tinyMCEPopup.editor.dom.getParent(SXE.focusElement, 'INS');
29
+
30
+ if (elm == null) {
31
+ var s = SXE.inst.selection.getContent();
32
+ if(s.length > 0) {
33
+ insertInlineElement('ins');
34
+ var elementArray = SXE.inst.dom.select('ins[data-mce-new]');
35
+ for (var i=0; i<elementArray.length; i++) {
36
+ var elm = elementArray[i];
37
+ setElementAttribs(elm);
38
+ }
39
+ }
40
+ } else {
41
+ setElementAttribs(elm);
42
+ }
43
+ tinyMCEPopup.editor.nodeChanged();
44
+ tinyMCEPopup.execCommand('mceEndUndoLevel');
45
+ tinyMCEPopup.close();
46
+ }
47
+
48
+ function removeIns() {
49
+ SXE.removeElement('ins');
50
+ tinyMCEPopup.close();
51
+ }
52
+
53
+ tinyMCEPopup.onInit.add(init);
@@ -0,0 +1 @@
1
+ tinyMCE.addI18n('de.xhtmlxtras_dlg',{"attribs_title":"Attribute einf\u00fcgen/bearbeiten","option_rtl":"Rechts nach links","option_ltr":"Links nach rechts","insert_date":"Aktuelle Zeit/Datum einf\u00fcgen",remove:"Entfernen","title_cite_element":"Quellenangabe","title_abbr_element":"Abk\u00fcrzung","title_acronym_element":"Akronym","title_del_element":"Entfernter Text","title_ins_element":"Eingef\u00fcgter Text","fieldset_events_tab":"Ereignisse","fieldset_attrib_tab":"Attribute","fieldset_general_tab":"Allgemeine Einstellungen","events_tab":"Ereignisse","attrib_tab":"Attribute","general_tab":"Allgemein","attribute_attrib_tab":"Attribute","attribute_events_tab":"Ereignisse","attribute_label_accesskey":"Tastenk\u00fcrzel","attribute_label_tabindex":"Tabindex","attribute_label_langcode":"Sprache","attribute_option_rtl":"Rechts nach links","attribute_option_ltr":"Links nach rechts","attribute_label_langdir":"Schriftrichtung","attribute_label_datetime":"Zeit/Datum","attribute_label_cite":"Quellenangabe","attribute_label_style":"Format","attribute_label_class":"Klasse","attribute_label_id":"ID","attribute_label_title":"Titel"});
@@ -0,0 +1 @@
1
+ tinyMCE.addI18n('en.xhtmlxtras_dlg',{"attribs_title":"Insert/Edit Attributes","option_rtl":"Right to Left","option_ltr":"Left to Right","insert_date":"Insert Current Date/Time",remove:"Remove","title_cite_element":"Citation Element","title_abbr_element":"Abbreviation Element","title_acronym_element":"Acronym Element","title_del_element":"Deletion Element","title_ins_element":"Insertion Element","fieldset_events_tab":"Element Events","fieldset_attrib_tab":"Element Attributes","fieldset_general_tab":"General Settings","events_tab":"Events","attrib_tab":"Attributes","general_tab":"General","attribute_attrib_tab":"Attributes","attribute_events_tab":"Events","attribute_label_accesskey":"AccessKey","attribute_label_tabindex":"TabIndex","attribute_label_langcode":"Language","attribute_option_rtl":"Right to Left","attribute_option_ltr":"Left to Right","attribute_label_langdir":"Text Direction","attribute_label_datetime":"Date/Time","attribute_label_cite":"Cite","attribute_label_style":"Style","attribute_label_class":"Class","attribute_label_id":"ID","attribute_label_title":"Title"});
@@ -0,0 +1 @@
1
+ tinyMCE.addI18n('es.xhtmlxtras_dlg',{"attribs_title":"Insertar/Editar atributos","option_rtl":"Derecha a izquierda","option_ltr":"Izquierda a derecha","insert_date":"Insertar fecha/hora actuales",remove:"Suprimir","title_cite_element":"Cita","title_abbr_element":"Abreviatura","title_acronym_element":"Acr\u00f3nimo","title_del_element":"Borrar","title_ins_element":"Insertar","fieldset_events_tab":"Evento","fieldset_attrib_tab":"Atributos","fieldset_general_tab":"Configuraci\u00f3n general","events_tab":"Eventos","attrib_tab":"Atributos","general_tab":"General","attribute_attrib_tab":"Atributos","attribute_events_tab":"Eventos","attribute_label_accesskey":"Tecla de acceso","attribute_label_tabindex":"Orden de tabulaci\u00f3n","attribute_label_langcode":"Lenguaje","attribute_option_rtl":"Derecha a izquierda","attribute_option_ltr":"Izquierda a derecha","attribute_label_langdir":"Direcci\u00f3n de texto","attribute_label_datetime":"Fecha/Hora","attribute_label_cite":"Cita","attribute_label_style":"Estilo","attribute_label_class":"Clase","attribute_label_id":"ID","attribute_label_title":"T\u00edtulo"});
@@ -0,0 +1 @@
1
+ tinyMCE.addI18n('et.xhtmlxtras_dlg',{"attribs_title":"Sisesta/muuda atribuute","option_rtl":"Paremalt vasakule","option_ltr":"Vasakult paremale","insert_date":"Sisesta hetke kuup\u00e4ev/aeg",remove:"Eemalda","title_cite_element":"Elemendi tsitaat","title_abbr_element":"Elemendi l\u00fchend","title_acronym_element":"Elemendi akron\u00fc\u00fcm","title_del_element":"Elemendi kustutus","title_ins_element":"Elemendi sisestus","fieldset_events_tab":"Elementide s\u00fcndmused","fieldset_attrib_tab":"Elementide atribuudid","fieldset_general_tab":"\u00dcldised seaded","events_tab":"S\u00fcndmused","attrib_tab":"Atribuudid","general_tab":"\u00dcldine","attribute_attrib_tab":"Atribuudid","attribute_events_tab":"S\u00fcndmused","attribute_label_accesskey":"Ligip\u00e4\u00e4suklahv","attribute_label_tabindex":"Sisujuht","attribute_label_langcode":"Keel","attribute_option_rtl":"Paremalt vasakule","attribute_option_ltr":"Vasakult paremale","attribute_label_langdir":"Teksti suund","attribute_label_datetime":"Kuup\u00e4ev/aeg","attribute_label_cite":"Tsitaat","attribute_label_style":"Stiil","attribute_label_class":"Klass","attribute_label_id":"ID","attribute_label_title":"Pealkiri"});
@@ -0,0 +1 @@
1
+ tinyMCE.addI18n('fr.xhtmlxtras_dlg',{"attribs_title":"Ins\u00e9rer / \u00e9diter les attributs","option_rtl":"De droite \u00e0 gauche","option_ltr":"De gauche \u00e0 droite","insert_date":"Ins\u00e9rer la date et l\'heure actuelles",remove:"Enlever","title_cite_element":"Citation","title_abbr_element":"Abr\u00e9viation","title_acronym_element":"Acronyme","title_del_element":"Suppression","title_ins_element":"Insertion","fieldset_events_tab":"\u00c9v\u00e9nements","fieldset_attrib_tab":"Attributs","fieldset_general_tab":"Param\u00e8tres g\u00e9n\u00e9raux","events_tab":"\u00c9v\u00e9nements","attrib_tab":"Attributs","general_tab":"G\u00e9n\u00e9ral","attribute_attrib_tab":"Attributs","attribute_events_tab":"\u00c9v\u00e8nements","attribute_label_accesskey":"Accesskey","attribute_label_tabindex":"TabIndex","attribute_label_langcode":"Langue","attribute_option_rtl":"De droite \u00e0 gauche","attribute_option_ltr":"De gauche \u00e0 droite","attribute_label_langdir":"Sens de lecture","attribute_label_datetime":"Date / heure","attribute_label_cite":"Citation","attribute_label_style":"Style","attribute_label_class":"Classe","attribute_label_id":"ID","attribute_label_title":"Titre"});
@@ -0,0 +1 @@
1
+ tinyMCE.addI18n('it.xhtmlxtras_dlg',{"attribs_title":"Inserisci/modifica attributi","option_rtl":"Destra verso sinistra","option_ltr":"Sinistra verso destra","insert_date":"Inserisci data/ora corrente",remove:"Rimuovi","title_cite_element":"Citazione elemento","title_abbr_element":"Abbreviazione elemento","title_acronym_element":"Acronimo elemento","title_del_element":"Cancellazione elemento","title_ins_element":"Inserimento elemento","fieldset_events_tab":"Eventi elemento","fieldset_attrib_tab":"Attributi elemento","fieldset_general_tab":"Impostazioni Generali","events_tab":"Eventi","attrib_tab":"Attributi","general_tab":"Generale","attribute_attrib_tab":"Attributi","attribute_events_tab":"Eventi","attribute_label_accesskey":"Tasto di accesso","attribute_label_tabindex":"Indice tabulazione","attribute_label_langcode":"Lingua","attribute_option_rtl":"Destra verso sinistra","attribute_option_ltr":"Sinistra verso destra","attribute_label_langdir":"Direzione del testo","attribute_label_datetime":"Date/Time","attribute_label_cite":"Citazione","attribute_label_style":"Style","attribute_label_class":"Classe","attribute_label_id":"ID","attribute_label_title":"Titolo"});
@@ -0,0 +1 @@
1
+ tinyMCE.addI18n('nl.xhtmlxtras_dlg',{"attribs_title":"Attributen Invoegen/bewerken","option_rtl":"Van rechts naar links","option_ltr":"Van links naar rechts","insert_date":"Huidige datum/tijd invoegen",remove:"Verwijderen","title_cite_element":"Citaat","title_abbr_element":"Afkorting","title_acronym_element":"Synoniem","title_del_element":"Verwijderingselement","title_ins_element":"Invoegingselement","fieldset_events_tab":"Element Gebeurtenissen","fieldset_attrib_tab":"Elementattributen","fieldset_general_tab":"Algemene instellingen","events_tab":"Gebeurtenissen","attrib_tab":"Attributen","general_tab":"Algemeen","attribute_attrib_tab":"Attributen","attribute_events_tab":"Gebeurtenissen","attribute_label_accesskey":"Toegangstoets","attribute_label_tabindex":"Tabvolgorde","attribute_label_langcode":"Taal","attribute_option_rtl":"Van rechts naar links","attribute_option_ltr":"Van links naar rechts","attribute_label_langdir":"Tekstrichting","attribute_label_datetime":"Datum/Tijd","attribute_label_cite":"Citaat","attribute_label_style":"Stijl","attribute_label_class":"Klasse","attribute_label_id":"ID","attribute_label_title":"Titel"});
@@ -0,0 +1 @@
1
+ tinyMCE.addI18n('pl.xhtmlxtras_dlg',{"attribs_title":"Wklej/edytuj atrybuty","option_rtl":"Kierunek z prawej do lewej","option_ltr":"Kierunek z lewej do prawej","insert_date":"Wklej aktualn\u0105 dat\u0119/czas",remove:"Usu\u0144","title_cite_element":"Cytat","title_abbr_element":"Skr\u00f3t","title_acronym_element":"Akronim","title_del_element":"Usuni\u0119cie","title_ins_element":"Wstawienie","fieldset_events_tab":"Zdarzenia","fieldset_attrib_tab":"Atrybuty","fieldset_general_tab":"G\u0142\u00f3wne ustawienia","events_tab":"Zdarzenia","attrib_tab":"Atrybuty","general_tab":"G\u0142\u00f3wny","attribute_attrib_tab":"Atrybuty","attribute_events_tab":"Zdarzenia","attribute_label_accesskey":"Klawisz skr\u00f3tu","attribute_label_tabindex":"Numer tabulacji","attribute_label_langcode":"J\u0119zyk","attribute_option_rtl":"Kierunek z prawej do lewej","attribute_option_ltr":"Kierunek z lewej do prawej","attribute_label_langdir":"Kierunek czytania tekstu","attribute_label_datetime":"Data/Czas","attribute_label_cite":"Cytat","attribute_label_style":"Styl","attribute_label_class":"Klasa","attribute_label_id":"ID","attribute_label_title":"Tytu\u0142"});
@@ -0,0 +1 @@
1
+ tinyMCE.addI18n('pt.xhtmlxtras_dlg',{"attribs_title":"Inserir/editar atributos","option_rtl":"Da direita para a esquerda","option_ltr":"Da esquerda para a direita","insert_date":"Inserir data/hora",remove:"Remover","title_cite_element":"Cita\u00e7\u00e3o","title_abbr_element":"Abrevia\u00e7\u00e3o","title_acronym_element":"Acr\u00f4nimo","title_del_element":"Apagar","title_ins_element":"Inserir","fieldset_events_tab":"Eventos","fieldset_attrib_tab":"Atributos","fieldset_general_tab":"Configura\u00e7\u00f5es gerais","events_tab":"Eventos","attrib_tab":"Atributos","general_tab":"Geral","attribute_attrib_tab":"Atributos","attribute_events_tab":"Eventos","attribute_label_accesskey":"Tecla de Atalho","attribute_label_tabindex":"TabIndex","attribute_label_langcode":"Idioma","attribute_option_rtl":"Da direita para a esquerda","attribute_option_ltr":"Da esquerda para a direita","attribute_label_langdir":"Dire\u00e7\u00e3o do texto","attribute_label_datetime":"Data/Hora","attribute_label_cite":"Citar","attribute_label_style":"Estilo","attribute_label_class":"Classe","attribute_label_id":"ID","attribute_label_title":"T\u00edtulo"});
@@ -0,0 +1 @@
1
+ tinyMCE.addI18n('ru.xhtmlxtras_dlg',{"attribs_title":"\u0421\u0432\u043e\u0439\u0441\u0442\u0432\u0430 \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u0430","option_rtl":"\u0421\u043f\u0440\u0430\u0432\u0430 \u043d\u0430\u043b\u0435\u0432\u043e","option_ltr":"\u0421\u043b\u0435\u0432\u0430 \u043d\u0430\u043f\u0440\u0430\u0432\u043e","insert_date":"\u0412\u0441\u0442\u0430\u0432\u0438\u0442\u044c \u0442\u0435\u043a\u0443\u0449\u0443\u044e \u0434\u0430\u0442\u0443/\u0432\u0440\u0435\u043c\u044f",remove:"\u0423\u0434\u0430\u043b\u0438\u0442\u044c","title_cite_element":"\u0426\u0438\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435","title_abbr_element":"\u0421\u043e\u043a\u0440\u0430\u0449\u0435\u043d\u0438\u0435","title_acronym_element":"\u0410\u0431\u0431\u0440\u0435\u0432\u0438\u0430\u0446\u0438\u044f","title_del_element":"\u0423\u0434\u0430\u043b\u0435\u043d\u0438\u0435","title_ins_element":"\u0417\u0430\u043c\u0435\u043d\u0430","fieldset_events_tab":"\u0421\u043e\u0431\u044b\u0442\u0438\u044f \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u0430","fieldset_attrib_tab":"\u041f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u044b \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u0430","fieldset_general_tab":"\u041e\u0431\u0449\u0438\u0435 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u044b","events_tab":"\u0421\u043e\u0431\u044b\u0442\u0438\u044f","attrib_tab":"\u0410\u0442\u0440\u0438\u0431\u0443\u0442\u044b","general_tab":"\u041e\u0431\u0449\u0435\u0435","attribute_attrib_tab":"\u0410\u0442\u0440\u0438\u0431\u0443\u0442\u044b","attribute_events_tab":"\u0421\u043e\u0431\u044b\u0442\u0438\u044f","attribute_label_accesskey":"\u041a\u043b\u044e\u0447 \u0434\u043e\u0441\u0442\u0443\u043f\u0430","attribute_label_tabindex":"\u0417\u0430\u0433\u043e\u043b\u043e\u0432\u043e\u043a","attribute_label_langcode":"\u042f\u0437\u044b\u043a","attribute_option_rtl":"\u0421\u043f\u0440\u0430\u0432\u0430 \u043d\u0430\u043b\u0435\u0432\u043e","attribute_option_ltr":"\u0421\u043b\u0435\u0432\u0430 \u043d\u0430\u043f\u0440\u0430\u0432\u043e","attribute_label_langdir":"\u041d\u0430\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u0435 \u0442\u0435\u043a\u0441\u0442\u0430","attribute_label_datetime":"\u0414\u0430\u0442\u0430/\u0412\u0440\u0435\u043c\u044f","attribute_label_cite":"\u0426\u0438\u0442\u0430\u0442\u0430","attribute_label_style":"\u0421\u0442\u0438\u043b\u044c","attribute_label_class":"\u041a\u043b\u0430\u0441\u0441","attribute_label_id":"\u0418\u043c\u044f","attribute_label_title":"\u0417\u0430\u0433\u043e\u043b\u043e\u0432\u043e\u043a"});
@@ -0,0 +1,52 @@
1
+ <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
2
+ <html xmlns="http://www.w3.org/1999/xhtml">
3
+ <head>
4
+ <title>{#advanced_dlg.about_title}</title>
5
+ <script type="text/javascript" src="../../tiny_mce_popup.js"></script>
6
+ <script type="text/javascript" src="../../utils/mctabs.js"></script>
7
+ <script type="text/javascript" src="js/about.js"></script>
8
+ </head>
9
+ <body id="about" style="display: none">
10
+ <div class="tabs">
11
+ <ul>
12
+ <li id="general_tab" class="current" aria-controls="general_panel"><span><a href="javascript:mcTabs.displayTab('general_tab','general_panel');" onmousedown="return false;">{#advanced_dlg.about_general}</a></span></li>
13
+ <li id="help_tab" style="display:none" aria-hidden="true" aria-controls="help_panel"><span><a href="javascript:mcTabs.displayTab('help_tab','help_panel');" onmousedown="return false;">{#advanced_dlg.about_help}</a></span></li>
14
+ <li id="plugins_tab" aria-controls="plugins_panel"><span><a href="javascript:mcTabs.displayTab('plugins_tab','plugins_panel');" onmousedown="return false;">{#advanced_dlg.about_plugins}</a></span></li>
15
+ </ul>
16
+ </div>
17
+
18
+ <div class="panel_wrapper">
19
+ <div id="general_panel" class="panel current">
20
+ <h3>{#advanced_dlg.about_title}</h3>
21
+ <p>Version: <span id="version"></span> (<span id="date"></span>)</p>
22
+ <p>TinyMCE is a platform independent web based Javascript HTML WYSIWYG editor control released as Open Source under <a href="../../license.txt" target="_blank">LGPL</a>
23
+ by Moxiecode Systems AB. It has the ability to convert HTML TEXTAREA fields or other HTML elements to editor instances.</p>
24
+ <p>Copyright &copy; 2003-2008, <a href="http://www.moxiecode.com" target="_blank">Moxiecode Systems AB</a>, All rights reserved.</p>
25
+ <p>For more information about this software visit the <a href="http://tinymce.moxiecode.com" target="_blank">TinyMCE website</a>.</p>
26
+
27
+ <div id="buttoncontainer">
28
+ <a href="http://www.moxiecode.com" target="_blank"><img src="http://tinymce.moxiecode.com/images/gotmoxie.png" alt="Got Moxie?" border="0" /></a>
29
+ </div>
30
+ </div>
31
+
32
+ <div id="plugins_panel" class="panel">
33
+ <div id="pluginscontainer">
34
+ <h3>{#advanced_dlg.about_loaded}</h3>
35
+
36
+ <div id="plugintablecontainer">
37
+ </div>
38
+
39
+ <p>&nbsp;</p>
40
+ </div>
41
+ </div>
42
+
43
+ <div id="help_panel" class="panel noscroll" style="overflow: visible;">
44
+ <div id="iframecontainer"></div>
45
+ </div>
46
+ </div>
47
+
48
+ <div class="mceActionPanel">
49
+ <input type="button" id="cancel" name="cancel" value="{#close}" onclick="tinyMCEPopup.close();" />
50
+ </div>
51
+ </body>
52
+ </html>
@@ -0,0 +1,26 @@
1
+ <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
2
+ <html xmlns="http://www.w3.org/1999/xhtml">
3
+ <head>
4
+ <title>{#advanced_dlg.anchor_title}</title>
5
+ <script type="text/javascript" src="../../tiny_mce_popup.js"></script>
6
+ <script type="text/javascript" src="js/anchor.js"></script>
7
+ </head>
8
+ <body style="display: none" role="application" aria-labelledby="app_title">
9
+ <form onsubmit="AnchorDialog.update();return false;" action="#">
10
+ <table border="0" cellpadding="4" cellspacing="0" role="presentation">
11
+ <tr>
12
+ <td colspan="2" class="title" id="app_title">{#advanced_dlg.anchor_title}</td>
13
+ </tr>
14
+ <tr>
15
+ <td class="nowrap"><label for="anchorName">{#advanced_dlg.anchor_name}:</label></td>
16
+ <td><input name="anchorName" type="text" class="mceFocus" id="anchorName" value="" style="width: 200px" aria-required="true" /></td>
17
+ </tr>
18
+ </table>
19
+
20
+ <div class="mceActionPanel">
21
+ <input type="submit" id="insert" name="insert" value="{#update}" />
22
+ <input type="button" id="cancel" name="cancel" value="{#cancel}" onclick="tinyMCEPopup.close();" />
23
+ </div>
24
+ </form>
25
+ </body>
26
+ </html>
@@ -0,0 +1,55 @@
1
+ <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
2
+ <html xmlns="http://www.w3.org/1999/xhtml">
3
+ <head>
4
+ <title>{#advanced_dlg.charmap_title}</title>
5
+ <script type="text/javascript" src="../../tiny_mce_popup.js"></script>
6
+ <script type="text/javascript" src="js/charmap.js"></script>
7
+ </head>
8
+ <body id="charmap" style="display:none" role="application">
9
+ <table align="center" border="0" cellspacing="0" cellpadding="2" role="presentation">
10
+ <tr>
11
+ <td colspan="2" class="title" ><label for="charmapView" id="charmap_label">{#advanced_dlg.charmap_title}</label></td>
12
+ </tr>
13
+ <tr>
14
+ <td id="charmapView" rowspan="2" align="left" valign="top">
15
+ <!-- Chars will be rendered here -->
16
+ </td>
17
+ <td width="100" align="center" valign="top">
18
+ <table border="0" cellpadding="0" cellspacing="0" width="100" style="height:100px" role="presentation">
19
+ <tr>
20
+ <td id="codeV">&nbsp;</td>
21
+ </tr>
22
+ <tr>
23
+ <td id="codeN">&nbsp;</td>
24
+ </tr>
25
+ </table>
26
+ </td>
27
+ </tr>
28
+ <tr>
29
+ <td valign="bottom" style="padding-bottom: 3px;">
30
+ <table width="100" align="center" border="0" cellpadding="2" cellspacing="0" role="presentation">
31
+ <tr>
32
+ <td align="center" style="border-left: 1px solid #666699; border-top: 1px solid #666699; border-right: 1px solid #666699;"><label for="codeA">HTML-Code</label></td>
33
+ </tr>
34
+ <tr>
35
+ <td style="font-size: 16px; font-weight: bold; border-left: 1px solid #666699; border-bottom: 1px solid #666699; border-right: 1px solid #666699;" id="codeA" align="center">&nbsp;</td>
36
+ </tr>
37
+ <tr>
38
+ <td style="font-size: 1px;">&nbsp;</td>
39
+ </tr>
40
+ <tr>
41
+ <td align="center" style="border-left: 1px solid #666699; border-top: 1px solid #666699; border-right: 1px solid #666699;"><label for="codeB">NUM-Code</label></td>
42
+ </tr>
43
+ <tr>
44
+ <td style="font-size: 16px; font-weight: bold; border-left: 1px solid #666699; border-bottom: 1px solid #666699; border-right: 1px solid #666699;" id="codeB" align="center">&nbsp;</td>
45
+ </tr>
46
+ </table>
47
+ </td>
48
+ </tr>
49
+ <tr>
50
+ <td colspan="2" id="charmap_usage">{#advanced_dlg.charmap_usage}</td>
51
+ </tr>
52
+
53
+ </table>
54
+ </body>
55
+ </html>
@@ -0,0 +1,74 @@
1
+ <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
2
+ <html xmlns="http://www.w3.org/1999/xhtml">
3
+ <head>
4
+ <title>{#advanced_dlg.colorpicker_title}</title>
5
+ <script type="text/javascript" src="../../tiny_mce_popup.js"></script>
6
+ <script type="text/javascript" src="../../utils/mctabs.js"></script>
7
+ <script type="text/javascript" src="js/color_picker.js"></script>
8
+ </head>
9
+ <body id="colorpicker" style="display: none" role="application" aria-labelledby="app_label">
10
+ <span class="mceVoiceLabel" id="app_label" style="display:none;">{#advanced_dlg.colorpicker_title}</span>
11
+ <form onsubmit="insertAction();return false" action="#">
12
+ <div class="tabs">
13
+ <ul>
14
+ <li id="picker_tab" aria-controls="picker_panel" class="current"><span><a href="javascript:mcTabs.displayTab('picker_tab','picker_panel');" onmousedown="return false;">{#advanced_dlg.colorpicker_picker_tab}</a></span></li>
15
+ <li id="rgb_tab" aria-controls="rgb_panel"><span><a href="javascript:;" onclick="mcTabs.displayTab('rgb_tab','rgb_panel');" onmousedown="return false;">{#advanced_dlg.colorpicker_palette_tab}</a></span></li>
16
+ <li id="named_tab" aria-controls="named_panel"><span><a href="javascript:;" onclick="javascript:mcTabs.displayTab('named_tab','named_panel');" onmousedown="return false;">{#advanced_dlg.colorpicker_named_tab}</a></span></li>
17
+ </ul>
18
+ </div>
19
+
20
+ <div class="panel_wrapper">
21
+ <div id="picker_panel" class="panel current">
22
+ <fieldset>
23
+ <legend>{#advanced_dlg.colorpicker_picker_title}</legend>
24
+ <div id="picker">
25
+ <img id="colors" src="img/colorpicker.jpg" onclick="computeColor(event)" onmousedown="isMouseDown = true;return false;" onmouseup="isMouseDown = false;" onmousemove="if (isMouseDown && isMouseOver) computeColor(event); return false;" onmouseover="isMouseOver=true;" onmouseout="isMouseOver=false;" alt="" />
26
+
27
+ <div id="light">
28
+ <!-- Will be filled with divs -->
29
+ </div>
30
+
31
+ <br style="clear: both" />
32
+ </div>
33
+ </fieldset>
34
+ </div>
35
+
36
+ <div id="rgb_panel" class="panel">
37
+ <fieldset>
38
+ <legend id="webcolors_title">{#advanced_dlg.colorpicker_palette_title}</legend>
39
+ <div id="webcolors">
40
+ <!-- Gets filled with web safe colors-->
41
+ </div>
42
+
43
+ <br style="clear: both" />
44
+ </fieldset>
45
+ </div>
46
+
47
+ <div id="named_panel" class="panel">
48
+ <fieldset id="named_picker_label">
49
+ <legend id="named_title">{#advanced_dlg.colorpicker_named_title}</legend>
50
+ <div id="namedcolors" role="listbox" tabindex="0" aria-labelledby="named_picker_label">
51
+ <!-- Gets filled with named colors-->
52
+ </div>
53
+
54
+ <br style="clear: both" />
55
+
56
+ <div id="colornamecontainer">
57
+ {#advanced_dlg.colorpicker_name} <span id="colorname"></span>
58
+ </div>
59
+ </fieldset>
60
+ </div>
61
+ </div>
62
+
63
+ <div class="mceActionPanel">
64
+ <input type="submit" id="insert" name="insert" value="{#apply}" />
65
+
66
+ <div id="preview"></div>
67
+
68
+ <div id="previewblock">
69
+ <label for="color">{#advanced_dlg.colorpicker_color}</label> <input id="color" type="text" size="8" class="text mceFocus" aria-required="true" />
70
+ </div>
71
+ </div>
72
+ </form>
73
+ </body>
74
+ </html>
@@ -0,0 +1 @@
1
+ (function(e){var d=e.DOM,b=e.dom.Event,h=e.extend,f=e.each,a=e.util.Cookie,g,c=e.explode;e.ThemeManager.requireLangPack("advanced");e.create("tinymce.themes.AdvancedTheme",{sizes:[8,10,12,14,18,24,36],controls:{bold:["bold_desc","Bold"],italic:["italic_desc","Italic"],underline:["underline_desc","Underline"],strikethrough:["striketrough_desc","Strikethrough"],justifyleft:["justifyleft_desc","JustifyLeft"],justifycenter:["justifycenter_desc","JustifyCenter"],justifyright:["justifyright_desc","JustifyRight"],justifyfull:["justifyfull_desc","JustifyFull"],bullist:["bullist_desc","InsertUnorderedList"],numlist:["numlist_desc","InsertOrderedList"],outdent:["outdent_desc","Outdent"],indent:["indent_desc","Indent"],cut:["cut_desc","Cut"],copy:["copy_desc","Copy"],paste:["paste_desc","Paste"],undo:["undo_desc","Undo"],redo:["redo_desc","Redo"],link:["link_desc","mceLink"],unlink:["unlink_desc","unlink"],image:["image_desc","mceImage"],cleanup:["cleanup_desc","mceCleanup"],help:["help_desc","mceHelp"],code:["code_desc","mceCodeEditor"],hr:["hr_desc","InsertHorizontalRule"],removeformat:["removeformat_desc","RemoveFormat"],sub:["sub_desc","subscript"],sup:["sup_desc","superscript"],forecolor:["forecolor_desc","ForeColor"],forecolorpicker:["forecolor_desc","mceForeColor"],backcolor:["backcolor_desc","HiliteColor"],backcolorpicker:["backcolor_desc","mceBackColor"],charmap:["charmap_desc","mceCharMap"],visualaid:["visualaid_desc","mceToggleVisualAid"],anchor:["anchor_desc","mceInsertAnchor"],newdocument:["newdocument_desc","mceNewDocument"],blockquote:["blockquote_desc","mceBlockQuote"]},stateControls:["bold","italic","underline","strikethrough","bullist","numlist","justifyleft","justifycenter","justifyright","justifyfull","sub","sup","blockquote"],init:function(j,k){var l=this,m,i,n;l.editor=j;l.url=k;l.onResolveName=new e.util.Dispatcher(this);j.forcedHighContrastMode=j.settings.detect_highcontrast&&l._isHighContrast();j.settings.skin=j.forcedHighContrastMode?"highcontrast":j.settings.skin;l.settings=m=h({theme_advanced_path:true,theme_advanced_toolbar_location:"bottom",theme_advanced_buttons1:"bold,italic,underline,strikethrough,|,justifyleft,justifycenter,justifyright,justifyfull,|,styleselect,formatselect",theme_advanced_buttons2:"bullist,numlist,|,outdent,indent,|,undo,redo,|,link,unlink,anchor,image,cleanup,help,code",theme_advanced_buttons3:"hr,removeformat,visualaid,|,sub,sup,|,charmap",theme_advanced_blockformats:"p,address,pre,h1,h2,h3,h4,h5,h6",theme_advanced_toolbar_align:"center",theme_advanced_fonts:"Andale Mono=andale mono,times;Arial=arial,helvetica,sans-serif;Arial Black=arial black,avant garde;Book Antiqua=book antiqua,palatino;Comic Sans MS=comic sans ms,sans-serif;Courier New=courier new,courier;Georgia=georgia,palatino;Helvetica=helvetica;Impact=impact,chicago;Symbol=symbol;Tahoma=tahoma,arial,helvetica,sans-serif;Terminal=terminal,monaco;Times New Roman=times new roman,times;Trebuchet MS=trebuchet ms,geneva;Verdana=verdana,geneva;Webdings=webdings;Wingdings=wingdings,zapf dingbats",theme_advanced_more_colors:1,theme_advanced_row_height:23,theme_advanced_resize_horizontal:1,theme_advanced_resizing_use_cookie:1,theme_advanced_font_sizes:"1,2,3,4,5,6,7",theme_advanced_font_selector:"span",theme_advanced_show_current_color:0,readonly:j.settings.readonly},j.settings);if(!m.font_size_style_values){m.font_size_style_values="8pt,10pt,12pt,14pt,18pt,24pt,36pt"}if(e.is(m.theme_advanced_font_sizes,"string")){m.font_size_style_values=e.explode(m.font_size_style_values);m.font_size_classes=e.explode(m.font_size_classes||"");n={};j.settings.theme_advanced_font_sizes=m.theme_advanced_font_sizes;f(j.getParam("theme_advanced_font_sizes","","hash"),function(q,p){var o;if(p==q&&q>=1&&q<=7){p=q+" ("+l.sizes[q-1]+"pt)";o=m.font_size_classes[q-1];q=m.font_size_style_values[q-1]||(l.sizes[q-1]+"pt")}if(/^\s*\./.test(q)){o=q.replace(/\./g,"")}n[p]=o?{"class":o}:{fontSize:q}});m.theme_advanced_font_sizes=n}if((i=m.theme_advanced_path_location)&&i!="none"){m.theme_advanced_statusbar_location=m.theme_advanced_path_location}if(m.theme_advanced_statusbar_location=="none"){m.theme_advanced_statusbar_location=0}if(j.settings.content_css!==false){j.contentCSS.push(j.baseURI.toAbsolute(k+"/skins/"+j.settings.skin+"/content.css"))}j.onInit.add(function(){if(!j.settings.readonly){j.onNodeChange.add(l._nodeChanged,l);j.onKeyUp.add(l._updateUndoStatus,l);j.onMouseUp.add(l._updateUndoStatus,l);j.dom.bind(j.dom.getRoot(),"dragend",function(){l._updateUndoStatus(j)})}});j.onSetProgressState.add(function(q,o,r){var s,t=q.id,p;if(o){l.progressTimer=setTimeout(function(){s=q.getContainer();s=s.insertBefore(d.create("DIV",{style:"position:relative"}),s.firstChild);p=d.get(q.id+"_tbl");d.add(s,"div",{id:t+"_blocker","class":"mceBlocker",style:{width:p.clientWidth+2,height:p.clientHeight+2}});d.add(s,"div",{id:t+"_progress","class":"mceProgress",style:{left:p.clientWidth/2,top:p.clientHeight/2}})},r||0)}else{d.remove(t+"_blocker");d.remove(t+"_progress");clearTimeout(l.progressTimer)}});d.loadCSS(m.editor_css?j.documentBaseURI.toAbsolute(m.editor_css):k+"/skins/"+j.settings.skin+"/ui.css");if(m.skin_variant){d.loadCSS(k+"/skins/"+j.settings.skin+"/ui_"+m.skin_variant+".css")}},_isHighContrast:function(){var i,j=d.add(d.getRoot(),"div",{style:"background-color: rgb(171,239,86);"});i=(d.getStyle(j,"background-color",true)+"").toLowerCase().replace(/ /g,"");d.remove(j);return i!="rgb(171,239,86)"&&i!="#abef56"},createControl:function(l,i){var j,k;if(k=i.createControl(l)){return k}switch(l){case"styleselect":return this._createStyleSelect();case"formatselect":return this._createBlockFormats();case"fontselect":return this._createFontSelect();case"fontsizeselect":return this._createFontSizeSelect();case"forecolor":return this._createForeColorMenu();case"backcolor":return this._createBackColorMenu()}if((j=this.controls[l])){return i.createButton(l,{title:"advanced."+j[0],cmd:j[1],ui:j[2],value:j[3]})}},execCommand:function(k,j,l){var i=this["_"+k];if(i){i.call(this,j,l);return true}return false},_importClasses:function(k){var i=this.editor,j=i.controlManager.get("styleselect");if(j.getLength()==0){f(i.dom.getClasses(),function(n,l){var m="style_"+l;i.formatter.register(m,{inline:"span",attributes:{"class":n["class"]},selector:"*"});j.add(n["class"],m)})}},_createStyleSelect:function(m){var k=this,i=k.editor,j=i.controlManager,l;l=j.createListBox("styleselect",{title:"advanced.style_select",onselect:function(o){var p,n=[];f(l.items,function(q){n.push(q.value)});i.focus();i.undoManager.add();p=i.formatter.matchAll(n);if(!o||p[0]==o){if(p[0]){i.formatter.remove(p[0])}}else{i.formatter.apply(o)}i.undoManager.add();i.nodeChanged();return false}});i.onInit.add(function(){var o=0,n=i.getParam("style_formats");if(n){f(n,function(p){var q,r=0;f(p,function(){r++});if(r>1){q=p.name=p.name||"style_"+(o++);i.formatter.register(q,p);l.add(p.title,q)}else{l.add(p.title)}})}else{f(i.getParam("theme_advanced_styles","","hash"),function(r,q){var p;if(r){p="style_"+(o++);i.formatter.register(p,{inline:"span",classes:r,selector:"*"});l.add(k.editor.translate(q),p)}})}});if(l.getLength()==0){l.onPostRender.add(function(o,p){if(!l.NativeListBox){b.add(p.id+"_text","focus",k._importClasses,k);b.add(p.id+"_text","mousedown",k._importClasses,k);b.add(p.id+"_open","focus",k._importClasses,k);b.add(p.id+"_open","mousedown",k._importClasses,k)}else{b.add(p.id,"focus",k._importClasses,k)}})}return l},_createFontSelect:function(){var k,j=this,i=j.editor;k=i.controlManager.createListBox("fontselect",{title:"advanced.fontdefault",onselect:function(l){var m=k.items[k.selectedIndex];if(!l&&m){i.execCommand("FontName",false,m.value);return}i.execCommand("FontName",false,l);k.select(function(n){return l==n});if(m&&m.value==l){k.select(null)}return false}});if(k){f(i.getParam("theme_advanced_fonts",j.settings.theme_advanced_fonts,"hash"),function(m,l){k.add(i.translate(l),m,{style:m.indexOf("dings")==-1?"font-family:"+m:""})})}return k},_createFontSizeSelect:function(){var m=this,k=m.editor,n,l=0,j=[];n=k.controlManager.createListBox("fontsizeselect",{title:"advanced.font_size",onselect:function(i){var o=n.items[n.selectedIndex];if(!i&&o){o=o.value;if(o["class"]){k.formatter.toggle("fontsize_class",{value:o["class"]});k.undoManager.add();k.nodeChanged()}else{k.execCommand("FontSize",false,o.fontSize)}return}if(i["class"]){k.focus();k.undoManager.add();k.formatter.toggle("fontsize_class",{value:i["class"]});k.undoManager.add();k.nodeChanged()}else{k.execCommand("FontSize",false,i.fontSize)}n.select(function(p){return i==p});if(o&&(o.value.fontSize==i.fontSize||o.value["class"]==i["class"])){n.select(null)}return false}});if(n){f(m.settings.theme_advanced_font_sizes,function(o,i){var p=o.fontSize;if(p>=1&&p<=7){p=m.sizes[parseInt(p)-1]+"pt"}n.add(i,o,{style:"font-size:"+p,"class":"mceFontSize"+(l++)+(" "+(o["class"]||""))})})}return n},_createBlockFormats:function(){var k,i={p:"advanced.paragraph",address:"advanced.address",pre:"advanced.pre",h1:"advanced.h1",h2:"advanced.h2",h3:"advanced.h3",h4:"advanced.h4",h5:"advanced.h5",h6:"advanced.h6",div:"advanced.div",blockquote:"advanced.blockquote",code:"advanced.code",dt:"advanced.dt",dd:"advanced.dd",samp:"advanced.samp"},j=this;k=j.editor.controlManager.createListBox("formatselect",{title:"advanced.block",onselect:function(l){j.editor.execCommand("FormatBlock",false,l);return false}});if(k){f(j.editor.getParam("theme_advanced_blockformats",j.settings.theme_advanced_blockformats,"hash"),function(m,l){k.add(j.editor.translate(l!=m?l:i[m]),m,{"class":"mce_formatPreview mce_"+m})})}return k},_createForeColorMenu:function(){var m,j=this,k=j.settings,l={},i;if(k.theme_advanced_more_colors){l.more_colors_func=function(){j._mceColorPicker(0,{color:m.value,func:function(n){m.setColor(n)}})}}if(i=k.theme_advanced_text_colors){l.colors=i}if(k.theme_advanced_default_foreground_color){l.default_color=k.theme_advanced_default_foreground_color}l.title="advanced.forecolor_desc";l.cmd="ForeColor";l.scope=this;m=j.editor.controlManager.createColorSplitButton("forecolor",l);return m},_createBackColorMenu:function(){var m,j=this,k=j.settings,l={},i;if(k.theme_advanced_more_colors){l.more_colors_func=function(){j._mceColorPicker(0,{color:m.value,func:function(n){m.setColor(n)}})}}if(i=k.theme_advanced_background_colors){l.colors=i}if(k.theme_advanced_default_background_color){l.default_color=k.theme_advanced_default_background_color}l.title="advanced.backcolor_desc";l.cmd="HiliteColor";l.scope=this;m=j.editor.controlManager.createColorSplitButton("backcolor",l);return m},renderUI:function(k){var m,l,q,v=this,r=v.editor,w=v.settings,u,j,i;if(r.settings){r.settings.aria_label=w.aria_label+r.getLang("advanced.help_shortcut")}m=j=d.create("span",{role:"application","aria-labelledby":r.id+"_voice",id:r.id+"_parent","class":"mceEditor "+r.settings.skin+"Skin"+(w.skin_variant?" "+r.settings.skin+"Skin"+v._ufirst(w.skin_variant):"")});d.add(m,"span",{"class":"mceVoiceLabel",style:"display:none;",id:r.id+"_voice"},w.aria_label);if(!d.boxModel){m=d.add(m,"div",{"class":"mceOldBoxModel"})}m=u=d.add(m,"table",{role:"presentation",id:r.id+"_tbl","class":"mceLayout",cellSpacing:0,cellPadding:0});m=q=d.add(m,"tbody");switch((w.theme_advanced_layout_manager||"").toLowerCase()){case"rowlayout":l=v._rowLayout(w,q,k);break;case"customlayout":l=r.execCallback("theme_advanced_custom_layout",w,q,k,j);break;default:l=v._simpleLayout(w,q,k,j)}m=k.targetNode;i=u.rows;d.addClass(i[0],"mceFirst");d.addClass(i[i.length-1],"mceLast");f(d.select("tr",q),function(o){d.addClass(o.firstChild,"mceFirst");d.addClass(o.childNodes[o.childNodes.length-1],"mceLast")});if(d.get(w.theme_advanced_toolbar_container)){d.get(w.theme_advanced_toolbar_container).appendChild(j)}else{d.insertAfter(j,m)}b.add(r.id+"_path_row","click",function(n){n=n.target;if(n.nodeName=="A"){v._sel(n.className.replace(/^.*mcePath_([0-9]+).*$/,"$1"));return b.cancel(n)}});if(!r.getParam("accessibility_focus")){b.add(d.add(j,"a",{href:"#"},"<!-- IE -->"),"focus",function(){tinyMCE.get(r.id).focus()})}if(w.theme_advanced_toolbar_location=="external"){k.deltaHeight=0}v.deltaHeight=k.deltaHeight;k.targetNode=null;r.onKeyDown.add(function(p,n){var s=121,o=122;if(n.altKey){if(n.keyCode===s){if(e.isWebKit){window.focus()}v.toolbarGroup.focus();return b.cancel(n)}else{if(n.keyCode===o){d.get(p.id+"_path_row").focus();return b.cancel(n)}}}});r.addShortcut("alt+0","","mceShortcuts",v);return{iframeContainer:l,editorContainer:r.id+"_parent",sizeContainer:u,deltaHeight:k.deltaHeight}},getInfo:function(){return{longname:"Advanced theme",author:"Moxiecode Systems AB",authorurl:"http://tinymce.moxiecode.com",version:e.majorVersion+"."+e.minorVersion}},resizeBy:function(i,j){var k=d.get(this.editor.id+"_ifr");this.resizeTo(k.clientWidth+i,k.clientHeight+j)},resizeTo:function(i,m,k){var j=this.editor,l=this.settings,n=d.get(j.id+"_tbl"),o=d.get(j.id+"_ifr");i=Math.max(l.theme_advanced_resizing_min_width||100,i);m=Math.max(l.theme_advanced_resizing_min_height||100,m);i=Math.min(l.theme_advanced_resizing_max_width||65535,i);m=Math.min(l.theme_advanced_resizing_max_height||65535,m);d.setStyle(n,"height","");d.setStyle(o,"height",m);if(l.theme_advanced_resize_horizontal){d.setStyle(n,"width","");d.setStyle(o,"width",i);if(i<n.clientWidth){i=n.clientWidth;d.setStyle(o,"width",n.clientWidth)}}if(k&&l.theme_advanced_resizing_use_cookie){a.setHash("TinyMCE_"+j.id+"_size",{cw:i,ch:m})}},destroy:function(){var i=this.editor.id;b.clear(i+"_resize");b.clear(i+"_path_row");b.clear(i+"_external_close")},_simpleLayout:function(y,r,k,i){var x=this,u=x.editor,v=y.theme_advanced_toolbar_location,m=y.theme_advanced_statusbar_location,l,j,q,w;if(y.readonly){l=d.add(r,"tr");l=j=d.add(l,"td",{"class":"mceIframeContainer"});return j}if(v=="top"){x._addToolbars(r,k)}if(v=="external"){l=w=d.create("div",{style:"position:relative"});l=d.add(l,"div",{id:u.id+"_external","class":"mceExternalToolbar"});d.add(l,"a",{id:u.id+"_external_close",href:"javascript:;","class":"mceExternalClose"});l=d.add(l,"table",{id:u.id+"_tblext",cellSpacing:0,cellPadding:0});q=d.add(l,"tbody");if(i.firstChild.className=="mceOldBoxModel"){i.firstChild.appendChild(w)}else{i.insertBefore(w,i.firstChild)}x._addToolbars(q,k);u.onMouseUp.add(function(){var o=d.get(u.id+"_external");d.show(o);d.hide(g);var n=b.add(u.id+"_external_close","click",function(){d.hide(u.id+"_external");b.remove(u.id+"_external_close","click",n)});d.show(o);d.setStyle(o,"top",0-d.getRect(u.id+"_tblext").h-1);d.hide(o);d.show(o);o.style.filter="";g=u.id+"_external";o=null})}if(m=="top"){x._addStatusBar(r,k)}if(!y.theme_advanced_toolbar_container){l=d.add(r,"tr");l=j=d.add(l,"td",{"class":"mceIframeContainer"})}if(v=="bottom"){x._addToolbars(r,k)}if(m=="bottom"){x._addStatusBar(r,k)}return j},_rowLayout:function(w,m,k){var v=this,p=v.editor,u,x,i=p.controlManager,l,j,r,q;u=w.theme_advanced_containers_default_class||"";x=w.theme_advanced_containers_default_align||"center";f(c(w.theme_advanced_containers||""),function(s,o){var n=w["theme_advanced_container_"+s]||"";switch(s.toLowerCase()){case"mceeditor":l=d.add(m,"tr");l=j=d.add(l,"td",{"class":"mceIframeContainer"});break;case"mceelementpath":v._addStatusBar(m,k);break;default:q=(w["theme_advanced_container_"+s+"_align"]||x).toLowerCase();q="mce"+v._ufirst(q);l=d.add(d.add(m,"tr"),"td",{"class":"mceToolbar "+(w["theme_advanced_container_"+s+"_class"]||u)+" "+q||x});r=i.createToolbar("toolbar"+o);v._addControls(n,r);d.setHTML(l,r.renderHTML());k.deltaHeight-=w.theme_advanced_row_height}});return j},_addControls:function(j,i){var k=this,l=k.settings,m,n=k.editor.controlManager;if(l.theme_advanced_disable&&!k._disabled){m={};f(c(l.theme_advanced_disable),function(o){m[o]=1});k._disabled=m}else{m=k._disabled}f(c(j),function(p){var o;if(m&&m[p]){return}if(p=="tablecontrols"){f(["table","|","row_props","cell_props","|","row_before","row_after","delete_row","|","col_before","col_after","delete_col","|","split_cells","merge_cells"],function(q){q=k.createControl(q,n);if(q){i.add(q)}});return}o=k.createControl(p,n);if(o){i.add(o)}})},_addToolbars:function(x,k){var A=this,p,m,r=A.editor,B=A.settings,z,j=r.controlManager,u,l,q=[],y,w;w=j.createToolbarGroup("toolbargroup",{name:r.getLang("advanced.toolbar"),tab_focus_toolbar:r.getParam("theme_advanced_tab_focus_toolbar")});A.toolbarGroup=w;y=B.theme_advanced_toolbar_align.toLowerCase();y="mce"+A._ufirst(y);l=d.add(d.add(x,"tr",{role:"presentation"}),"td",{"class":"mceToolbar "+y,role:"presentation"});for(p=1;(z=B["theme_advanced_buttons"+p]);p++){m=j.createToolbar("toolbar"+p,{"class":"mceToolbarRow"+p});if(B["theme_advanced_buttons"+p+"_add"]){z+=","+B["theme_advanced_buttons"+p+"_add"]}if(B["theme_advanced_buttons"+p+"_add_before"]){z=B["theme_advanced_buttons"+p+"_add_before"]+","+z}A._addControls(z,m);w.add(m);k.deltaHeight-=B.theme_advanced_row_height}q.push(w.renderHTML());q.push(d.createHTML("a",{href:"#",accesskey:"z",title:r.getLang("advanced.toolbar_focus"),onfocus:"tinyMCE.getInstanceById('"+r.id+"').focus();"},"<!-- IE -->"));d.setHTML(l,q.join(""))},_addStatusBar:function(m,j){var k,v=this,p=v.editor,w=v.settings,i,q,u,l;k=d.add(m,"tr");k=l=d.add(k,"td",{"class":"mceStatusbar"});k=d.add(k,"div",{id:p.id+"_path_row",role:"group","aria-labelledby":p.id+"_path_voice"});if(w.theme_advanced_path){d.add(k,"span",{id:p.id+"_path_voice"},p.translate("advanced.path"));d.add(k,"span",{},": ")}else{d.add(k,"span",{},"&#160;")}if(w.theme_advanced_resizing){d.add(l,"a",{id:p.id+"_resize",href:"javascript:;",onclick:"return false;","class":"mceResize",tabIndex:"-1"});if(w.theme_advanced_resizing_use_cookie){p.onPostRender.add(function(){var n=a.getHash("TinyMCE_"+p.id+"_size"),r=d.get(p.id+"_tbl");if(!n){return}v.resizeTo(n.cw,n.ch)})}p.onPostRender.add(function(){b.add(p.id+"_resize","click",function(n){n.preventDefault()});b.add(p.id+"_resize","mousedown",function(D){var t,r,s,o,C,z,A,F,n,E,x;function y(G){G.preventDefault();n=A+(G.screenX-C);E=F+(G.screenY-z);v.resizeTo(n,E)}function B(G){b.remove(d.doc,"mousemove",t);b.remove(p.getDoc(),"mousemove",r);b.remove(d.doc,"mouseup",s);b.remove(p.getDoc(),"mouseup",o);n=A+(G.screenX-C);E=F+(G.screenY-z);v.resizeTo(n,E,true)}D.preventDefault();C=D.screenX;z=D.screenY;x=d.get(v.editor.id+"_ifr");A=n=x.clientWidth;F=E=x.clientHeight;t=b.add(d.doc,"mousemove",y);r=b.add(p.getDoc(),"mousemove",y);s=b.add(d.doc,"mouseup",B);o=b.add(p.getDoc(),"mouseup",B)})})}j.deltaHeight-=21;k=m=null},_updateUndoStatus:function(j){var i=j.controlManager,k=j.undoManager;i.setDisabled("undo",!k.hasUndo()&&!k.typing);i.setDisabled("redo",!k.hasRedo())},_nodeChanged:function(m,r,D,q,E){var y=this,C,F=0,x,G,z=y.settings,w,k,u,B,l,j,i;e.each(y.stateControls,function(n){r.setActive(n,m.queryCommandState(y.controls[n][1]))});function o(p){var s,n=E.parents,t=p;if(typeof(p)=="string"){t=function(v){return v.nodeName==p}}for(s=0;s<n.length;s++){if(t(n[s])){return n[s]}}}r.setActive("visualaid",m.hasVisual);y._updateUndoStatus(m);r.setDisabled("outdent",!m.queryCommandState("Outdent"));C=o("A");if(G=r.get("link")){if(!C||!C.name){G.setDisabled(!C&&q);G.setActive(!!C)}}if(G=r.get("unlink")){G.setDisabled(!C&&q);G.setActive(!!C&&!C.name)}if(G=r.get("anchor")){G.setActive(!q&&!!C&&C.name)}C=o("IMG");if(G=r.get("image")){G.setActive(!q&&!!C&&D.className.indexOf("mceItem")==-1)}if(G=r.get("styleselect")){y._importClasses();j=[];f(G.items,function(n){j.push(n.value)});i=m.formatter.matchAll(j);G.select(i[0])}if(G=r.get("formatselect")){C=o(d.isBlock);if(C){G.select(C.nodeName.toLowerCase())}}o(function(p){if(p.nodeName==="SPAN"){if(!w&&p.className){w=p.className}}if(m.dom.is(p,z.theme_advanced_font_selector)){if(!k&&p.style.fontSize){k=p.style.fontSize}if(!u&&p.style.fontFamily){u=p.style.fontFamily.replace(/[\"\']+/g,"").replace(/^([^,]+).*/,"$1").toLowerCase()}if(!B&&p.style.color){B=p.style.color}if(!l&&p.style.backgroundColor){l=p.style.backgroundColor}}return false});if(G=r.get("fontselect")){G.select(function(n){return n.replace(/^([^,]+).*/,"$1").toLowerCase()==u})}if(G=r.get("fontsizeselect")){if(z.theme_advanced_runtime_fontsize&&!k&&!w){k=m.dom.getStyle(D,"fontSize",true)}G.select(function(n){if(n.fontSize&&n.fontSize===k){return true}if(n["class"]&&n["class"]===w){return true}})}if(z.theme_advanced_show_current_color){function A(p,n){if(G=r.get(p)){if(!n){n=G.settings.default_color}if(n!==G.value){G.displayColor(n)}}}A("forecolor",B);A("backcolor",l)}if(z.theme_advanced_show_current_color){function A(p,n){if(G=r.get(p)){if(!n){n=G.settings.default_color}if(n!==G.value){G.displayColor(n)}}}A("forecolor",B);A("backcolor",l)}if(z.theme_advanced_path&&z.theme_advanced_statusbar_location){C=d.get(m.id+"_path")||d.add(m.id+"_path_row","span",{id:m.id+"_path"});if(y.statusKeyboardNavigation){y.statusKeyboardNavigation.destroy();y.statusKeyboardNavigation=null}d.setHTML(C,"");o(function(H){var p=H.nodeName.toLowerCase(),s,v,t="";if(H.nodeType!=1||p==="br"||H.getAttribute("data-mce-bogus")||d.hasClass(H,"mceItemHidden")||d.hasClass(H,"mceItemRemoved")){return}if(e.isIE&&H.scopeName!=="HTML"){p=H.scopeName+":"+p}p=p.replace(/mce\:/g,"");switch(p){case"b":p="strong";break;case"i":p="em";break;case"img":if(x=d.getAttrib(H,"src")){t+="src: "+x+" "}break;case"a":if(x=d.getAttrib(H,"name")){t+="name: "+x+" ";p+="#"+x}if(x=d.getAttrib(H,"href")){t+="href: "+x+" "}break;case"font":if(x=d.getAttrib(H,"face")){t+="font: "+x+" "}if(x=d.getAttrib(H,"size")){t+="size: "+x+" "}if(x=d.getAttrib(H,"color")){t+="color: "+x+" "}break;case"span":if(x=d.getAttrib(H,"style")){t+="style: "+x+" "}break}if(x=d.getAttrib(H,"id")){t+="id: "+x+" "}if(x=H.className){x=x.replace(/\b\s*(webkit|mce|Apple-)\w+\s*\b/g,"");if(x){t+="class: "+x+" ";if(d.isBlock(H)||p=="img"||p=="span"){p+="."+x}}}p=p.replace(/(html:)/g,"");p={name:p,node:H,title:t};y.onResolveName.dispatch(y,p);t=p.title;p=p.name;v=d.create("a",{href:"javascript:;",role:"button",onmousedown:"return false;",title:t,"class":"mcePath_"+(F++)},p);if(C.hasChildNodes()){C.insertBefore(d.create("span",{"aria-hidden":"true"},"\u00a0\u00bb "),C.firstChild);C.insertBefore(v,C.firstChild)}else{C.appendChild(v)}},m.getBody());if(d.select("a",C).length>0){y.statusKeyboardNavigation=new e.ui.KeyboardNavigation({root:m.id+"_path_row",items:d.select("a",C),excludeFromTabOrder:true,onCancel:function(){m.focus()}},d)}}},_sel:function(i){this.editor.execCommand("mceSelectNodeDepth",false,i)},_mceInsertAnchor:function(k,j){var i=this.editor;i.windowManager.open({url:this.url+"/anchor.htm",width:320+parseInt(i.getLang("advanced.anchor_delta_width",0)),height:90+parseInt(i.getLang("advanced.anchor_delta_height",0)),inline:true},{theme_url:this.url})},_mceCharMap:function(){var i=this.editor;i.windowManager.open({url:this.url+"/charmap.htm",width:550+parseInt(i.getLang("advanced.charmap_delta_width",0)),height:260+parseInt(i.getLang("advanced.charmap_delta_height",0)),inline:true},{theme_url:this.url})},_mceHelp:function(){var i=this.editor;i.windowManager.open({url:this.url+"/about.htm",width:480,height:380,inline:true},{theme_url:this.url})},_mceShortcuts:function(){var i=this.editor;i.windowManager.open({url:this.url+"/shortcuts.htm",width:480,height:380,inline:true},{theme_url:this.url})},_mceColorPicker:function(k,j){var i=this.editor;j=j||{};i.windowManager.open({url:this.url+"/color_picker.htm",width:375+parseInt(i.getLang("advanced.colorpicker_delta_width",0)),height:250+parseInt(i.getLang("advanced.colorpicker_delta_height",0)),close_previous:false,inline:true},{input_color:j.color,func:j.func,theme_url:this.url})},_mceCodeEditor:function(j,k){var i=this.editor;i.windowManager.open({url:this.url+"/source_editor.htm",width:parseInt(i.getParam("theme_advanced_source_editor_width",720)),height:parseInt(i.getParam("theme_advanced_source_editor_height",580)),inline:true,resizable:true,maximizable:true},{theme_url:this.url})},_mceImage:function(j,k){var i=this.editor;if(i.dom.getAttrib(i.selection.getNode(),"class").indexOf("mceItem")!=-1){return}i.windowManager.open({url:this.url+"/image.htm",width:355+parseInt(i.getLang("advanced.image_delta_width",0)),height:275+parseInt(i.getLang("advanced.image_delta_height",0)),inline:true},{theme_url:this.url})},_mceLink:function(j,k){var i=this.editor;i.windowManager.open({url:this.url+"/link.htm",width:310+parseInt(i.getLang("advanced.link_delta_width",0)),height:200+parseInt(i.getLang("advanced.link_delta_height",0)),inline:true},{theme_url:this.url})},_mceNewDocument:function(){var i=this.editor;i.windowManager.confirm("advanced.newdocument",function(j){if(j){i.execCommand("mceSetContent",false,"")}})},_mceForeColor:function(){var i=this;this._mceColorPicker(0,{color:i.fgColor,func:function(j){i.fgColor=j;i.editor.execCommand("ForeColor",false,j)}})},_mceBackColor:function(){var i=this;this._mceColorPicker(0,{color:i.bgColor,func:function(j){i.bgColor=j;i.editor.execCommand("HiliteColor",false,j)}})},_ufirst:function(i){return i.substring(0,1).toUpperCase()+i.substring(1)}});e.ThemeManager.add("advanced",e.themes.AdvancedTheme)}(tinymce));
@@ -0,0 +1,1362 @@
1
+ /**
2
+ * editor_template_src.js
3
+ *
4
+ * Copyright 2009, Moxiecode Systems AB
5
+ * Released under LGPL License.
6
+ *
7
+ * License: http://tinymce.moxiecode.com/license
8
+ * Contributing: http://tinymce.moxiecode.com/contributing
9
+ */
10
+
11
+ (function(tinymce) {
12
+ var DOM = tinymce.DOM, Event = tinymce.dom.Event, extend = tinymce.extend, each = tinymce.each, Cookie = tinymce.util.Cookie, lastExtID, explode = tinymce.explode;
13
+
14
+ // Tell it to load theme specific language pack(s)
15
+ tinymce.ThemeManager.requireLangPack('advanced');
16
+
17
+ tinymce.create('tinymce.themes.AdvancedTheme', {
18
+ sizes : [8, 10, 12, 14, 18, 24, 36],
19
+
20
+ // Control name lookup, format: title, command
21
+ controls : {
22
+ bold : ['bold_desc', 'Bold'],
23
+ italic : ['italic_desc', 'Italic'],
24
+ underline : ['underline_desc', 'Underline'],
25
+ strikethrough : ['striketrough_desc', 'Strikethrough'],
26
+ justifyleft : ['justifyleft_desc', 'JustifyLeft'],
27
+ justifycenter : ['justifycenter_desc', 'JustifyCenter'],
28
+ justifyright : ['justifyright_desc', 'JustifyRight'],
29
+ justifyfull : ['justifyfull_desc', 'JustifyFull'],
30
+ bullist : ['bullist_desc', 'InsertUnorderedList'],
31
+ numlist : ['numlist_desc', 'InsertOrderedList'],
32
+ outdent : ['outdent_desc', 'Outdent'],
33
+ indent : ['indent_desc', 'Indent'],
34
+ cut : ['cut_desc', 'Cut'],
35
+ copy : ['copy_desc', 'Copy'],
36
+ paste : ['paste_desc', 'Paste'],
37
+ undo : ['undo_desc', 'Undo'],
38
+ redo : ['redo_desc', 'Redo'],
39
+ link : ['link_desc', 'mceLink'],
40
+ unlink : ['unlink_desc', 'unlink'],
41
+ image : ['image_desc', 'mceImage'],
42
+ cleanup : ['cleanup_desc', 'mceCleanup'],
43
+ help : ['help_desc', 'mceHelp'],
44
+ code : ['code_desc', 'mceCodeEditor'],
45
+ hr : ['hr_desc', 'InsertHorizontalRule'],
46
+ removeformat : ['removeformat_desc', 'RemoveFormat'],
47
+ sub : ['sub_desc', 'subscript'],
48
+ sup : ['sup_desc', 'superscript'],
49
+ forecolor : ['forecolor_desc', 'ForeColor'],
50
+ forecolorpicker : ['forecolor_desc', 'mceForeColor'],
51
+ backcolor : ['backcolor_desc', 'HiliteColor'],
52
+ backcolorpicker : ['backcolor_desc', 'mceBackColor'],
53
+ charmap : ['charmap_desc', 'mceCharMap'],
54
+ visualaid : ['visualaid_desc', 'mceToggleVisualAid'],
55
+ anchor : ['anchor_desc', 'mceInsertAnchor'],
56
+ newdocument : ['newdocument_desc', 'mceNewDocument'],
57
+ blockquote : ['blockquote_desc', 'mceBlockQuote']
58
+ },
59
+
60
+ stateControls : ['bold', 'italic', 'underline', 'strikethrough', 'bullist', 'numlist', 'justifyleft', 'justifycenter', 'justifyright', 'justifyfull', 'sub', 'sup', 'blockquote'],
61
+
62
+ init : function(ed, url) {
63
+ var t = this, s, v, o;
64
+
65
+ t.editor = ed;
66
+ t.url = url;
67
+ t.onResolveName = new tinymce.util.Dispatcher(this);
68
+
69
+ ed.forcedHighContrastMode = ed.settings.detect_highcontrast && t._isHighContrast();
70
+ ed.settings.skin = ed.forcedHighContrastMode ? 'highcontrast' : ed.settings.skin;
71
+
72
+ // Default settings
73
+ t.settings = s = extend({
74
+ theme_advanced_path : true,
75
+ theme_advanced_toolbar_location : 'bottom',
76
+ theme_advanced_buttons1 : "bold,italic,underline,strikethrough,|,justifyleft,justifycenter,justifyright,justifyfull,|,styleselect,formatselect",
77
+ theme_advanced_buttons2 : "bullist,numlist,|,outdent,indent,|,undo,redo,|,link,unlink,anchor,image,cleanup,help,code",
78
+ theme_advanced_buttons3 : "hr,removeformat,visualaid,|,sub,sup,|,charmap",
79
+ theme_advanced_blockformats : "p,address,pre,h1,h2,h3,h4,h5,h6",
80
+ theme_advanced_toolbar_align : "center",
81
+ theme_advanced_fonts : "Andale Mono=andale mono,times;Arial=arial,helvetica,sans-serif;Arial Black=arial black,avant garde;Book Antiqua=book antiqua,palatino;Comic Sans MS=comic sans ms,sans-serif;Courier New=courier new,courier;Georgia=georgia,palatino;Helvetica=helvetica;Impact=impact,chicago;Symbol=symbol;Tahoma=tahoma,arial,helvetica,sans-serif;Terminal=terminal,monaco;Times New Roman=times new roman,times;Trebuchet MS=trebuchet ms,geneva;Verdana=verdana,geneva;Webdings=webdings;Wingdings=wingdings,zapf dingbats",
82
+ theme_advanced_more_colors : 1,
83
+ theme_advanced_row_height : 23,
84
+ theme_advanced_resize_horizontal : 1,
85
+ theme_advanced_resizing_use_cookie : 1,
86
+ theme_advanced_font_sizes : "1,2,3,4,5,6,7",
87
+ theme_advanced_font_selector : "span",
88
+ theme_advanced_show_current_color: 0,
89
+ readonly : ed.settings.readonly
90
+ }, ed.settings);
91
+
92
+ // Setup default font_size_style_values
93
+ if (!s.font_size_style_values)
94
+ s.font_size_style_values = "8pt,10pt,12pt,14pt,18pt,24pt,36pt";
95
+
96
+ if (tinymce.is(s.theme_advanced_font_sizes, 'string')) {
97
+ s.font_size_style_values = tinymce.explode(s.font_size_style_values);
98
+ s.font_size_classes = tinymce.explode(s.font_size_classes || '');
99
+
100
+ // Parse string value
101
+ o = {};
102
+ ed.settings.theme_advanced_font_sizes = s.theme_advanced_font_sizes;
103
+ each(ed.getParam('theme_advanced_font_sizes', '', 'hash'), function(v, k) {
104
+ var cl;
105
+
106
+ if (k == v && v >= 1 && v <= 7) {
107
+ k = v + ' (' + t.sizes[v - 1] + 'pt)';
108
+ cl = s.font_size_classes[v - 1];
109
+ v = s.font_size_style_values[v - 1] || (t.sizes[v - 1] + 'pt');
110
+ }
111
+
112
+ if (/^\s*\./.test(v))
113
+ cl = v.replace(/\./g, '');
114
+
115
+ o[k] = cl ? {'class' : cl} : {fontSize : v};
116
+ });
117
+
118
+ s.theme_advanced_font_sizes = o;
119
+ }
120
+
121
+ if ((v = s.theme_advanced_path_location) && v != 'none')
122
+ s.theme_advanced_statusbar_location = s.theme_advanced_path_location;
123
+
124
+ if (s.theme_advanced_statusbar_location == 'none')
125
+ s.theme_advanced_statusbar_location = 0;
126
+
127
+ if (ed.settings.content_css !== false)
128
+ ed.contentCSS.push(ed.baseURI.toAbsolute(url + "/skins/" + ed.settings.skin + "/content.css"));
129
+
130
+ // Init editor
131
+ ed.onInit.add(function() {
132
+ if (!ed.settings.readonly) {
133
+ ed.onNodeChange.add(t._nodeChanged, t);
134
+ ed.onKeyUp.add(t._updateUndoStatus, t);
135
+ ed.onMouseUp.add(t._updateUndoStatus, t);
136
+ ed.dom.bind(ed.dom.getRoot(), 'dragend', function() {
137
+ t._updateUndoStatus(ed);
138
+ });
139
+ }
140
+ });
141
+
142
+ ed.onSetProgressState.add(function(ed, b, ti) {
143
+ var co, id = ed.id, tb;
144
+
145
+ if (b) {
146
+ t.progressTimer = setTimeout(function() {
147
+ co = ed.getContainer();
148
+ co = co.insertBefore(DOM.create('DIV', {style : 'position:relative'}), co.firstChild);
149
+ tb = DOM.get(ed.id + '_tbl');
150
+
151
+ DOM.add(co, 'div', {id : id + '_blocker', 'class' : 'mceBlocker', style : {width : tb.clientWidth + 2, height : tb.clientHeight + 2}});
152
+ DOM.add(co, 'div', {id : id + '_progress', 'class' : 'mceProgress', style : {left : tb.clientWidth / 2, top : tb.clientHeight / 2}});
153
+ }, ti || 0);
154
+ } else {
155
+ DOM.remove(id + '_blocker');
156
+ DOM.remove(id + '_progress');
157
+ clearTimeout(t.progressTimer);
158
+ }
159
+ });
160
+
161
+ DOM.loadCSS(s.editor_css ? ed.documentBaseURI.toAbsolute(s.editor_css) : url + "/skins/" + ed.settings.skin + "/ui.css");
162
+
163
+ if (s.skin_variant)
164
+ DOM.loadCSS(url + "/skins/" + ed.settings.skin + "/ui_" + s.skin_variant + ".css");
165
+ },
166
+
167
+ _isHighContrast : function() {
168
+ var actualColor, div = DOM.add(DOM.getRoot(), 'div', {'style': 'background-color: rgb(171,239,86);'});
169
+
170
+ actualColor = (DOM.getStyle(div, 'background-color', true) + '').toLowerCase().replace(/ /g, '');
171
+ DOM.remove(div);
172
+
173
+ return actualColor != 'rgb(171,239,86)' && actualColor != '#abef56';
174
+ },
175
+
176
+ createControl : function(n, cf) {
177
+ var cd, c;
178
+
179
+ if (c = cf.createControl(n))
180
+ return c;
181
+
182
+ switch (n) {
183
+ case "styleselect":
184
+ return this._createStyleSelect();
185
+
186
+ case "formatselect":
187
+ return this._createBlockFormats();
188
+
189
+ case "fontselect":
190
+ return this._createFontSelect();
191
+
192
+ case "fontsizeselect":
193
+ return this._createFontSizeSelect();
194
+
195
+ case "forecolor":
196
+ return this._createForeColorMenu();
197
+
198
+ case "backcolor":
199
+ return this._createBackColorMenu();
200
+ }
201
+
202
+ if ((cd = this.controls[n]))
203
+ return cf.createButton(n, {title : "advanced." + cd[0], cmd : cd[1], ui : cd[2], value : cd[3]});
204
+ },
205
+
206
+ execCommand : function(cmd, ui, val) {
207
+ var f = this['_' + cmd];
208
+
209
+ if (f) {
210
+ f.call(this, ui, val);
211
+ return true;
212
+ }
213
+
214
+ return false;
215
+ },
216
+
217
+ _importClasses : function(e) {
218
+ var ed = this.editor, ctrl = ed.controlManager.get('styleselect');
219
+
220
+ if (ctrl.getLength() == 0) {
221
+ each(ed.dom.getClasses(), function(o, idx) {
222
+ var name = 'style_' + idx;
223
+
224
+ ed.formatter.register(name, {
225
+ inline : 'span',
226
+ attributes : {'class' : o['class']},
227
+ selector : '*'
228
+ });
229
+
230
+ ctrl.add(o['class'], name);
231
+ });
232
+ }
233
+ },
234
+
235
+ _createStyleSelect : function(n) {
236
+ var t = this, ed = t.editor, ctrlMan = ed.controlManager, ctrl;
237
+
238
+ // Setup style select box
239
+ ctrl = ctrlMan.createListBox('styleselect', {
240
+ title : 'advanced.style_select',
241
+ onselect : function(name) {
242
+ var matches, formatNames = [];
243
+
244
+ each(ctrl.items, function(item) {
245
+ formatNames.push(item.value);
246
+ });
247
+
248
+ ed.focus();
249
+ ed.undoManager.add();
250
+
251
+ // Toggle off the current format
252
+ matches = ed.formatter.matchAll(formatNames);
253
+ if (!name || matches[0] == name) {
254
+ if (matches[0])
255
+ ed.formatter.remove(matches[0]);
256
+ } else
257
+ ed.formatter.apply(name);
258
+
259
+ ed.undoManager.add();
260
+ ed.nodeChanged();
261
+
262
+ return false; // No auto select
263
+ }
264
+ });
265
+
266
+ // Handle specified format
267
+ ed.onInit.add(function() {
268
+ var counter = 0, formats = ed.getParam('style_formats');
269
+
270
+ if (formats) {
271
+ each(formats, function(fmt) {
272
+ var name, keys = 0;
273
+
274
+ each(fmt, function() {keys++;});
275
+
276
+ if (keys > 1) {
277
+ name = fmt.name = fmt.name || 'style_' + (counter++);
278
+ ed.formatter.register(name, fmt);
279
+ ctrl.add(fmt.title, name);
280
+ } else
281
+ ctrl.add(fmt.title);
282
+ });
283
+ } else {
284
+ each(ed.getParam('theme_advanced_styles', '', 'hash'), function(val, key) {
285
+ var name;
286
+
287
+ if (val) {
288
+ name = 'style_' + (counter++);
289
+
290
+ ed.formatter.register(name, {
291
+ inline : 'span',
292
+ classes : val,
293
+ selector : '*'
294
+ });
295
+
296
+ ctrl.add(t.editor.translate(key), name);
297
+ }
298
+ });
299
+ }
300
+ });
301
+
302
+ // Auto import classes if the ctrl box is empty
303
+ if (ctrl.getLength() == 0) {
304
+ ctrl.onPostRender.add(function(ed, n) {
305
+ if (!ctrl.NativeListBox) {
306
+ Event.add(n.id + '_text', 'focus', t._importClasses, t);
307
+ Event.add(n.id + '_text', 'mousedown', t._importClasses, t);
308
+ Event.add(n.id + '_open', 'focus', t._importClasses, t);
309
+ Event.add(n.id + '_open', 'mousedown', t._importClasses, t);
310
+ } else
311
+ Event.add(n.id, 'focus', t._importClasses, t);
312
+ });
313
+ }
314
+
315
+ return ctrl;
316
+ },
317
+
318
+ _createFontSelect : function() {
319
+ var c, t = this, ed = t.editor;
320
+
321
+ c = ed.controlManager.createListBox('fontselect', {
322
+ title : 'advanced.fontdefault',
323
+ onselect : function(v) {
324
+ var cur = c.items[c.selectedIndex];
325
+
326
+ if (!v && cur) {
327
+ ed.execCommand('FontName', false, cur.value);
328
+ return;
329
+ }
330
+
331
+ ed.execCommand('FontName', false, v);
332
+
333
+ // Fake selection, execCommand will fire a nodeChange and update the selection
334
+ c.select(function(sv) {
335
+ return v == sv;
336
+ });
337
+
338
+ if (cur && cur.value == v) {
339
+ c.select(null);
340
+ }
341
+
342
+ return false; // No auto select
343
+ }
344
+ });
345
+
346
+ if (c) {
347
+ each(ed.getParam('theme_advanced_fonts', t.settings.theme_advanced_fonts, 'hash'), function(v, k) {
348
+ c.add(ed.translate(k), v, {style : v.indexOf('dings') == -1 ? 'font-family:' + v : ''});
349
+ });
350
+ }
351
+
352
+ return c;
353
+ },
354
+
355
+ _createFontSizeSelect : function() {
356
+ var t = this, ed = t.editor, c, i = 0, cl = [];
357
+
358
+ c = ed.controlManager.createListBox('fontsizeselect', {title : 'advanced.font_size', onselect : function(v) {
359
+ var cur = c.items[c.selectedIndex];
360
+
361
+ if (!v && cur) {
362
+ cur = cur.value;
363
+
364
+ if (cur['class']) {
365
+ ed.formatter.toggle('fontsize_class', {value : cur['class']});
366
+ ed.undoManager.add();
367
+ ed.nodeChanged();
368
+ } else {
369
+ ed.execCommand('FontSize', false, cur.fontSize);
370
+ }
371
+
372
+ return;
373
+ }
374
+
375
+ if (v['class']) {
376
+ ed.focus();
377
+ ed.undoManager.add();
378
+ ed.formatter.toggle('fontsize_class', {value : v['class']});
379
+ ed.undoManager.add();
380
+ ed.nodeChanged();
381
+ } else
382
+ ed.execCommand('FontSize', false, v.fontSize);
383
+
384
+ // Fake selection, execCommand will fire a nodeChange and update the selection
385
+ c.select(function(sv) {
386
+ return v == sv;
387
+ });
388
+
389
+ if (cur && (cur.value.fontSize == v.fontSize || cur.value['class'] == v['class'])) {
390
+ c.select(null);
391
+ }
392
+
393
+ return false; // No auto select
394
+ }});
395
+
396
+ if (c) {
397
+ each(t.settings.theme_advanced_font_sizes, function(v, k) {
398
+ var fz = v.fontSize;
399
+
400
+ if (fz >= 1 && fz <= 7)
401
+ fz = t.sizes[parseInt(fz) - 1] + 'pt';
402
+
403
+ c.add(k, v, {'style' : 'font-size:' + fz, 'class' : 'mceFontSize' + (i++) + (' ' + (v['class'] || ''))});
404
+ });
405
+ }
406
+
407
+ return c;
408
+ },
409
+
410
+ _createBlockFormats : function() {
411
+ var c, fmts = {
412
+ p : 'advanced.paragraph',
413
+ address : 'advanced.address',
414
+ pre : 'advanced.pre',
415
+ h1 : 'advanced.h1',
416
+ h2 : 'advanced.h2',
417
+ h3 : 'advanced.h3',
418
+ h4 : 'advanced.h4',
419
+ h5 : 'advanced.h5',
420
+ h6 : 'advanced.h6',
421
+ div : 'advanced.div',
422
+ blockquote : 'advanced.blockquote',
423
+ code : 'advanced.code',
424
+ dt : 'advanced.dt',
425
+ dd : 'advanced.dd',
426
+ samp : 'advanced.samp'
427
+ }, t = this;
428
+
429
+ c = t.editor.controlManager.createListBox('formatselect', {title : 'advanced.block', onselect : function(v) {
430
+ t.editor.execCommand('FormatBlock', false, v);
431
+ return false;
432
+ }});
433
+
434
+ if (c) {
435
+ each(t.editor.getParam('theme_advanced_blockformats', t.settings.theme_advanced_blockformats, 'hash'), function(v, k) {
436
+ c.add(t.editor.translate(k != v ? k : fmts[v]), v, {'class' : 'mce_formatPreview mce_' + v});
437
+ });
438
+ }
439
+
440
+ return c;
441
+ },
442
+
443
+ _createForeColorMenu : function() {
444
+ var c, t = this, s = t.settings, o = {}, v;
445
+
446
+ if (s.theme_advanced_more_colors) {
447
+ o.more_colors_func = function() {
448
+ t._mceColorPicker(0, {
449
+ color : c.value,
450
+ func : function(co) {
451
+ c.setColor(co);
452
+ }
453
+ });
454
+ };
455
+ }
456
+
457
+ if (v = s.theme_advanced_text_colors)
458
+ o.colors = v;
459
+
460
+ if (s.theme_advanced_default_foreground_color)
461
+ o.default_color = s.theme_advanced_default_foreground_color;
462
+
463
+ o.title = 'advanced.forecolor_desc';
464
+ o.cmd = 'ForeColor';
465
+ o.scope = this;
466
+
467
+ c = t.editor.controlManager.createColorSplitButton('forecolor', o);
468
+
469
+ return c;
470
+ },
471
+
472
+ _createBackColorMenu : function() {
473
+ var c, t = this, s = t.settings, o = {}, v;
474
+
475
+ if (s.theme_advanced_more_colors) {
476
+ o.more_colors_func = function() {
477
+ t._mceColorPicker(0, {
478
+ color : c.value,
479
+ func : function(co) {
480
+ c.setColor(co);
481
+ }
482
+ });
483
+ };
484
+ }
485
+
486
+ if (v = s.theme_advanced_background_colors)
487
+ o.colors = v;
488
+
489
+ if (s.theme_advanced_default_background_color)
490
+ o.default_color = s.theme_advanced_default_background_color;
491
+
492
+ o.title = 'advanced.backcolor_desc';
493
+ o.cmd = 'HiliteColor';
494
+ o.scope = this;
495
+
496
+ c = t.editor.controlManager.createColorSplitButton('backcolor', o);
497
+
498
+ return c;
499
+ },
500
+
501
+ renderUI : function(o) {
502
+ var n, ic, tb, t = this, ed = t.editor, s = t.settings, sc, p, nl;
503
+
504
+ if (ed.settings) {
505
+ ed.settings.aria_label = s.aria_label + ed.getLang('advanced.help_shortcut');
506
+ }
507
+
508
+ // TODO: ACC Should have an aria-describedby attribute which is user-configurable to describe what this field is actually for.
509
+ // Maybe actually inherit it from the original textara?
510
+ n = p = DOM.create('span', {role : 'application', 'aria-labelledby' : ed.id + '_voice', id : ed.id + '_parent', 'class' : 'mceEditor ' + ed.settings.skin + 'Skin' + (s.skin_variant ? ' ' + ed.settings.skin + 'Skin' + t._ufirst(s.skin_variant) : '')});
511
+ DOM.add(n, 'span', {'class': 'mceVoiceLabel', 'style': 'display:none;', id: ed.id + '_voice'}, s.aria_label);
512
+
513
+ if (!DOM.boxModel)
514
+ n = DOM.add(n, 'div', {'class' : 'mceOldBoxModel'});
515
+
516
+ n = sc = DOM.add(n, 'table', {role : "presentation", id : ed.id + '_tbl', 'class' : 'mceLayout', cellSpacing : 0, cellPadding : 0});
517
+ n = tb = DOM.add(n, 'tbody');
518
+
519
+ switch ((s.theme_advanced_layout_manager || '').toLowerCase()) {
520
+ case "rowlayout":
521
+ ic = t._rowLayout(s, tb, o);
522
+ break;
523
+
524
+ case "customlayout":
525
+ ic = ed.execCallback("theme_advanced_custom_layout", s, tb, o, p);
526
+ break;
527
+
528
+ default:
529
+ ic = t._simpleLayout(s, tb, o, p);
530
+ }
531
+
532
+ n = o.targetNode;
533
+
534
+ // Add classes to first and last TRs
535
+ nl = sc.rows;
536
+ DOM.addClass(nl[0], 'mceFirst');
537
+ DOM.addClass(nl[nl.length - 1], 'mceLast');
538
+
539
+ // Add classes to first and last TDs
540
+ each(DOM.select('tr', tb), function(n) {
541
+ DOM.addClass(n.firstChild, 'mceFirst');
542
+ DOM.addClass(n.childNodes[n.childNodes.length - 1], 'mceLast');
543
+ });
544
+
545
+ if (DOM.get(s.theme_advanced_toolbar_container))
546
+ DOM.get(s.theme_advanced_toolbar_container).appendChild(p);
547
+ else
548
+ DOM.insertAfter(p, n);
549
+
550
+ Event.add(ed.id + '_path_row', 'click', function(e) {
551
+ e = e.target;
552
+
553
+ if (e.nodeName == 'A') {
554
+ t._sel(e.className.replace(/^.*mcePath_([0-9]+).*$/, '$1'));
555
+
556
+ return Event.cancel(e);
557
+ }
558
+ });
559
+ /*
560
+ if (DOM.get(ed.id + '_path_row')) {
561
+ Event.add(ed.id + '_tbl', 'mouseover', function(e) {
562
+ var re;
563
+
564
+ e = e.target;
565
+
566
+ if (e.nodeName == 'SPAN' && DOM.hasClass(e.parentNode, 'mceButton')) {
567
+ re = DOM.get(ed.id + '_path_row');
568
+ t.lastPath = re.innerHTML;
569
+ DOM.setHTML(re, e.parentNode.title);
570
+ }
571
+ });
572
+
573
+ Event.add(ed.id + '_tbl', 'mouseout', function(e) {
574
+ if (t.lastPath) {
575
+ DOM.setHTML(ed.id + '_path_row', t.lastPath);
576
+ t.lastPath = 0;
577
+ }
578
+ });
579
+ }
580
+ */
581
+
582
+ if (!ed.getParam('accessibility_focus'))
583
+ Event.add(DOM.add(p, 'a', {href : '#'}, '<!-- IE -->'), 'focus', function() {tinyMCE.get(ed.id).focus();});
584
+
585
+ if (s.theme_advanced_toolbar_location == 'external')
586
+ o.deltaHeight = 0;
587
+
588
+ t.deltaHeight = o.deltaHeight;
589
+ o.targetNode = null;
590
+
591
+ ed.onKeyDown.add(function(ed, evt) {
592
+ var DOM_VK_F10 = 121, DOM_VK_F11 = 122;
593
+
594
+ if (evt.altKey) {
595
+ if (evt.keyCode === DOM_VK_F10) {
596
+ // Make sure focus is given to toolbar in Safari.
597
+ // We can't do this in IE as it prevents giving focus to toolbar when editor is in a frame
598
+ if (tinymce.isWebKit) {
599
+ window.focus();
600
+ }
601
+ t.toolbarGroup.focus();
602
+ return Event.cancel(evt);
603
+ } else if (evt.keyCode === DOM_VK_F11) {
604
+ DOM.get(ed.id + '_path_row').focus();
605
+ return Event.cancel(evt);
606
+ }
607
+ }
608
+ });
609
+
610
+ // alt+0 is the UK recommended shortcut for accessing the list of access controls.
611
+ ed.addShortcut('alt+0', '', 'mceShortcuts', t);
612
+
613
+ return {
614
+ iframeContainer : ic,
615
+ editorContainer : ed.id + '_parent',
616
+ sizeContainer : sc,
617
+ deltaHeight : o.deltaHeight
618
+ };
619
+ },
620
+
621
+ getInfo : function() {
622
+ return {
623
+ longname : 'Advanced theme',
624
+ author : 'Moxiecode Systems AB',
625
+ authorurl : 'http://tinymce.moxiecode.com',
626
+ version : tinymce.majorVersion + "." + tinymce.minorVersion
627
+ }
628
+ },
629
+
630
+ resizeBy : function(dw, dh) {
631
+ var e = DOM.get(this.editor.id + '_ifr');
632
+
633
+ this.resizeTo(e.clientWidth + dw, e.clientHeight + dh);
634
+ },
635
+
636
+ resizeTo : function(w, h, store) {
637
+ var ed = this.editor, s = this.settings, e = DOM.get(ed.id + '_tbl'), ifr = DOM.get(ed.id + '_ifr');
638
+
639
+ // Boundery fix box
640
+ w = Math.max(s.theme_advanced_resizing_min_width || 100, w);
641
+ h = Math.max(s.theme_advanced_resizing_min_height || 100, h);
642
+ w = Math.min(s.theme_advanced_resizing_max_width || 0xFFFF, w);
643
+ h = Math.min(s.theme_advanced_resizing_max_height || 0xFFFF, h);
644
+
645
+ // Resize iframe and container
646
+ DOM.setStyle(e, 'height', '');
647
+ DOM.setStyle(ifr, 'height', h);
648
+
649
+ if (s.theme_advanced_resize_horizontal) {
650
+ DOM.setStyle(e, 'width', '');
651
+ DOM.setStyle(ifr, 'width', w);
652
+
653
+ // Make sure that the size is never smaller than the over all ui
654
+ if (w < e.clientWidth) {
655
+ w = e.clientWidth;
656
+ DOM.setStyle(ifr, 'width', e.clientWidth);
657
+ }
658
+ }
659
+
660
+ // Store away the size
661
+ if (store && s.theme_advanced_resizing_use_cookie) {
662
+ Cookie.setHash("TinyMCE_" + ed.id + "_size", {
663
+ cw : w,
664
+ ch : h
665
+ });
666
+ }
667
+ },
668
+
669
+ destroy : function() {
670
+ var id = this.editor.id;
671
+
672
+ Event.clear(id + '_resize');
673
+ Event.clear(id + '_path_row');
674
+ Event.clear(id + '_external_close');
675
+ },
676
+
677
+ // Internal functions
678
+
679
+ _simpleLayout : function(s, tb, o, p) {
680
+ var t = this, ed = t.editor, lo = s.theme_advanced_toolbar_location, sl = s.theme_advanced_statusbar_location, n, ic, etb, c;
681
+
682
+ if (s.readonly) {
683
+ n = DOM.add(tb, 'tr');
684
+ n = ic = DOM.add(n, 'td', {'class' : 'mceIframeContainer'});
685
+ return ic;
686
+ }
687
+
688
+ // Create toolbar container at top
689
+ if (lo == 'top')
690
+ t._addToolbars(tb, o);
691
+
692
+ // Create external toolbar
693
+ if (lo == 'external') {
694
+ n = c = DOM.create('div', {style : 'position:relative'});
695
+ n = DOM.add(n, 'div', {id : ed.id + '_external', 'class' : 'mceExternalToolbar'});
696
+ DOM.add(n, 'a', {id : ed.id + '_external_close', href : 'javascript:;', 'class' : 'mceExternalClose'});
697
+ n = DOM.add(n, 'table', {id : ed.id + '_tblext', cellSpacing : 0, cellPadding : 0});
698
+ etb = DOM.add(n, 'tbody');
699
+
700
+ if (p.firstChild.className == 'mceOldBoxModel')
701
+ p.firstChild.appendChild(c);
702
+ else
703
+ p.insertBefore(c, p.firstChild);
704
+
705
+ t._addToolbars(etb, o);
706
+
707
+ ed.onMouseUp.add(function() {
708
+ var e = DOM.get(ed.id + '_external');
709
+ DOM.show(e);
710
+
711
+ DOM.hide(lastExtID);
712
+
713
+ var f = Event.add(ed.id + '_external_close', 'click', function() {
714
+ DOM.hide(ed.id + '_external');
715
+ Event.remove(ed.id + '_external_close', 'click', f);
716
+ });
717
+
718
+ DOM.show(e);
719
+ DOM.setStyle(e, 'top', 0 - DOM.getRect(ed.id + '_tblext').h - 1);
720
+
721
+ // Fixes IE rendering bug
722
+ DOM.hide(e);
723
+ DOM.show(e);
724
+ e.style.filter = '';
725
+
726
+ lastExtID = ed.id + '_external';
727
+
728
+ e = null;
729
+ });
730
+ }
731
+
732
+ if (sl == 'top')
733
+ t._addStatusBar(tb, o);
734
+
735
+ // Create iframe container
736
+ if (!s.theme_advanced_toolbar_container) {
737
+ n = DOM.add(tb, 'tr');
738
+ n = ic = DOM.add(n, 'td', {'class' : 'mceIframeContainer'});
739
+ }
740
+
741
+ // Create toolbar container at bottom
742
+ if (lo == 'bottom')
743
+ t._addToolbars(tb, o);
744
+
745
+ if (sl == 'bottom')
746
+ t._addStatusBar(tb, o);
747
+
748
+ return ic;
749
+ },
750
+
751
+ _rowLayout : function(s, tb, o) {
752
+ var t = this, ed = t.editor, dc, da, cf = ed.controlManager, n, ic, to, a;
753
+
754
+ dc = s.theme_advanced_containers_default_class || '';
755
+ da = s.theme_advanced_containers_default_align || 'center';
756
+
757
+ each(explode(s.theme_advanced_containers || ''), function(c, i) {
758
+ var v = s['theme_advanced_container_' + c] || '';
759
+
760
+ switch (c.toLowerCase()) {
761
+ case 'mceeditor':
762
+ n = DOM.add(tb, 'tr');
763
+ n = ic = DOM.add(n, 'td', {'class' : 'mceIframeContainer'});
764
+ break;
765
+
766
+ case 'mceelementpath':
767
+ t._addStatusBar(tb, o);
768
+ break;
769
+
770
+ default:
771
+ a = (s['theme_advanced_container_' + c + '_align'] || da).toLowerCase();
772
+ a = 'mce' + t._ufirst(a);
773
+
774
+ n = DOM.add(DOM.add(tb, 'tr'), 'td', {
775
+ 'class' : 'mceToolbar ' + (s['theme_advanced_container_' + c + '_class'] || dc) + ' ' + a || da
776
+ });
777
+
778
+ to = cf.createToolbar("toolbar" + i);
779
+ t._addControls(v, to);
780
+ DOM.setHTML(n, to.renderHTML());
781
+ o.deltaHeight -= s.theme_advanced_row_height;
782
+ }
783
+ });
784
+
785
+ return ic;
786
+ },
787
+
788
+ _addControls : function(v, tb) {
789
+ var t = this, s = t.settings, di, cf = t.editor.controlManager;
790
+
791
+ if (s.theme_advanced_disable && !t._disabled) {
792
+ di = {};
793
+
794
+ each(explode(s.theme_advanced_disable), function(v) {
795
+ di[v] = 1;
796
+ });
797
+
798
+ t._disabled = di;
799
+ } else
800
+ di = t._disabled;
801
+
802
+ each(explode(v), function(n) {
803
+ var c;
804
+
805
+ if (di && di[n])
806
+ return;
807
+
808
+ // Compatiblity with 2.x
809
+ if (n == 'tablecontrols') {
810
+ each(["table","|","row_props","cell_props","|","row_before","row_after","delete_row","|","col_before","col_after","delete_col","|","split_cells","merge_cells"], function(n) {
811
+ n = t.createControl(n, cf);
812
+
813
+ if (n)
814
+ tb.add(n);
815
+ });
816
+
817
+ return;
818
+ }
819
+
820
+ c = t.createControl(n, cf);
821
+
822
+ if (c)
823
+ tb.add(c);
824
+ });
825
+ },
826
+
827
+ _addToolbars : function(c, o) {
828
+ var t = this, i, tb, ed = t.editor, s = t.settings, v, cf = ed.controlManager, di, n, h = [], a, toolbarGroup;
829
+
830
+ toolbarGroup = cf.createToolbarGroup('toolbargroup', {
831
+ 'name': ed.getLang('advanced.toolbar'),
832
+ 'tab_focus_toolbar':ed.getParam('theme_advanced_tab_focus_toolbar')
833
+ });
834
+
835
+ t.toolbarGroup = toolbarGroup;
836
+
837
+ a = s.theme_advanced_toolbar_align.toLowerCase();
838
+ a = 'mce' + t._ufirst(a);
839
+
840
+ n = DOM.add(DOM.add(c, 'tr', {role: 'presentation'}), 'td', {'class' : 'mceToolbar ' + a, "role":"presentation"});
841
+
842
+ // Create toolbar and add the controls
843
+ for (i=1; (v = s['theme_advanced_buttons' + i]); i++) {
844
+ tb = cf.createToolbar("toolbar" + i, {'class' : 'mceToolbarRow' + i});
845
+
846
+ if (s['theme_advanced_buttons' + i + '_add'])
847
+ v += ',' + s['theme_advanced_buttons' + i + '_add'];
848
+
849
+ if (s['theme_advanced_buttons' + i + '_add_before'])
850
+ v = s['theme_advanced_buttons' + i + '_add_before'] + ',' + v;
851
+
852
+ t._addControls(v, tb);
853
+ toolbarGroup.add(tb);
854
+
855
+ o.deltaHeight -= s.theme_advanced_row_height;
856
+ }
857
+ h.push(toolbarGroup.renderHTML());
858
+ h.push(DOM.createHTML('a', {href : '#', accesskey : 'z', title : ed.getLang("advanced.toolbar_focus"), onfocus : 'tinyMCE.getInstanceById(\'' + ed.id + '\').focus();'}, '<!-- IE -->'));
859
+ DOM.setHTML(n, h.join(''));
860
+ },
861
+
862
+ _addStatusBar : function(tb, o) {
863
+ var n, t = this, ed = t.editor, s = t.settings, r, mf, me, td;
864
+
865
+ n = DOM.add(tb, 'tr');
866
+ n = td = DOM.add(n, 'td', {'class' : 'mceStatusbar'});
867
+ n = DOM.add(n, 'div', {id : ed.id + '_path_row', 'role': 'group', 'aria-labelledby': ed.id + '_path_voice'});
868
+ if (s.theme_advanced_path) {
869
+ DOM.add(n, 'span', {id: ed.id + '_path_voice'}, ed.translate('advanced.path'));
870
+ DOM.add(n, 'span', {}, ': ');
871
+ } else {
872
+ DOM.add(n, 'span', {}, '&#160;');
873
+ }
874
+
875
+
876
+ if (s.theme_advanced_resizing) {
877
+ DOM.add(td, 'a', {id : ed.id + '_resize', href : 'javascript:;', onclick : "return false;", 'class' : 'mceResize', tabIndex:"-1"});
878
+
879
+ if (s.theme_advanced_resizing_use_cookie) {
880
+ ed.onPostRender.add(function() {
881
+ var o = Cookie.getHash("TinyMCE_" + ed.id + "_size"), c = DOM.get(ed.id + '_tbl');
882
+
883
+ if (!o)
884
+ return;
885
+
886
+ t.resizeTo(o.cw, o.ch);
887
+ });
888
+ }
889
+
890
+ ed.onPostRender.add(function() {
891
+ Event.add(ed.id + '_resize', 'click', function(e) {
892
+ e.preventDefault();
893
+ });
894
+
895
+ Event.add(ed.id + '_resize', 'mousedown', function(e) {
896
+ var mouseMoveHandler1, mouseMoveHandler2,
897
+ mouseUpHandler1, mouseUpHandler2,
898
+ startX, startY, startWidth, startHeight, width, height, ifrElm;
899
+
900
+ function resizeOnMove(e) {
901
+ e.preventDefault();
902
+
903
+ width = startWidth + (e.screenX - startX);
904
+ height = startHeight + (e.screenY - startY);
905
+
906
+ t.resizeTo(width, height);
907
+ };
908
+
909
+ function endResize(e) {
910
+ // Stop listening
911
+ Event.remove(DOM.doc, 'mousemove', mouseMoveHandler1);
912
+ Event.remove(ed.getDoc(), 'mousemove', mouseMoveHandler2);
913
+ Event.remove(DOM.doc, 'mouseup', mouseUpHandler1);
914
+ Event.remove(ed.getDoc(), 'mouseup', mouseUpHandler2);
915
+
916
+ width = startWidth + (e.screenX - startX);
917
+ height = startHeight + (e.screenY - startY);
918
+ t.resizeTo(width, height, true);
919
+ };
920
+
921
+ e.preventDefault();
922
+
923
+ // Get the current rect size
924
+ startX = e.screenX;
925
+ startY = e.screenY;
926
+ ifrElm = DOM.get(t.editor.id + '_ifr');
927
+ startWidth = width = ifrElm.clientWidth;
928
+ startHeight = height = ifrElm.clientHeight;
929
+
930
+ // Register envent handlers
931
+ mouseMoveHandler1 = Event.add(DOM.doc, 'mousemove', resizeOnMove);
932
+ mouseMoveHandler2 = Event.add(ed.getDoc(), 'mousemove', resizeOnMove);
933
+ mouseUpHandler1 = Event.add(DOM.doc, 'mouseup', endResize);
934
+ mouseUpHandler2 = Event.add(ed.getDoc(), 'mouseup', endResize);
935
+ });
936
+ });
937
+ }
938
+
939
+ o.deltaHeight -= 21;
940
+ n = tb = null;
941
+ },
942
+
943
+ _updateUndoStatus : function(ed) {
944
+ var cm = ed.controlManager, um = ed.undoManager;
945
+
946
+ cm.setDisabled('undo', !um.hasUndo() && !um.typing);
947
+ cm.setDisabled('redo', !um.hasRedo());
948
+ },
949
+
950
+ _nodeChanged : function(ed, cm, n, co, ob) {
951
+ var t = this, p, de = 0, v, c, s = t.settings, cl, fz, fn, fc, bc, formatNames, matches;
952
+
953
+ tinymce.each(t.stateControls, function(c) {
954
+ cm.setActive(c, ed.queryCommandState(t.controls[c][1]));
955
+ });
956
+
957
+ function getParent(name) {
958
+ var i, parents = ob.parents, func = name;
959
+
960
+ if (typeof(name) == 'string') {
961
+ func = function(node) {
962
+ return node.nodeName == name;
963
+ };
964
+ }
965
+
966
+ for (i = 0; i < parents.length; i++) {
967
+ if (func(parents[i]))
968
+ return parents[i];
969
+ }
970
+ };
971
+
972
+ cm.setActive('visualaid', ed.hasVisual);
973
+ t._updateUndoStatus(ed);
974
+ cm.setDisabled('outdent', !ed.queryCommandState('Outdent'));
975
+
976
+ p = getParent('A');
977
+ if (c = cm.get('link')) {
978
+ if (!p || !p.name) {
979
+ c.setDisabled(!p && co);
980
+ c.setActive(!!p);
981
+ }
982
+ }
983
+
984
+ if (c = cm.get('unlink')) {
985
+ c.setDisabled(!p && co);
986
+ c.setActive(!!p && !p.name);
987
+ }
988
+
989
+ if (c = cm.get('anchor')) {
990
+ c.setActive(!co && !!p && p.name);
991
+ }
992
+
993
+ p = getParent('IMG');
994
+ if (c = cm.get('image'))
995
+ c.setActive(!co && !!p && n.className.indexOf('mceItem') == -1);
996
+
997
+ if (c = cm.get('styleselect')) {
998
+ t._importClasses();
999
+
1000
+ formatNames = [];
1001
+ each(c.items, function(item) {
1002
+ formatNames.push(item.value);
1003
+ });
1004
+
1005
+ matches = ed.formatter.matchAll(formatNames);
1006
+ c.select(matches[0]);
1007
+ }
1008
+
1009
+ if (c = cm.get('formatselect')) {
1010
+ p = getParent(DOM.isBlock);
1011
+
1012
+ if (p)
1013
+ c.select(p.nodeName.toLowerCase());
1014
+ }
1015
+
1016
+ // Find out current fontSize, fontFamily and fontClass
1017
+ getParent(function(n) {
1018
+ if (n.nodeName === 'SPAN') {
1019
+ if (!cl && n.className)
1020
+ cl = n.className;
1021
+ }
1022
+
1023
+ if (ed.dom.is(n, s.theme_advanced_font_selector)) {
1024
+ if (!fz && n.style.fontSize)
1025
+ fz = n.style.fontSize;
1026
+
1027
+ if (!fn && n.style.fontFamily)
1028
+ fn = n.style.fontFamily.replace(/[\"\']+/g, '').replace(/^([^,]+).*/, '$1').toLowerCase();
1029
+
1030
+ if (!fc && n.style.color)
1031
+ fc = n.style.color;
1032
+
1033
+ if (!bc && n.style.backgroundColor)
1034
+ bc = n.style.backgroundColor;
1035
+ }
1036
+
1037
+ return false;
1038
+ });
1039
+
1040
+ if (c = cm.get('fontselect')) {
1041
+ c.select(function(v) {
1042
+ return v.replace(/^([^,]+).*/, '$1').toLowerCase() == fn;
1043
+ });
1044
+ }
1045
+
1046
+ // Select font size
1047
+ if (c = cm.get('fontsizeselect')) {
1048
+ // Use computed style
1049
+ if (s.theme_advanced_runtime_fontsize && !fz && !cl)
1050
+ fz = ed.dom.getStyle(n, 'fontSize', true);
1051
+
1052
+ c.select(function(v) {
1053
+ if (v.fontSize && v.fontSize === fz)
1054
+ return true;
1055
+
1056
+ if (v['class'] && v['class'] === cl)
1057
+ return true;
1058
+ });
1059
+ }
1060
+
1061
+ if (s.theme_advanced_show_current_color) {
1062
+ function updateColor(controlId, color) {
1063
+ if (c = cm.get(controlId)) {
1064
+ if (!color)
1065
+ color = c.settings.default_color;
1066
+ if (color !== c.value) {
1067
+ c.displayColor(color);
1068
+ }
1069
+ }
1070
+ }
1071
+ updateColor('forecolor', fc);
1072
+ updateColor('backcolor', bc);
1073
+ }
1074
+
1075
+ if (s.theme_advanced_show_current_color) {
1076
+ function updateColor(controlId, color) {
1077
+ if (c = cm.get(controlId)) {
1078
+ if (!color)
1079
+ color = c.settings.default_color;
1080
+ if (color !== c.value) {
1081
+ c.displayColor(color);
1082
+ }
1083
+ }
1084
+ };
1085
+
1086
+ updateColor('forecolor', fc);
1087
+ updateColor('backcolor', bc);
1088
+ }
1089
+
1090
+ if (s.theme_advanced_path && s.theme_advanced_statusbar_location) {
1091
+ p = DOM.get(ed.id + '_path') || DOM.add(ed.id + '_path_row', 'span', {id : ed.id + '_path'});
1092
+
1093
+ if (t.statusKeyboardNavigation) {
1094
+ t.statusKeyboardNavigation.destroy();
1095
+ t.statusKeyboardNavigation = null;
1096
+ }
1097
+
1098
+ DOM.setHTML(p, '');
1099
+
1100
+ getParent(function(n) {
1101
+ var na = n.nodeName.toLowerCase(), u, pi, ti = '';
1102
+
1103
+ // Ignore non element and bogus/hidden elements
1104
+ if (n.nodeType != 1 || na === 'br' || n.getAttribute('data-mce-bogus') || DOM.hasClass(n, 'mceItemHidden') || DOM.hasClass(n, 'mceItemRemoved'))
1105
+ return;
1106
+
1107
+ // Handle prefix
1108
+ if (tinymce.isIE && n.scopeName !== 'HTML')
1109
+ na = n.scopeName + ':' + na;
1110
+
1111
+ // Remove internal prefix
1112
+ na = na.replace(/mce\:/g, '');
1113
+
1114
+ // Handle node name
1115
+ switch (na) {
1116
+ case 'b':
1117
+ na = 'strong';
1118
+ break;
1119
+
1120
+ case 'i':
1121
+ na = 'em';
1122
+ break;
1123
+
1124
+ case 'img':
1125
+ if (v = DOM.getAttrib(n, 'src'))
1126
+ ti += 'src: ' + v + ' ';
1127
+
1128
+ break;
1129
+
1130
+ case 'a':
1131
+ if (v = DOM.getAttrib(n, 'name')) {
1132
+ ti += 'name: ' + v + ' ';
1133
+ na += '#' + v;
1134
+ }
1135
+
1136
+ if (v = DOM.getAttrib(n, 'href'))
1137
+ ti += 'href: ' + v + ' ';
1138
+
1139
+ break;
1140
+
1141
+ case 'font':
1142
+ if (v = DOM.getAttrib(n, 'face'))
1143
+ ti += 'font: ' + v + ' ';
1144
+
1145
+ if (v = DOM.getAttrib(n, 'size'))
1146
+ ti += 'size: ' + v + ' ';
1147
+
1148
+ if (v = DOM.getAttrib(n, 'color'))
1149
+ ti += 'color: ' + v + ' ';
1150
+
1151
+ break;
1152
+
1153
+ case 'span':
1154
+ if (v = DOM.getAttrib(n, 'style'))
1155
+ ti += 'style: ' + v + ' ';
1156
+
1157
+ break;
1158
+ }
1159
+
1160
+ if (v = DOM.getAttrib(n, 'id'))
1161
+ ti += 'id: ' + v + ' ';
1162
+
1163
+ if (v = n.className) {
1164
+ v = v.replace(/\b\s*(webkit|mce|Apple-)\w+\s*\b/g, '')
1165
+
1166
+ if (v) {
1167
+ ti += 'class: ' + v + ' ';
1168
+
1169
+ if (DOM.isBlock(n) || na == 'img' || na == 'span')
1170
+ na += '.' + v;
1171
+ }
1172
+ }
1173
+
1174
+ na = na.replace(/(html:)/g, '');
1175
+ na = {name : na, node : n, title : ti};
1176
+ t.onResolveName.dispatch(t, na);
1177
+ ti = na.title;
1178
+ na = na.name;
1179
+
1180
+ //u = "javascript:tinymce.EditorManager.get('" + ed.id + "').theme._sel('" + (de++) + "');";
1181
+ pi = DOM.create('a', {'href' : "javascript:;", role: 'button', onmousedown : "return false;", title : ti, 'class' : 'mcePath_' + (de++)}, na);
1182
+
1183
+ if (p.hasChildNodes()) {
1184
+ p.insertBefore(DOM.create('span', {'aria-hidden': 'true'}, '\u00a0\u00bb '), p.firstChild);
1185
+ p.insertBefore(pi, p.firstChild);
1186
+ } else
1187
+ p.appendChild(pi);
1188
+ }, ed.getBody());
1189
+
1190
+ if (DOM.select('a', p).length > 0) {
1191
+ t.statusKeyboardNavigation = new tinymce.ui.KeyboardNavigation({
1192
+ root: ed.id + "_path_row",
1193
+ items: DOM.select('a', p),
1194
+ excludeFromTabOrder: true,
1195
+ onCancel: function() {
1196
+ ed.focus();
1197
+ }
1198
+ }, DOM);
1199
+ }
1200
+ }
1201
+ },
1202
+
1203
+ // Commands gets called by execCommand
1204
+
1205
+ _sel : function(v) {
1206
+ this.editor.execCommand('mceSelectNodeDepth', false, v);
1207
+ },
1208
+
1209
+ _mceInsertAnchor : function(ui, v) {
1210
+ var ed = this.editor;
1211
+
1212
+ ed.windowManager.open({
1213
+ url : this.url + '/anchor.htm',
1214
+ width : 320 + parseInt(ed.getLang('advanced.anchor_delta_width', 0)),
1215
+ height : 90 + parseInt(ed.getLang('advanced.anchor_delta_height', 0)),
1216
+ inline : true
1217
+ }, {
1218
+ theme_url : this.url
1219
+ });
1220
+ },
1221
+
1222
+ _mceCharMap : function() {
1223
+ var ed = this.editor;
1224
+
1225
+ ed.windowManager.open({
1226
+ url : this.url + '/charmap.htm',
1227
+ width : 550 + parseInt(ed.getLang('advanced.charmap_delta_width', 0)),
1228
+ height : 260 + parseInt(ed.getLang('advanced.charmap_delta_height', 0)),
1229
+ inline : true
1230
+ }, {
1231
+ theme_url : this.url
1232
+ });
1233
+ },
1234
+
1235
+ _mceHelp : function() {
1236
+ var ed = this.editor;
1237
+
1238
+ ed.windowManager.open({
1239
+ url : this.url + '/about.htm',
1240
+ width : 480,
1241
+ height : 380,
1242
+ inline : true
1243
+ }, {
1244
+ theme_url : this.url
1245
+ });
1246
+ },
1247
+
1248
+ _mceShortcuts : function() {
1249
+ var ed = this.editor;
1250
+ ed.windowManager.open({
1251
+ url: this.url + '/shortcuts.htm',
1252
+ width: 480,
1253
+ height: 380,
1254
+ inline: true
1255
+ }, {
1256
+ theme_url: this.url
1257
+ });
1258
+ },
1259
+
1260
+ _mceColorPicker : function(u, v) {
1261
+ var ed = this.editor;
1262
+
1263
+ v = v || {};
1264
+
1265
+ ed.windowManager.open({
1266
+ url : this.url + '/color_picker.htm',
1267
+ width : 375 + parseInt(ed.getLang('advanced.colorpicker_delta_width', 0)),
1268
+ height : 250 + parseInt(ed.getLang('advanced.colorpicker_delta_height', 0)),
1269
+ close_previous : false,
1270
+ inline : true
1271
+ }, {
1272
+ input_color : v.color,
1273
+ func : v.func,
1274
+ theme_url : this.url
1275
+ });
1276
+ },
1277
+
1278
+ _mceCodeEditor : function(ui, val) {
1279
+ var ed = this.editor;
1280
+
1281
+ ed.windowManager.open({
1282
+ url : this.url + '/source_editor.htm',
1283
+ width : parseInt(ed.getParam("theme_advanced_source_editor_width", 720)),
1284
+ height : parseInt(ed.getParam("theme_advanced_source_editor_height", 580)),
1285
+ inline : true,
1286
+ resizable : true,
1287
+ maximizable : true
1288
+ }, {
1289
+ theme_url : this.url
1290
+ });
1291
+ },
1292
+
1293
+ _mceImage : function(ui, val) {
1294
+ var ed = this.editor;
1295
+
1296
+ // Internal image object like a flash placeholder
1297
+ if (ed.dom.getAttrib(ed.selection.getNode(), 'class').indexOf('mceItem') != -1)
1298
+ return;
1299
+
1300
+ ed.windowManager.open({
1301
+ url : this.url + '/image.htm',
1302
+ width : 355 + parseInt(ed.getLang('advanced.image_delta_width', 0)),
1303
+ height : 275 + parseInt(ed.getLang('advanced.image_delta_height', 0)),
1304
+ inline : true
1305
+ }, {
1306
+ theme_url : this.url
1307
+ });
1308
+ },
1309
+
1310
+ _mceLink : function(ui, val) {
1311
+ var ed = this.editor;
1312
+
1313
+ ed.windowManager.open({
1314
+ url : this.url + '/link.htm',
1315
+ width : 310 + parseInt(ed.getLang('advanced.link_delta_width', 0)),
1316
+ height : 200 + parseInt(ed.getLang('advanced.link_delta_height', 0)),
1317
+ inline : true
1318
+ }, {
1319
+ theme_url : this.url
1320
+ });
1321
+ },
1322
+
1323
+ _mceNewDocument : function() {
1324
+ var ed = this.editor;
1325
+
1326
+ ed.windowManager.confirm('advanced.newdocument', function(s) {
1327
+ if (s)
1328
+ ed.execCommand('mceSetContent', false, '');
1329
+ });
1330
+ },
1331
+
1332
+ _mceForeColor : function() {
1333
+ var t = this;
1334
+
1335
+ this._mceColorPicker(0, {
1336
+ color: t.fgColor,
1337
+ func : function(co) {
1338
+ t.fgColor = co;
1339
+ t.editor.execCommand('ForeColor', false, co);
1340
+ }
1341
+ });
1342
+ },
1343
+
1344
+ _mceBackColor : function() {
1345
+ var t = this;
1346
+
1347
+ this._mceColorPicker(0, {
1348
+ color: t.bgColor,
1349
+ func : function(co) {
1350
+ t.bgColor = co;
1351
+ t.editor.execCommand('HiliteColor', false, co);
1352
+ }
1353
+ });
1354
+ },
1355
+
1356
+ _ufirst : function(s) {
1357
+ return s.substring(0, 1).toUpperCase() + s.substring(1);
1358
+ }
1359
+ });
1360
+
1361
+ tinymce.ThemeManager.add('advanced', tinymce.themes.AdvancedTheme);
1362
+ }(tinymce));