compass-jquery-plugin 0.3.2.6 → 0.3.2.7.nil

Sign up to get free protection for your applications and to get access to all the features.
Files changed (276) hide show
  1. data/README.md +2 -1
  2. data/VERSION.yml +2 -2
  3. data/lib/handle_js_files.rb +21 -2
  4. data/templates/dynatree/jquery.dynatree.js +23 -20
  5. data/templates/dynatree/jquery.dynatree.min.js +38 -38
  6. data/templates/dynatree/jquery/dynatree/aero.scss +1 -1
  7. data/templates/dynatree/jquery/dynatree/aqua.scss +1 -1
  8. data/templates/dynatree/jquery/dynatree/crystal.scss +1 -1
  9. data/templates/dynatree/jquery/dynatree/xp.scss +2 -2
  10. data/templates/ical/jquery/ical.scss +10 -10
  11. data/templates/jqgrid/i18n/jqgrid/locale-lt.js +134 -0
  12. data/templates/jqgrid/i18n/jqgrid/locale-lt.min.js +7 -0
  13. data/templates/jqgrid/jquery.jqGrid.js +155 -65
  14. data/templates/jqgrid/jquery.jqGrid.min.js +396 -393
  15. data/templates/jqgrid/manifest.rb +2 -0
  16. data/templates/jqtouch/jquery.jqtouch.js +166 -195
  17. data/templates/jqtouch/jquery.jqtouch.min.js +1 -1
  18. data/templates/jqtouch/jquery/touch/apple.scss +5 -5
  19. data/templates/jqtouch/jquery/touch/default.scss +5 -5
  20. data/templates/jqtouch/jquery/touch/jqt.scss +12 -7
  21. data/templates/jqtouch/jquery/touch/jqtouch.scss +11 -13
  22. data/templates/jquery/history.adapter.jquery.js +54 -67
  23. data/templates/jquery/history.adapter.jquery.min.js +2 -2
  24. data/templates/jquery/history.html4.js +587 -680
  25. data/templates/jquery/history.html4.min.js +8 -18
  26. data/templates/jquery/history.js +1670 -1289
  27. data/templates/jquery/history.min.js +25 -21
  28. data/templates/jquery/i18n/jquery.ui/datepicker-ar.js +1 -1
  29. data/templates/jquery/i18n/jquery.ui/datepicker-ar.min.js +1 -1
  30. data/templates/jquery/i18n/jquery.ui/datepicker-tj.js +23 -0
  31. data/templates/jquery/i18n/jquery.ui/datepicker-tj.min.js +2 -0
  32. data/templates/jquery/jquery-ui.js +97 -61
  33. data/templates/jquery/jquery-ui.min.js +175 -175
  34. data/templates/jquery/jquery.dst.js +86 -151
  35. data/templates/jquery/jquery/ui/_theme.scss +13 -13
  36. data/templates/jquery/json2.js +214 -214
  37. data/templates/jquery/manifest.rb +2 -0
  38. data/templates/mobile/jquery.mobile.js +324 -225
  39. data/templates/mobile/jquery.mobile.min.js +4 -4
  40. data/templates/mobile/jquery/mobile/_base.scss +60 -48
  41. data/templates/mobile/jquery/mobile/default.scss +57 -80
  42. data/templates/mobile/jquery/mobile/default/icons-18-black.png +0 -0
  43. data/templates/mobile/jquery/mobile/default/icons-18-white.png +0 -0
  44. data/templates/mobile/jquery/mobile/default/icons-36-black.png +0 -0
  45. data/templates/mobile/jquery/mobile/default/icons-36-white.png +0 -0
  46. data/templates/mobile/jquery/mobile/valencia.scss +61 -73
  47. data/templates/mobile/jquery/mobile/valencia/icons-18-black.png +0 -0
  48. data/templates/mobile/jquery/mobile/valencia/icons-18-white.png +0 -0
  49. data/templates/mobile/jquery/mobile/valencia/icons-36-black.png +0 -0
  50. data/templates/mobile/jquery/mobile/valencia/icons-36-white.png +0 -0
  51. data/templates/mobile/manifest.rb +0 -8
  52. data/templates/ribbon/jquery/ribbon/office.scss +12 -12
  53. data/templates/ribbon/jquery/ribbon/windows7.scss +12 -12
  54. data/templates/tiny_mce/manifest.rb +16 -0
  55. data/templates/tiny_mce/tiny_mce/jquery.tinymce.js +1 -1
  56. data/templates/tiny_mce/tiny_mce/langs/de.js +1 -0
  57. data/templates/tiny_mce/tiny_mce/langs/en.js +1 -222
  58. data/templates/tiny_mce/tiny_mce/plugins/advhr/css/advhr.css +1 -5
  59. data/templates/tiny_mce/tiny_mce/plugins/advhr/editor_plugin.js +1 -1
  60. data/templates/tiny_mce/tiny_mce/plugins/advhr/editor_plugin_src.js +1 -57
  61. data/templates/tiny_mce/tiny_mce/plugins/advhr/js/rule.js +1 -43
  62. data/templates/tiny_mce/tiny_mce/plugins/advhr/langs/de_dlg.js +1 -0
  63. data/templates/tiny_mce/tiny_mce/plugins/advhr/langs/en_dlg.js +1 -7
  64. data/templates/tiny_mce/tiny_mce/plugins/advhr/rule.htm +1 -58
  65. data/templates/tiny_mce/tiny_mce/plugins/advimage/css/advimage.css +1 -13
  66. data/templates/tiny_mce/tiny_mce/plugins/advimage/editor_plugin.js +1 -1
  67. data/templates/tiny_mce/tiny_mce/plugins/advimage/editor_plugin_src.js +1 -50
  68. data/templates/tiny_mce/tiny_mce/plugins/advimage/image.htm +1 -235
  69. data/templates/tiny_mce/tiny_mce/plugins/advimage/js/image.js +1 -445
  70. data/templates/tiny_mce/tiny_mce/plugins/advimage/langs/de_dlg.js +1 -0
  71. data/templates/tiny_mce/tiny_mce/plugins/advimage/langs/en_dlg.js +1 -45
  72. data/templates/tiny_mce/tiny_mce/plugins/advlink/css/advlink.css +1 -8
  73. data/templates/tiny_mce/tiny_mce/plugins/advlink/editor_plugin.js +1 -1
  74. data/templates/tiny_mce/tiny_mce/plugins/advlink/editor_plugin_src.js +1 -61
  75. data/templates/tiny_mce/tiny_mce/plugins/advlink/js/advlink.js +1 -525
  76. data/templates/tiny_mce/tiny_mce/plugins/advlink/langs/de_dlg.js +1 -0
  77. data/templates/tiny_mce/tiny_mce/plugins/advlink/langs/en_dlg.js +1 -54
  78. data/templates/tiny_mce/tiny_mce/plugins/advlink/link.htm +1 -338
  79. data/templates/tiny_mce/tiny_mce/plugins/advlist/editor_plugin.js +1 -1
  80. data/templates/tiny_mce/tiny_mce/plugins/advlist/editor_plugin_src.js +1 -154
  81. data/templates/tiny_mce/tiny_mce/plugins/autoresize/editor_plugin.js +1 -1
  82. data/templates/tiny_mce/tiny_mce/plugins/autoresize/editor_plugin_src.js +1 -119
  83. data/templates/tiny_mce/tiny_mce/plugins/autosave/editor_plugin.js +1 -1
  84. data/templates/tiny_mce/tiny_mce/plugins/autosave/editor_plugin_src.js +1 -431
  85. data/templates/tiny_mce/tiny_mce/plugins/autosave/langs/en.js +1 -4
  86. data/templates/tiny_mce/tiny_mce/plugins/bbcode/editor_plugin.js +1 -1
  87. data/templates/tiny_mce/tiny_mce/plugins/bbcode/editor_plugin_src.js +1 -120
  88. data/templates/tiny_mce/tiny_mce/plugins/contextmenu/editor_plugin.js +1 -1
  89. data/templates/tiny_mce/tiny_mce/plugins/contextmenu/editor_plugin_src.js +1 -154
  90. data/templates/tiny_mce/tiny_mce/plugins/directionality/editor_plugin.js +1 -1
  91. data/templates/tiny_mce/tiny_mce/plugins/directionality/editor_plugin_src.js +1 -82
  92. data/templates/tiny_mce/tiny_mce/plugins/emotions/editor_plugin.js +1 -1
  93. data/templates/tiny_mce/tiny_mce/plugins/emotions/editor_plugin_src.js +1 -43
  94. data/templates/tiny_mce/tiny_mce/plugins/emotions/emotions.htm +1 -41
  95. data/templates/tiny_mce/tiny_mce/plugins/emotions/js/emotions.js +1 -22
  96. data/templates/tiny_mce/tiny_mce/plugins/emotions/langs/de_dlg.js +1 -0
  97. data/templates/tiny_mce/tiny_mce/plugins/emotions/langs/en_dlg.js +1 -20
  98. data/templates/tiny_mce/tiny_mce/plugins/example/dialog.htm +1 -22
  99. data/templates/tiny_mce/tiny_mce/plugins/example/editor_plugin.js +1 -1
  100. data/templates/tiny_mce/tiny_mce/plugins/example/editor_plugin_src.js +1 -84
  101. data/templates/tiny_mce/tiny_mce/plugins/example/js/dialog.js +1 -19
  102. data/templates/tiny_mce/tiny_mce/plugins/example/langs/en.js +1 -3
  103. data/templates/tiny_mce/tiny_mce/plugins/example/langs/en_dlg.js +1 -3
  104. data/templates/tiny_mce/tiny_mce/plugins/fullpage/css/fullpage.css +1 -182
  105. data/templates/tiny_mce/tiny_mce/plugins/fullpage/editor_plugin.js +1 -1
  106. data/templates/tiny_mce/tiny_mce/plugins/fullpage/editor_plugin_src.js +1 -166
  107. data/templates/tiny_mce/tiny_mce/plugins/fullpage/fullpage.htm +1 -571
  108. data/templates/tiny_mce/tiny_mce/plugins/fullpage/js/fullpage.js +1 -492
  109. data/templates/tiny_mce/tiny_mce/plugins/fullpage/langs/de_dlg.js +1 -0
  110. data/templates/tiny_mce/tiny_mce/plugins/fullpage/langs/en_dlg.js +1 -85
  111. data/templates/tiny_mce/tiny_mce/plugins/fullscreen/editor_plugin.js +1 -1
  112. data/templates/tiny_mce/tiny_mce/plugins/fullscreen/editor_plugin_src.js +1 -159
  113. data/templates/tiny_mce/tiny_mce/plugins/fullscreen/fullscreen.htm +1 -109
  114. data/templates/tiny_mce/tiny_mce/plugins/iespell/editor_plugin.js +1 -1
  115. data/templates/tiny_mce/tiny_mce/plugins/iespell/editor_plugin_src.js +1 -54
  116. data/templates/tiny_mce/tiny_mce/plugins/inlinepopups/editor_plugin.js +1 -1
  117. data/templates/tiny_mce/tiny_mce/plugins/inlinepopups/editor_plugin_src.js +1 -696
  118. data/templates/tiny_mce/tiny_mce/plugins/inlinepopups/skins/clearlooks2/window.css +1 -90
  119. data/templates/tiny_mce/tiny_mce/plugins/inlinepopups/template.htm +1 -387
  120. data/templates/tiny_mce/tiny_mce/plugins/insertdatetime/editor_plugin.js +1 -1
  121. data/templates/tiny_mce/tiny_mce/plugins/insertdatetime/editor_plugin_src.js +1 -83
  122. data/templates/tiny_mce/tiny_mce/plugins/layer/editor_plugin.js +1 -1
  123. data/templates/tiny_mce/tiny_mce/plugins/layer/editor_plugin_src.js +1 -214
  124. data/templates/tiny_mce/tiny_mce/plugins/legacyoutput/editor_plugin.js +1 -1
  125. data/templates/tiny_mce/tiny_mce/plugins/legacyoutput/editor_plugin_src.js +1 -139
  126. data/templates/tiny_mce/tiny_mce/plugins/media/css/media.css +1 -17
  127. data/templates/tiny_mce/tiny_mce/plugins/media/editor_plugin.js +1 -1
  128. data/templates/tiny_mce/tiny_mce/plugins/media/editor_plugin_src.js +1 -770
  129. data/templates/tiny_mce/tiny_mce/plugins/media/js/embed.js +1 -73
  130. data/templates/tiny_mce/tiny_mce/plugins/media/js/media.js +1 -340
  131. data/templates/tiny_mce/tiny_mce/plugins/media/langs/de_dlg.js +1 -0
  132. data/templates/tiny_mce/tiny_mce/plugins/media/langs/en_dlg.js +1 -109
  133. data/templates/tiny_mce/tiny_mce/plugins/media/media.htm +1 -812
  134. data/templates/tiny_mce/tiny_mce/plugins/nonbreaking/editor_plugin.js +1 -1
  135. data/templates/tiny_mce/tiny_mce/plugins/nonbreaking/editor_plugin_src.js +1 -53
  136. data/templates/tiny_mce/tiny_mce/plugins/noneditable/editor_plugin.js +1 -1
  137. data/templates/tiny_mce/tiny_mce/plugins/noneditable/editor_plugin_src.js +1 -90
  138. data/templates/tiny_mce/tiny_mce/plugins/pagebreak/editor_plugin.js +1 -1
  139. data/templates/tiny_mce/tiny_mce/plugins/pagebreak/editor_plugin_src.js +1 -74
  140. data/templates/tiny_mce/tiny_mce/plugins/paste/editor_plugin.js +1 -1
  141. data/templates/tiny_mce/tiny_mce/plugins/paste/editor_plugin_src.js +1 -899
  142. data/templates/tiny_mce/tiny_mce/plugins/paste/js/pastetext.js +1 -36
  143. data/templates/tiny_mce/tiny_mce/plugins/paste/js/pasteword.js +1 -51
  144. data/templates/tiny_mce/tiny_mce/plugins/paste/langs/de_dlg.js +1 -0
  145. data/templates/tiny_mce/tiny_mce/plugins/paste/langs/en_dlg.js +1 -5
  146. data/templates/tiny_mce/tiny_mce/plugins/paste/pastetext.htm +1 -27
  147. data/templates/tiny_mce/tiny_mce/plugins/paste/pasteword.htm +1 -21
  148. data/templates/tiny_mce/tiny_mce/plugins/preview/editor_plugin.js +1 -1
  149. data/templates/tiny_mce/tiny_mce/plugins/preview/editor_plugin_src.js +1 -53
  150. data/templates/tiny_mce/tiny_mce/plugins/preview/example.html +17 -16
  151. data/templates/tiny_mce/tiny_mce/plugins/preview/jscripts/embed.js +1 -73
  152. data/templates/tiny_mce/tiny_mce/plugins/preview/preview.html +10 -9
  153. data/templates/tiny_mce/tiny_mce/plugins/print/editor_plugin.js +1 -1
  154. data/templates/tiny_mce/tiny_mce/plugins/print/editor_plugin_src.js +1 -34
  155. data/templates/tiny_mce/tiny_mce/plugins/save/editor_plugin.js +1 -1
  156. data/templates/tiny_mce/tiny_mce/plugins/save/editor_plugin_src.js +1 -101
  157. data/templates/tiny_mce/tiny_mce/plugins/searchreplace/css/searchreplace.css +1 -6
  158. data/templates/tiny_mce/tiny_mce/plugins/searchreplace/editor_plugin.js +1 -1
  159. data/templates/tiny_mce/tiny_mce/plugins/searchreplace/editor_plugin_src.js +1 -61
  160. data/templates/tiny_mce/tiny_mce/plugins/searchreplace/js/searchreplace.js +1 -140
  161. data/templates/tiny_mce/tiny_mce/plugins/searchreplace/langs/de_dlg.js +1 -0
  162. data/templates/tiny_mce/tiny_mce/plugins/searchreplace/langs/en_dlg.js +1 -16
  163. data/templates/tiny_mce/tiny_mce/plugins/searchreplace/searchreplace.htm +1 -100
  164. data/templates/tiny_mce/tiny_mce/plugins/spellchecker/css/content.css +1 -1
  165. data/templates/tiny_mce/tiny_mce/plugins/spellchecker/editor_plugin.js +1 -1
  166. data/templates/tiny_mce/tiny_mce/plugins/spellchecker/editor_plugin_src.js +1 -415
  167. data/templates/tiny_mce/tiny_mce/plugins/style/css/props.css +1 -13
  168. data/templates/tiny_mce/tiny_mce/plugins/style/editor_plugin.js +1 -1
  169. data/templates/tiny_mce/tiny_mce/plugins/style/editor_plugin_src.js +1 -55
  170. data/templates/tiny_mce/tiny_mce/plugins/style/js/props.js +1 -635
  171. data/templates/tiny_mce/tiny_mce/plugins/style/langs/de_dlg.js +1 -0
  172. data/templates/tiny_mce/tiny_mce/plugins/style/langs/en_dlg.js +1 -70
  173. data/templates/tiny_mce/tiny_mce/plugins/style/props.htm +1 -838
  174. data/templates/tiny_mce/tiny_mce/plugins/tabfocus/editor_plugin.js +1 -1
  175. data/templates/tiny_mce/tiny_mce/plugins/tabfocus/editor_plugin_src.js +1 -114
  176. data/templates/tiny_mce/tiny_mce/plugins/table/cell.htm +1 -178
  177. data/templates/tiny_mce/tiny_mce/plugins/table/css/cell.css +1 -17
  178. data/templates/tiny_mce/tiny_mce/plugins/table/css/row.css +1 -25
  179. data/templates/tiny_mce/tiny_mce/plugins/table/css/table.css +1 -13
  180. data/templates/tiny_mce/tiny_mce/plugins/table/editor_plugin.js +1 -1
  181. data/templates/tiny_mce/tiny_mce/plugins/table/editor_plugin_src.js +1 -1183
  182. data/templates/tiny_mce/tiny_mce/plugins/table/js/cell.js +1 -284
  183. data/templates/tiny_mce/tiny_mce/plugins/table/js/merge_cells.js +1 -27
  184. data/templates/tiny_mce/tiny_mce/plugins/table/js/row.js +1 -232
  185. data/templates/tiny_mce/tiny_mce/plugins/table/js/table.js +1 -450
  186. data/templates/tiny_mce/tiny_mce/plugins/table/langs/de_dlg.js +1 -0
  187. data/templates/tiny_mce/tiny_mce/plugins/table/langs/en_dlg.js +1 -74
  188. data/templates/tiny_mce/tiny_mce/plugins/table/merge_cells.htm +1 -32
  189. data/templates/tiny_mce/tiny_mce/plugins/table/row.htm +1 -157
  190. data/templates/tiny_mce/tiny_mce/plugins/table/table.htm +1 -188
  191. data/templates/tiny_mce/tiny_mce/plugins/template/blank.htm +1 -12
  192. data/templates/tiny_mce/tiny_mce/plugins/template/css/template.css +1 -23
  193. data/templates/tiny_mce/tiny_mce/plugins/template/editor_plugin.js +1 -1
  194. data/templates/tiny_mce/tiny_mce/plugins/template/editor_plugin_src.js +1 -159
  195. data/templates/tiny_mce/tiny_mce/plugins/template/js/template.js +1 -106
  196. data/templates/tiny_mce/tiny_mce/plugins/template/langs/de_dlg.js +1 -0
  197. data/templates/tiny_mce/tiny_mce/plugins/template/langs/en_dlg.js +1 -15
  198. data/templates/tiny_mce/tiny_mce/plugins/template/template.htm +1 -31
  199. data/templates/tiny_mce/tiny_mce/plugins/visualchars/editor_plugin.js +1 -1
  200. data/templates/tiny_mce/tiny_mce/plugins/visualchars/editor_plugin_src.js +1 -83
  201. data/templates/tiny_mce/tiny_mce/plugins/wordcount/editor_plugin.js +1 -1
  202. data/templates/tiny_mce/tiny_mce/plugins/wordcount/editor_plugin_src.js +1 -114
  203. data/templates/tiny_mce/tiny_mce/plugins/xhtmlxtras/abbr.htm +1 -142
  204. data/templates/tiny_mce/tiny_mce/plugins/xhtmlxtras/acronym.htm +1 -142
  205. data/templates/tiny_mce/tiny_mce/plugins/xhtmlxtras/attributes.htm +1 -149
  206. data/templates/tiny_mce/tiny_mce/plugins/xhtmlxtras/cite.htm +1 -142
  207. data/templates/tiny_mce/tiny_mce/plugins/xhtmlxtras/css/attributes.css +1 -11
  208. data/templates/tiny_mce/tiny_mce/plugins/xhtmlxtras/css/popup.css +1 -9
  209. data/templates/tiny_mce/tiny_mce/plugins/xhtmlxtras/del.htm +1 -162
  210. data/templates/tiny_mce/tiny_mce/plugins/xhtmlxtras/editor_plugin.js +1 -1
  211. data/templates/tiny_mce/tiny_mce/plugins/xhtmlxtras/editor_plugin_src.js +1 -132
  212. data/templates/tiny_mce/tiny_mce/plugins/xhtmlxtras/ins.htm +1 -162
  213. data/templates/tiny_mce/tiny_mce/plugins/xhtmlxtras/js/abbr.js +1 -28
  214. data/templates/tiny_mce/tiny_mce/plugins/xhtmlxtras/js/acronym.js +1 -28
  215. data/templates/tiny_mce/tiny_mce/plugins/xhtmlxtras/js/attributes.js +1 -125
  216. data/templates/tiny_mce/tiny_mce/plugins/xhtmlxtras/js/cite.js +1 -28
  217. data/templates/tiny_mce/tiny_mce/plugins/xhtmlxtras/js/del.js +1 -53
  218. data/templates/tiny_mce/tiny_mce/plugins/xhtmlxtras/js/element_common.js +1 -229
  219. data/templates/tiny_mce/tiny_mce/plugins/xhtmlxtras/js/ins.js +1 -53
  220. data/templates/tiny_mce/tiny_mce/plugins/xhtmlxtras/langs/de_dlg.js +1 -0
  221. data/templates/tiny_mce/tiny_mce/plugins/xhtmlxtras/langs/en_dlg.js +1 -32
  222. data/templates/tiny_mce/tiny_mce/themes/advanced/about.htm +1 -52
  223. data/templates/tiny_mce/tiny_mce/themes/advanced/anchor.htm +1 -26
  224. data/templates/tiny_mce/tiny_mce/themes/advanced/charmap.htm +1 -51
  225. data/templates/tiny_mce/tiny_mce/themes/advanced/color_picker.htm +1 -74
  226. data/templates/tiny_mce/tiny_mce/themes/advanced/editor_template.js +1 -1
  227. data/templates/tiny_mce/tiny_mce/themes/advanced/editor_template_src.js +1 -1328
  228. data/templates/tiny_mce/tiny_mce/themes/advanced/image.htm +1 -80
  229. data/templates/tiny_mce/tiny_mce/themes/advanced/js/about.js +1 -73
  230. data/templates/tiny_mce/tiny_mce/themes/advanced/js/anchor.js +1 -42
  231. data/templates/tiny_mce/tiny_mce/themes/advanced/js/charmap.js +1 -354
  232. data/templates/tiny_mce/tiny_mce/themes/advanced/js/color_picker.js +1 -329
  233. data/templates/tiny_mce/tiny_mce/themes/advanced/js/image.js +1 -247
  234. data/templates/tiny_mce/tiny_mce/themes/advanced/js/link.js +1 -153
  235. data/templates/tiny_mce/tiny_mce/themes/advanced/js/source_editor.js +1 -56
  236. data/templates/tiny_mce/tiny_mce/themes/advanced/langs/de.js +1 -0
  237. data/templates/tiny_mce/tiny_mce/themes/advanced/langs/de_dlg.js +1 -0
  238. data/templates/tiny_mce/tiny_mce/themes/advanced/langs/en.js +1 -68
  239. data/templates/tiny_mce/tiny_mce/themes/advanced/langs/en_dlg.js +1 -54
  240. data/templates/tiny_mce/tiny_mce/themes/advanced/link.htm +1 -57
  241. data/templates/tiny_mce/tiny_mce/themes/advanced/shortcuts.htm +1 -47
  242. data/templates/tiny_mce/tiny_mce/themes/advanced/skins/default/content.css +1 -47
  243. data/templates/tiny_mce/tiny_mce/themes/advanced/skins/default/dialog.css +1 -117
  244. data/templates/tiny_mce/tiny_mce/themes/advanced/skins/default/ui.css +1 -213
  245. data/templates/tiny_mce/tiny_mce/themes/advanced/skins/highcontrast/content.css +1 -23
  246. data/templates/tiny_mce/tiny_mce/themes/advanced/skins/highcontrast/dialog.css +1 -105
  247. data/templates/tiny_mce/tiny_mce/themes/advanced/skins/highcontrast/ui.css +1 -101
  248. data/templates/tiny_mce/tiny_mce/themes/advanced/skins/o2k7/content.css +1 -46
  249. data/templates/tiny_mce/tiny_mce/themes/advanced/skins/o2k7/dialog.css +1 -116
  250. data/templates/tiny_mce/tiny_mce/themes/advanced/skins/o2k7/ui.css +1 -215
  251. data/templates/tiny_mce/tiny_mce/themes/advanced/skins/o2k7/ui_black.css +1 -8
  252. data/templates/tiny_mce/tiny_mce/themes/advanced/skins/o2k7/ui_silver.css +1 -5
  253. data/templates/tiny_mce/tiny_mce/themes/advanced/source_editor.htm +1 -25
  254. data/templates/tiny_mce/tiny_mce/themes/simple/editor_template.js +1 -1
  255. data/templates/tiny_mce/tiny_mce/themes/simple/editor_template_src.js +1 -84
  256. data/templates/tiny_mce/tiny_mce/themes/simple/langs/de.js +1 -0
  257. data/templates/tiny_mce/tiny_mce/themes/simple/langs/en.js +1 -11
  258. data/templates/tiny_mce/tiny_mce/themes/simple/skins/default/content.css +1 -25
  259. data/templates/tiny_mce/tiny_mce/themes/simple/skins/default/ui.css +1 -32
  260. data/templates/tiny_mce/tiny_mce/themes/simple/skins/o2k7/content.css +1 -17
  261. data/templates/tiny_mce/tiny_mce/themes/simple/skins/o2k7/ui.css +1 -35
  262. data/templates/tiny_mce/tiny_mce/tiny_mce.js +1 -1
  263. data/templates/tiny_mce/tiny_mce/tiny_mce_popup.js +1 -5
  264. data/templates/tiny_mce/tiny_mce/utils/editable_selects.js +1 -70
  265. data/templates/tiny_mce/tiny_mce/utils/form_utils.js +1 -207
  266. data/templates/tiny_mce/tiny_mce/utils/mctabs.js +1 -162
  267. data/templates/tiny_mce/tiny_mce/utils/validate.js +1 -252
  268. metadata +32 -17
  269. data/templates/mobile/jquery/mobile/default/form-check-off.png +0 -0
  270. data/templates/mobile/jquery/mobile/default/form-check-on.png +0 -0
  271. data/templates/mobile/jquery/mobile/default/form-radio-off.png +0 -0
  272. data/templates/mobile/jquery/mobile/default/form-radio-on.png +0 -0
  273. data/templates/mobile/jquery/mobile/valencia/form-check-off.png +0 -0
  274. data/templates/mobile/jquery/mobile/valencia/form-check-on.png +0 -0
  275. data/templates/mobile/jquery/mobile/valencia/form-radio-off.png +0 -0
  276. data/templates/mobile/jquery/mobile/valencia/form-radio-on.png +0 -0
