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
@@ -137,7 +137,7 @@ function updateAction() {
137
137
  do {
138
138
  if (cell == tdElm)
139
139
  break;
140
- col += cell.getAttribute("colspan");
140
+ col += cell.getAttribute("colspan")?cell.getAttribute("colspan"):1;
141
141
  } while ((cell = nextCell(cell)) != null);
142
142
 
143
143
  for (var i=0; i<rows.length; i++) {
@@ -152,7 +152,7 @@ function updateAction() {
152
152
  cell = updateCell(cell, true);
153
153
  break;
154
154
  }
155
- curr += cell.getAttribute("colspan");
155
+ curr += cell.getAttribute("colspan")?cell.getAttribute("colspan"):1;
156
156
  } while ((cell = nextCell(cell)) != null);
157
157
  }
158
158
 
@@ -25,6 +25,7 @@ function init() {
25
25
  var dir = dom.getAttrib(trElm, 'dir');
26
26
 
27
27
  selectByValue(formObj, 'rowtype', rowtype);
28
+ setActionforRowType(formObj, rowtype);
28
29
 
29
30
  // Any cells selected
30
31
  if (dom.select('td.mceSelected,th.mceSelected', trElm).length == 0) {
@@ -234,4 +235,20 @@ function changedColor() {
234
235
  formObj.style.value = dom.serializeStyle(st);
235
236
  }
236
237
 
238
+ function changedRowType() {
239
+ var formObj = document.forms[0];
240
+ var rowtype = getSelectValue(formObj, 'rowtype');
241
+
242
+ setActionforRowType(formObj, rowtype);
243
+
244
+ }
245
+
246
+ function setActionforRowType(formObj, rowtype) {
247
+ if (rowtype === "tbody") {
248
+ formObj.action.disabled = false;
249
+ } else {
250
+ selectByValue(formObj, 'action', "row");
251
+ formObj.action.disabled = true;
252
+ }
253
+ }
237
254
  tinyMCEPopup.onInit.add(init);
@@ -144,7 +144,7 @@ function insertTable() {
144
144
  //elm.outerHTML = elm.outerHTML;
145
145
 
146
146
  inst.nodeChanged();
147
- inst.execCommand('mceEndUndoLevel');
147
+ inst.execCommand('mceEndUndoLevel', false, {}, {skip_undo: true});
148
148
 
149
149
  // Repaint if dimensions changed
150
150
  if (formObj.width.value != orgTableWidth || formObj.height.value != orgTableHeight)
@@ -242,8 +242,16 @@ function insertTable() {
242
242
  } else
243
243
  inst.execCommand('mceInsertContent', false, html);
244
244
 
245
- tinymce.each(dom.select('table[data-mce-new]'), function(node) {
245
+ tinymce.each(dom.select('table[data-mce-new]'), function(node) {
246
246
  var tdorth = dom.select('td,th', node);
247
+
248
+ // Fixes a bug in IE where the caret cannot be placed after the table if the table is at the end of the document
249
+ if (tinymce.isIE && node.nextSibling == null) {
250
+ if (inst.settings.forced_root_block)
251
+ dom.insertAfter(dom.create(inst.settings.forced_root_block), node);
252
+ else
253
+ dom.insertAfter(dom.create('br', {'data-mce-bogus': '1'}), node);
254
+ }
247
255
 
248
256
  try {
249
257
  // IE9 might fail to do this selection
@@ -256,7 +264,7 @@ function insertTable() {
256
264
  });
257
265
 
258
266
  inst.addVisual();
259
- inst.execCommand('mceEndUndoLevel');
267
+ inst.execCommand('mceEndUndoLevel', false, {}, {skip_undo: true});
260
268
 
261
269
  tinyMCEPopup.close();
262
270
  }
@@ -299,6 +307,15 @@ function init() {
299
307
  var formObj = document.forms[0];
300
308
  var elm = dom.getParent(inst.selection.getNode(), "table");
301
309
 
310
+ // Hide advanced fields that isn't available in the schema
311
+ tinymce.each("summary id rules dir style frame".split(" "), function(name) {
312
+ var tr = tinyMCEPopup.dom.getParent(name, "tr") || tinyMCEPopup.dom.getParent("t" + name, "tr");
313
+
314
+ if (tr && !tinyMCEPopup.editor.schema.isValid("table", name)) {
315
+ tr.style.display = 'none';
316
+ }
317
+ });
318
+
302
319
  action = tinyMCEPopup.getWindowArg('action');
303
320
 
304
321
  if (!action)
@@ -1 +1 @@
1
- tinyMCE.addI18n('de.table_dlg',{"rules_border":"alle 4 Seiten (Border)","rules_box":"alle 4 Seiten (Box)","rules_vsides":"links und rechts","rules_rhs":"nur rechts","rules_lhs":"nur links","rules_hsides":"oben und unten","rules_below":"nur unten","rules_above":"nur oben","rules_void":"keins",rules:"Gitter","frame_all":"zwischen allen Zellen","frame_cols":"zwischen Spalten","frame_rows":"zwischen Zeilen","frame_groups":"zwischen Gruppen","frame_none":"keine",frame:"Rahmen",caption:"Beschriftung der Tabelle","missing_scope":"Wollen Sie wirklich keine Beziehung f\u00fcr diese \u00dcberschrift angeben? Benutzer mit k\u00f6rperlichen Einschr\u00e4nkungen k\u00f6nnten Schwierigkeiten haben, den Inhalt der Tabelle zu verstehen.","cell_limit":"Sie haben die maximale Zellenzahl von {$cells} \u00fcberschritten.","row_limit":"Sie haben die maximale Zeilenzahl von {$rows} \u00fcberschritten.","col_limit":"Sie haben die maximale Spaltenzahl von {$cols} \u00fcberschritten.",colgroup:"Horizontal gruppieren",rowgroup:"Vertikal gruppieren",scope:"Bezug",tfoot:"Tabellenfu\u00df",tbody:"Tabelleninhalt",thead:"Tabellenkopf","row_all":"Alle Zeilen ver\u00e4ndern","row_even":"Gerade Zeilen ver\u00e4ndern","row_odd":"Ungerade Zeilen ver\u00e4ndern","row_row":"Diese Zeile ver\u00e4ndern","cell_all":"Alle Zellen der Tabelle ver\u00e4ndern","cell_row":"Alle Zellen in dieser Zeile ver\u00e4ndern","cell_cell":"Diese Zelle ver\u00e4ndern",th:"\u00dcberschrift",td:"Textzelle",summary:"Zusammenfassung",bgimage:"Hintergrundbild",rtl:"Rechts nach links",ltr:"Links nach rechts",mime:"MIME-Type des Inhalts",langcode:"Sprachcode",langdir:"Schriftrichtung",style:"Format",id:"ID","merge_cells_title":"Zellen vereinen",bgcolor:"Hintergrundfarbe",bordercolor:"Rahmenfarbe","align_bottom":"Unten","align_top":"Oben",valign:"Vertikale Ausrichtung","cell_type":"Zellentyp","cell_title":"Eigenschaften der Zelle","row_title":"Eigenschaften der Zeile","align_middle":"Mittig","align_right":"Rechts","align_left":"Links","align_default":"Standard",align:"Ausrichtung",border:"Rahmen",cellpadding:"Abstand innerhalb der Zellen",cellspacing:"Zellenabstand",rows:"Zeilen",cols:"Spalten",height:"H\u00f6he",width:"Breite",title:"Tabelle einf\u00fcgen/bearbeiten",rowtype:"Gruppierung","advanced_props":"Erweiterte Einstellungen","general_props":"Allgemeine Einstellungen","advanced_tab":"Erweitert","general_tab":"Allgemein","cell_col":"Alle Zellen in dieser Spalte aktualisieren"});
1
+ tinyMCE.addI18n('de.table_dlg',{"rules_border":"alle 4 Seiten (Border)","rules_box":"alle 4 Seiten (Box)","rules_vsides":"links und rechts","rules_rhs":"nur rechts","rules_lhs":"nur links","rules_hsides":"oben und unten","rules_below":"nur unten","rules_above":"nur oben","rules_void":"keins",rules:"Gitter","frame_all":"zwischen allen Zellen","frame_cols":"zwischen Spalten","frame_rows":"zwischen Zeilen","frame_groups":"zwischen Gruppen","frame_none":"keine",frame:"Rahmen",caption:"Beschriftung der Tabelle","missing_scope":"Soll f\u00fcr diese \u00dcberschrift wirklich kein Bereich angegeben werden? Benutzer mit k\u00f6rperlichen Einschr\u00e4nkungen k\u00f6nnten Schwierigkeiten haben, den Inhalt der Tabelle zu verstehen.","cell_limit":"Die maximale Zellenzahl von {$cells} wurde \u00fcberschritten.","row_limit":"Die maximale Zeilenzahl von {$rows} wurde \u00fcberschritten.","col_limit":"Die maximale Spaltenzahl von {$cols} wurde \u00fcberschritten.",colgroup:"Horizontal gruppieren",rowgroup:"Vertikal gruppieren",scope:"Bezug",tfoot:"Tabellenfu\u00df",tbody:"Tabelleninhalt",thead:"Tabellenkopf","row_all":"Alle Zeilen ver\u00e4ndern","row_even":"Gerade Zeilen ver\u00e4ndern","row_odd":"Ungerade Zeilen ver\u00e4ndern","row_row":"Diese Zeile ver\u00e4ndern","cell_all":"Alle Zellen der Tabelle ver\u00e4ndern","cell_row":"Alle Zellen in dieser Zeile ver\u00e4ndern","cell_cell":"Diese Zelle ver\u00e4ndern",th:"\u00dcberschrift",td:"Textzelle",summary:"Zusammenfassung",bgimage:"Hintergrundbild",rtl:"Rechts nach links",ltr:"Links nach rechts",mime:"MIME-Type des Inhalts",langcode:"Sprachcode",langdir:"Schriftrichtung",style:"Format",id:"ID","merge_cells_title":"Zellen vereinen",bgcolor:"Hintergrundfarbe",bordercolor:"Rahmenfarbe","align_bottom":"Unten","align_top":"Oben",valign:"Vertikale Ausrichtung","cell_type":"Zellentyp","cell_title":"Eigenschaften der Zelle","row_title":"Eigenschaften der Zeile","align_middle":"Mittig","align_right":"Rechts","align_left":"Links","align_default":"Standard",align:"Ausrichtung",border:"Rahmen",cellpadding:"Abstand innerhalb der Zellen",cellspacing:"Zellenabstand",rows:"Zeilen",cols:"Spalten",height:"H\u00f6he",width:"Breite",title:"Tabelle einf\u00fcgen/bearbeiten",rowtype:"Gruppierung","advanced_props":"Erweiterte Einstellungen","general_props":"Allgemeine Einstellungen","advanced_tab":"Erweitert","general_tab":"Allgemein","cell_col":"Alle Zellen in dieser Spalte aktualisieren"});
@@ -0,0 +1 @@
1
+ tinyMCE.addI18n('nb.table_dlg',{"rules_border":"ramme","rules_box":"boks","rules_vsides":"vsides","rules_rhs":"rhs","rules_lhs":"lhs","rules_hsides":"hsider","rules_below":"under","rules_above":"over","rules_void":"ingen",rules:"Streker","frame_all":"alle","frame_cols":"kolonner","frame_rows":"rader","frame_groups":"grupper","frame_none":"ingen",frame:"Ramme",caption:"Tabelloverskrift","missing_scope":"Er du sikker p\u00e5 at du vil fortsette uten \u00e5 angi et omr\u00e5de for denne overskrifscellen? Uten dette kan det bli vanskelig for enkelte funksjonshemmede brukere \u00e5 forst\u00e5 innholdet eller dataene som blir presentert i tabellen.","cell_limit":"Du har overskredet maksimalt antall celler p\u00e5 {$cells}.","row_limit":"Du har overskredet maksimalt antall rader p\u00e5 {$rows}.","col_limit":"Du har overskredet maksimalt antall kolonner p\u00e5 {$cols}.",colgroup:"Kolonnegruppe",rowgroup:"Radgruppe",scope:"Omr\u00e5de",tfoot:"Tabellfot",tbody:"Tabellkropp",thead:"Tabellhode","row_all":"Oppdater alle rader","row_even":"Oppdater partallsrader","row_odd":"Oppdater oddetallsrader","row_row":"Oppdater aktuell rad","cell_all":"Oppdater alle celler i tabellen","cell_row":"Oppdater alle celler i raden","cell_cell":"Oppdater aktuell celle",th:"Overskrift",td:"Data",summary:"Sammendrag",bgimage:"Bakgrunnsbilde",rtl:"H\u00f8yre mot venstre",ltr:"Venstre mot h\u00f8yre",mime:"M\u00e5lets MIME-type",langcode:"Spr\u00e5kkode",langdir:"Skriftretning",style:"Stil",id:"Id","merge_cells_title":"Sl\u00e5 sammen celler",bgcolor:"Bakgrunn",bordercolor:"Rammefarge","align_bottom":"Bunn","align_top":"Topp",valign:"Vertikal justering","cell_type":"Celletype","cell_title":"Celleegenskaper","row_title":"Radegenskaper","align_middle":"Midtstilt","align_right":"H\u00f8yre","align_left":"Venstre","align_default":"Standard",align:"Justering",border:"Ramme",cellpadding:"Cellefylling",cellspacing:"Celleavstand",rows:"Rader",cols:"Kolonner",height:"H\u00f8yde",width:"Bredde",title:"Sett inn / rediger tabell",rowtype:"Rad i tabell","advanced_props":"Generelle egenskaper","general_props":"Generelt","advanced_tab":"Avansert","general_tab":"Generelt","cell_col":"Oppdater alle celler i kolonnen"});
@@ -28,7 +28,7 @@
28
28
  <tr>
29
29
  <td><label for="rowtype">{#table_dlg.rowtype}</label></td>
30
30
  <td class="col2">
31
- <select id="rowtype" name="rowtype" class="mceFocus">
31
+ <select id="rowtype" name="rowtype" class="mceFocus" onChange="changedRowType();">
32
32
  <option value="thead">{#table_dlg.thead}</option>
33
33
  <option value="tbody">{#table_dlg.tbody}</option>
34
34
  <option value="tfoot">{#table_dlg.tfoot}</option>
@@ -83,8 +83,8 @@
83
83
 
84
84
  <table role="presentation" border="0" cellpadding="0" cellspacing="4">
85
85
  <tr>
86
- <td class="column1"><label for="id">{#table_dlg.id}</label></td>
87
- <td><input id="id" name="id" type="text" value="" style="width: 200px" /></td>
86
+ <td class="column1"><label for="id">{#table_dlg.id}</label></td>
87
+ <td><input id="id" name="id" type="text" value="" style="width: 200px" /></td>
88
88
  </tr>
89
89
 
90
90
  <tr>
@@ -93,25 +93,25 @@
93
93
  </tr>
94
94
 
95
95
  <tr>
96
- <td class="column1"><label for="dir">{#table_dlg.langdir}</label></td>
96
+ <td class="column1"><label for="dir">{#table_dlg.langdir}</label></td>
97
97
  <td>
98
- <select id="dir" name="dir" style="width: 200px">
99
- <option value="">{#not_set}</option>
100
- <option value="ltr">{#table_dlg.ltr}</option>
101
- <option value="rtl">{#table_dlg.rtl}</option>
98
+ <select id="dir" name="dir" style="width: 200px">
99
+ <option value="">{#not_set}</option>
100
+ <option value="ltr">{#table_dlg.ltr}</option>
101
+ <option value="rtl">{#table_dlg.rtl}</option>
102
102
  </select>
103
- </td>
103
+ </td>
104
104
  </tr>
105
105
 
106
106
  <tr>
107
- <td class="column1"><label for="lang">{#table_dlg.langcode}</label></td>
107
+ <td class="column1"><label for="lang">{#table_dlg.langcode}</label></td>
108
108
  <td>
109
109
  <input id="lang" name="lang" type="text" value="" style="width: 200px" />
110
- </td>
110
+ </td>
111
111
  </tr>
112
112
 
113
113
  <tr>
114
- <td class="column1"><label for="backgroundimage">{#table_dlg.bgimage}</label></td>
114
+ <td class="column1"><label for="backgroundimage">{#table_dlg.bgimage}</label></td>
115
115
  <td>
116
116
  <table role="presentation" border="0" cellpadding="0" cellspacing="0">
117
117
  <tr>
@@ -119,11 +119,11 @@
119
119
  <td id="backgroundimagebrowsercontainer">&nbsp;</td>
120
120
  </tr>
121
121
  </table>
122
- </td>
122
+ </td>
123
123
  </tr>
124
124
 
125
125
  <tr>
126
- <td class="column1"><label for="bgcolor" id="bgcolor_label">{#table_dlg.bgcolor}</label></td>
126
+ <td class="column1"><label for="bgcolor" id="bgcolor_label">{#table_dlg.bgcolor}</label></td>
127
127
  <td>
128
128
  <span role="group" aria-labelledby="bgcolor_label">
129
129
  <table role="presentation" border="0" cellpadding="0" cellspacing="0">
@@ -133,7 +133,7 @@
133
133
  </tr>
134
134
  </table>
135
135
  </span>
136
- </td>
136
+ </td>
137
137
  </tr>
138
138
  </table>
139
139
  </fieldset>
@@ -0,0 +1 @@
1
+ tinyMCE.addI18n('de.template_dlg',{title:"Vorlagen",label:"Vorlage","desc_label":"Beschreibung",desc:"Inhalt aus Vorlage einf\u00fcgen",select:"Vorlage ausw\u00e4hlen",preview:"Vorschau",warning:"Warnung: Eine Vorlage mit einer anderen zu aktualisieren kann zu einem Datenverlust f\u00fchren!","mdate_format":"%Y-%m-%d %H:%M:%S","cdate_format":"%Y-%m-%d %H:%M:%S","months_long":"Januar,Februar,M\u00e4rz,April,Mai,Juni,Juli,August,September,Oktober,November,Dezember","months_short":"Jan,Feb,M\u00e4r,Apr,Mai,Juni,Juli,Aug,Sept,Okt,Nov,Dez","day_long":"Sonntag,Montag,Dienstag,Mittwoch,Donnerstag,Freitag,Samstag,Sonntag","day_short":"So,Mo,Di,Mi,Do,Fr,Sa,So"});
@@ -0,0 +1 @@
1
+ tinyMCE.addI18n('es.template_dlg',{title:"Plantillas",label:"Plantilla","desc_label":"Descripci\u00f3n",desc:"Insertar contenido de plantilla predefinida",select:"Elegir plantilla",preview:"Vista previa",warning:"Cuidado: Actualizar una plantilla con otra puede causar p\u00e9rdida de datos.","mdate_format":"%d-%m-%Y %H:%M:%S","cdate_format":"%d-%m-%Y %H:%M:%S","months_long":"Enero,Febrero,Marzo,Abril,Mayo,Junio,Julio,Agosto,Septiembre,Octubre,Noviembre,Diciembre","months_short":"Ene,Feb,Mar,Abr,May,Jun,Jul,Ago,Sep,Oct,Nov,Dic","day_long":"Domingo,Lunes,Martes,Mi\u00e9rcoles,Jueves,Viernes,S\u00e1bado,Domingo","day_short":"Dom,Lun,Mar,Mie,Jue,Vie,Sab,Dom"});
@@ -0,0 +1 @@
1
+ tinyMCE.addI18n('et.template_dlg',{title:"\u0160abloonid",label:"\u0160abloon","desc_label":"Kirjeldus",desc:"Sisesta eeldefineeritud \u0161ablooni sisu",select:"Vali \u0161abloon",preview:"Eelvaade",warning:"Hoiatus: \u0160ablooni uuendamine teistsugusega v\u00f5ib kaasa tuua andmete kaotsiminemist.","mdate_format":"%Y-%m-%d %H:%M:%S","cdate_format":"%Y-%m-%d %H:%M:%S","months_long":"Jaanuar,Veebruar,M\u00e4rts,Aprill,Mai,Juuni,Juuli,August,September,Oktoober,November,Detsember","months_short":"Jaan,Veeb,M\u00e4rts,Apr,Mai,Juuni,Juuli,Aug,Sep,Okt,Nov,Dets","day_long":"P\u00fchap\u00e4ev,Esmasp\u00e4ev,Teisip\u00e4ev,Kolmap\u00e4ev,Neljap\u00e4ev,reede,Laup\u00e4ev,P\u00fchap\u00e4ev","day_short":"P,E,T,K,N,R,L,P"});
@@ -0,0 +1 @@
1
+ tinyMCE.addI18n('fr.template_dlg',{title:"Mod\u00e8les",label:"Mod\u00e8le","desc_label":"Description",desc:"Ins\u00e9rer un mod\u00e8le pr\u00e9d\u00e9fini",select:"Choisir un mod\u00e8le",preview:"Pr\u00e9visualisation",warning:"Attention : Mettre \u00e0 jour un mod\u00e8le pour un autre peut entra\u00eener une perte de donn\u00e9es !","mdate_format":"%d/%m/%Y %H:%M:%S","cdate_format":"%d/%m/%Y %H:%M:%S","months_long":"Janvier,F\u00e9vrier,Mars,Avril,Mai,Juin,Juillet,Ao\u00fbt,Septembre,Octobre,Novembre,D\u00e9cembre","months_short":"Jan,F\u00e9v,Mar,Avr,Mai,Juin,Juil,Ao\u00fbt,Sep,Oct,Nov,D\u00e9c","day_long":"Dimanche,Lundi,Mardi,Mercredi,Jeudi,Vendredi,Samedi,Dimanche","day_short":"Dim,Lun,Mar,Mer,Jeu,Ven,Sam,Dim"});
@@ -0,0 +1 @@
1
+ tinyMCE.addI18n('it.template_dlg',{title:"Modelli",label:"Modello","desc_label":"Descrizione",desc:"Inserisci contenuto da modello predefinito",select:"Seleziona un modello",preview:"Anteprima",warning:"Attenzione: Aggiornare un modello con un altro differente pu\u00f2 causare perdite di dati.","mdate_format":"%Y-%m-%d %H:%M:%S","cdate_format":"%Y-%m-%d %H:%M:%S","months_long":"Gennaio,Febbraio,Marzo,Aprile,Maggio,Giugno,Luglio,Agosto,Settembre,Ottobre,Novembre,Dicembre","months_short":"Gen,Feb,Mar,Apr,Mag,Giu,Lug,Ago,Set,Ott,Nov,Dic","day_long":"Domenica,Luned\u00ec,Marted\u00ec,Mercoled\u00ec,Gioved\u00ec,Venerd\u00ec,Sabato,Domenica","day_short":"Dom,Lun,Mar,Mer,Gio,Ven,Sab,Dom"});
@@ -0,0 +1 @@
1
+ tinyMCE.addI18n('nb.template_dlg',{title:"Maler",label:"Mal","desc_label":"Beskrivelse",desc:"Sett inn forh\u00e5ndsdefinert malinnhold",select:"Velg en mal",preview:"Forh\u00e5ndsvisning",warning:"Advarsel: Utskifting av en mal med en annen kan f\u00f8re til at data g\u00e5r tapt.","mdate_format":"%Y-%m-%d %H:%M:%S","cdate_format":"%Y-%m-%d %H:%M:%S","months_long":"januar,februar,mars,april,mai,juni,juli,august,september,oktober,november,desember","months_short":"jan,feb,mar,apr,mai,jun,jul,aug,sep,okt,nov,des","day_long":"s\u00f8ndag,mandag,tirsdag,onsdag,torsdag,fredag,l\u00f8rdag,s\u00f8ndag","day_short":"s\u00f8n,man,tir,ons,tor,fre,l\u00f8r,s\u00f8n"});
@@ -0,0 +1 @@
1
+ tinyMCE.addI18n('nl.template_dlg',{title:"Sjablonen",label:"Sjabloon","desc_label":"Beschrijving",desc:"Voorgedefinieerd sjabloon invoegen",select:"Selecteer een sjabloon",preview:"Voorbeeld",warning:"Waarschuwing: het bijwerken van een sjabloon met een andere kan het verlies van informatie tot gevolg hebben.","mdate_format":"%d-%m-%Y %H:%M:%S","cdate_format":"%d-%m-%Y %H:%M:%S","months_long":"Januari,Februari,Maart,April,Mei,Juni,Juli,Augustus,September,Oktober,November,December","months_short":"Jan,Feb,Mar,Apr,Mei,Jun,Jul,Aug,Sep,Okt,Nov,Dec","day_long":"Zondag,Maandag,Dinsdag,Woensdag,Donderdag,Vrijdag,Zaterdag,Zondag","day_short":"zo,ma,di,wo,do,vr,za,zo"});
@@ -0,0 +1 @@
1
+ tinyMCE.addI18n('pt.template_dlg',{title:"Templates",label:"Template","desc_label":"Descri\u00e7\u00e3o",desc:"Inserir template",select:"Selecionar template",preview:"Pr\u00e9-Visualiza\u00e7\u00e3o",warning:"Aten\u00e7\u00e3o: Atualizar um template com outro pode causar a perda de dados.","mdate_format":"%d-%m-%Y %H:%M:%S","cdate_format":"%d-%m-%Y %H:%M:%S","months_long":"Janeiro,Fevereiro,Mar\u00e7o,Abril,Maio,Junho,Julho,Agosto,Setembro,Outubro,Novembro,Dezembro","months_short":"Jan,Fev,Mar,Abr,Mai,Jun,Jul,Ago,Set,Out,Nov,Dez","day_long":"Domingo,Segunda-feira,Ter\u00e7a-feira,Quarta-feira,Quinta-feira,Sexta-feira,S\u00e1bado,Domingo","day_short":"Dom,Seg,Ter,Qua,Qui,Sex,Sab,Dom"});
@@ -0,0 +1 @@
1
+ tinyMCE.addI18n('ru.template_dlg',{title:"\u0428\u0430\u0431\u043b\u043e\u043d\u044b",label:"\u0428\u0430\u0431\u043b\u043e\u043d","desc_label":"\u041e\u043f\u0438\u0441\u0430\u043d\u0438\u0435",desc:"\u0412\u0441\u0442\u0430\u0432\u0438\u0442\u044c \u0448\u0430\u0431\u043b\u043e\u043d",select:"\u0412\u044b\u0431\u0435\u0440\u0438\u0442\u0435 \u0448\u0430\u0431\u043b\u043e\u043d",preview:"\u041f\u0440\u043e\u0441\u043c\u043e\u0442\u0440",warning:"\u0412\u043d\u0438\u043c\u0430\u043d\u0438\u0435: \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u0435 \u0448\u0430\u0431\u043b\u043e\u043d\u0430 \u043c\u043e\u0436\u0435\u0442 \u043f\u0440\u0438\u0432\u0435\u0441\u0442\u0438 \u043a \u043f\u043e\u0442\u0435\u0440\u044f\u043c \u0434\u0430\u043d\u043d\u044b\u0445/","mdate_format":"%Y.%m.%d %H:%M:%S","cdate_format":"%Y.%m.%d %H:%M:%S","months_long":"\u044f\u043d\u0432\u0430\u0440\u044c,\u0444\u0435\u0432\u0440\u0430\u043b\u044c,\u043c\u0430\u0440\u0442,\u0430\u043f\u0440\u0435\u043b\u044c,\u043c\u0430\u0439,\u0438\u044e\u043d\u044c,\u0438\u044e\u043b\u044c,\u0430\u0432\u0433\u0443\u0441\u0442,\u0441\u0435\u043d\u0442\u044f\u0431\u0440\u044c,\u043e\u043a\u0442\u044f\u0431\u0440\u044c,\u043d\u043e\u044f\u0431\u0440\u044c,\u0434\u0435\u043a\u0430\u0431\u0440\u044c","months_short":"\u044f\u043d\u0432,\u0444\u0435\u0432,\u043c\u0430\u0440\u0442,\u0430\u043f\u0440,\u043c\u0430\u0439,\u0438\u044e\u043d\u044c,\u0438\u044e\u043b\u044c,\u0430\u0432\u0433,\u0441\u0435\u043d,\u043e\u043a\u0442,\u043d\u043e\u044f,\u0434\u0435\u043a","day_long":"\u0432\u043e\u0441\u043a\u0440\u0435\u0441\u0435\u043d\u044c\u0435,\u043f\u043e\u043d\u0435\u0434\u0435\u043b\u044c\u043d\u0438\u043a,\u0432\u0442\u043e\u0440\u043d\u0438\u043a,\u0441\u0440\u0435\u0434\u0430,\u0447\u0435\u0442\u0432\u0435\u0440\u0433,\u043f\u044f\u0442\u043d\u0438\u0446\u0443,\u0441\u0443\u0431\u0431\u043e\u0442\u0430,\u0432\u043e\u0441\u043a\u0440\u0435\u0441\u0435\u043d\u044c\u0435","day_short":"\u0432\u0441,\u043f\u043d,\u0432\u0442,\u0441\u0440,\u0447\u0442,\u043f\u0442,\u0441\u0431,\u0432\u0441"});
@@ -0,0 +1,21 @@
1
+ p, h1, h2, h3, h4, h5, h6, hgroup, aside, div, section, article, blockquote, address, pre, figure {display: block; padding-top: 10px; border: 1px dashed #BBB; background: transparent no-repeat}
2
+ p, h1, h2, h3, h4, h5, h6, hgroup, aside, div, section, article, address, pre, figure {margin-left: 3px}
3
+ section, article, address, hgroup, aside, figure {margin: 0 0 1em 3px}
4
+
5
+ p {background-image: url(data:image/gif;base64,R0lGODlhCQAJAJEAAAAAAP///7u7u////yH5BAEAAAMALAAAAAAJAAkAAAIQnG+CqCN/mlyvsRUpThG6AgA7)}
6
+ h1 {background-image: url(data:image/gif;base64,R0lGODlhDQAKAIABALu7u////yH5BAEAAAEALAAAAAANAAoAAAIXjI8GybGu1JuxHoAfRNRW3TWXyF2YiRUAOw==)}
7
+ h2 {background-image: url(data:image/gif;base64,R0lGODlhDgAKAIABALu7u////yH5BAEAAAEALAAAAAAOAAoAAAIajI8Hybbx4oOuqgTynJd6bGlWg3DkJzoaUAAAOw==)}
8
+ h3 {background-image: url(data:image/gif;base64,R0lGODlhDgAKAIABALu7u////yH5BAEAAAEALAAAAAAOAAoAAAIZjI8Hybbx4oOuqgTynJf2Ln2NOHpQpmhAAQA7)}
9
+ h4 {background-image: url(data:image/gif;base64,R0lGODlhDgAKAIABALu7u////yH5BAEAAAEALAAAAAAOAAoAAAIajI8HybbxInR0zqeAdhtJlXwV1oCll2HaWgAAOw==)}
10
+ h5 {background-image: url(data:image/gif;base64,R0lGODlhDgAKAIABALu7u////yH5BAEAAAEALAAAAAAOAAoAAAIajI8HybbxIoiuwjane4iq5GlW05GgIkIZUAAAOw==)}
11
+ h6 {background-image: url(data:image/gif;base64,R0lGODlhDgAKAIABALu7u////yH5BAEAAAEALAAAAAAOAAoAAAIajI8HybbxIoiuwjan04jep1iZ1XRlAo5bVgAAOw==)}
12
+ div {background-image: url(data:image/gif;base64,R0lGODlhEgAKAIABALu7u////yH5BAEAAAEALAAAAAASAAoAAAIfjI9poI0cgDywrhuxfbrzDEbQM2Ei5aRjmoySW4pAAQA7)}
13
+ section {background-image: url(data:image/gif;base64,R0lGODlhKAAKAIABALu7u////yH5BAEAAAEALAAAAAAoAAoAAAI5jI+pywcNY3sBWHdNrplytD2ellDeSVbp+GmWqaDqDMepc8t17Y4vBsK5hDyJMcI6KkuYU+jpjLoKADs=)}
14
+ article {background-image: url(data:image/gif;base64,R0lGODlhKgAKAIABALu7u////yH5BAEAAAEALAAAAAAqAAoAAAI6jI+pywkNY3wG0GBvrsd2tXGYSGnfiF7ikpXemTpOiJScasYoDJJrjsG9gkCJ0ag6KhmaIe3pjDYBBQA7)}
15
+ blockquote {background-image: url(data:image/gif;base64,R0lGODlhPgAKAIABALu7u////yH5BAEAAAEALAAAAAA+AAoAAAJPjI+py+0Knpz0xQDyuUhvfoGgIX5iSKZYgq5uNL5q69asZ8s5rrf0yZmpNkJZzFesBTu8TOlDVAabUyatguVhWduud3EyiUk45xhTTgMBBQA7)}
16
+ address {background-image: url(data:image/gif;base64,R0lGODlhLQAKAIABALu7u////yH5BAEAAAEALAAAAAAtAAoAAAI/jI+pywwNozSP1gDyyZcjb3UaRpXkWaXmZW4OqKLhBmLs+K263DkJK7OJeifh7FicKD9A1/IpGdKkyFpNmCkAADs=)}
17
+ pre {background-image: url(data:image/gif;base64,R0lGODlhFQAKAIABALu7uwAAACH5BAEAAAEALAAAAAAVAAoAAAIjjI+ZoN0cgDwSmnpz1NCueYERhnibZVKLNnbOq8IvKpJtVQAAOw==)}
18
+ hgroup {background-image: url(data:image/gif;base64,R0lGODlhJwAKAIABALu7uwAAACH5BAEAAAEALAAAAAAnAAoAAAI3jI+pywYNI3uB0gpsRtt5fFnfNZaVSYJil4Wo03Hv6Z62uOCgiXH1kZIIJ8NiIxRrAZNMZAtQAAA7)}
19
+ aside {background-image: url(data:image/gif;base64,R0lGODlhHgAKAIABAKqqqv///yH5BAEAAAEALAAAAAAeAAoAAAItjI+pG8APjZOTzgtqy7I3f1yehmQcFY4WKZbqByutmW4aHUd6vfcVbgudgpYCADs=)}
20
+ figure {background-image: url(data:image/gif;base64,R0lGODlhJAAKAIAAALu7u////yH5BAEAAAEALAAAAAAkAAoAAAI0jI+py+2fwAHUSFvD3RlvG4HIp4nX5JFSpnZUJ6LlrM52OE7uSWosBHScgkSZj7dDKnWAAgA7)}
21
+ figcaption {border: 1px dashed #BBB}
@@ -0,0 +1 @@
1
+ (function(){tinymce.create("tinymce.plugins.VisualBlocks",{init:function(a,b){var c;if(!window.NodeList){return}a.addCommand("mceVisualBlocks",function(){var e=a.dom,d;if(!c){c=e.uniqueId();d=e.create("link",{id:c,rel:"stylesheet",href:b+"/css/visualblocks.css"});a.getDoc().getElementsByTagName("head")[0].appendChild(d)}else{d=e.get(c);d.disabled=!d.disabled}a.controlManager.setActive("visualblocks",!d.disabled)});a.addButton("visualblocks",{title:"visualblocks.desc",cmd:"mceVisualBlocks"});a.onInit.add(function(){if(a.settings.visualblocks_default_state){a.execCommand("mceVisualBlocks",false,null,{skip_focus:true})}})},getInfo:function(){return{longname:"Visual blocks",author:"Moxiecode Systems AB",authorurl:"http://tinymce.moxiecode.com",infourl:"http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/visualblocks",version:tinymce.majorVersion+"."+tinymce.minorVersion}}});tinymce.PluginManager.add("visualblocks",tinymce.plugins.VisualBlocks)})();
@@ -0,0 +1,63 @@
1
+ /**
2
+ * editor_plugin_src.js
3
+ *
4
+ * Copyright 2012, 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() {
12
+ tinymce.create('tinymce.plugins.VisualBlocks', {
13
+ init : function(ed, url) {
14
+ var cssId;
15
+
16
+ // We don't support older browsers like IE6/7 and they don't provide prototypes for DOM objects
17
+ if (!window.NodeList) {
18
+ return;
19
+ }
20
+
21
+ ed.addCommand('mceVisualBlocks', function() {
22
+ var dom = ed.dom, linkElm;
23
+
24
+ if (!cssId) {
25
+ cssId = dom.uniqueId();
26
+ linkElm = dom.create('link', {
27
+ id: cssId,
28
+ rel : 'stylesheet',
29
+ href : url + '/css/visualblocks.css'
30
+ });
31
+
32
+ ed.getDoc().getElementsByTagName('head')[0].appendChild(linkElm);
33
+ } else {
34
+ linkElm = dom.get(cssId);
35
+ linkElm.disabled = !linkElm.disabled;
36
+ }
37
+
38
+ ed.controlManager.setActive('visualblocks', !linkElm.disabled);
39
+ });
40
+
41
+ ed.addButton('visualblocks', {title : 'visualblocks.desc', cmd : 'mceVisualBlocks'});
42
+
43
+ ed.onInit.add(function() {
44
+ if (ed.settings.visualblocks_default_state) {
45
+ ed.execCommand('mceVisualBlocks', false, null, {skip_focus : true});
46
+ }
47
+ });
48
+ },
49
+
50
+ getInfo : function() {
51
+ return {
52
+ longname : 'Visual blocks',
53
+ author : 'Moxiecode Systems AB',
54
+ authorurl : 'http://tinymce.moxiecode.com',
55
+ infourl : 'http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/visualblocks',
56
+ version : tinymce.majorVersion + "." + tinymce.minorVersion
57
+ };
58
+ }
59
+ });
60
+
61
+ // Register plugin
62
+ tinymce.PluginManager.add('visualblocks', tinymce.plugins.VisualBlocks);
63
+ })();
@@ -1 +1 @@
1
- (function(){tinymce.create("tinymce.plugins.WordCount",{block:0,id:null,countre:null,cleanre:null,init:function(a,b){var c=this,d=0;c.countre=a.getParam("wordcount_countregex",/[\w\u2019\'-]+/g);c.cleanre=a.getParam("wordcount_cleanregex",/[0-9.(),;:!?%#$?\'\"_+=\\\/-]*/g);c.id=a.id+"-word-count";a.onPostRender.add(function(f,e){var g,h;h=f.getParam("wordcount_target_id");if(!h){g=tinymce.DOM.get(f.id+"_path_row");if(g){tinymce.DOM.add(g.parentNode,"div",{style:"float: right"},f.getLang("wordcount.words","Words: ")+'<span id="'+c.id+'">0</span>')}}else{tinymce.DOM.add(h,"span",{},'<span id="'+c.id+'">0</span>')}});a.onInit.add(function(e){e.selection.onSetContent.add(function(){c._count(e)});c._count(e)});a.onSetContent.add(function(e){c._count(e)});a.onKeyUp.add(function(f,g){if(g.keyCode==d){return}if(13==g.keyCode||8==d||46==d){c._count(f)}d=g.keyCode})},_getCount:function(c){var a=0;var b=c.getContent({format:"raw"});if(b){b=b.replace(/\.\.\./g," ");b=b.replace(/<.[^<>]*?>/g," ").replace(/&nbsp;|&#160;/gi," ");b=b.replace(/(\w+)(&.+?;)+(\w+)/,"$1$3").replace(/&.+?;/g," ");b=b.replace(this.cleanre,"");var d=b.match(this.countre);if(d){a=d.length}}return a},_count:function(a){var b=this;if(b.block){return}b.block=1;setTimeout(function(){if(!a.destroyed){var c=b._getCount(a);tinymce.DOM.setHTML(b.id,c.toString());setTimeout(function(){b.block=0},2000)}},1)},getInfo:function(){return{longname:"Word Count plugin",author:"Moxiecode Systems AB",authorurl:"http://tinymce.moxiecode.com",infourl:"http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/wordcount",version:tinymce.majorVersion+"."+tinymce.minorVersion}}});tinymce.PluginManager.add("wordcount",tinymce.plugins.WordCount)})();
1
+ (function(){tinymce.create("tinymce.plugins.WordCount",{block:0,id:null,countre:null,cleanre:null,init:function(c,d){var e=this,f=0,g=tinymce.VK;e.countre=c.getParam("wordcount_countregex",/[\w\u2019\'-]+/g);e.cleanre=c.getParam("wordcount_cleanregex",/[0-9.(),;:!?%#$?\'\"_+=\\\/-]*/g);e.update_rate=c.getParam("wordcount_update_rate",2000);e.update_on_delete=c.getParam("wordcount_update_on_delete",false);e.id=c.id+"-word-count";c.onPostRender.add(function(i,h){var j,k;k=i.getParam("wordcount_target_id");if(!k){j=tinymce.DOM.get(i.id+"_path_row");if(j){tinymce.DOM.add(j.parentNode,"div",{style:"float: right"},i.getLang("wordcount.words","Words: ")+'<span id="'+e.id+'">0</span>')}}else{tinymce.DOM.add(k,"span",{},'<span id="'+e.id+'">0</span>')}});c.onInit.add(function(h){h.selection.onSetContent.add(function(){e._count(h)});e._count(h)});c.onSetContent.add(function(h){e._count(h)});function b(h){return h!==f&&(h===g.ENTER||f===g.SPACEBAR||a(f))}function a(h){return h===g.DELETE||h===g.BACKSPACE}c.onKeyUp.add(function(h,i){if(b(i.keyCode)||e.update_on_delete&&a(i.keyCode)){e._count(h)}f=i.keyCode})},_getCount:function(c){var a=0;var b=c.getContent({format:"raw"});if(b){b=b.replace(/\.\.\./g," ");b=b.replace(/<.[^<>]*?>/g," ").replace(/&nbsp;|&#160;/gi," ");b=b.replace(/(\w+)(&.+?;)+(\w+)/,"$1$3").replace(/&.+?;/g," ");b=b.replace(this.cleanre,"");var d=b.match(this.countre);if(d){a=d.length}}return a},_count:function(a){var b=this;if(b.block){return}b.block=1;setTimeout(function(){if(!a.destroyed){var c=b._getCount(a);tinymce.DOM.setHTML(b.id,c.toString());setTimeout(function(){b.block=0},b.update_rate)}},1)},getInfo:function(){return{longname:"Word Count plugin",author:"Moxiecode Systems AB",authorurl:"http://tinymce.moxiecode.com",infourl:"http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/wordcount",version:tinymce.majorVersion+"."+tinymce.minorVersion}}});tinymce.PluginManager.add("wordcount",tinymce.plugins.WordCount)})();
@@ -16,10 +16,12 @@
16
16
  cleanre : null,
17
17
 
18
18
  init : function(ed, url) {
19
- var t = this, last = 0;
19
+ var t = this, last = 0, VK = tinymce.VK;
20
20
 
21
21
  t.countre = ed.getParam('wordcount_countregex', /[\w\u2019\'-]+/g); // u2019 == &rsquo;
22
22
  t.cleanre = ed.getParam('wordcount_cleanregex', /[0-9.(),;:!?%#$?\'\"_+=\\\/-]*/g);
23
+ t.update_rate = ed.getParam('wordcount_update_rate', 2000);
24
+ t.update_on_delete = ed.getParam('wordcount_update_on_delete', false);
23
25
  t.id = ed.id + '-word-count';
24
26
 
25
27
  ed.onPostRender.add(function(ed, cm) {
@@ -49,12 +51,18 @@
49
51
  t._count(ed);
50
52
  });
51
53
 
52
- ed.onKeyUp.add(function(ed, e) {
53
- if (e.keyCode == last)
54
- return;
54
+ function checkKeys(key) {
55
+ return key !== last && (key === VK.ENTER || last === VK.SPACEBAR || checkDelOrBksp(last));
56
+ }
57
+
58
+ function checkDelOrBksp(key) {
59
+ return key === VK.DELETE || key === VK.BACKSPACE;
60
+ }
55
61
 
56
- if (13 == e.keyCode || 8 == last || 46 == last)
62
+ ed.onKeyUp.add(function(ed, e) {
63
+ if (checkKeys(e.keyCode) || t.update_on_delete && checkDelOrBksp(e.keyCode)) {
57
64
  t._count(ed);
65
+ }
58
66
 
59
67
  last = e.keyCode;
60
68
  });
@@ -94,7 +102,7 @@
94
102
  if (!ed.destroyed) {
95
103
  var tc = t._getCount(ed);
96
104
  tinymce.DOM.setHTML(t.id, tc.toString());
97
- setTimeout(function() {t.block = 0;}, 2000);
105
+ setTimeout(function() {t.block = 0;}, t.update_rate);
98
106
  }
99
107
  }, 1);
100
108
  },
@@ -0,0 +1 @@
1
+ tinyMCE.addI18n('nb.xhtmlxtras_dlg',{"attribs_title":"Sett inn / endre attributter","option_rtl":"H\u00f8yre mot venstre","option_ltr":"Venstre mot h\u00f8yre","insert_date":"Sett inn dato/tid",remove:"Fjern","title_cite_element":"Sitatelement","title_abbr_element":"Forkortelseselement","title_acronym_element":"Akronymelement","title_del_element":"Sletteelement","title_ins_element":"Innsettingselement","fieldset_events_tab":"Elementhendelser","fieldset_attrib_tab":"Elementattributter","fieldset_general_tab":"Generelle innstillinger","events_tab":"Hendelser","attrib_tab":"Attributter","general_tab":"Generelt","attribute_attrib_tab":"Attributter","attribute_events_tab":"Hendelser","attribute_label_accesskey":"Tilgangsn\u00f8kkel","attribute_label_tabindex":"Tabuleringsindeks","attribute_label_langcode":"Spr\u00e5k","attribute_option_rtl":"H\u00f8yre til venstre","attribute_option_ltr":"Venstre til h\u00f8yre","attribute_label_langdir":"Tekstretning","attribute_label_datetime":"Dato/tid","attribute_label_cite":"Sted","attribute_label_style":"Stil","attribute_label_class":"Klasse","attribute_label_id":"ID","attribute_label_title":"Tittel"});
@@ -62,12 +62,8 @@
62
62
 
63
63
  <div class="mceActionPanel">
64
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>
65
+ <input type="button" id="cancel" name="cancel" value="{#cancel}" onclick="tinyMCEPopup.close();"/>
66
+ <div id="preview_wrapper"><div id="previewblock"><label for="color">{#advanced_dlg.colorpicker_color}</label> <input id="color" type="text" size="8" class="text mceFocus" aria-required="true" /></div><span id="preview"></span></div>
71
67
  </div>
72
68
  </form>
73
69
  </body>
@@ -1 +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));
1
+ (function(h){var i=h.DOM,g=h.dom.Event,c=h.extend,f=h.each,a=h.util.Cookie,e,d=h.explode;function b(p,m){var k,l,o=p.dom,j="",n,r;previewStyles=p.settings.preview_styles;if(previewStyles===false){return""}if(!previewStyles){previewStyles="font-family font-size font-weight text-decoration text-transform color background-color"}function q(s){return s.replace(/%(\w+)/g,"")}k=m.block||m.inline||"span";l=o.create(k);f(m.styles,function(t,s){t=q(t);if(t){o.setStyle(l,s,t)}});f(m.attributes,function(t,s){t=q(t);if(t){o.setAttrib(l,s,t)}});f(m.classes,function(s){s=q(s);if(!o.hasClass(l,s)){o.addClass(l,s)}});o.setStyles(l,{position:"absolute",left:-65535});p.getBody().appendChild(l);n=o.getStyle(p.getBody(),"fontSize",true);n=/px$/.test(n)?parseInt(n,10):0;f(previewStyles.split(" "),function(s){var t=o.getStyle(l,s,true);if(s=="background-color"&&/transparent|rgba\s*\([^)]+,\s*0\)/.test(t)){t=o.getStyle(p.getBody(),s,true);if(o.toHex(t).toLowerCase()=="#ffffff"){return}}if(s=="font-size"){if(/em|%$/.test(t)){if(n===0){return}t=parseFloat(t,10)/(/%$/.test(t)?100:1);t=(t*n)+"px"}}j+=s+":"+t+";"});o.remove(l);return j}h.ThemeManager.requireLangPack("advanced");h.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(k,l){var m=this,n,j,p;m.editor=k;m.url=l;m.onResolveName=new h.util.Dispatcher(this);n=k.settings;k.forcedHighContrastMode=k.settings.detect_highcontrast&&m._isHighContrast();k.settings.skin=k.forcedHighContrastMode?"highcontrast":k.settings.skin;if(!n.theme_advanced_buttons1){n=c({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"},n)}m.settings=n=c({theme_advanced_path:true,theme_advanced_toolbar_location:"top",theme_advanced_blockformats:"p,address,pre,h1,h2,h3,h4,h5,h6",theme_advanced_toolbar_align:"left",theme_advanced_statusbar_location:"bottom",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:k.settings.readonly},n);if(!n.font_size_style_values){n.font_size_style_values="8pt,10pt,12pt,14pt,18pt,24pt,36pt"}if(h.is(n.theme_advanced_font_sizes,"string")){n.font_size_style_values=h.explode(n.font_size_style_values);n.font_size_classes=h.explode(n.font_size_classes||"");p={};k.settings.theme_advanced_font_sizes=n.theme_advanced_font_sizes;f(k.getParam("theme_advanced_font_sizes","","hash"),function(r,q){var o;if(q==r&&r>=1&&r<=7){q=r+" ("+m.sizes[r-1]+"pt)";o=n.font_size_classes[r-1];r=n.font_size_style_values[r-1]||(m.sizes[r-1]+"pt")}if(/^\s*\./.test(r)){o=r.replace(/\./g,"")}p[q]=o?{"class":o}:{fontSize:r}});n.theme_advanced_font_sizes=p}if((j=n.theme_advanced_path_location)&&j!="none"){n.theme_advanced_statusbar_location=n.theme_advanced_path_location}if(n.theme_advanced_statusbar_location=="none"){n.theme_advanced_statusbar_location=0}if(k.settings.content_css!==false){k.contentCSS.push(k.baseURI.toAbsolute(l+"/skins/"+k.settings.skin+"/content.css"))}k.onInit.add(function(){if(!k.settings.readonly){k.onNodeChange.add(m._nodeChanged,m);k.onKeyUp.add(m._updateUndoStatus,m);k.onMouseUp.add(m._updateUndoStatus,m);k.dom.bind(k.dom.getRoot(),"dragend",function(){m._updateUndoStatus(k)})}});k.onSetProgressState.add(function(r,o,s){var t,u=r.id,q;if(o){m.progressTimer=setTimeout(function(){t=r.getContainer();t=t.insertBefore(i.create("DIV",{style:"position:relative"}),t.firstChild);q=i.get(r.id+"_tbl");i.add(t,"div",{id:u+"_blocker","class":"mceBlocker",style:{width:q.clientWidth+2,height:q.clientHeight+2}});i.add(t,"div",{id:u+"_progress","class":"mceProgress",style:{left:q.clientWidth/2,top:q.clientHeight/2}})},s||0)}else{i.remove(u+"_blocker");i.remove(u+"_progress");clearTimeout(m.progressTimer)}});i.loadCSS(n.editor_css?k.documentBaseURI.toAbsolute(n.editor_css):l+"/skins/"+k.settings.skin+"/ui.css");if(n.skin_variant){i.loadCSS(l+"/skins/"+k.settings.skin+"/ui_"+n.skin_variant+".css")}},_isHighContrast:function(){var j,k=i.add(i.getRoot(),"div",{style:"background-color: rgb(171,239,86);"});j=(i.getStyle(k,"background-color",true)+"").toLowerCase().replace(/ /g,"");i.remove(k);return j!="rgb(171,239,86)"&&j!="#abef56"},createControl:function(m,j){var k,l;if(l=j.createControl(m)){return l}switch(m){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((k=this.controls[m])){return j.createButton(m,{title:"advanced."+k[0],cmd:k[1],ui:k[2],value:k[3]})}},execCommand:function(l,k,m){var j=this["_"+l];if(j){j.call(this,k,m);return true}return false},_importClasses:function(l){var j=this.editor,k=j.controlManager.get("styleselect");if(k.getLength()==0){f(j.dom.getClasses(),function(q,m){var p="style_"+m,n;n={inline:"span",attributes:{"class":q["class"]},selector:"*"};j.formatter.register(p,n);k.add(q["class"],p,{style:function(){return b(j,n)}})})}},_createStyleSelect:function(o){var l=this,j=l.editor,k=j.controlManager,m;m=k.createListBox("styleselect",{title:"advanced.style_select",onselect:function(q){var r,n=[],p;f(m.items,function(s){n.push(s.value)});j.focus();j.undoManager.add();r=j.formatter.matchAll(n);h.each(r,function(s){if(!q||s==q){if(s){j.formatter.remove(s)}p=true}});if(!p){j.formatter.apply(q)}j.undoManager.add();j.nodeChanged();return false}});j.onPreInit.add(function(){var p=0,n=j.getParam("style_formats");if(n){f(n,function(q){var r,s=0;f(q,function(){s++});if(s>1){r=q.name=q.name||"style_"+(p++);j.formatter.register(r,q);m.add(q.title,r,{style:function(){return b(j,q)}})}else{m.add(q.title)}})}else{f(j.getParam("theme_advanced_styles","","hash"),function(t,s){var r,q;if(t){r="style_"+(p++);q={inline:"span",classes:t,selector:"*"};j.formatter.register(r,q);m.add(l.editor.translate(s),r,{style:function(){return b(j,q)}})}})}});if(m.getLength()==0){m.onPostRender.add(function(p,q){if(!m.NativeListBox){g.add(q.id+"_text","focus",l._importClasses,l);g.add(q.id+"_text","mousedown",l._importClasses,l);g.add(q.id+"_open","focus",l._importClasses,l);g.add(q.id+"_open","mousedown",l._importClasses,l)}else{g.add(q.id,"focus",l._importClasses,l)}})}return m},_createFontSelect:function(){var l,k=this,j=k.editor;l=j.controlManager.createListBox("fontselect",{title:"advanced.fontdefault",onselect:function(m){var n=l.items[l.selectedIndex];if(!m&&n){j.execCommand("FontName",false,n.value);return}j.execCommand("FontName",false,m);l.select(function(o){return m==o});if(n&&n.value==m){l.select(null)}return false}});if(l){f(j.getParam("theme_advanced_fonts",k.settings.theme_advanced_fonts,"hash"),function(n,m){l.add(j.translate(m),n,{style:n.indexOf("dings")==-1?"font-family:"+n:""})})}return l},_createFontSizeSelect:function(){var m=this,k=m.editor,n,l=0,j=[];n=k.controlManager.createListBox("fontsizeselect",{title:"advanced.font_size",onselect:function(o){var p=n.items[n.selectedIndex];if(!o&&p){p=p.value;if(p["class"]){k.formatter.toggle("fontsize_class",{value:p["class"]});k.undoManager.add();k.nodeChanged()}else{k.execCommand("FontSize",false,p.fontSize)}return}if(o["class"]){k.focus();k.undoManager.add();k.formatter.toggle("fontsize_class",{value:o["class"]});k.undoManager.add();k.nodeChanged()}else{k.execCommand("FontSize",false,o.fontSize)}n.select(function(q){return o==q});if(p&&(p.value.fontSize==o.fontSize||p.value["class"]&&p.value["class"]==o["class"])){n.select(null)}return false}});if(n){f(m.settings.theme_advanced_font_sizes,function(p,o){var q=p.fontSize;if(q>=1&&q<=7){q=m.sizes[parseInt(q)-1]+"pt"}n.add(o,p,{style:"font-size:"+q,"class":"mceFontSize"+(l++)+(" "+(p["class"]||""))})})}return n},_createBlockFormats:function(){var l,j={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"},k=this;l=k.editor.controlManager.createListBox("formatselect",{title:"advanced.block",onselect:function(m){k.editor.execCommand("FormatBlock",false,m);return false}});if(l){f(k.editor.getParam("theme_advanced_blockformats",k.settings.theme_advanced_blockformats,"hash"),function(n,m){l.add(k.editor.translate(m!=n?m:j[n]),n,{"class":"mce_formatPreview mce_"+n,style:function(){return b(k.editor,{block:n})}})})}return l},_createForeColorMenu:function(){var n,k=this,l=k.settings,m={},j;if(l.theme_advanced_more_colors){m.more_colors_func=function(){k._mceColorPicker(0,{color:n.value,func:function(o){n.setColor(o)}})}}if(j=l.theme_advanced_text_colors){m.colors=j}if(l.theme_advanced_default_foreground_color){m.default_color=l.theme_advanced_default_foreground_color}m.title="advanced.forecolor_desc";m.cmd="ForeColor";m.scope=this;n=k.editor.controlManager.createColorSplitButton("forecolor",m);return n},_createBackColorMenu:function(){var n,k=this,l=k.settings,m={},j;if(l.theme_advanced_more_colors){m.more_colors_func=function(){k._mceColorPicker(0,{color:n.value,func:function(o){n.setColor(o)}})}}if(j=l.theme_advanced_background_colors){m.colors=j}if(l.theme_advanced_default_background_color){m.default_color=l.theme_advanced_default_background_color}m.title="advanced.backcolor_desc";m.cmd="HiliteColor";m.scope=this;n=k.editor.controlManager.createColorSplitButton("backcolor",m);return n},renderUI:function(l){var q,m,r,w=this,u=w.editor,x=w.settings,v,k,j;if(u.settings){u.settings.aria_label=x.aria_label+u.getLang("advanced.help_shortcut")}q=k=i.create("span",{role:"application","aria-labelledby":u.id+"_voice",id:u.id+"_parent","class":"mceEditor "+u.settings.skin+"Skin"+(x.skin_variant?" "+u.settings.skin+"Skin"+w._ufirst(x.skin_variant):"")+(u.settings.directionality=="rtl"?" mceRtl":"")});i.add(q,"span",{"class":"mceVoiceLabel",style:"display:none;",id:u.id+"_voice"},x.aria_label);if(!i.boxModel){q=i.add(q,"div",{"class":"mceOldBoxModel"})}q=v=i.add(q,"table",{role:"presentation",id:u.id+"_tbl","class":"mceLayout",cellSpacing:0,cellPadding:0});q=r=i.add(q,"tbody");switch((x.theme_advanced_layout_manager||"").toLowerCase()){case"rowlayout":m=w._rowLayout(x,r,l);break;case"customlayout":m=u.execCallback("theme_advanced_custom_layout",x,r,l,k);break;default:m=w._simpleLayout(x,r,l,k)}q=l.targetNode;j=v.rows;i.addClass(j[0],"mceFirst");i.addClass(j[j.length-1],"mceLast");f(i.select("tr",r),function(o){i.addClass(o.firstChild,"mceFirst");i.addClass(o.childNodes[o.childNodes.length-1],"mceLast")});if(i.get(x.theme_advanced_toolbar_container)){i.get(x.theme_advanced_toolbar_container).appendChild(k)}else{i.insertAfter(k,q)}g.add(u.id+"_path_row","click",function(n){n=n.target;if(n.nodeName=="A"){w._sel(n.className.replace(/^.*mcePath_([0-9]+).*$/,"$1"));return false}});if(!u.getParam("accessibility_focus")){g.add(i.add(k,"a",{href:"#"},"<!-- IE -->"),"focus",function(){tinyMCE.get(u.id).focus()})}if(x.theme_advanced_toolbar_location=="external"){l.deltaHeight=0}w.deltaHeight=l.deltaHeight;l.targetNode=null;u.onKeyDown.add(function(p,n){var s=121,o=122;if(n.altKey){if(n.keyCode===s){if(h.isWebKit){window.focus()}w.toolbarGroup.focus();return g.cancel(n)}else{if(n.keyCode===o){i.get(p.id+"_path_row").focus();return g.cancel(n)}}}});u.addShortcut("alt+0","","mceShortcuts",w);return{iframeContainer:m,editorContainer:u.id+"_parent",sizeContainer:v,deltaHeight:l.deltaHeight}},getInfo:function(){return{longname:"Advanced theme",author:"Moxiecode Systems AB",authorurl:"http://tinymce.moxiecode.com",version:h.majorVersion+"."+h.minorVersion}},resizeBy:function(j,k){var l=i.get(this.editor.id+"_ifr");this.resizeTo(l.clientWidth+j,l.clientHeight+k)},resizeTo:function(j,n,l){var k=this.editor,m=this.settings,o=i.get(k.id+"_tbl"),p=i.get(k.id+"_ifr");j=Math.max(m.theme_advanced_resizing_min_width||100,j);n=Math.max(m.theme_advanced_resizing_min_height||100,n);j=Math.min(m.theme_advanced_resizing_max_width||65535,j);n=Math.min(m.theme_advanced_resizing_max_height||65535,n);i.setStyle(o,"height","");i.setStyle(p,"height",n);if(m.theme_advanced_resize_horizontal){i.setStyle(o,"width","");i.setStyle(p,"width",j);if(j<o.clientWidth){j=o.clientWidth;i.setStyle(p,"width",o.clientWidth)}}if(l&&m.theme_advanced_resizing_use_cookie){a.setHash("TinyMCE_"+k.id+"_size",{cw:j,ch:n})}},destroy:function(){var j=this.editor.id;g.clear(j+"_resize");g.clear(j+"_path_row");g.clear(j+"_external_close")},_simpleLayout:function(z,u,l,j){var y=this,v=y.editor,w=z.theme_advanced_toolbar_location,q=z.theme_advanced_statusbar_location,m,k,r,x;if(z.readonly){m=i.add(u,"tr");m=k=i.add(m,"td",{"class":"mceIframeContainer"});return k}if(w=="top"){y._addToolbars(u,l)}if(w=="external"){m=x=i.create("div",{style:"position:relative"});m=i.add(m,"div",{id:v.id+"_external","class":"mceExternalToolbar"});i.add(m,"a",{id:v.id+"_external_close",href:"javascript:;","class":"mceExternalClose"});m=i.add(m,"table",{id:v.id+"_tblext",cellSpacing:0,cellPadding:0});r=i.add(m,"tbody");if(j.firstChild.className=="mceOldBoxModel"){j.firstChild.appendChild(x)}else{j.insertBefore(x,j.firstChild)}y._addToolbars(r,l);v.onMouseUp.add(function(){var o=i.get(v.id+"_external");i.show(o);i.hide(e);var n=g.add(v.id+"_external_close","click",function(){i.hide(v.id+"_external");g.remove(v.id+"_external_close","click",n);return false});i.show(o);i.setStyle(o,"top",0-i.getRect(v.id+"_tblext").h-1);i.hide(o);i.show(o);o.style.filter="";e=v.id+"_external";o=null})}if(q=="top"){y._addStatusBar(u,l)}if(!z.theme_advanced_toolbar_container){m=i.add(u,"tr");m=k=i.add(m,"td",{"class":"mceIframeContainer"})}if(w=="bottom"){y._addToolbars(u,l)}if(q=="bottom"){y._addStatusBar(u,l)}return k},_rowLayout:function(x,p,l){var w=this,q=w.editor,v,y,j=q.controlManager,m,k,u,r;v=x.theme_advanced_containers_default_class||"";y=x.theme_advanced_containers_default_align||"center";f(d(x.theme_advanced_containers||""),function(s,o){var n=x["theme_advanced_container_"+s]||"";switch(s.toLowerCase()){case"mceeditor":m=i.add(p,"tr");m=k=i.add(m,"td",{"class":"mceIframeContainer"});break;case"mceelementpath":w._addStatusBar(p,l);break;default:r=(x["theme_advanced_container_"+s+"_align"]||y).toLowerCase();r="mce"+w._ufirst(r);m=i.add(i.add(p,"tr"),"td",{"class":"mceToolbar "+(x["theme_advanced_container_"+s+"_class"]||v)+" "+r||y});u=j.createToolbar("toolbar"+o);w._addControls(n,u);i.setHTML(m,u.renderHTML());l.deltaHeight-=x.theme_advanced_row_height}});return k},_addControls:function(k,j){var l=this,m=l.settings,n,o=l.editor.controlManager;if(m.theme_advanced_disable&&!l._disabled){n={};f(d(m.theme_advanced_disable),function(p){n[p]=1});l._disabled=n}else{n=l._disabled}f(d(k),function(q){var p;if(n&&n[q]){return}if(q=="tablecontrols"){f(["table","|","row_props","cell_props","|","row_before","row_after","delete_row","|","col_before","col_after","delete_col","|","split_cells","merge_cells"],function(r){r=l.createControl(r,o);if(r){j.add(r)}});return}p=l.createControl(q,o);if(p){j.add(p)}})},_addToolbars:function(y,k){var B=this,q,p,u=B.editor,C=B.settings,A,j=u.controlManager,w,l,r=[],z,x,m=false;x=j.createToolbarGroup("toolbargroup",{name:u.getLang("advanced.toolbar"),tab_focus_toolbar:u.getParam("theme_advanced_tab_focus_toolbar")});B.toolbarGroup=x;z=C.theme_advanced_toolbar_align.toLowerCase();z="mce"+B._ufirst(z);l=i.add(i.add(y,"tr",{role:"presentation"}),"td",{"class":"mceToolbar "+z,role:"toolbar"});for(q=1;(A=C["theme_advanced_buttons"+q]);q++){m=true;p=j.createToolbar("toolbar"+q,{"class":"mceToolbarRow"+q});if(C["theme_advanced_buttons"+q+"_add"]){A+=","+C["theme_advanced_buttons"+q+"_add"]}if(C["theme_advanced_buttons"+q+"_add_before"]){A=C["theme_advanced_buttons"+q+"_add_before"]+","+A}B._addControls(A,p);x.add(p);k.deltaHeight-=C.theme_advanced_row_height}if(!m){k.deltaHeight-=C.theme_advanced_row_height}r.push(x.renderHTML());r.push(i.createHTML("a",{href:"#",accesskey:"z",title:u.getLang("advanced.toolbar_focus"),onfocus:"tinyMCE.getInstanceById('"+u.id+"').focus();"},"<!-- IE -->"));i.setHTML(l,r.join(""))},_addStatusBar:function(p,k){var l,w=this,q=w.editor,x=w.settings,j,u,v,m;l=i.add(p,"tr");l=m=i.add(l,"td",{"class":"mceStatusbar"});l=i.add(l,"div",{id:q.id+"_path_row",role:"group","aria-labelledby":q.id+"_path_voice"});if(x.theme_advanced_path){i.add(l,"span",{id:q.id+"_path_voice"},q.translate("advanced.path"));i.add(l,"span",{},": ")}else{i.add(l,"span",{},"&#160;")}if(x.theme_advanced_resizing){i.add(m,"a",{id:q.id+"_resize",href:"javascript:;",onclick:"return false;","class":"mceResize",tabIndex:"-1"});if(x.theme_advanced_resizing_use_cookie){q.onPostRender.add(function(){var n=a.getHash("TinyMCE_"+q.id+"_size"),r=i.get(q.id+"_tbl");if(!n){return}w.resizeTo(n.cw,n.ch)})}q.onPostRender.add(function(){g.add(q.id+"_resize","click",function(n){n.preventDefault()});g.add(q.id+"_resize","mousedown",function(E){var t,r,s,o,D,A,B,G,n,F,y;function z(H){H.preventDefault();n=B+(H.screenX-D);F=G+(H.screenY-A);w.resizeTo(n,F)}function C(H){g.remove(i.doc,"mousemove",t);g.remove(q.getDoc(),"mousemove",r);g.remove(i.doc,"mouseup",s);g.remove(q.getDoc(),"mouseup",o);n=B+(H.screenX-D);F=G+(H.screenY-A);w.resizeTo(n,F,true);q.nodeChanged()}E.preventDefault();D=E.screenX;A=E.screenY;y=i.get(w.editor.id+"_ifr");B=n=y.clientWidth;G=F=y.clientHeight;t=g.add(i.doc,"mousemove",z);r=g.add(q.getDoc(),"mousemove",z);s=g.add(i.doc,"mouseup",C);o=g.add(q.getDoc(),"mouseup",C)})})}k.deltaHeight-=21;l=p=null},_updateUndoStatus:function(k){var j=k.controlManager,l=k.undoManager;j.setDisabled("undo",!l.hasUndo()&&!l.typing);j.setDisabled("redo",!l.hasRedo())},_nodeChanged:function(o,u,E,r,F){var z=this,D,G=0,y,H,A=z.settings,x,l,w,C,m,k,j;h.each(z.stateControls,function(n){u.setActive(n,o.queryCommandState(z.controls[n][1]))});function q(p){var s,n=F.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]}}}u.setActive("visualaid",o.hasVisual);z._updateUndoStatus(o);u.setDisabled("outdent",!o.queryCommandState("Outdent"));D=q("A");if(H=u.get("link")){H.setDisabled((!D&&r)||(D&&!D.href));H.setActive(!!D&&(!D.name&&!D.id))}if(H=u.get("unlink")){H.setDisabled(!D&&r);H.setActive(!!D&&!D.name&&!D.id)}if(H=u.get("anchor")){H.setActive(!r&&!!D&&(D.name||(D.id&&!D.href)))}D=q("IMG");if(H=u.get("image")){H.setActive(!r&&!!D&&E.className.indexOf("mceItem")==-1)}if(H=u.get("styleselect")){z._importClasses();k=[];f(H.items,function(n){k.push(n.value)});j=o.formatter.matchAll(k);H.select(j[0]);h.each(j,function(p,n){if(n>0){H.mark(p)}})}if(H=u.get("formatselect")){D=q(o.dom.isBlock);if(D){H.select(D.nodeName.toLowerCase())}}q(function(p){if(p.nodeName==="SPAN"){if(!x&&p.className){x=p.className}}if(o.dom.is(p,A.theme_advanced_font_selector)){if(!l&&p.style.fontSize){l=p.style.fontSize}if(!w&&p.style.fontFamily){w=p.style.fontFamily.replace(/[\"\']+/g,"").replace(/^([^,]+).*/,"$1").toLowerCase()}if(!C&&p.style.color){C=p.style.color}if(!m&&p.style.backgroundColor){m=p.style.backgroundColor}}return false});if(H=u.get("fontselect")){H.select(function(n){return n.replace(/^([^,]+).*/,"$1").toLowerCase()==w})}if(H=u.get("fontsizeselect")){if(A.theme_advanced_runtime_fontsize&&!l&&!x){l=o.dom.getStyle(E,"fontSize",true)}H.select(function(n){if(n.fontSize&&n.fontSize===l){return true}if(n["class"]&&n["class"]===x){return true}})}if(A.theme_advanced_show_current_color){function B(p,n){if(H=u.get(p)){if(!n){n=H.settings.default_color}if(n!==H.value){H.displayColor(n)}}}B("forecolor",C);B("backcolor",m)}if(A.theme_advanced_show_current_color){function B(p,n){if(H=u.get(p)){if(!n){n=H.settings.default_color}if(n!==H.value){H.displayColor(n)}}}B("forecolor",C);B("backcolor",m)}if(A.theme_advanced_path&&A.theme_advanced_statusbar_location){D=i.get(o.id+"_path")||i.add(o.id+"_path_row","span",{id:o.id+"_path"});if(z.statusKeyboardNavigation){z.statusKeyboardNavigation.destroy();z.statusKeyboardNavigation=null}i.setHTML(D,"");q(function(I){var p=I.nodeName.toLowerCase(),s,v,t="";if(I.nodeType!=1||p==="br"||I.getAttribute("data-mce-bogus")||i.hasClass(I,"mceItemHidden")||i.hasClass(I,"mceItemRemoved")){return}if(h.isIE&&I.scopeName!=="HTML"&&I.scopeName){p=I.scopeName+":"+p}p=p.replace(/mce\:/g,"");switch(p){case"b":p="strong";break;case"i":p="em";break;case"img":if(y=i.getAttrib(I,"src")){t+="src: "+y+" "}break;case"a":if(y=i.getAttrib(I,"name")){t+="name: "+y+" ";p+="#"+y}if(y=i.getAttrib(I,"href")){t+="href: "+y+" "}break;case"font":if(y=i.getAttrib(I,"face")){t+="font: "+y+" "}if(y=i.getAttrib(I,"size")){t+="size: "+y+" "}if(y=i.getAttrib(I,"color")){t+="color: "+y+" "}break;case"span":if(y=i.getAttrib(I,"style")){t+="style: "+y+" "}break}if(y=i.getAttrib(I,"id")){t+="id: "+y+" "}if(y=I.className){y=y.replace(/\b\s*(webkit|mce|Apple-)\w+\s*\b/g,"");if(y){t+="class: "+y+" ";if(o.dom.isBlock(I)||p=="img"||p=="span"){p+="."+y}}}p=p.replace(/(html:)/g,"");p={name:p,node:I,title:t};z.onResolveName.dispatch(z,p);t=p.title;p=p.name;v=i.create("a",{href:"javascript:;",role:"button",onmousedown:"return false;",title:t,"class":"mcePath_"+(G++)},p);if(D.hasChildNodes()){D.insertBefore(i.create("span",{"aria-hidden":"true"},"\u00a0\u00bb "),D.firstChild);D.insertBefore(v,D.firstChild)}else{D.appendChild(v)}},o.getBody());if(i.select("a",D).length>0){z.statusKeyboardNavigation=new h.ui.KeyboardNavigation({root:o.id+"_path_row",items:i.select("a",D),excludeFromTabOrder:true,onCancel:function(){o.focus()}},i)}}},_sel:function(j){this.editor.execCommand("mceSelectNodeDepth",false,j)},_mceInsertAnchor:function(l,k){var j=this.editor;j.windowManager.open({url:this.url+"/anchor.htm",width:320+parseInt(j.getLang("advanced.anchor_delta_width",0)),height:90+parseInt(j.getLang("advanced.anchor_delta_height",0)),inline:true},{theme_url:this.url})},_mceCharMap:function(){var j=this.editor;j.windowManager.open({url:this.url+"/charmap.htm",width:550+parseInt(j.getLang("advanced.charmap_delta_width",0)),height:265+parseInt(j.getLang("advanced.charmap_delta_height",0)),inline:true},{theme_url:this.url})},_mceHelp:function(){var j=this.editor;j.windowManager.open({url:this.url+"/about.htm",width:480,height:380,inline:true},{theme_url:this.url})},_mceShortcuts:function(){var j=this.editor;j.windowManager.open({url:this.url+"/shortcuts.htm",width:480,height:380,inline:true},{theme_url:this.url})},_mceColorPicker:function(l,k){var j=this.editor;k=k||{};j.windowManager.open({url:this.url+"/color_picker.htm",width:375+parseInt(j.getLang("advanced.colorpicker_delta_width",0)),height:250+parseInt(j.getLang("advanced.colorpicker_delta_height",0)),close_previous:false,inline:true},{input_color:k.color,func:k.func,theme_url:this.url})},_mceCodeEditor:function(k,l){var j=this.editor;j.windowManager.open({url:this.url+"/source_editor.htm",width:parseInt(j.getParam("theme_advanced_source_editor_width",720)),height:parseInt(j.getParam("theme_advanced_source_editor_height",580)),inline:true,resizable:true,maximizable:true},{theme_url:this.url})},_mceImage:function(k,l){var j=this.editor;if(j.dom.getAttrib(j.selection.getNode(),"class","").indexOf("mceItem")!=-1){return}j.windowManager.open({url:this.url+"/image.htm",width:355+parseInt(j.getLang("advanced.image_delta_width",0)),height:275+parseInt(j.getLang("advanced.image_delta_height",0)),inline:true},{theme_url:this.url})},_mceLink:function(k,l){var j=this.editor;j.windowManager.open({url:this.url+"/link.htm",width:310+parseInt(j.getLang("advanced.link_delta_width",0)),height:200+parseInt(j.getLang("advanced.link_delta_height",0)),inline:true},{theme_url:this.url})},_mceNewDocument:function(){var j=this.editor;j.windowManager.confirm("advanced.newdocument",function(k){if(k){j.execCommand("mceSetContent",false,"")}})},_mceForeColor:function(){var j=this;this._mceColorPicker(0,{color:j.fgColor,func:function(k){j.fgColor=k;j.editor.execCommand("ForeColor",false,k)}})},_mceBackColor:function(){var j=this;this._mceColorPicker(0,{color:j.bgColor,func:function(k){j.bgColor=k;j.editor.execCommand("HiliteColor",false,k)}})},_ufirst:function(j){return j.substring(0,1).toUpperCase()+j.substring(1)}});h.ThemeManager.add("advanced",h.themes.AdvancedTheme)}(tinymce));
@@ -11,6 +11,95 @@
11
11
  (function(tinymce) {
12
12
  var DOM = tinymce.DOM, Event = tinymce.dom.Event, extend = tinymce.extend, each = tinymce.each, Cookie = tinymce.util.Cookie, lastExtID, explode = tinymce.explode;
13
13
 
14
+ // Generates a preview for a format
15
+ function getPreviewCss(ed, fmt) {
16
+ var name, previewElm, dom = ed.dom, previewCss = '', parentFontSize, previewStylesName;
17
+
18
+ previewStyles = ed.settings.preview_styles;
19
+
20
+ // No preview forced
21
+ if (previewStyles === false)
22
+ return '';
23
+
24
+ // Default preview
25
+ if (!previewStyles)
26
+ previewStyles = 'font-family font-size font-weight text-decoration text-transform color background-color';
27
+
28
+ // Removes any variables since these can't be previewed
29
+ function removeVars(val) {
30
+ return val.replace(/%(\w+)/g, '');
31
+ };
32
+
33
+ // Create block/inline element to use for preview
34
+ name = fmt.block || fmt.inline || 'span';
35
+ previewElm = dom.create(name);
36
+
37
+ // Add format styles to preview element
38
+ each(fmt.styles, function(value, name) {
39
+ value = removeVars(value);
40
+
41
+ if (value)
42
+ dom.setStyle(previewElm, name, value);
43
+ });
44
+
45
+ // Add attributes to preview element
46
+ each(fmt.attributes, function(value, name) {
47
+ value = removeVars(value);
48
+
49
+ if (value)
50
+ dom.setAttrib(previewElm, name, value);
51
+ });
52
+
53
+ // Add classes to preview element
54
+ each(fmt.classes, function(value) {
55
+ value = removeVars(value);
56
+
57
+ if (!dom.hasClass(previewElm, value))
58
+ dom.addClass(previewElm, value);
59
+ });
60
+
61
+ // Add the previewElm outside the visual area
62
+ dom.setStyles(previewElm, {position: 'absolute', left: -0xFFFF});
63
+ ed.getBody().appendChild(previewElm);
64
+
65
+ // Get parent container font size so we can compute px values out of em/% for older IE:s
66
+ parentFontSize = dom.getStyle(ed.getBody(), 'fontSize', true);
67
+ parentFontSize = /px$/.test(parentFontSize) ? parseInt(parentFontSize, 10) : 0;
68
+
69
+ each(previewStyles.split(' '), function(name) {
70
+ var value = dom.getStyle(previewElm, name, true);
71
+
72
+ // If background is transparent then check if the body has a background color we can use
73
+ if (name == 'background-color' && /transparent|rgba\s*\([^)]+,\s*0\)/.test(value)) {
74
+ value = dom.getStyle(ed.getBody(), name, true);
75
+
76
+ // Ignore white since it's the default color, not the nicest fix
77
+ if (dom.toHex(value).toLowerCase() == '#ffffff') {
78
+ return;
79
+ }
80
+ }
81
+
82
+ // Old IE won't calculate the font size so we need to do that manually
83
+ if (name == 'font-size') {
84
+ if (/em|%$/.test(value)) {
85
+ if (parentFontSize === 0) {
86
+ return;
87
+ }
88
+
89
+ // Convert font size from em/% to px
90
+ value = parseFloat(value, 10) / (/%$/.test(value) ? 100 : 1);
91
+ value = (value * parentFontSize) + 'px';
92
+ }
93
+ }
94
+
95
+ previewCss += name + ':' + value + ';';
96
+ });
97
+
98
+ dom.remove(previewElm);
99
+
100
+ return previewCss;
101
+ };
102
+
14
103
  // Tell it to load theme specific language pack(s)
15
104
  tinymce.ThemeManager.requireLangPack('advanced');
16
105
 
@@ -61,23 +150,31 @@
61
150
 
62
151
  init : function(ed, url) {
63
152
  var t = this, s, v, o;
64
-
153
+
65
154
  t.editor = ed;
66
155
  t.url = url;
67
156
  t.onResolveName = new tinymce.util.Dispatcher(this);
157
+ s = ed.settings;
68
158
 
69
159
  ed.forcedHighContrastMode = ed.settings.detect_highcontrast && t._isHighContrast();
70
160
  ed.settings.skin = ed.forcedHighContrastMode ? 'highcontrast' : ed.settings.skin;
71
161
 
162
+ // Setup default buttons
163
+ if (!s.theme_advanced_buttons1) {
164
+ s = extend({
165
+ theme_advanced_buttons1 : "bold,italic,underline,strikethrough,|,justifyleft,justifycenter,justifyright,justifyfull,|,styleselect,formatselect",
166
+ theme_advanced_buttons2 : "bullist,numlist,|,outdent,indent,|,undo,redo,|,link,unlink,anchor,image,cleanup,help,code",
167
+ theme_advanced_buttons3 : "hr,removeformat,visualaid,|,sub,sup,|,charmap"
168
+ }, s);
169
+ }
170
+
72
171
  // Default settings
73
172
  t.settings = s = extend({
74
173
  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",
174
+ theme_advanced_toolbar_location : 'top',
79
175
  theme_advanced_blockformats : "p,address,pre,h1,h2,h3,h4,h5,h6",
80
- theme_advanced_toolbar_align : "center",
176
+ theme_advanced_toolbar_align : "left",
177
+ theme_advanced_statusbar_location : "bottom",
81
178
  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
179
  theme_advanced_more_colors : 1,
83
180
  theme_advanced_row_height : 23,
@@ -87,7 +184,7 @@
87
184
  theme_advanced_font_selector : "span",
88
185
  theme_advanced_show_current_color: 0,
89
186
  readonly : ed.settings.readonly
90
- }, ed.settings);
187
+ }, s);
91
188
 
92
189
  // Setup default font_size_style_values
93
190
  if (!s.font_size_style_values)
@@ -219,15 +316,21 @@
219
316
 
220
317
  if (ctrl.getLength() == 0) {
221
318
  each(ed.dom.getClasses(), function(o, idx) {
222
- var name = 'style_' + idx;
319
+ var name = 'style_' + idx, fmt;
223
320
 
224
- ed.formatter.register(name, {
321
+ fmt = {
225
322
  inline : 'span',
226
323
  attributes : {'class' : o['class']},
227
324
  selector : '*'
228
- });
325
+ };
326
+
327
+ ed.formatter.register(name, fmt);
229
328
 
230
- ctrl.add(o['class'], name);
329
+ ctrl.add(o['class'], name, {
330
+ style: function() {
331
+ return getPreviewCss(ed, fmt);
332
+ }
333
+ });
231
334
  });
232
335
  }
233
336
  },
@@ -239,7 +342,7 @@
239
342
  ctrl = ctrlMan.createListBox('styleselect', {
240
343
  title : 'advanced.style_select',
241
344
  onselect : function(name) {
242
- var matches, formatNames = [];
345
+ var matches, formatNames = [], removedFormat;
243
346
 
244
347
  each(ctrl.items, function(item) {
245
348
  formatNames.push(item.value);
@@ -248,12 +351,18 @@
248
351
  ed.focus();
249
352
  ed.undoManager.add();
250
353
 
251
- // Toggle off the current format
354
+ // Toggle off the current format(s)
252
355
  matches = ed.formatter.matchAll(formatNames);
253
- if (!name || matches[0] == name) {
254
- if (matches[0])
255
- ed.formatter.remove(matches[0]);
256
- } else
356
+ tinymce.each(matches, function(match) {
357
+ if (!name || match == name) {
358
+ if (match)
359
+ ed.formatter.remove(match);
360
+
361
+ removedFormat = true;
362
+ }
363
+ });
364
+
365
+ if (!removedFormat)
257
366
  ed.formatter.apply(name);
258
367
 
259
368
  ed.undoManager.add();
@@ -264,7 +373,7 @@
264
373
  });
265
374
 
266
375
  // Handle specified format
267
- ed.onInit.add(function() {
376
+ ed.onPreInit.add(function() {
268
377
  var counter = 0, formats = ed.getParam('style_formats');
269
378
 
270
379
  if (formats) {
@@ -276,24 +385,32 @@
276
385
  if (keys > 1) {
277
386
  name = fmt.name = fmt.name || 'style_' + (counter++);
278
387
  ed.formatter.register(name, fmt);
279
- ctrl.add(fmt.title, name);
388
+ ctrl.add(fmt.title, name, {
389
+ style: function() {
390
+ return getPreviewCss(ed, fmt);
391
+ }
392
+ });
280
393
  } else
281
394
  ctrl.add(fmt.title);
282
395
  });
283
396
  } else {
284
397
  each(ed.getParam('theme_advanced_styles', '', 'hash'), function(val, key) {
285
- var name;
398
+ var name, fmt;
286
399
 
287
400
  if (val) {
288
401
  name = 'style_' + (counter++);
289
-
290
- ed.formatter.register(name, {
402
+ fmt = {
291
403
  inline : 'span',
292
404
  classes : val,
293
405
  selector : '*'
294
- });
406
+ };
295
407
 
296
- ctrl.add(t.editor.translate(key), name);
408
+ ed.formatter.register(name, fmt);
409
+ ctrl.add(t.editor.translate(key), name, {
410
+ style: function() {
411
+ return getPreviewCss(ed, fmt);
412
+ }
413
+ });
297
414
  }
298
415
  });
299
416
  }
@@ -386,7 +503,7 @@
386
503
  return v == sv;
387
504
  });
388
505
 
389
- if (cur && (cur.value.fontSize == v.fontSize || cur.value['class'] == v['class'])) {
506
+ if (cur && (cur.value.fontSize == v.fontSize || cur.value['class'] && cur.value['class'] == v['class'])) {
390
507
  c.select(null);
391
508
  }
392
509
 
@@ -433,7 +550,9 @@
433
550
 
434
551
  if (c) {
435
552
  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});
553
+ c.add(t.editor.translate(k != v ? k : fmts[v]), v, {'class' : 'mce_formatPreview mce_' + v, style: function() {
554
+ return getPreviewCss(t.editor, {block: v});
555
+ }});
437
556
  });
438
557
  }
439
558
 
@@ -507,7 +626,7 @@
507
626
 
508
627
  // TODO: ACC Should have an aria-describedby attribute which is user-configurable to describe what this field is actually for.
509
628
  // 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) : '')});
629
+ 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) : '') + (ed.settings.directionality == "rtl" ? ' mceRtl' : '')});
511
630
  DOM.add(n, 'span', {'class': 'mceVoiceLabel', 'style': 'display:none;', id: ed.id + '_voice'}, s.aria_label);
512
631
 
513
632
  if (!DOM.boxModel)
@@ -552,15 +671,14 @@
552
671
 
553
672
  if (e.nodeName == 'A') {
554
673
  t._sel(e.className.replace(/^.*mcePath_([0-9]+).*$/, '$1'));
555
-
556
- return Event.cancel(e);
674
+ return false;
557
675
  }
558
676
  });
559
677
  /*
560
678
  if (DOM.get(ed.id + '_path_row')) {
561
679
  Event.add(ed.id + '_tbl', 'mouseover', function(e) {
562
680
  var re;
563
-
681
+
564
682
  e = e.target;
565
683
 
566
684
  if (e.nodeName == 'SPAN' && DOM.hasClass(e.parentNode, 'mceButton')) {
@@ -713,6 +831,7 @@
713
831
  var f = Event.add(ed.id + '_external_close', 'click', function() {
714
832
  DOM.hide(ed.id + '_external');
715
833
  Event.remove(ed.id + '_external_close', 'click', f);
834
+ return false;
716
835
  });
717
836
 
718
837
  DOM.show(e);
@@ -825,7 +944,7 @@
825
944
  },
826
945
 
827
946
  _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;
947
+ var t = this, i, tb, ed = t.editor, s = t.settings, v, cf = ed.controlManager, di, n, h = [], a, toolbarGroup, toolbarsExist = false;
829
948
 
830
949
  toolbarGroup = cf.createToolbarGroup('toolbargroup', {
831
950
  'name': ed.getLang('advanced.toolbar'),
@@ -837,10 +956,11 @@
837
956
  a = s.theme_advanced_toolbar_align.toLowerCase();
838
957
  a = 'mce' + t._ufirst(a);
839
958
 
840
- n = DOM.add(DOM.add(c, 'tr', {role: 'presentation'}), 'td', {'class' : 'mceToolbar ' + a, "role":"presentation"});
959
+ n = DOM.add(DOM.add(c, 'tr', {role: 'presentation'}), 'td', {'class' : 'mceToolbar ' + a, "role":"toolbar"});
841
960
 
842
961
  // Create toolbar and add the controls
843
962
  for (i=1; (v = s['theme_advanced_buttons' + i]); i++) {
963
+ toolbarsExist = true;
844
964
  tb = cf.createToolbar("toolbar" + i, {'class' : 'mceToolbarRow' + i});
845
965
 
846
966
  if (s['theme_advanced_buttons' + i + '_add'])
@@ -854,6 +974,9 @@
854
974
 
855
975
  o.deltaHeight -= s.theme_advanced_row_height;
856
976
  }
977
+ // Handle case when there are no toolbar buttons and ensure editor height is adjusted accordingly
978
+ if (!toolbarsExist)
979
+ o.deltaHeight -= s.theme_advanced_row_height;
857
980
  h.push(toolbarGroup.renderHTML());
858
981
  h.push(DOM.createHTML('a', {href : '#', accesskey : 'z', title : ed.getLang("advanced.toolbar_focus"), onfocus : 'tinyMCE.getInstanceById(\'' + ed.id + '\').focus();'}, '<!-- IE -->'));
859
982
  DOM.setHTML(n, h.join(''));
@@ -863,7 +986,7 @@
863
986
  var n, t = this, ed = t.editor, s = t.settings, r, mf, me, td;
864
987
 
865
988
  n = DOM.add(tb, 'tr');
866
- n = td = DOM.add(n, 'td', {'class' : 'mceStatusbar'});
989
+ n = td = DOM.add(n, 'td', {'class' : 'mceStatusbar'});
867
990
  n = DOM.add(n, 'div', {id : ed.id + '_path_row', 'role': 'group', 'aria-labelledby': ed.id + '_path_voice'});
868
991
  if (s.theme_advanced_path) {
869
992
  DOM.add(n, 'span', {id: ed.id + '_path_voice'}, ed.translate('advanced.path'));
@@ -871,7 +994,7 @@
871
994
  } else {
872
995
  DOM.add(n, 'span', {}, '&#160;');
873
996
  }
874
-
997
+
875
998
 
876
999
  if (s.theme_advanced_resizing) {
877
1000
  DOM.add(td, 'a', {id : ed.id + '_resize', href : 'javascript:;', onclick : "return false;", 'class' : 'mceResize', tabIndex:"-1"});
@@ -916,6 +1039,8 @@
916
1039
  width = startWidth + (e.screenX - startX);
917
1040
  height = startHeight + (e.screenY - startY);
918
1041
  t.resizeTo(width, height, true);
1042
+
1043
+ ed.nodeChanged();
919
1044
  };
920
1045
 
921
1046
  e.preventDefault();
@@ -975,19 +1100,17 @@
975
1100
 
976
1101
  p = getParent('A');
977
1102
  if (c = cm.get('link')) {
978
- if (!p || !p.name) {
979
- c.setDisabled(!p && co);
980
- c.setActive(!!p);
981
- }
1103
+ c.setDisabled((!p && co) || (p && !p.href));
1104
+ c.setActive(!!p && (!p.name && !p.id));
982
1105
  }
983
1106
 
984
1107
  if (c = cm.get('unlink')) {
985
1108
  c.setDisabled(!p && co);
986
- c.setActive(!!p && !p.name);
1109
+ c.setActive(!!p && !p.name && !p.id);
987
1110
  }
988
1111
 
989
1112
  if (c = cm.get('anchor')) {
990
- c.setActive(!co && !!p && p.name);
1113
+ c.setActive(!co && !!p && (p.name || (p.id && !p.href)));
991
1114
  }
992
1115
 
993
1116
  p = getParent('IMG');
@@ -1004,10 +1127,15 @@
1004
1127
 
1005
1128
  matches = ed.formatter.matchAll(formatNames);
1006
1129
  c.select(matches[0]);
1130
+ tinymce.each(matches, function(match, index) {
1131
+ if (index > 0) {
1132
+ c.mark(match);
1133
+ }
1134
+ });
1007
1135
  }
1008
1136
 
1009
1137
  if (c = cm.get('formatselect')) {
1010
- p = getParent(DOM.isBlock);
1138
+ p = getParent(ed.dom.isBlock);
1011
1139
 
1012
1140
  if (p)
1013
1141
  c.select(p.nodeName.toLowerCase());
@@ -1026,7 +1154,7 @@
1026
1154
 
1027
1155
  if (!fn && n.style.fontFamily)
1028
1156
  fn = n.style.fontFamily.replace(/[\"\']+/g, '').replace(/^([^,]+).*/, '$1').toLowerCase();
1029
-
1157
+
1030
1158
  if (!fc && n.style.color)
1031
1159
  fc = n.style.color;
1032
1160
 
@@ -1057,7 +1185,7 @@
1057
1185
  return true;
1058
1186
  });
1059
1187
  }
1060
-
1188
+
1061
1189
  if (s.theme_advanced_show_current_color) {
1062
1190
  function updateColor(controlId, color) {
1063
1191
  if (c = cm.get(controlId)) {
@@ -1105,7 +1233,7 @@
1105
1233
  return;
1106
1234
 
1107
1235
  // Handle prefix
1108
- if (tinymce.isIE && n.scopeName !== 'HTML')
1236
+ if (tinymce.isIE && n.scopeName !== 'HTML' && n.scopeName)
1109
1237
  na = n.scopeName + ':' + na;
1110
1238
 
1111
1239
  // Remove internal prefix
@@ -1161,12 +1289,12 @@
1161
1289
  ti += 'id: ' + v + ' ';
1162
1290
 
1163
1291
  if (v = n.className) {
1164
- v = v.replace(/\b\s*(webkit|mce|Apple-)\w+\s*\b/g, '')
1292
+ v = v.replace(/\b\s*(webkit|mce|Apple-)\w+\s*\b/g, '');
1165
1293
 
1166
1294
  if (v) {
1167
1295
  ti += 'class: ' + v + ' ';
1168
1296
 
1169
- if (DOM.isBlock(n) || na == 'img' || na == 'span')
1297
+ if (ed.dom.isBlock(n) || na == 'img' || na == 'span')
1170
1298
  na += '.' + v;
1171
1299
  }
1172
1300
  }
@@ -1225,7 +1353,7 @@
1225
1353
  ed.windowManager.open({
1226
1354
  url : this.url + '/charmap.htm',
1227
1355
  width : 550 + parseInt(ed.getLang('advanced.charmap_delta_width', 0)),
1228
- height : 260 + parseInt(ed.getLang('advanced.charmap_delta_height', 0)),
1356
+ height : 265 + parseInt(ed.getLang('advanced.charmap_delta_height', 0)),
1229
1357
  inline : true
1230
1358
  }, {
1231
1359
  theme_url : this.url
@@ -1294,7 +1422,7 @@
1294
1422
  var ed = this.editor;
1295
1423
 
1296
1424
  // Internal image object like a flash placeholder
1297
- if (ed.dom.getAttrib(ed.selection.getNode(), 'class').indexOf('mceItem') != -1)
1425
+ if (ed.dom.getAttrib(ed.selection.getNode(), 'class', '').indexOf('mceItem') != -1)
1298
1426
  return;
1299
1427
 
1300
1428
  ed.windowManager.open({