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,492 +1 @@
1
- /**
2
- * fullpage.js
3
- *
4
- * Copyright 2009, Moxiecode Systems AB
5
- * Released under LGPL License.
6
- *
7
- * License: http://tinymce.moxiecode.com/license
8
- * Contributing: http://tinymce.moxiecode.com/contributing
9
- */
10
-
11
- tinyMCEPopup.requireLangPack();
12
-
13
- var doc;
14
-
15
- var defaultDocTypes =
16
- 'XHTML 1.0 Transitional=<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">,' +
17
- 'XHTML 1.0 Frameset=<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Frameset//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd">,' +
18
- 'XHTML 1.0 Strict=<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">,' +
19
- 'XHTML 1.1=<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">,' +
20
- 'HTML 4.01 Transitional=<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">,' +
21
- 'HTML 4.01 Strict=<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">,' +
22
- 'HTML 4.01 Frameset=<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN" "http://www.w3.org/TR/html4/frameset.dtd">';
23
-
24
- var defaultEncodings =
25
- 'Western european (iso-8859-1)=iso-8859-1,' +
26
- 'Central European (iso-8859-2)=iso-8859-2,' +
27
- 'Unicode (UTF-8)=utf-8,' +
28
- 'Chinese traditional (Big5)=big5,' +
29
- 'Cyrillic (iso-8859-5)=iso-8859-5,' +
30
- 'Japanese (iso-2022-jp)=iso-2022-jp,' +
31
- 'Greek (iso-8859-7)=iso-8859-7,' +
32
- 'Korean (iso-2022-kr)=iso-2022-kr,' +
33
- 'ASCII (us-ascii)=us-ascii';
34
-
35
- var defaultMediaTypes =
36
- 'all=all,' +
37
- 'screen=screen,' +
38
- 'print=print,' +
39
- 'tty=tty,' +
40
- 'tv=tv,' +
41
- 'projection=projection,' +
42
- 'handheld=handheld,' +
43
- 'braille=braille,' +
44
- 'aural=aural';
45
-
46
- var defaultFontNames = 'Arial=arial,helvetica,sans-serif;Courier New=courier new,courier,monospace;Georgia=georgia,times new roman,times,serif;Tahoma=tahoma,arial,helvetica,sans-serif;Times New Roman=times new roman,times,serif;Verdana=verdana,arial,helvetica,sans-serif;Impact=impact;WingDings=wingdings';
47
- var defaultFontSizes = '10px,11px,12px,13px,14px,15px,16px';
48
-
49
- function init() {
50
- var f = document.forms['fullpage'], el = f.elements, e, i, p, doctypes, encodings, mediaTypes, dir, fonts, ed = tinyMCEPopup.editor, dom = tinyMCEPopup.dom, style;
51
-
52
- // Setup doctype select box
53
- doctypes = ed.getParam("fullpage_doctypes", defaultDocTypes).split(',');
54
- for (i=0; i<doctypes.length; i++) {
55
- p = doctypes[i].split('=');
56
-
57
- if (p.length > 1)
58
- addSelectValue(f, 'doctypes', p[0], p[1]);
59
- }
60
-
61
- // Setup fonts select box
62
- fonts = ed.getParam("fullpage_fonts", defaultFontNames).split(';');
63
- for (i=0; i<fonts.length; i++) {
64
- p = fonts[i].split('=');
65
-
66
- if (p.length > 1)
67
- addSelectValue(f, 'fontface', p[0], p[1]);
68
- }
69
-
70
- // Setup fontsize select box
71
- fonts = ed.getParam("fullpage_fontsizes", defaultFontSizes).split(',');
72
- for (i=0; i<fonts.length; i++)
73
- addSelectValue(f, 'fontsize', fonts[i], fonts[i]);
74
-
75
- // Setup mediatype select boxs
76
- mediaTypes = ed.getParam("fullpage_media_types", defaultMediaTypes).split(',');
77
- for (i=0; i<mediaTypes.length; i++) {
78
- p = mediaTypes[i].split('=');
79
-
80
- if (p.length > 1) {
81
- addSelectValue(f, 'element_style_media', p[0], p[1]);
82
- addSelectValue(f, 'element_link_media', p[0], p[1]);
83
- }
84
- }
85
-
86
- // Setup encodings select box
87
- encodings = ed.getParam("fullpage_encodings", defaultEncodings).split(',');
88
- for (i=0; i<encodings.length; i++) {
89
- p = encodings[i].split('=');
90
-
91
- if (p.length > 1) {
92
- addSelectValue(f, 'docencoding', p[0], p[1]);
93
- addSelectValue(f, 'element_script_charset', p[0], p[1]);
94
- addSelectValue(f, 'element_link_charset', p[0], p[1]);
95
- }
96
- }
97
-
98
- document.getElementById('bgcolor_pickcontainer').innerHTML = getColorPickerHTML('bgcolor_pick','bgcolor');
99
- document.getElementById('link_color_pickcontainer').innerHTML = getColorPickerHTML('link_color_pick','link_color');
100
- //document.getElementById('hover_color_pickcontainer').innerHTML = getColorPickerHTML('hover_color_pick','hover_color');
101
- document.getElementById('visited_color_pickcontainer').innerHTML = getColorPickerHTML('visited_color_pick','visited_color');
102
- document.getElementById('active_color_pickcontainer').innerHTML = getColorPickerHTML('active_color_pick','active_color');
103
- document.getElementById('textcolor_pickcontainer').innerHTML = getColorPickerHTML('textcolor_pick','textcolor');
104
- document.getElementById('stylesheet_browsercontainer').innerHTML = getBrowserHTML('stylesheetbrowser','stylesheet','file','fullpage');
105
- document.getElementById('link_href_pickcontainer').innerHTML = getBrowserHTML('link_href_browser','element_link_href','file','fullpage');
106
- document.getElementById('script_src_pickcontainer').innerHTML = getBrowserHTML('script_src_browser','element_script_src','file','fullpage');
107
- document.getElementById('bgimage_pickcontainer').innerHTML = getBrowserHTML('bgimage_browser','bgimage','image','fullpage');
108
-
109
- // Resize some elements
110
- if (isVisible('stylesheetbrowser'))
111
- document.getElementById('stylesheet').style.width = '220px';
112
-
113
- if (isVisible('link_href_browser'))
114
- document.getElementById('element_link_href').style.width = '230px';
115
-
116
- if (isVisible('bgimage_browser'))
117
- document.getElementById('bgimage').style.width = '210px';
118
-
119
- // Add iframe
120
- dom.add(document.body, 'iframe', {id : 'documentIframe', src : 'javascript:""', style : {display : 'none'}});
121
- doc = dom.get('documentIframe').contentWindow.document;
122
- h = tinyMCEPopup.getWindowArg('head_html');
123
-
124
- // Preprocess the HTML disable scripts and urls
125
- h = h.replace(/<script>/gi, '<script type="text/javascript">');
126
- h = h.replace(/type=([\"\'])?/gi, 'type=$1-mce-');
127
- h = h.replace(/(src=|href=)/g, 'data-mce-$1');
128
-
129
- // Write in the content in the iframe
130
- doc.write(h + '</body></html>');
131
- doc.close();
132
-
133
- // Parse xml and doctype
134
- xmlVer = getReItem(/<\?\s*?xml.*?version\s*?=\s*?"(.*?)".*?\?>/gi, h, 1);
135
- xmlEnc = getReItem(/<\?\s*?xml.*?encoding\s*?=\s*?"(.*?)".*?\?>/gi, h, 1);
136
- docType = getReItem(/<\!DOCTYPE.*?>/gi, h.replace(/\n/g, ''), 0).replace(/ +/g, ' ');
137
- f.langcode.value = getReItem(/lang="(.*?)"/gi, h, 1);
138
-
139
- // Get direction and inherit it from the html-tag too (according to w3c recommandation)
140
- dir = getReItem(/dir\s*=\s*["']([^"']*)["']/i, h, 1);
141
- if(doc.body.hasAttribute('dir') && (doc.body.getAttribute('dir') != ''))
142
- dir = doc.body.getAttribute('dir');
143
-
144
- // Parse title
145
- if (e = doc.getElementsByTagName('title')[0])
146
- el.metatitle.value = e.textContent || e.text;
147
-
148
- // Parse meta
149
- tinymce.each(doc.getElementsByTagName('meta'), function(n) {
150
- var na = (n.getAttribute('name', 2) || '').toLowerCase(), va = n.getAttribute('content', 2), eq = n.getAttribute('httpEquiv', 2) || '';
151
-
152
- e = el['meta' + na];
153
-
154
- if (na == 'robots') {
155
- selectByValue(f, 'metarobots', tinymce.trim(va), true, true);
156
- return;
157
- }
158
-
159
- switch (eq.toLowerCase()) {
160
- case "content-type":
161
- tmp = getReItem(/charset\s*=\s*(.*)\s*/gi, va, 1);
162
-
163
- // Override XML encoding
164
- if (tmp != "")
165
- xmlEnc = tmp;
166
-
167
- return;
168
- }
169
-
170
- if (e)
171
- e.value = va;
172
- });
173
-
174
- selectByValue(f, 'doctypes', docType, true, true);
175
- selectByValue(f, 'docencoding', xmlEnc, true, true);
176
- selectByValue(f, 'langdir', dir, true, true);
177
-
178
- if (xmlVer != '')
179
- el.xml_pi.checked = true;
180
-
181
- // Parse appearance
182
-
183
- // Parse primary stylesheet
184
- tinymce.each(doc.getElementsByTagName("link"), function(l) {
185
- var m = l.getAttribute('media', 2) || '', t = l.getAttribute('type', 2) || '';
186
-
187
- if (t == "-mce-text/css" && (m == "" || m == "screen" || m == "all") && (l.getAttribute('rel', 2) || '') == "stylesheet") {
188
- f.stylesheet.value = l.getAttribute('data-mce-href', 2) || '';
189
- return false;
190
- }
191
- });
192
-
193
- // Get from style elements
194
- tinymce.each(doc.getElementsByTagName("style"), function(st) {
195
- var tmp = parseStyleElement(st);
196
-
197
- for (x=0; x<tmp.length; x++) {
198
- if (tmp[x].rule.indexOf('a:visited') != -1 && tmp[x].data['color'])
199
- f.visited_color.value = tmp[x].data['color'];
200
-
201
- if (tmp[x].rule.indexOf('a:link') != -1 && tmp[x].data['color'])
202
- f.link_color.value = tmp[x].data['color'];
203
-
204
- if (tmp[x].rule.indexOf('a:active') != -1 && tmp[x].data['color'])
205
- f.active_color.value = tmp[x].data['color'];
206
- }
207
- });
208
-
209
- f.textcolor.value = tinyMCEPopup.dom.getAttrib(doc.body, "text");
210
- f.active_color.value = tinyMCEPopup.dom.getAttrib(doc.body, "alink");
211
- f.link_color.value = tinyMCEPopup.dom.getAttrib(doc.body, "link");
212
- f.visited_color.value = tinyMCEPopup.dom.getAttrib(doc.body, "vlink");
213
- f.bgcolor.value = tinyMCEPopup.dom.getAttrib(doc.body, "bgcolor");
214
- f.bgimage.value = tinyMCEPopup.dom.getAttrib(doc.body, "background");
215
-
216
- // Get from style info
217
- style = tinyMCEPopup.dom.parseStyle(tinyMCEPopup.dom.getAttrib(doc.body, 'style'));
218
-
219
- if (style['font-family'])
220
- selectByValue(f, 'fontface', style['font-family'], true, true);
221
- else
222
- selectByValue(f, 'fontface', ed.getParam("fullpage_default_fontface", ""), true, true);
223
-
224
- if (style['font-size'])
225
- selectByValue(f, 'fontsize', style['font-size'], true, true);
226
- else
227
- selectByValue(f, 'fontsize', ed.getParam("fullpage_default_fontsize", ""), true, true);
228
-
229
- if (style['color'])
230
- f.textcolor.value = convertRGBToHex(style['color']);
231
-
232
- if (style['background-image'])
233
- f.bgimage.value = style['background-image'].replace(new RegExp("url\\('?([^']*)'?\\)", 'gi'), "$1");
234
-
235
- if (style['background-color'])
236
- f.bgcolor.value = style['background-color'];
237
-
238
- if (style['margin']) {
239
- tmp = style['margin'].replace(/[^0-9 ]/g, '');
240
- tmp = tmp.split(/ +/);
241
- f.topmargin.value = tmp.length > 0 ? tmp[0] : '';
242
- f.rightmargin.value = tmp.length > 1 ? tmp[1] : tmp[0];
243
- f.bottommargin.value = tmp.length > 2 ? tmp[2] : tmp[0];
244
- f.leftmargin.value = tmp.length > 3 ? tmp[3] : tmp[0];
245
- }
246
-
247
- if (style['margin-left'])
248
- f.leftmargin.value = style['margin-left'].replace(/[^0-9]/g, '');
249
-
250
- if (style['margin-right'])
251
- f.rightmargin.value = style['margin-right'].replace(/[^0-9]/g, '');
252
-
253
- if (style['margin-top'])
254
- f.topmargin.value = style['margin-top'].replace(/[^0-9]/g, '');
255
-
256
- if (style['margin-bottom'])
257
- f.bottommargin.value = style['margin-bottom'].replace(/[^0-9]/g, '');
258
-
259
- f.style.value = tinyMCEPopup.dom.serializeStyle(style);
260
-
261
- // Update colors
262
- updateColor('textcolor_pick', 'textcolor');
263
- updateColor('bgcolor_pick', 'bgcolor');
264
- updateColor('visited_color_pick', 'visited_color');
265
- updateColor('active_color_pick', 'active_color');
266
- updateColor('link_color_pick', 'link_color');
267
- }
268
-
269
- function getReItem(r, s, i) {
270
- var c = r.exec(s);
271
-
272
- if (c && c.length > i)
273
- return c[i];
274
-
275
- return '';
276
- }
277
-
278
- function updateAction() {
279
- var f = document.forms[0], nl, i, h, v, s, head, html, l, tmp, addlink = true, ser;
280
-
281
- head = doc.getElementsByTagName('head')[0];
282
-
283
- // Fix scripts without a type
284
- nl = doc.getElementsByTagName('script');
285
- for (i=0; i<nl.length; i++) {
286
- if (tinyMCEPopup.dom.getAttrib(nl[i], 'data-mce-type') == '')
287
- nl[i].setAttribute('mce-type', 'text/javascript');
288
- }
289
-
290
- // Get primary stylesheet
291
- nl = doc.getElementsByTagName("link");
292
- for (i=0; i<nl.length; i++) {
293
- l = nl[i];
294
-
295
- tmp = tinyMCEPopup.dom.getAttrib(l, 'media');
296
-
297
- if (tinyMCEPopup.dom.getAttrib(l, 'data-mce-type') == "text/css" && (tmp == "" || tmp == "screen" || tmp == "all") && tinyMCEPopup.dom.getAttrib(l, 'rel') == "stylesheet") {
298
- addlink = false;
299
-
300
- if (f.stylesheet.value == '')
301
- l.parentNode.removeChild(l);
302
- else
303
- l.setAttribute('data-mce-href', f.stylesheet.value);
304
-
305
- break;
306
- }
307
- }
308
-
309
- // Add new link
310
- if (f.stylesheet.value != '') {
311
- l = doc.createElement('link');
312
-
313
- l.setAttribute('type', 'text/css');
314
- l.setAttribute('data-mce-href', f.stylesheet.value);
315
- l.setAttribute('rel', 'stylesheet');
316
-
317
- head.appendChild(l);
318
- }
319
-
320
- setMeta(head, 'keywords', f.metakeywords.value);
321
- setMeta(head, 'description', f.metadescription.value);
322
- setMeta(head, 'author', f.metaauthor.value);
323
- setMeta(head, 'copyright', f.metacopyright.value);
324
- setMeta(head, 'robots', getSelectValue(f, 'metarobots'));
325
- setMeta(head, 'Content-Type', getSelectValue(f, 'docencoding'));
326
-
327
- setAttr(doc.body, 'dir', getSelectValue(f, 'langdir'));
328
- doc.body.style.cssText = f.style.value;
329
-
330
- function setAttr(elm, name, value) {
331
- value = "" + value;
332
-
333
- if (value.length > 0)
334
- elm.setAttribute(name, value);
335
- else
336
- elm.removeAttribute(name, value);
337
- }
338
-
339
- setAttr(doc.body, 'vLink', f.visited_color.value);
340
- setAttr(doc.body, 'link', f.link_color.value);
341
- setAttr(doc.body, 'text', f.textcolor.value);
342
- setAttr(doc.body, 'aLink', f.active_color.value);
343
-
344
- doc.body.style.fontFamily = getSelectValue(f, 'fontface');
345
- doc.body.style.fontSize = getSelectValue(f, 'fontsize');
346
- doc.body.style.backgroundColor = f.bgcolor.value;
347
-
348
- if (f.leftmargin.value != '')
349
- doc.body.style.marginLeft = f.leftmargin.value + 'px';
350
-
351
- if (f.rightmargin.value != '')
352
- doc.body.style.marginRight = f.rightmargin.value + 'px';
353
-
354
- if (f.bottommargin.value != '')
355
- doc.body.style.marginBottom = f.bottommargin.value + 'px';
356
-
357
- if (f.topmargin.value != '')
358
- doc.body.style.marginTop = f.topmargin.value + 'px';
359
-
360
- html = doc.getElementsByTagName('html')[0];
361
- setAttr(html, 'lang', f.langcode.value);
362
- setAttr(html, 'xml:lang', f.langcode.value);
363
-
364
- if (f.bgimage.value != '')
365
- doc.body.style.backgroundImage = "url('" + f.bgimage.value + "')";
366
- else
367
- doc.body.style.backgroundImage = '';
368
-
369
- ser = tinyMCEPopup.editor.plugins.fullpage._createSerializer();
370
- ser.setRules('-title,meta[http-equiv|name|content],base[href|target],link[href|rel|type|title|media],style[type],script[type|language|src],html[lang|xml::lang|xmlns],body[style|dir|vlink|link|text|alink],head');
371
-
372
- h = ser.serialize(doc.documentElement);
373
- h = h.substring(0, h.lastIndexOf('</body>'));
374
-
375
- if (h.indexOf('<title>') == -1)
376
- h = h.replace(/<head.*?>/, '$&\n' + '<title>' + tinyMCEPopup.dom.encode(f.metatitle.value) + '</title>');
377
- else
378
- h = h.replace(/<title>(.*?)<\/title>/, '<title>' + tinyMCEPopup.dom.encode(f.metatitle.value) + '</title>');
379
-
380
- if(v = f.langcode.value)
381
- htmlt = '<html lang="' + v + '" xml:lang="' + v + '">';
382
- else
383
- htmlt = '<html>';
384
-
385
- h = h.replace(/<html.*?>/, htmlt);
386
-
387
- if ((v = getSelectValue(f, 'doctypes')) != '')
388
- h = v + '\n' + h;
389
-
390
- if (f.xml_pi.checked) {
391
- s = '<?xml version="1.0"';
392
-
393
- if ((v = getSelectValue(f, 'docencoding')) != '')
394
- s += ' encoding="' + v + '"';
395
-
396
- s += '?>\n';
397
- h = s + h;
398
- }
399
-
400
- h = h.replace(/type=\"\-mce\-/gi, 'type="');
401
-
402
- tinyMCEPopup.editor.plugins.fullpage.head = h;
403
- tinyMCEPopup.editor.plugins.fullpage._setBodyAttribs(tinyMCEPopup.editor, {});
404
- tinyMCEPopup.close();
405
- }
406
-
407
- function changedStyleField(field) {
408
- }
409
-
410
- function setMeta(he, k, v) {
411
- var nl, i, m;
412
-
413
- nl = he.getElementsByTagName('meta');
414
- for (i=0; i<nl.length; i++) {
415
- if (k == 'Content-Type' && tinyMCEPopup.dom.getAttrib(nl[i], 'http-equiv') == k) {
416
- if (v == '')
417
- nl[i].parentNode.removeChild(nl[i]);
418
- else
419
- nl[i].setAttribute('content', "text/html; charset=" + v);
420
-
421
- return;
422
- }
423
-
424
- if (tinyMCEPopup.dom.getAttrib(nl[i], 'name') == k) {
425
- if (v == '')
426
- nl[i].parentNode.removeChild(nl[i]);
427
- else
428
- nl[i].setAttribute('content', v);
429
- return;
430
- }
431
- }
432
-
433
- if (v == '')
434
- return;
435
-
436
- m = doc.createElement('meta');
437
-
438
- if (k == 'Content-Type')
439
- m.httpEquiv = k;
440
- else
441
- m.setAttribute('name', k);
442
-
443
- m.setAttribute('content', v);
444
- he.appendChild(m);
445
- }
446
-
447
- function parseStyleElement(e) {
448
- var v = e.innerHTML;
449
- var p, i, r;
450
-
451
- v = v.replace(/<!--/gi, '');
452
- v = v.replace(/-->/gi, '');
453
- v = v.replace(/[\n\r]/gi, '');
454
- v = v.replace(/\s+/gi, ' ');
455
-
456
- r = [];
457
- p = v.split(/{|}/);
458
-
459
- for (i=0; i<p.length; i+=2) {
460
- if (p[i] != "")
461
- r[r.length] = {rule : tinymce.trim(p[i]), data : tinyMCEPopup.dom.parseStyle(p[i+1])};
462
- }
463
-
464
- return r;
465
- }
466
-
467
- function serializeStyleElement(d) {
468
- var i, s, st;
469
-
470
- s = '<!--\n';
471
-
472
- for (i=0; i<d.length; i++) {
473
- s += d[i].rule + ' {\n';
474
-
475
- st = tinyMCE.serializeStyle(d[i].data);
476
-
477
- if (st != '')
478
- st += ';';
479
-
480
- s += st.replace(/;/g, ';\n');
481
- s += '}\n';
482
-
483
- if (i != d.length - 1)
484
- s += '\n';
485
- }
486
-
487
- s += '\n-->';
488
-
489
- return s;
490
- }
491
-
492
- tinyMCEPopup.onInit.add(init);
1
+ tinyMCEPopup.requireLangPack();var doc;var defaultDocTypes='XHTML 1.0 Transitional=<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">,XHTML 1.0 Frameset=<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Frameset//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd">,XHTML 1.0 Strict=<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">,XHTML 1.1=<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">,HTML 4.01 Transitional=<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">,HTML 4.01 Strict=<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">,HTML 4.01 Frameset=<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN" "http://www.w3.org/TR/html4/frameset.dtd">';var defaultEncodings="Western european (iso-8859-1)=iso-8859-1,Central European (iso-8859-2)=iso-8859-2,Unicode (UTF-8)=utf-8,Chinese traditional (Big5)=big5,Cyrillic (iso-8859-5)=iso-8859-5,Japanese (iso-2022-jp)=iso-2022-jp,Greek (iso-8859-7)=iso-8859-7,Korean (iso-2022-kr)=iso-2022-kr,ASCII (us-ascii)=us-ascii";var defaultMediaTypes="all=all,screen=screen,print=print,tty=tty,tv=tv,projection=projection,handheld=handheld,braille=braille,aural=aural";var defaultFontNames="Arial=arial,helvetica,sans-serif;Courier New=courier new,courier,monospace;Georgia=georgia,times new roman,times,serif;Tahoma=tahoma,arial,helvetica,sans-serif;Times New Roman=times new roman,times,serif;Verdana=verdana,arial,helvetica,sans-serif;Impact=impact;WingDings=wingdings";var defaultFontSizes="10px,11px,12px,13px,14px,15px,16px";function init(){var n=document.forms.fullpage,c=n.elements,o,k,b,d,q,l,g,r,m=tinyMCEPopup.editor,j=tinyMCEPopup.dom,a;d=m.getParam("fullpage_doctypes",defaultDocTypes).split(",");for(k=0;k<d.length;k++){b=d[k].split("=");if(b.length>1){addSelectValue(n,"doctypes",b[0],b[1])}}r=m.getParam("fullpage_fonts",defaultFontNames).split(";");for(k=0;k<r.length;k++){b=r[k].split("=");if(b.length>1){addSelectValue(n,"fontface",b[0],b[1])}}r=m.getParam("fullpage_fontsizes",defaultFontSizes).split(",");for(k=0;k<r.length;k++){addSelectValue(n,"fontsize",r[k],r[k])}l=m.getParam("fullpage_media_types",defaultMediaTypes).split(",");for(k=0;k<l.length;k++){b=l[k].split("=");if(b.length>1){addSelectValue(n,"element_style_media",b[0],b[1]);addSelectValue(n,"element_link_media",b[0],b[1])}}q=m.getParam("fullpage_encodings",defaultEncodings).split(",");for(k=0;k<q.length;k++){b=q[k].split("=");if(b.length>1){addSelectValue(n,"docencoding",b[0],b[1]);addSelectValue(n,"element_script_charset",b[0],b[1]);addSelectValue(n,"element_link_charset",b[0],b[1])}}document.getElementById("bgcolor_pickcontainer").innerHTML=getColorPickerHTML("bgcolor_pick","bgcolor");document.getElementById("link_color_pickcontainer").innerHTML=getColorPickerHTML("link_color_pick","link_color");document.getElementById("visited_color_pickcontainer").innerHTML=getColorPickerHTML("visited_color_pick","visited_color");document.getElementById("active_color_pickcontainer").innerHTML=getColorPickerHTML("active_color_pick","active_color");document.getElementById("textcolor_pickcontainer").innerHTML=getColorPickerHTML("textcolor_pick","textcolor");document.getElementById("stylesheet_browsercontainer").innerHTML=getBrowserHTML("stylesheetbrowser","stylesheet","file","fullpage");document.getElementById("link_href_pickcontainer").innerHTML=getBrowserHTML("link_href_browser","element_link_href","file","fullpage");document.getElementById("script_src_pickcontainer").innerHTML=getBrowserHTML("script_src_browser","element_script_src","file","fullpage");document.getElementById("bgimage_pickcontainer").innerHTML=getBrowserHTML("bgimage_browser","bgimage","image","fullpage");if(isVisible("stylesheetbrowser")){document.getElementById("stylesheet").style.width="220px"}if(isVisible("link_href_browser")){document.getElementById("element_link_href").style.width="230px"}if(isVisible("bgimage_browser")){document.getElementById("bgimage").style.width="210px"}j.add(document.body,"iframe",{id:"documentIframe",src:'javascript:""',style:{display:"none"}});doc=j.get("documentIframe").contentWindow.document;h=tinyMCEPopup.getWindowArg("head_html");h=h.replace(/<script>/gi,'<script type="text/javascript">');h=h.replace(/type=([\"\'])?/gi,"type=$1-mce-");h=h.replace(/(src=|href=)/g,"data-mce-$1");doc.write(h+"</body></html>");doc.close();xmlVer=getReItem(/<\?\s*?xml.*?version\s*?=\s*?"(.*?)".*?\?>/gi,h,1);xmlEnc=getReItem(/<\?\s*?xml.*?encoding\s*?=\s*?"(.*?)".*?\?>/gi,h,1);docType=getReItem(/<\!DOCTYPE.*?>/gi,h.replace(/\n/g,""),0).replace(/ +/g," ");n.langcode.value=getReItem(/lang="(.*?)"/gi,h,1);g=getReItem(/dir\s*=\s*["']([^"']*)["']/i,h,1);if(doc.body.hasAttribute("dir")&&(doc.body.getAttribute("dir")!="")){g=doc.body.getAttribute("dir")}if(o=doc.getElementsByTagName("title")[0]){c.metatitle.value=o.textContent||o.text}tinymce.each(doc.getElementsByTagName("meta"),function(p){var f=(p.getAttribute("name",2)||"").toLowerCase(),i=p.getAttribute("content",2),e=p.getAttribute("httpEquiv",2)||"";o=c["meta"+f];if(f=="robots"){selectByValue(n,"metarobots",tinymce.trim(i),true,true);return}switch(e.toLowerCase()){case"content-type":tmp=getReItem(/charset\s*=\s*(.*)\s*/gi,i,1);if(tmp!=""){xmlEnc=tmp}return}if(o){o.value=i}});selectByValue(n,"doctypes",docType,true,true);selectByValue(n,"docencoding",xmlEnc,true,true);selectByValue(n,"langdir",g,true,true);if(xmlVer!=""){c.xml_pi.checked=true}tinymce.each(doc.getElementsByTagName("link"),function(f){var e=f.getAttribute("media",2)||"",i=f.getAttribute("type",2)||"";if(i=="-mce-text/css"&&(e==""||e=="screen"||e=="all")&&(f.getAttribute("rel",2)||"")=="stylesheet"){n.stylesheet.value=f.getAttribute("data-mce-href",2)||"";return false}});tinymce.each(doc.getElementsByTagName("style"),function(e){var f=parseStyleElement(e);for(x=0;x<f.length;x++){if(f[x].rule.indexOf("a:visited")!=-1&&f[x].data.color){n.visited_color.value=f[x].data.color}if(f[x].rule.indexOf("a:link")!=-1&&f[x].data.color){n.link_color.value=f[x].data.color}if(f[x].rule.indexOf("a:active")!=-1&&f[x].data.color){n.active_color.value=f[x].data.color}}});n.textcolor.value=tinyMCEPopup.dom.getAttrib(doc.body,"text");n.active_color.value=tinyMCEPopup.dom.getAttrib(doc.body,"alink");n.link_color.value=tinyMCEPopup.dom.getAttrib(doc.body,"link");n.visited_color.value=tinyMCEPopup.dom.getAttrib(doc.body,"vlink");n.bgcolor.value=tinyMCEPopup.dom.getAttrib(doc.body,"bgcolor");n.bgimage.value=tinyMCEPopup.dom.getAttrib(doc.body,"background");a=tinyMCEPopup.dom.parseStyle(tinyMCEPopup.dom.getAttrib(doc.body,"style"));if(a["font-family"]){selectByValue(n,"fontface",a["font-family"],true,true)}else{selectByValue(n,"fontface",m.getParam("fullpage_default_fontface",""),true,true)}if(a["font-size"]){selectByValue(n,"fontsize",a["font-size"],true,true)}else{selectByValue(n,"fontsize",m.getParam("fullpage_default_fontsize",""),true,true)}if(a.color){n.textcolor.value=convertRGBToHex(a.color)}if(a["background-image"]){n.bgimage.value=a["background-image"].replace(new RegExp("url\\('?([^']*)'?\\)","gi"),"$1")}if(a["background-color"]){n.bgcolor.value=a["background-color"]}if(a.margin){tmp=a.margin.replace(/[^0-9 ]/g,"");tmp=tmp.split(/ +/);n.topmargin.value=tmp.length>0?tmp[0]:"";n.rightmargin.value=tmp.length>1?tmp[1]:tmp[0];n.bottommargin.value=tmp.length>2?tmp[2]:tmp[0];n.leftmargin.value=tmp.length>3?tmp[3]:tmp[0]}if(a["margin-left"]){n.leftmargin.value=a["margin-left"].replace(/[^0-9]/g,"")}if(a["margin-right"]){n.rightmargin.value=a["margin-right"].replace(/[^0-9]/g,"")}if(a["margin-top"]){n.topmargin.value=a["margin-top"].replace(/[^0-9]/g,"")}if(a["margin-bottom"]){n.bottommargin.value=a["margin-bottom"].replace(/[^0-9]/g,"")}n.style.value=tinyMCEPopup.dom.serializeStyle(a);updateColor("textcolor_pick","textcolor");updateColor("bgcolor_pick","bgcolor");updateColor("visited_color_pick","visited_color");updateColor("active_color_pick","active_color");updateColor("link_color_pick","link_color")}function getReItem(d,b,a){var e=d.exec(b);if(e&&e.length>a){return e[a]}return""}function updateAction(){var m=document.forms[0],a,g,j,o,q,n,k,c,e,d=true,p;n=doc.getElementsByTagName("head")[0];a=doc.getElementsByTagName("script");for(g=0;g<a.length;g++){if(tinyMCEPopup.dom.getAttrib(a[g],"data-mce-type")==""){a[g].setAttribute("mce-type","text/javascript")}}a=doc.getElementsByTagName("link");for(g=0;g<a.length;g++){c=a[g];e=tinyMCEPopup.dom.getAttrib(c,"media");if(tinyMCEPopup.dom.getAttrib(c,"data-mce-type")=="text/css"&&(e==""||e=="screen"||e=="all")&&tinyMCEPopup.dom.getAttrib(c,"rel")=="stylesheet"){d=false;if(m.stylesheet.value==""){c.parentNode.removeChild(c)}else{c.setAttribute("data-mce-href",m.stylesheet.value)}break}}if(m.stylesheet.value!=""){c=doc.createElement("link");c.setAttribute("type","text/css");c.setAttribute("data-mce-href",m.stylesheet.value);c.setAttribute("rel","stylesheet");n.appendChild(c)}setMeta(n,"keywords",m.metakeywords.value);setMeta(n,"description",m.metadescription.value);setMeta(n,"author",m.metaauthor.value);setMeta(n,"copyright",m.metacopyright.value);setMeta(n,"robots",getSelectValue(m,"metarobots"));setMeta(n,"Content-Type",getSelectValue(m,"docencoding"));b(doc.body,"dir",getSelectValue(m,"langdir"));doc.body.style.cssText=m.style.value;function b(l,f,i){i=""+i;if(i.length>0){l.setAttribute(f,i)}else{l.removeAttribute(f,i)}}b(doc.body,"vLink",m.visited_color.value);b(doc.body,"link",m.link_color.value);b(doc.body,"text",m.textcolor.value);b(doc.body,"aLink",m.active_color.value);doc.body.style.fontFamily=getSelectValue(m,"fontface");doc.body.style.fontSize=getSelectValue(m,"fontsize");doc.body.style.backgroundColor=m.bgcolor.value;if(m.leftmargin.value!=""){doc.body.style.marginLeft=m.leftmargin.value+"px"}if(m.rightmargin.value!=""){doc.body.style.marginRight=m.rightmargin.value+"px"}if(m.bottommargin.value!=""){doc.body.style.marginBottom=m.bottommargin.value+"px"}if(m.topmargin.value!=""){doc.body.style.marginTop=m.topmargin.value+"px"}k=doc.getElementsByTagName("html")[0];b(k,"lang",m.langcode.value);b(k,"xml:lang",m.langcode.value);if(m.bgimage.value!=""){doc.body.style.backgroundImage="url('"+m.bgimage.value+"')"}else{doc.body.style.backgroundImage=""}p=tinyMCEPopup.editor.plugins.fullpage._createSerializer();p.setRules("-title,meta[http-equiv|name|content],base[href|target],link[href|rel|type|title|media],style[type],script[type|language|src],html[lang|xml::lang|xmlns],body[style|dir|vlink|link|text|alink],head");j=p.serialize(doc.documentElement);j=j.substring(0,j.lastIndexOf("</body>"));if(j.indexOf("<title>")==-1){j=j.replace(/<head.*?>/,"$&\n<title>"+tinyMCEPopup.dom.encode(m.metatitle.value)+"</title>")}else{j=j.replace(/<title>(.*?)<\/title>/,"<title>"+tinyMCEPopup.dom.encode(m.metatitle.value)+"</title>")}if(o=m.langcode.value){htmlt='<html lang="'+o+'" xml:lang="'+o+'">'}else{htmlt="<html>"}j=j.replace(/<html.*?>/,htmlt);if((o=getSelectValue(m,"doctypes"))!=""){j=o+"\n"+j}if(m.xml_pi.checked){q='<?xml version="1.0"';if((o=getSelectValue(m,"docencoding"))!=""){q+=' encoding="'+o+'"'}q+="?>\n";j=q+j}j=j.replace(/type=\"\-mce\-/gi,'type="');tinyMCEPopup.editor.plugins.fullpage.head=j;tinyMCEPopup.editor.plugins.fullpage._setBodyAttribs(tinyMCEPopup.editor,{});tinyMCEPopup.close()}function changedStyleField(a){}function setMeta(f,d,c){var b,e,a;b=f.getElementsByTagName("meta");for(e=0;e<b.length;e++){if(d=="Content-Type"&&tinyMCEPopup.dom.getAttrib(b[e],"http-equiv")==d){if(c==""){b[e].parentNode.removeChild(b[e])}else{b[e].setAttribute("content","text/html; charset="+c)}return}if(tinyMCEPopup.dom.getAttrib(b[e],"name")==d){if(c==""){b[e].parentNode.removeChild(b[e])}else{b[e].setAttribute("content",c)}return}}if(c==""){return}a=doc.createElement("meta");if(d=="Content-Type"){a.httpEquiv=d}else{a.setAttribute("name",d)}a.setAttribute("content",c);f.appendChild(a)}function parseStyleElement(f){var a=f.innerHTML;var d,b,c;a=a.replace(/<!--/gi,"");a=a.replace(/-->/gi,"");a=a.replace(/[\n\r]/gi,"");a=a.replace(/\s+/gi," ");c=[];d=a.split(/{|}/);for(b=0;b<d.length;b+=2){if(d[b]!=""){c[c.length]={rule:tinymce.trim(d[b]),data:tinyMCEPopup.dom.parseStyle(d[b+1])}}}return c}function serializeStyleElement(e){var b,c,a;c="<!--\n";for(b=0;b<e.length;b++){c+=e[b].rule+" {\n";a=tinyMCE.serializeStyle(e[b].data);if(a!=""){a+=";"}c+=a.replace(/;/g,";\n");c+="}\n";if(b!=e.length-1){c+="\n"}}c+="\n-->";return c}tinyMCEPopup.onInit.add(init);