@@ -1,284 +1 @@
1
- tinyMCEPopup.requireLangPack();
2
-
3
- var ed;
4
-
5
- function init() {
6
- ed = tinyMCEPopup.editor;
7
- tinyMCEPopup.resizeToInnerSize();
8
-
9
- document.getElementById('backgroundimagebrowsercontainer').innerHTML = getBrowserHTML('backgroundimagebrowser','backgroundimage','image','table');
10
- document.getElementById('bordercolor_pickcontainer').innerHTML = getColorPickerHTML('bordercolor_pick','bordercolor');
11
- document.getElementById('bgcolor_pickcontainer').innerHTML = getColorPickerHTML('bgcolor_pick','bgcolor')
12
-
13
- var inst = ed;
14
- var tdElm = ed.dom.getParent(ed.selection.getStart(), "td,th");
15
- var formObj = document.forms[0];
16
- var st = ed.dom.parseStyle(ed.dom.getAttrib(tdElm, "style"));
17
-
18
- // Get table cell data
19
- var celltype = tdElm.nodeName.toLowerCase();
20
- var align = ed.dom.getAttrib(tdElm, 'align');
21
- var valign = ed.dom.getAttrib(tdElm, 'valign');
22
- var width = trimSize(getStyle(tdElm, 'width', 'width'));
23
- var height = trimSize(getStyle(tdElm, 'height', 'height'));
24
- var bordercolor = convertRGBToHex(getStyle(tdElm, 'bordercolor', 'borderLeftColor'));
25
- var bgcolor = convertRGBToHex(getStyle(tdElm, 'bgcolor', 'backgroundColor'));
26
- var className = ed.dom.getAttrib(tdElm, 'class');
27
- var backgroundimage = getStyle(tdElm, 'background', 'backgroundImage').replace(new RegExp("url\\(['\"]?([^'\"]*)['\"]?\\)", 'gi'), "$1");
28
- var id = ed.dom.getAttrib(tdElm, 'id');
29
- var lang = ed.dom.getAttrib(tdElm, 'lang');
30
- var dir = ed.dom.getAttrib(tdElm, 'dir');
31
- var scope = ed.dom.getAttrib(tdElm, 'scope');
32
-
33
- // Setup form
34
- addClassesToList('class', 'table_cell_styles');
35
- TinyMCE_EditableSelects.init();
36
-
37
- if (!ed.dom.hasClass(tdElm, 'mceSelected')) {
38
- formObj.bordercolor.value = bordercolor;
39
- formObj.bgcolor.value = bgcolor;
40
- formObj.backgroundimage.value = backgroundimage;
41
- formObj.width.value = width;
42
- formObj.height.value = height;
43
- formObj.id.value = id;
44
- formObj.lang.value = lang;
45
- formObj.style.value = ed.dom.serializeStyle(st);
46
- selectByValue(formObj, 'align', align);
47
- selectByValue(formObj, 'valign', valign);
48
- selectByValue(formObj, 'class', className, true, true);
49
- selectByValue(formObj, 'celltype', celltype);
50
- selectByValue(formObj, 'dir', dir);
51
- selectByValue(formObj, 'scope', scope);
52
-
53
- // Resize some elements
54
- if (isVisible('backgroundimagebrowser'))
55
- document.getElementById('backgroundimage').style.width = '180px';
56
-
57
- updateColor('bordercolor_pick', 'bordercolor');
58
- updateColor('bgcolor_pick', 'bgcolor');
59
- } else
60
- tinyMCEPopup.dom.hide('action');
61
- }
62
-
63
- function updateAction() {
64
- var el, inst = ed, tdElm, trElm, tableElm, formObj = document.forms[0];
65
-
66
- tinyMCEPopup.restoreSelection();
67
- el = ed.selection.getStart();
68
- tdElm = ed.dom.getParent(el, "td,th");
69
- trElm = ed.dom.getParent(el, "tr");
70
- tableElm = ed.dom.getParent(el, "table");
71
-
72
- // Cell is selected
73
- if (ed.dom.hasClass(tdElm, 'mceSelected')) {
74
- // Update all selected sells
75
- tinymce.each(ed.dom.select('td.mceSelected,th.mceSelected'), function(td) {
76
- updateCell(td);
77
- });
78
-
79
- ed.addVisual();
80
- ed.nodeChanged();
81
- inst.execCommand('mceEndUndoLevel');
82
- tinyMCEPopup.close();
83
- return;
84
- }
85
-
86
- switch (getSelectValue(formObj, 'action')) {
87
- case "cell":
88
- var celltype = getSelectValue(formObj, 'celltype');
89
- var scope = getSelectValue(formObj, 'scope');
90
-
91
- function doUpdate(s) {
92
- if (s) {
93
- updateCell(tdElm);
94
-
95
- ed.addVisual();
96
- ed.nodeChanged();
97
- inst.execCommand('mceEndUndoLevel');
98
- tinyMCEPopup.close();
99
- }
100
- };
101
-
102
- if (ed.getParam("accessibility_warnings", 1)) {
103
- if (celltype == "th" && scope == "")
104
- tinyMCEPopup.confirm(ed.getLang('table_dlg.missing_scope', '', true), doUpdate);
105
- else
106
- doUpdate(1);
107
-
108
- return;
109
- }
110
-
111
- updateCell(tdElm);
112
- break;
113
-
114
- case "row":
115
- var cell = trElm.firstChild;
116
-
117
- if (cell.nodeName != "TD" && cell.nodeName != "TH")
118
- cell = nextCell(cell);
119
-
120
- do {
121
- cell = updateCell(cell, true);
122
- } while ((cell = nextCell(cell)) != null);
123
-
124
- break;
125
-
126
- case "all":
127
- var rows = tableElm.getElementsByTagName("tr");
128
-
129
- for (var i=0; i<rows.length; i++) {
130
- var cell = rows[i].firstChild;
131
-
132
- if (cell.nodeName != "TD" && cell.nodeName != "TH")
133
- cell = nextCell(cell);
134
-
135
- do {
136
- cell = updateCell(cell, true);
137
- } while ((cell = nextCell(cell)) != null);
138
- }
139
-
140
- break;
141
- }
142
-
143
- ed.addVisual();
144
- ed.nodeChanged();
145
- inst.execCommand('mceEndUndoLevel');
146
- tinyMCEPopup.close();
147
- }
148
-
149
- function nextCell(elm) {
150
- while ((elm = elm.nextSibling) != null) {
151
- if (elm.nodeName == "TD" || elm.nodeName == "TH")
152
- return elm;
153
- }
154
-
155
- return null;
156
- }
157
-
158
- function updateCell(td, skip_id) {
159
- var inst = ed;
160
- var formObj = document.forms[0];
161
- var curCellType = td.nodeName.toLowerCase();
162
- var celltype = getSelectValue(formObj, 'celltype');
163
- var doc = inst.getDoc();
164
- var dom = ed.dom;
165
-
166
- if (!skip_id)
167
- dom.setAttrib(td, 'id', formObj.id.value);
168
-
169
- dom.setAttrib(td, 'align', formObj.align.value);
170
- dom.setAttrib(td, 'vAlign', formObj.valign.value);
171
- dom.setAttrib(td, 'lang', formObj.lang.value);
172
- dom.setAttrib(td, 'dir', getSelectValue(formObj, 'dir'));
173
- dom.setAttrib(td, 'style', ed.dom.serializeStyle(ed.dom.parseStyle(formObj.style.value)));
174
- dom.setAttrib(td, 'scope', formObj.scope.value);
175
- dom.setAttrib(td, 'class', getSelectValue(formObj, 'class'));
176
-
177
- // Clear deprecated attributes
178
- ed.dom.setAttrib(td, 'width', '');
179
- ed.dom.setAttrib(td, 'height', '');
180
- ed.dom.setAttrib(td, 'bgColor', '');
181
- ed.dom.setAttrib(td, 'borderColor', '');
182
- ed.dom.setAttrib(td, 'background', '');
183
-
184
- // Set styles
185
- td.style.width = getCSSSize(formObj.width.value);
186
- td.style.height = getCSSSize(formObj.height.value);
187
- if (formObj.bordercolor.value != "") {
188
- td.style.borderColor = formObj.bordercolor.value;
189
- td.style.borderStyle = td.style.borderStyle == "" ? "solid" : td.style.borderStyle;
190
- td.style.borderWidth = td.style.borderWidth == "" ? "1px" : td.style.borderWidth;
191
- } else
192
- td.style.borderColor = '';
193
-
194
- td.style.backgroundColor = formObj.bgcolor.value;
195
-
196
- if (formObj.backgroundimage.value != "")
197
- td.style.backgroundImage = "url('" + formObj.backgroundimage.value + "')";
198
- else
199
- td.style.backgroundImage = '';
200
-
201
- if (curCellType != celltype) {
202
- // changing to a different node type
203
- var newCell = doc.createElement(celltype);
204
-
205
- for (var c=0; c<td.childNodes.length; c++)
206
- newCell.appendChild(td.childNodes[c].cloneNode(1));
207
-
208
- for (var a=0; a<td.attributes.length; a++)
209
- ed.dom.setAttrib(newCell, td.attributes[a].name, ed.dom.getAttrib(td, td.attributes[a].name));
210
-
211
- td.parentNode.replaceChild(newCell, td);
212
- td = newCell;
213
- }
214
-
215
- dom.setAttrib(td, 'style', dom.serializeStyle(dom.parseStyle(td.style.cssText)));
216
-
217
- return td;
218
- }
219
-
220
- function changedBackgroundImage() {
221
- var formObj = document.forms[0];
222
- var st = ed.dom.parseStyle(formObj.style.value);
223
-
224
- st['background-image'] = "url('" + formObj.backgroundimage.value + "')";
225
-
226
- formObj.style.value = ed.dom.serializeStyle(st);
227
- }
228
-
229
- function changedSize() {
230
- var formObj = document.forms[0];
231
- var st = ed.dom.parseStyle(formObj.style.value);
232
-
233
- var width = formObj.width.value;
234
- if (width != "")
235
- st['width'] = getCSSSize(width);
236
- else
237
- st['width'] = "";
238
-
239
- var height = formObj.height.value;
240
- if (height != "")
241
- st['height'] = getCSSSize(height);
242
- else
243
- st['height'] = "";
244
-
245
- formObj.style.value = ed.dom.serializeStyle(st);
246
- }
247
-
248
- function changedColor() {
249
- var formObj = document.forms[0];
250
- var st = ed.dom.parseStyle(formObj.style.value);
251
-
252
- st['background-color'] = formObj.bgcolor.value;
253
- st['border-color'] = formObj.bordercolor.value;
254
-
255
- formObj.style.value = ed.dom.serializeStyle(st);
256
- }
257
-
258
- function changedStyle() {
259
- var formObj = document.forms[0];
260
- var st = ed.dom.parseStyle(formObj.style.value);
261
-
262
- if (st['background-image'])
263
- formObj.backgroundimage.value = st['background-image'].replace(new RegExp("url\\('?([^']*)'?\\)", 'gi'), "$1");
264
- else
265
- formObj.backgroundimage.value = '';
266
-
267
- if (st['width'])
268
- formObj.width.value = trimSize(st['width']);
269
-
270
- if (st['height'])
271
- formObj.height.value = trimSize(st['height']);
272
-
273
- if (st['background-color']) {
274
- formObj.bgcolor.value = st['background-color'];
275
- updateColor('bgcolor_pick','bgcolor');
276
- }
277
-
278
- if (st['border-color']) {
279
- formObj.bordercolor.value = st['border-color'];
280
- updateColor('bordercolor_pick','bordercolor');
281
- }
282
- }
283
-
284
- tinyMCEPopup.onInit.add(init);
1
+ tinyMCEPopup.requireLangPack();var ed;function init(){ed=tinyMCEPopup.editor;tinyMCEPopup.resizeToInnerSize();document.getElementById("backgroundimagebrowsercontainer").innerHTML=getBrowserHTML("backgroundimagebrowser","backgroundimage","image","table");document.getElementById("bordercolor_pickcontainer").innerHTML=getColorPickerHTML("bordercolor_pick","bordercolor");document.getElementById("bgcolor_pickcontainer").innerHTML=getColorPickerHTML("bgcolor_pick","bgcolor");var g=ed;var i=ed.dom.getParent(ed.selection.getStart(),"td,th");var h=document.forms[0];var o=ed.dom.parseStyle(ed.dom.getAttrib(i,"style"));var e=i.nodeName.toLowerCase();var j=ed.dom.getAttrib(i,"align");var l=ed.dom.getAttrib(i,"valign");var b=trimSize(getStyle(i,"width","width"));var m=trimSize(getStyle(i,"height","height"));var f=convertRGBToHex(getStyle(i,"bordercolor","borderLeftColor"));var q=convertRGBToHex(getStyle(i,"bgcolor","backgroundColor"));var k=ed.dom.getAttrib(i,"class");var p=getStyle(i,"background","backgroundImage").replace(new RegExp("url\\(['\"]?([^'\"]*)['\"]?\\)","gi"),"$1");var a=ed.dom.getAttrib(i,"id");var c=ed.dom.getAttrib(i,"lang");var d=ed.dom.getAttrib(i,"dir");var n=ed.dom.getAttrib(i,"scope");addClassesToList("class","table_cell_styles");TinyMCE_EditableSelects.init();if(!ed.dom.hasClass(i,"mceSelected")){h.bordercolor.value=f;h.bgcolor.value=q;h.backgroundimage.value=p;h.width.value=b;h.height.value=m;h.id.value=a;h.lang.value=c;h.style.value=ed.dom.serializeStyle(o);selectByValue(h,"align",j);selectByValue(h,"valign",l);selectByValue(h,"class",k,true,true);selectByValue(h,"celltype",e);selectByValue(h,"dir",d);selectByValue(h,"scope",n);if(isVisible("backgroundimagebrowser")){document.getElementById("backgroundimage").style.width="180px"}updateColor("bordercolor_pick","bordercolor");updateColor("bgcolor_pick","bgcolor")}else{tinyMCEPopup.dom.hide("action")}}function updateAction(){var a,d=ed,f,j,g,e=document.forms[0];tinyMCEPopup.restoreSelection();a=ed.selection.getStart();f=ed.dom.getParent(a,"td,th");j=ed.dom.getParent(a,"tr");g=ed.dom.getParent(a,"table");if(ed.dom.hasClass(f,"mceSelected")){tinymce.each(ed.dom.select("td.mceSelected,th.mceSelected"),function(i){updateCell(i)});ed.addVisual();ed.nodeChanged();d.execCommand("mceEndUndoLevel");tinyMCEPopup.close();return}switch(getSelectValue(e,"action")){case"cell":var c=getSelectValue(e,"celltype");var l=getSelectValue(e,"scope");function k(i){if(i){updateCell(f);ed.addVisual();ed.nodeChanged();d.execCommand("mceEndUndoLevel");tinyMCEPopup.close()}}if(ed.getParam("accessibility_warnings",1)){if(c=="th"&&l==""){tinyMCEPopup.confirm(ed.getLang("table_dlg.missing_scope","",true),k)}else{k(1)}return}updateCell(f);break;case"row":var h=j.firstChild;if(h.nodeName!="TD"&&h.nodeName!="TH"){h=nextCell(h)}do{h=updateCell(h,true)}while((h=nextCell(h))!=null);break;case"all":var m=g.getElementsByTagName("tr");for(var b=0;b<m.length;b++){var h=m[b].firstChild;if(h.nodeName!="TD"&&h.nodeName!="TH"){h=nextCell(h)}do{h=updateCell(h,true)}while((h=nextCell(h))!=null)}break}ed.addVisual();ed.nodeChanged();d.execCommand("mceEndUndoLevel");tinyMCEPopup.close()}function nextCell(a){while((a=a.nextSibling)!=null){if(a.nodeName=="TD"||a.nodeName=="TH"){return a}}return null}function updateCell(d,j){var h=ed;var i=document.forms[0];var b=d.nodeName.toLowerCase();var g=getSelectValue(i,"celltype");var m=h.getDoc();var e=ed.dom;if(!j){e.setAttrib(d,"id",i.id.value)}e.setAttrib(d,"align",i.align.value);e.setAttrib(d,"vAlign",i.valign.value);e.setAttrib(d,"lang",i.lang.value);e.setAttrib(d,"dir",getSelectValue(i,"dir"));e.setAttrib(d,"style",ed.dom.serializeStyle(ed.dom.parseStyle(i.style.value)));e.setAttrib(d,"scope",i.scope.value);e.setAttrib(d,"class",getSelectValue(i,"class"));ed.dom.setAttrib(d,"width","");ed.dom.setAttrib(d,"height","");ed.dom.setAttrib(d,"bgColor","");ed.dom.setAttrib(d,"borderColor","");ed.dom.setAttrib(d,"background","");d.style.width=getCSSSize(i.width.value);d.style.height=getCSSSize(i.height.value);if(i.bordercolor.value!=""){d.style.borderColor=i.bordercolor.value;d.style.borderStyle=d.style.borderStyle==""?"solid":d.style.borderStyle;d.style.borderWidth=d.style.borderWidth==""?"1px":d.style.borderWidth}else{d.style.borderColor=""}d.style.backgroundColor=i.bgcolor.value;if(i.backgroundimage.value!=""){d.style.backgroundImage="url('"+i.backgroundimage.value+"')"}else{d.style.backgroundImage=""}if(b!=g){var f=m.createElement(g);for(var k=0;k<d.childNodes.length;k++){f.appendChild(d.childNodes[k].cloneNode(1))}for(var l=0;l<d.attributes.length;l++){ed.dom.setAttrib(f,d.attributes[l].name,ed.dom.getAttrib(d,d.attributes[l].name))}d.parentNode.replaceChild(f,d);d=f}e.setAttrib(d,"style",e.serializeStyle(e.parseStyle(d.style.cssText)));return d}function changedBackgroundImage(){var a=document.forms[0];var b=ed.dom.parseStyle(a.style.value);b["background-image"]="url('"+a.backgroundimage.value+"')";a.style.value=ed.dom.serializeStyle(b)}function changedSize(){var b=document.forms[0];var c=ed.dom.parseStyle(b.style.value);var d=b.width.value;if(d!=""){c.width=getCSSSize(d)}else{c.width=""}var a=b.height.value;if(a!=""){c.height=getCSSSize(a)}else{c.height=""}b.style.value=ed.dom.serializeStyle(c)}function changedColor(){var a=document.forms[0];var b=ed.dom.parseStyle(a.style.value);b["background-color"]=a.bgcolor.value;b["border-color"]=a.bordercolor.value;a.style.value=ed.dom.serializeStyle(b)}function changedStyle(){var a=document.forms[0];var b=ed.dom.parseStyle(a.style.value);if(b["background-image"]){a.backgroundimage.value=b["background-image"].replace(new RegExp("url\\('?([^']*)'?\\)","gi"),"$1")}else{a.backgroundimage.value=""}if(b.width){a.width.value=trimSize(b.width)}if(b.height){a.height.value=trimSize(b.height)}if(b["background-color"]){a.bgcolor.value=b["background-color"];updateColor("bgcolor_pick","bgcolor")}if(b["border-color"]){a.bordercolor.value=b["border-color"];updateColor("bordercolor_pick","bordercolor")}}tinyMCEPopup.onInit.add(init);
@@ -1,27 +1 @@
1
- tinyMCEPopup.requireLangPack();
2
-
3
- var MergeCellsDialog = {
4
- init : function() {
5
- var f = document.forms[0];
6
-
7
- f.numcols.value = tinyMCEPopup.getWindowArg('cols', 1);
8
- f.numrows.value = tinyMCEPopup.getWindowArg('rows', 1);
9
- },
10
-
11
- merge : function() {
12
- var func, f = document.forms[0];
13
-
14
- tinyMCEPopup.restoreSelection();
15
-
16
- func = tinyMCEPopup.getWindowArg('onaction');
17
-
18
- func({
19
- cols : f.numcols.value,
20
- rows : f.numrows.value
21
- });
22
-
23
- tinyMCEPopup.close();
24
- }
25
- };
26
-
27
- tinyMCEPopup.onInit.add(MergeCellsDialog.init, MergeCellsDialog);
1
+ tinyMCEPopup.requireLangPack();var MergeCellsDialog={init:function(){var a=document.forms[0];a.numcols.value=tinyMCEPopup.getWindowArg("cols",1);a.numrows.value=tinyMCEPopup.getWindowArg("rows",1)},merge:function(){var a,b=document.forms[0];tinyMCEPopup.restoreSelection();a=tinyMCEPopup.getWindowArg("onaction");a({cols:b.numcols.value,rows:b.numrows.value});tinyMCEPopup.close()}};tinyMCEPopup.onInit.add(MergeCellsDialog.init,MergeCellsDialog);
@@ -1,232 +1 @@
1
- tinyMCEPopup.requireLangPack();
2
-
3
- function init() {
4
- tinyMCEPopup.resizeToInnerSize();
5
-
6
- document.getElementById('backgroundimagebrowsercontainer').innerHTML = getBrowserHTML('backgroundimagebrowser','backgroundimage','image','table');
7
- document.getElementById('bgcolor_pickcontainer').innerHTML = getColorPickerHTML('bgcolor_pick','bgcolor');
8
-
9
- var inst = tinyMCEPopup.editor;
10
- var dom = inst.dom;
11
- var trElm = dom.getParent(inst.selection.getStart(), "tr");
12
- var formObj = document.forms[0];
13
- var st = dom.parseStyle(dom.getAttrib(trElm, "style"));
14
-
15
- // Get table row data
16
- var rowtype = trElm.parentNode.nodeName.toLowerCase();
17
- var align = dom.getAttrib(trElm, 'align');
18
- var valign = dom.getAttrib(trElm, 'valign');
19
- var height = trimSize(getStyle(trElm, 'height', 'height'));
20
- var className = dom.getAttrib(trElm, 'class');
21
- var bgcolor = convertRGBToHex(getStyle(trElm, 'bgcolor', 'backgroundColor'));
22
- var backgroundimage = getStyle(trElm, 'background', 'backgroundImage').replace(new RegExp("url\\(['\"]?([^'\"]*)['\"]?\\)", 'gi'), "$1");
23
- var id = dom.getAttrib(trElm, 'id');
24
- var lang = dom.getAttrib(trElm, 'lang');
25
- var dir = dom.getAttrib(trElm, 'dir');
26
-
27
- selectByValue(formObj, 'rowtype', rowtype);
28
-
29
- // Any cells selected
30
- if (dom.select('td.mceSelected,th.mceSelected', trElm).length == 0) {
31
- // Setup form
32
- addClassesToList('class', 'table_row_styles');
33
- TinyMCE_EditableSelects.init();
34
-
35
- formObj.bgcolor.value = bgcolor;
36
- formObj.backgroundimage.value = backgroundimage;
37
- formObj.height.value = height;
38
- formObj.id.value = id;
39
- formObj.lang.value = lang;
40
- formObj.style.value = dom.serializeStyle(st);
41
- selectByValue(formObj, 'align', align);
42
- selectByValue(formObj, 'valign', valign);
43
- selectByValue(formObj, 'class', className, true, true);
44
- selectByValue(formObj, 'dir', dir);
45
-
46
- // Resize some elements
47
- if (isVisible('backgroundimagebrowser'))
48
- document.getElementById('backgroundimage').style.width = '180px';
49
-
50
- updateColor('bgcolor_pick', 'bgcolor');
51
- } else
52
- tinyMCEPopup.dom.hide('action');
53
- }
54
-
55
- function updateAction() {
56
- var inst = tinyMCEPopup.editor, dom = inst.dom, trElm, tableElm, formObj = document.forms[0];
57
- var action = getSelectValue(formObj, 'action');
58
-
59
- tinyMCEPopup.restoreSelection();
60
- trElm = dom.getParent(inst.selection.getStart(), "tr");
61
- tableElm = dom.getParent(inst.selection.getStart(), "table");
62
-
63
- // Update all selected rows
64
- if (dom.select('td.mceSelected,th.mceSelected', trElm).length > 0) {
65
- tinymce.each(tableElm.rows, function(tr) {
66
- var i;
67
-
68
- for (i = 0; i < tr.cells.length; i++) {
69
- if (dom.hasClass(tr.cells[i], 'mceSelected')) {
70
- updateRow(tr, true);
71
- return;
72
- }
73
- }
74
- });
75
-
76
- inst.addVisual();
77
- inst.nodeChanged();
78
- inst.execCommand('mceEndUndoLevel');
79
- tinyMCEPopup.close();
80
- return;
81
- }
82
-
83
- switch (action) {
84
- case "row":
85
- updateRow(trElm);
86
- break;
87
-
88
- case "all":
89
- var rows = tableElm.getElementsByTagName("tr");
90
-
91
- for (var i=0; i<rows.length; i++)
92
- updateRow(rows[i], true);
93
-
94
- break;
95
-
96
- case "odd":
97
- case "even":
98
- var rows = tableElm.getElementsByTagName("tr");
99
-
100
- for (var i=0; i<rows.length; i++) {
101
- if ((i % 2 == 0 && action == "odd") || (i % 2 != 0 && action == "even"))
102
- updateRow(rows[i], true, true);
103
- }
104
-
105
- break;
106
- }
107
-
108
- inst.addVisual();
109
- inst.nodeChanged();
110
- inst.execCommand('mceEndUndoLevel');
111
- tinyMCEPopup.close();
112
- }
113
-
114
- function updateRow(tr_elm, skip_id, skip_parent) {
115
- var inst = tinyMCEPopup.editor;
116
- var formObj = document.forms[0];
117
- var dom = inst.dom;
118
- var curRowType = tr_elm.parentNode.nodeName.toLowerCase();
119
- var rowtype = getSelectValue(formObj, 'rowtype');
120
- var doc = inst.getDoc();
121
-
122
- // Update row element
123
- if (!skip_id)
124
- dom.setAttrib(tr_elm, 'id', formObj.id.value);
125
-
126
- dom.setAttrib(tr_elm, 'align', getSelectValue(formObj, 'align'));
127
- dom.setAttrib(tr_elm, 'vAlign', getSelectValue(formObj, 'valign'));
128
- dom.setAttrib(tr_elm, 'lang', formObj.lang.value);
129
- dom.setAttrib(tr_elm, 'dir', getSelectValue(formObj, 'dir'));
130
- dom.setAttrib(tr_elm, 'style', dom.serializeStyle(dom.parseStyle(formObj.style.value)));
131
- dom.setAttrib(tr_elm, 'class', getSelectValue(formObj, 'class'));
132
-
133
- // Clear deprecated attributes
134
- dom.setAttrib(tr_elm, 'background', '');
135
- dom.setAttrib(tr_elm, 'bgColor', '');
136
- dom.setAttrib(tr_elm, 'height', '');
137
-
138
- // Set styles
139
- tr_elm.style.height = getCSSSize(formObj.height.value);
140
- tr_elm.style.backgroundColor = formObj.bgcolor.value;
141
-
142
- if (formObj.backgroundimage.value != "")
143
- tr_elm.style.backgroundImage = "url('" + formObj.backgroundimage.value + "')";
144
- else
145
- tr_elm.style.backgroundImage = '';
146
-
147
- // Setup new rowtype
148
- if (curRowType != rowtype && !skip_parent) {
149
- // first, clone the node we are working on
150
- var newRow = tr_elm.cloneNode(1);
151
-
152
- // next, find the parent of its new destination (creating it if necessary)
153
- var theTable = dom.getParent(tr_elm, "table");
154
- var dest = rowtype;
155
- var newParent = null;
156
- for (var i = 0; i < theTable.childNodes.length; i++) {
157
- if (theTable.childNodes[i].nodeName.toLowerCase() == dest)
158
- newParent = theTable.childNodes[i];
159
- }
160
-
161
- if (newParent == null) {
162
- newParent = doc.createElement(dest);
163
-
164
- if (theTable.firstChild.nodeName == 'CAPTION')
165
- inst.dom.insertAfter(newParent, theTable.firstChild);
166
- else
167
- theTable.insertBefore(newParent, theTable.firstChild);
168
- }
169
-
170
- // append the row to the new parent
171
- newParent.appendChild(newRow);
172
-
173
- // remove the original
174
- tr_elm.parentNode.removeChild(tr_elm);
175
-
176
- // set tr_elm to the new node
177
- tr_elm = newRow;
178
- }
179
-
180
- dom.setAttrib(tr_elm, 'style', dom.serializeStyle(dom.parseStyle(tr_elm.style.cssText)));
181
- }
182
-
183
- function changedBackgroundImage() {
184
- var formObj = document.forms[0], dom = tinyMCEPopup.editor.dom;
185
- var st = dom.parseStyle(formObj.style.value);
186
-
187
- st['background-image'] = "url('" + formObj.backgroundimage.value + "')";
188
-
189
- formObj.style.value = dom.serializeStyle(st);
190
- }
191
-
192
- function changedStyle() {
193
- var formObj = document.forms[0], dom = tinyMCEPopup.editor.dom;
194
- var st = dom.parseStyle(formObj.style.value);
195
-
196
- if (st['background-image'])
197
- formObj.backgroundimage.value = st['background-image'].replace(new RegExp("url\\('?([^']*)'?\\)", 'gi'), "$1");
198
- else
199
- formObj.backgroundimage.value = '';
200
-
201
- if (st['height'])
202
- formObj.height.value = trimSize(st['height']);
203
-
204
- if (st['background-color']) {
205
- formObj.bgcolor.value = st['background-color'];
206
- updateColor('bgcolor_pick','bgcolor');
207
- }
208
- }
209
-
210
- function changedSize() {
211
- var formObj = document.forms[0], dom = tinyMCEPopup.editor.dom;
212
- var st = dom.parseStyle(formObj.style.value);
213
-
214
- var height = formObj.height.value;
215
- if (height != "")
216
- st['height'] = getCSSSize(height);
217
- else
218
- st['height'] = "";
219
-
220
- formObj.style.value = dom.serializeStyle(st);
221
- }
222
-
223
- function changedColor() {
224
- var formObj = document.forms[0], dom = tinyMCEPopup.editor.dom;
225
- var st = dom.parseStyle(formObj.style.value);
226
-
227
- st['background-color'] = formObj.bgcolor.value;
228
-
229
- formObj.style.value = dom.serializeStyle(st);
230
- }
231
-
232
- tinyMCEPopup.onInit.add(init);
1
+ tinyMCEPopup.requireLangPack();function init(){tinyMCEPopup.resizeToInnerSize();document.getElementById("backgroundimagebrowsercontainer").innerHTML=getBrowserHTML("backgroundimagebrowser","backgroundimage","image","table");document.getElementById("bgcolor_pickcontainer").innerHTML=getColorPickerHTML("bgcolor_pick","bgcolor");var f=tinyMCEPopup.editor;var e=f.dom;var k=e.getParent(f.selection.getStart(),"tr");var g=document.forms[0];var m=e.parseStyle(e.getAttrib(k,"style"));var c=k.parentNode.nodeName.toLowerCase();var h=e.getAttrib(k,"align");var j=e.getAttrib(k,"valign");var l=trimSize(getStyle(k,"height","height"));var i=e.getAttrib(k,"class");var o=convertRGBToHex(getStyle(k,"bgcolor","backgroundColor"));var n=getStyle(k,"background","backgroundImage").replace(new RegExp("url\\(['\"]?([^'\"]*)['\"]?\\)","gi"),"$1");var a=e.getAttrib(k,"id");var b=e.getAttrib(k,"lang");var d=e.getAttrib(k,"dir");selectByValue(g,"rowtype",c);if(e.select("td.mceSelected,th.mceSelected",k).length==0){addClassesToList("class","table_row_styles");TinyMCE_EditableSelects.init();g.bgcolor.value=o;g.backgroundimage.value=n;g.height.value=l;g.id.value=a;g.lang.value=b;g.style.value=e.serializeStyle(m);selectByValue(g,"align",h);selectByValue(g,"valign",j);selectByValue(g,"class",i,true,true);selectByValue(g,"dir",d);if(isVisible("backgroundimagebrowser")){document.getElementById("backgroundimage").style.width="180px"}updateColor("bgcolor_pick","bgcolor")}else{tinyMCEPopup.dom.hide("action")}}function updateAction(){var f=tinyMCEPopup.editor,h=f.dom,g,b,a=document.forms[0];var e=getSelectValue(a,"action");tinyMCEPopup.restoreSelection();g=h.getParent(f.selection.getStart(),"tr");b=h.getParent(f.selection.getStart(),"table");if(h.select("td.mceSelected,th.mceSelected",g).length>0){tinymce.each(b.rows,function(k){var j;for(j=0;j<k.cells.length;j++){if(h.hasClass(k.cells[j],"mceSelected")){updateRow(k,true);return}}});f.addVisual();f.nodeChanged();f.execCommand("mceEndUndoLevel");tinyMCEPopup.close();return}switch(e){case"row":updateRow(g);break;case"all":var d=b.getElementsByTagName("tr");for(var c=0;c<d.length;c++){updateRow(d[c],true)}break;case"odd":case"even":var d=b.getElementsByTagName("tr");for(var c=0;c<d.length;c++){if((c%2==0&&e=="odd")||(c%2!=0&&e=="even")){updateRow(d[c],true,true)}}break}f.addVisual();f.nodeChanged();f.execCommand("mceEndUndoLevel");tinyMCEPopup.close()}function updateRow(h,j,k){var f=tinyMCEPopup.editor;var g=document.forms[0];var d=f.dom;var a=h.parentNode.nodeName.toLowerCase();var b=getSelectValue(g,"rowtype");var m=f.getDoc();if(!j){d.setAttrib(h,"id",g.id.value)}d.setAttrib(h,"align",getSelectValue(g,"align"));d.setAttrib(h,"vAlign",getSelectValue(g,"valign"));d.setAttrib(h,"lang",g.lang.value);d.setAttrib(h,"dir",getSelectValue(g,"dir"));d.setAttrib(h,"style",d.serializeStyle(d.parseStyle(g.style.value)));d.setAttrib(h,"class",getSelectValue(g,"class"));d.setAttrib(h,"background","");d.setAttrib(h,"bgColor","");d.setAttrib(h,"height","");h.style.height=getCSSSize(g.height.value);h.style.backgroundColor=g.bgcolor.value;if(g.backgroundimage.value!=""){h.style.backgroundImage="url('"+g.backgroundimage.value+"')"}else{h.style.backgroundImage=""}if(a!=b&&!k){var o=h.cloneNode(1);var c=d.getParent(h,"table");var l=b;var n=null;for(var e=0;e<c.childNodes.length;e++){if(c.childNodes[e].nodeName.toLowerCase()==l){n=c.childNodes[e]}}if(n==null){n=m.createElement(l);if(c.firstChild.nodeName=="CAPTION"){f.dom.insertAfter(n,c.firstChild)}else{c.insertBefore(n,c.firstChild)}}n.appendChild(o);h.parentNode.removeChild(h);h=o}d.setAttrib(h,"style",d.serializeStyle(d.parseStyle(h.style.cssText)))}function changedBackgroundImage(){var a=document.forms[0],c=tinyMCEPopup.editor.dom;var b=c.parseStyle(a.style.value);b["background-image"]="url('"+a.backgroundimage.value+"')";a.style.value=c.serializeStyle(b)}function changedStyle(){var a=document.forms[0],c=tinyMCEPopup.editor.dom;var b=c.parseStyle(a.style.value);if(b["background-image"]){a.backgroundimage.value=b["background-image"].replace(new RegExp("url\\('?([^']*)'?\\)","gi"),"$1")}else{a.backgroundimage.value=""}if(b.height){a.height.value=trimSize(b.height)}if(b["background-color"]){a.bgcolor.value=b["background-color"];updateColor("bgcolor_pick","bgcolor")}}function changedSize(){var b=document.forms[0],d=tinyMCEPopup.editor.dom;var c=d.parseStyle(b.style.value);var a=b.height.value;if(a!=""){c.height=getCSSSize(a)}else{c.height=""}b.style.value=d.serializeStyle(c)}function changedColor(){var a=document.forms[0],c=tinyMCEPopup.editor.dom;var b=c.parseStyle(a.style.value);b["background-color"]=a.bgcolor.value;a.style.value=c.serializeStyle(b)}tinyMCEPopup.onInit.add(init);