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
@@ -0,0 +1 @@
1
+ tinyMCE.addI18n("de.advimage_dlg",{image_list:"Bilderliste",align_right:"Rechts",align_left:"Links",align_textbottom:"Unten im Text",align_texttop:"Oben im Text",align_bottom:"Unten",align_middle:"Mittig",align_top:"Oben",align_baseline:"Zeile",align:"Ausrichtung",hspace:"Horizontaler Abstand",vspace:"Vertikaler Abstand",dimensions:"Ausma\u00dfe",border:"Rahmen",list:"Bilderliste",alt:"Beschreibung",src:"Adresse",dialog_title:"Bild einf\u00fcgen/bearbeiten",missing_alt:"Wollen Sie wirklich keine Beschreibung eingeben? Bestimmte Benutzer mit k\u00f6rperlichen Einschr\u00e4nkungen k\u00f6nnen so nicht darauf zugreifen, ebenso solche, die einen Textbrowser benutzen oder die Anzeige von Bildern deaktiviert haben.",example_img:"Aussehen der Vorschau",misc:"Verschiedenes",mouseout:"bei keinem Mauskontakt",mouseover:"bei Mauskontakt",alt_image:"Alternatives Bild",swap_image:"Bild austauschen",map:"Image-Map",id:"ID",rtl:"Rechts nach links",ltr:"Links nach rechts",classes:"Klassen",style:"Format",long_desc:"Ausf\u00fchrliche Beschreibung",langcode:"Sprachcode",langdir:"Schriftrichtung",constrain_proportions:"Seitenverh\u00e4ltnis beibehalten",preview:"Vorschau",title:"Titel",general:"Allgemein",tab_advanced:"Erweitert",tab_appearance:"Aussehen",tab_general:"Allgemein"});
@@ -1,45 +1 @@
1
- tinyMCE.addI18n('en.advimage_dlg',{
2
- tab_general:"General",
3
- tab_appearance:"Appearance",
4
- tab_advanced:"Advanced",
5
- general:"General",
6
- title:"Title",
7
- preview:"Preview",
8
- constrain_proportions:"Constrain proportions",
9
- langdir:"Language direction",
10
- langcode:"Language code",
11
- long_desc:"Long description link",
12
- style:"Style",
13
- classes:"Classes",
14
- ltr:"Left to right",
15
- rtl:"Right to left",
16
- id:"Id",
17
- map:"Image map",
18
- swap_image:"Swap image",
19
- alt_image:"Alternative image",
20
- mouseover:"for mouse over",
21
- mouseout:"for mouse out",
22
- misc:"Miscellaneous",
23
- example_img:"Appearance preview image",
24
- missing_alt:"Are you sure you want to continue without including an Image Description? Without it the image may not be accessible to some users with disabilities, or to those using a text browser, or browsing the Web with images turned off.",
25
- dialog_title:"Insert/edit image",
26
- src:"Image URL",
27
- alt:"Image description",
28
- list:"Image list",
29
- border:"Border",
30
- dimensions:"Dimensions",
31
- width:"Width",
32
- height:"Height",
33
- vspace:"Vertical space",
34
- hspace:"Horizontal space",
35
- align:"Alignment",
36
- align_baseline:"Baseline",
37
- align_top:"Top",
38
- align_middle:"Middle",
39
- align_bottom:"Bottom",
40
- align_texttop:"Text top",
41
- align_textbottom:"Text bottom",
42
- align_left:"Left",
43
- align_right:"Right",
44
- image_list:"Image list"
45
- });
1
+ tinyMCE.addI18n("en.advimage_dlg",{tab_general:"General",tab_appearance:"Appearance",tab_advanced:"Advanced",general:"General",title:"Title",preview:"Preview",constrain_proportions:"Constrain proportions",langdir:"Language direction",langcode:"Language code",long_desc:"Long description link",style:"Style",classes:"Classes",ltr:"Left to right",rtl:"Right to left",id:"Id",map:"Image map",swap_image:"Swap image",alt_image:"Alternative image",mouseover:"for mouse over",mouseout:"for mouse out",misc:"Miscellaneous",example_img:"Appearance preview image",missing_alt:"Are you sure you want to continue without including an Image Description? Without it the image may not be accessible to some users with disabilities, or to those using a text browser, or browsing the Web with images turned off.",dialog_title:"Insert/edit image",src:"Image URL",alt:"Image description",list:"Image list",border:"Border",dimensions:"Dimensions",width:"Width",height:"Height",vspace:"Vertical space",hspace:"Horizontal space",align:"Alignment",align_baseline:"Baseline",align_top:"Top",align_middle:"Middle",align_bottom:"Bottom",align_texttop:"Text top",align_textbottom:"Text bottom",align_left:"Left",align_right:"Right",image_list:"Image list"});
@@ -1,8 +1 @@
1
- .mceLinkList, .mceAnchorList, #targetlist {width:280px;}
2
- .mceActionPanel {margin-top:7px;}
3
- .panel_wrapper div.current {height:320px;}
4
- #classlist, #title, #href {width:280px;}
5
- #popupurl, #popupname {width:200px;}
6
- #popupwidth, #popupheight, #popupleft, #popuptop {width:30px;vertical-align:middle;text-align:center;}
7
- #id, #style, #classes, #target, #dir, #hreflang, #lang, #charset, #type, #rel, #rev, #tabindex, #accesskey {width:200px;}
8
- #events_panel input {width:200px;}
1
+ .mceLinkList,.mceAnchorList,#targetlist{width:280px}.mceActionPanel{margin-top:7px}.panel_wrapper div.current{height:320px}#classlist,#title,#href{width:280px}#popupurl,#popupname{width:200px}#popupwidth,#popupheight,#popupleft,#popuptop{width:30px;vertical-align:middle;text-align:center}#id,#style,#classes,#target,#dir,#hreflang,#lang,#charset,#type,#rel,#rev,#tabindex,#accesskey{width:200px}#events_panel input{width:200px}
@@ -1 +1 @@
1
- (function(){tinymce.create("tinymce.plugins.AdvancedLinkPlugin",{init:function(a,b){this.editor=a;a.addCommand("mceAdvLink",function(){var c=a.selection;if(c.isCollapsed()&&!a.dom.getParent(c.getNode(),"A")){return}a.windowManager.open({file:b+"/link.htm",width:480+parseInt(a.getLang("advlink.delta_width",0)),height:400+parseInt(a.getLang("advlink.delta_height",0)),inline:1},{plugin_url:b})});a.addButton("link",{title:"advlink.link_desc",cmd:"mceAdvLink"});a.addShortcut("ctrl+k","advlink.advlink_desc","mceAdvLink");a.onNodeChange.add(function(d,c,f,e){c.setDisabled("link",e&&f.nodeName!="A");c.setActive("link",f.nodeName=="A"&&!f.name)})},getInfo:function(){return{longname:"Advanced link",author:"Moxiecode Systems AB",authorurl:"http://tinymce.moxiecode.com",infourl:"http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/advlink",version:tinymce.majorVersion+"."+tinymce.minorVersion}}});tinymce.PluginManager.add("advlink",tinymce.plugins.AdvancedLinkPlugin)})();
1
+ (function(){tinymce.create("tinymce.plugins.AdvancedLinkPlugin",{init:function(d,c){this.editor=d;d.addCommand("mceAdvLink",function(){var a=d.selection;if(a.isCollapsed()&&!d.dom.getParent(a.getNode(),"A")){return}d.windowManager.open({file:c+"/link.htm",width:480+parseInt(d.getLang("advlink.delta_width",0)),height:400+parseInt(d.getLang("advlink.delta_height",0)),inline:1},{plugin_url:c})});d.addButton("link",{title:"advlink.link_desc",cmd:"mceAdvLink"});d.addShortcut("ctrl+k","advlink.advlink_desc","mceAdvLink");d.onNodeChange.add(function(g,h,a,b){h.setDisabled("link",b&&a.nodeName!="A");h.setActive("link",a.nodeName=="A"&&!a.name)})},getInfo:function(){return{longname:"Advanced link",author:"Moxiecode Systems AB",authorurl:"http://tinymce.moxiecode.com",infourl:"http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/advlink",version:tinymce.majorVersion+"."+tinymce.minorVersion}}});tinymce.PluginManager.add("advlink",tinymce.plugins.AdvancedLinkPlugin)})();
@@ -1,61 +1 @@
1
- /**
2
- * editor_plugin_src.js
3
- *
4
- * Copyright 2009, Moxiecode Systems AB
5
- * Released under LGPL License.
6
- *
7
- * License: http://tinymce.moxiecode.com/license
8
- * Contributing: http://tinymce.moxiecode.com/contributing
9
- */
10
-
11
- (function() {
12
- tinymce.create('tinymce.plugins.AdvancedLinkPlugin', {
13
- init : function(ed, url) {
14
- this.editor = ed;
15
-
16
- // Register commands
17
- ed.addCommand('mceAdvLink', function() {
18
- var se = ed.selection;
19
-
20
- // No selection and not in link
21
- if (se.isCollapsed() && !ed.dom.getParent(se.getNode(), 'A'))
22
- return;
23
-
24
- ed.windowManager.open({
25
- file : url + '/link.htm',
26
- width : 480 + parseInt(ed.getLang('advlink.delta_width', 0)),
27
- height : 400 + parseInt(ed.getLang('advlink.delta_height', 0)),
28
- inline : 1
29
- }, {
30
- plugin_url : url
31
- });
32
- });
33
-
34
- // Register buttons
35
- ed.addButton('link', {
36
- title : 'advlink.link_desc',
37
- cmd : 'mceAdvLink'
38
- });
39
-
40
- ed.addShortcut('ctrl+k', 'advlink.advlink_desc', 'mceAdvLink');
41
-
42
- ed.onNodeChange.add(function(ed, cm, n, co) {
43
- cm.setDisabled('link', co && n.nodeName != 'A');
44
- cm.setActive('link', n.nodeName == 'A' && !n.name);
45
- });
46
- },
47
-
48
- getInfo : function() {
49
- return {
50
- longname : 'Advanced link',
51
- author : 'Moxiecode Systems AB',
52
- authorurl : 'http://tinymce.moxiecode.com',
53
- infourl : 'http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/advlink',
54
- version : tinymce.majorVersion + "." + tinymce.minorVersion
55
- };
56
- }
57
- });
58
-
59
- // Register plugin
60
- tinymce.PluginManager.add('advlink', tinymce.plugins.AdvancedLinkPlugin);
61
- })();
1
+ (function(){tinymce.create("tinymce.plugins.AdvancedLinkPlugin",{init:function(a,b){this.editor=a;a.addCommand("mceAdvLink",function(){var c=a.selection;if(c.isCollapsed()&&!a.dom.getParent(c.getNode(),"A")){return}a.windowManager.open({file:b+"/link.htm",width:480+parseInt(a.getLang("advlink.delta_width",0)),height:400+parseInt(a.getLang("advlink.delta_height",0)),inline:1},{plugin_url:b})});a.addButton("link",{title:"advlink.link_desc",cmd:"mceAdvLink"});a.addShortcut("ctrl+k","advlink.advlink_desc","mceAdvLink");a.onNodeChange.add(function(d,c,f,e){c.setDisabled("link",e&&f.nodeName!="A");c.setActive("link",f.nodeName=="A"&&!f.name)})},getInfo:function(){return{longname:"Advanced link",author:"Moxiecode Systems AB",authorurl:"http://tinymce.moxiecode.com",infourl:"http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/advlink",version:tinymce.majorVersion+"."+tinymce.minorVersion}}});tinymce.PluginManager.add("advlink",tinymce.plugins.AdvancedLinkPlugin)})();
@@ -1,525 +1 @@
1
- /* Functions for the advlink plugin popup */
2
-
3
- tinyMCEPopup.requireLangPack();
4
-
5
- var templates = {
6
- "window.open" : "window.open('${url}','${target}','${options}')"
7
- };
8
-
9
- function preinit() {
10
- var url;
11
-
12
- if (url = tinyMCEPopup.getParam("external_link_list_url"))
13
- document.write('<script language="javascript" type="text/javascript" src="' + tinyMCEPopup.editor.documentBaseURI.toAbsolute(url) + '"></script>');
14
- }
15
-
16
- function changeClass() {
17
- var f = document.forms[0];
18
-
19
- f.classes.value = getSelectValue(f, 'classlist');
20
- }
21
-
22
- function init() {
23
- tinyMCEPopup.resizeToInnerSize();
24
-
25
- var formObj = document.forms[0];
26
- var inst = tinyMCEPopup.editor;
27
- var elm = inst.selection.getNode();
28
- var action = "insert";
29
- var html;
30
-
31
- document.getElementById('hrefbrowsercontainer').innerHTML = getBrowserHTML('hrefbrowser','href','file','advlink');
32
- document.getElementById('popupurlbrowsercontainer').innerHTML = getBrowserHTML('popupurlbrowser','popupurl','file','advlink');
33
- document.getElementById('linklisthrefcontainer').innerHTML = getLinkListHTML('linklisthref','href');
34
- document.getElementById('anchorlistcontainer').innerHTML = getAnchorListHTML('anchorlist','href');
35
- document.getElementById('targetlistcontainer').innerHTML = getTargetListHTML('targetlist','target');
36
-
37
- // Link list
38
- html = getLinkListHTML('linklisthref','href');
39
- if (html == "")
40
- document.getElementById("linklisthrefrow").style.display = 'none';
41
- else
42
- document.getElementById("linklisthrefcontainer").innerHTML = html;
43
-
44
- // Resize some elements
45
- if (isVisible('hrefbrowser'))
46
- document.getElementById('href').style.width = '260px';
47
-
48
- if (isVisible('popupurlbrowser'))
49
- document.getElementById('popupurl').style.width = '180px';
50
-
51
- elm = inst.dom.getParent(elm, "A");
52
- if (elm != null && elm.nodeName == "A")
53
- action = "update";
54
-
55
- formObj.insert.value = tinyMCEPopup.getLang(action, 'Insert', true);
56
-
57
- setPopupControlsDisabled(true);
58
-
59
- if (action == "update") {
60
- var href = inst.dom.getAttrib(elm, 'href');
61
- var onclick = inst.dom.getAttrib(elm, 'onclick');
62
-
63
- // Setup form data
64
- setFormValue('href', href);
65
- setFormValue('title', inst.dom.getAttrib(elm, 'title'));
66
- setFormValue('id', inst.dom.getAttrib(elm, 'id'));
67
- setFormValue('style', inst.dom.getAttrib(elm, "style"));
68
- setFormValue('rel', inst.dom.getAttrib(elm, 'rel'));
69
- setFormValue('rev', inst.dom.getAttrib(elm, 'rev'));
70
- setFormValue('charset', inst.dom.getAttrib(elm, 'charset'));
71
- setFormValue('hreflang', inst.dom.getAttrib(elm, 'hreflang'));
72
- setFormValue('dir', inst.dom.getAttrib(elm, 'dir'));
73
- setFormValue('lang', inst.dom.getAttrib(elm, 'lang'));
74
- setFormValue('tabindex', inst.dom.getAttrib(elm, 'tabindex', typeof(elm.tabindex) != "undefined" ? elm.tabindex : ""));
75
- setFormValue('accesskey', inst.dom.getAttrib(elm, 'accesskey', typeof(elm.accesskey) != "undefined" ? elm.accesskey : ""));
76
- setFormValue('type', inst.dom.getAttrib(elm, 'type'));
77
- setFormValue('onfocus', inst.dom.getAttrib(elm, 'onfocus'));
78
- setFormValue('onblur', inst.dom.getAttrib(elm, 'onblur'));
79
- setFormValue('onclick', onclick);
80
- setFormValue('ondblclick', inst.dom.getAttrib(elm, 'ondblclick'));
81
- setFormValue('onmousedown', inst.dom.getAttrib(elm, 'onmousedown'));
82
- setFormValue('onmouseup', inst.dom.getAttrib(elm, 'onmouseup'));
83
- setFormValue('onmouseover', inst.dom.getAttrib(elm, 'onmouseover'));
84
- setFormValue('onmousemove', inst.dom.getAttrib(elm, 'onmousemove'));
85
- setFormValue('onmouseout', inst.dom.getAttrib(elm, 'onmouseout'));
86
- setFormValue('onkeypress', inst.dom.getAttrib(elm, 'onkeypress'));
87
- setFormValue('onkeydown', inst.dom.getAttrib(elm, 'onkeydown'));
88
- setFormValue('onkeyup', inst.dom.getAttrib(elm, 'onkeyup'));
89
- setFormValue('target', inst.dom.getAttrib(elm, 'target'));
90
- setFormValue('classes', inst.dom.getAttrib(elm, 'class'));
91
-
92
- // Parse onclick data
93
- if (onclick != null && onclick.indexOf('window.open') != -1)
94
- parseWindowOpen(onclick);
95
- else
96
- parseFunction(onclick);
97
-
98
- // Select by the values
99
- selectByValue(formObj, 'dir', inst.dom.getAttrib(elm, 'dir'));
100
- selectByValue(formObj, 'rel', inst.dom.getAttrib(elm, 'rel'));
101
- selectByValue(formObj, 'rev', inst.dom.getAttrib(elm, 'rev'));
102
- selectByValue(formObj, 'linklisthref', href);
103
-
104
- if (href.charAt(0) == '#')
105
- selectByValue(formObj, 'anchorlist', href);
106
-
107
- addClassesToList('classlist', 'advlink_styles');
108
-
109
- selectByValue(formObj, 'classlist', inst.dom.getAttrib(elm, 'class'), true);
110
- selectByValue(formObj, 'targetlist', inst.dom.getAttrib(elm, 'target'), true);
111
- } else
112
- addClassesToList('classlist', 'advlink_styles');
113
- }
114
-
115
- function checkPrefix(n) {
116
- if (n.value && Validator.isEmail(n) && !/^\s*mailto:/i.test(n.value) && confirm(tinyMCEPopup.getLang('advlink_dlg.is_email')))
117
- n.value = 'mailto:' + n.value;
118
-
119
- if (/^\s*www\./i.test(n.value) && confirm(tinyMCEPopup.getLang('advlink_dlg.is_external')))
120
- n.value = 'http://' + n.value;
121
- }
122
-
123
- function setFormValue(name, value) {
124
- document.forms[0].elements[name].value = value;
125
- }
126
-
127
- function parseWindowOpen(onclick) {
128
- var formObj = document.forms[0];
129
-
130
- // Preprocess center code
131
- if (onclick.indexOf('return false;') != -1) {
132
- formObj.popupreturn.checked = true;
133
- onclick = onclick.replace('return false;', '');
134
- } else
135
- formObj.popupreturn.checked = false;
136
-
137
- var onClickData = parseLink(onclick);
138
-
139
- if (onClickData != null) {
140
- formObj.ispopup.checked = true;
141
- setPopupControlsDisabled(false);
142
-
143
- var onClickWindowOptions = parseOptions(onClickData['options']);
144
- var url = onClickData['url'];
145
-
146
- formObj.popupname.value = onClickData['target'];
147
- formObj.popupurl.value = url;
148
- formObj.popupwidth.value = getOption(onClickWindowOptions, 'width');
149
- formObj.popupheight.value = getOption(onClickWindowOptions, 'height');
150
-
151
- formObj.popupleft.value = getOption(onClickWindowOptions, 'left');
152
- formObj.popuptop.value = getOption(onClickWindowOptions, 'top');
153
-
154
- if (formObj.popupleft.value.indexOf('screen') != -1)
155
- formObj.popupleft.value = "c";
156
-
157
- if (formObj.popuptop.value.indexOf('screen') != -1)
158
- formObj.popuptop.value = "c";
159
-
160
- formObj.popuplocation.checked = getOption(onClickWindowOptions, 'location') == "yes";
161
- formObj.popupscrollbars.checked = getOption(onClickWindowOptions, 'scrollbars') == "yes";
162
- formObj.popupmenubar.checked = getOption(onClickWindowOptions, 'menubar') == "yes";
163
- formObj.popupresizable.checked = getOption(onClickWindowOptions, 'resizable') == "yes";
164
- formObj.popuptoolbar.checked = getOption(onClickWindowOptions, 'toolbar') == "yes";
165
- formObj.popupstatus.checked = getOption(onClickWindowOptions, 'status') == "yes";
166
- formObj.popupdependent.checked = getOption(onClickWindowOptions, 'dependent') == "yes";
167
-
168
- buildOnClick();
169
- }
170
- }
171
-
172
- function parseFunction(onclick) {
173
- var formObj = document.forms[0];
174
- var onClickData = parseLink(onclick);
175
-
176
- // TODO: Add stuff here
177
- }
178
-
179
- function getOption(opts, name) {
180
- return typeof(opts[name]) == "undefined" ? "" : opts[name];
181
- }
182
-
183
- function setPopupControlsDisabled(state) {
184
- var formObj = document.forms[0];
185
-
186
- formObj.popupname.disabled = state;
187
- formObj.popupurl.disabled = state;
188
- formObj.popupwidth.disabled = state;
189
- formObj.popupheight.disabled = state;
190
- formObj.popupleft.disabled = state;
191
- formObj.popuptop.disabled = state;
192
- formObj.popuplocation.disabled = state;
193
- formObj.popupscrollbars.disabled = state;
194
- formObj.popupmenubar.disabled = state;
195
- formObj.popupresizable.disabled = state;
196
- formObj.popuptoolbar.disabled = state;
197
- formObj.popupstatus.disabled = state;
198
- formObj.popupreturn.disabled = state;
199
- formObj.popupdependent.disabled = state;
200
-
201
- setBrowserDisabled('popupurlbrowser', state);
202
- }
203
-
204
- function parseLink(link) {
205
- link = link.replace(new RegExp('&#39;', 'g'), "'");
206
-
207
- var fnName = link.replace(new RegExp("\\s*([A-Za-z0-9\.]*)\\s*\\(.*", "gi"), "$1");
208
-
209
- // Is function name a template function
210
- var template = templates[fnName];
211
- if (template) {
212
- // Build regexp
213
- var variableNames = template.match(new RegExp("'?\\$\\{[A-Za-z0-9\.]*\\}'?", "gi"));
214
- var regExp = "\\s*[A-Za-z0-9\.]*\\s*\\(";
215
- var replaceStr = "";
216
- for (var i=0; i<variableNames.length; i++) {
217
- // Is string value
218
- if (variableNames[i].indexOf("'${") != -1)
219
- regExp += "'(.*)'";
220
- else // Number value
221
- regExp += "([0-9]*)";
222
-
223
- replaceStr += "$" + (i+1);
224
-
225
- // Cleanup variable name
226
- variableNames[i] = variableNames[i].replace(new RegExp("[^A-Za-z0-9]", "gi"), "");
227
-
228
- if (i != variableNames.length-1) {
229
- regExp += "\\s*,\\s*";
230
- replaceStr += "<delim>";
231
- } else
232
- regExp += ".*";
233
- }
234
-
235
- regExp += "\\);?";
236
-
237
- // Build variable array
238
- var variables = [];
239
- variables["_function"] = fnName;
240
- var variableValues = link.replace(new RegExp(regExp, "gi"), replaceStr).split('<delim>');
241
- for (var i=0; i<variableNames.length; i++)
242
- variables[variableNames[i]] = variableValues[i];
243
-
244
- return variables;
245
- }
246
-
247
- return null;
248
- }
249
-
250
- function parseOptions(opts) {
251
- if (opts == null || opts == "")
252
- return [];
253
-
254
- // Cleanup the options
255
- opts = opts.toLowerCase();
256
- opts = opts.replace(/;/g, ",");
257
- opts = opts.replace(/[^0-9a-z=,]/g, "");
258
-
259
- var optionChunks = opts.split(',');
260
- var options = [];
261
-
262
- for (var i=0; i<optionChunks.length; i++) {
263
- var parts = optionChunks[i].split('=');
264
-
265
- if (parts.length == 2)
266
- options[parts[0]] = parts[1];
267
- }
268
-
269
- return options;
270
- }
271
-
272
- function buildOnClick() {
273
- var formObj = document.forms[0];
274
-
275
- if (!formObj.ispopup.checked) {
276
- formObj.onclick.value = "";
277
- return;
278
- }
279
-
280
- var onclick = "window.open('";
281
- var url = formObj.popupurl.value;
282
-
283
- onclick += url + "','";
284
- onclick += formObj.popupname.value + "','";
285
-
286
- if (formObj.popuplocation.checked)
287
- onclick += "location=yes,";
288
-
289
- if (formObj.popupscrollbars.checked)
290
- onclick += "scrollbars=yes,";
291
-
292
- if (formObj.popupmenubar.checked)
293
- onclick += "menubar=yes,";
294
-
295
- if (formObj.popupresizable.checked)
296
- onclick += "resizable=yes,";
297
-
298
- if (formObj.popuptoolbar.checked)
299
- onclick += "toolbar=yes,";
300
-
301
- if (formObj.popupstatus.checked)
302
- onclick += "status=yes,";
303
-
304
- if (formObj.popupdependent.checked)
305
- onclick += "dependent=yes,";
306
-
307
- if (formObj.popupwidth.value != "")
308
- onclick += "width=" + formObj.popupwidth.value + ",";
309
-
310
- if (formObj.popupheight.value != "")
311
- onclick += "height=" + formObj.popupheight.value + ",";
312
-
313
- if (formObj.popupleft.value != "") {
314
- if (formObj.popupleft.value != "c")
315
- onclick += "left=" + formObj.popupleft.value + ",";
316
- else
317
- onclick += "left='+(screen.availWidth/2-" + (formObj.popupwidth.value/2) + ")+',";
318
- }
319
-
320
- if (formObj.popuptop.value != "") {
321
- if (formObj.popuptop.value != "c")
322
- onclick += "top=" + formObj.popuptop.value + ",";
323
- else
324
- onclick += "top='+(screen.availHeight/2-" + (formObj.popupheight.value/2) + ")+',";
325
- }
326
-
327
- if (onclick.charAt(onclick.length-1) == ',')
328
- onclick = onclick.substring(0, onclick.length-1);
329
-
330
- onclick += "');";
331
-
332
- if (formObj.popupreturn.checked)
333
- onclick += "return false;";
334
-
335
- // tinyMCE.debug(onclick);
336
-
337
- formObj.onclick.value = onclick;
338
-
339
- if (formObj.href.value == "")
340
- formObj.href.value = url;
341
- }
342
-
343
- function setAttrib(elm, attrib, value) {
344
- var formObj = document.forms[0];
345
- var valueElm = formObj.elements[attrib.toLowerCase()];
346
- var dom = tinyMCEPopup.editor.dom;
347
-
348
- if (typeof(value) == "undefined" || value == null) {
349
- value = "";
350
-
351
- if (valueElm)
352
- value = valueElm.value;
353
- }
354
-
355
- // Clean up the style
356
- if (attrib == 'style')
357
- value = dom.serializeStyle(dom.parseStyle(value), 'a');
358
-
359
- dom.setAttrib(elm, attrib, value);
360
- }
361
-
362
- function getAnchorListHTML(id, target) {
363
- var inst = tinyMCEPopup.editor;
364
- var nodes = inst.dom.select('a.mceItemAnchor,img.mceItemAnchor'), name, i;
365
- var html = "";
366
-
367
- html += '<select id="' + id + '" name="' + id + '" class="mceAnchorList" o2nfocus="tinyMCE.addSelectAccessibility(event, this, window);" onchange="this.form.' + target + '.value=';
368
- html += 'this.options[this.selectedIndex].value;">';
369
- html += '<option value="">---</option>';
370
-
371
- for (i=0; i<nodes.length; i++) {
372
- if ((name = inst.dom.getAttrib(nodes[i], "name")) != "")
373
- html += '<option value="#' + name + '">' + name + '</option>';
374
- }
375
-
376
- html += '</select>';
377
-
378
- return html;
379
- }
380
-
381
- function insertAction() {
382
- var inst = tinyMCEPopup.editor;
383
- var elm, elementArray, i;
384
-
385
- elm = inst.selection.getNode();
386
- checkPrefix(document.forms[0].href);
387
-
388
- elm = inst.dom.getParent(elm, "A");
389
-
390
- // Remove element if there is no href
391
- if (!document.forms[0].href.value) {
392
- i = inst.selection.getBookmark();
393
- inst.dom.remove(elm, 1);
394
- inst.selection.moveToBookmark(i);
395
- tinyMCEPopup.execCommand("mceEndUndoLevel");
396
- tinyMCEPopup.close();
397
- return;
398
- }
399
-
400
- // Create new anchor elements
401
- if (elm == null) {
402
- inst.getDoc().execCommand("unlink", false, null);
403
- tinyMCEPopup.execCommand("mceInsertLink", false, "#mce_temp_url#", {skip_undo : 1});
404
-
405
- elementArray = tinymce.grep(inst.dom.select("a"), function(n) {return inst.dom.getAttrib(n, 'href') == '#mce_temp_url#';});
406
- for (i=0; i<elementArray.length; i++)
407
- setAllAttribs(elm = elementArray[i]);
408
- } else
409
- setAllAttribs(elm);
410
-
411
- // Don't move caret if selection was image
412
- if (elm.childNodes.length != 1 || elm.firstChild.nodeName != 'IMG') {
413
- inst.focus();
414
- inst.selection.select(elm);
415
- inst.selection.collapse(0);
416
- tinyMCEPopup.storeSelection();
417
- }
418
-
419
- tinyMCEPopup.execCommand("mceEndUndoLevel");
420
- tinyMCEPopup.close();
421
- }
422
-
423
- function setAllAttribs(elm) {
424
- var formObj = document.forms[0];
425
- var href = formObj.href.value.replace(/ /g, '%20');
426
- var target = getSelectValue(formObj, 'targetlist');
427
-
428
- setAttrib(elm, 'href', href);
429
- setAttrib(elm, 'title');
430
- setAttrib(elm, 'target', target == '_self' ? '' : target);
431
- setAttrib(elm, 'id');
432
- setAttrib(elm, 'style');
433
- setAttrib(elm, 'class', getSelectValue(formObj, 'classlist'));
434
- setAttrib(elm, 'rel');
435
- setAttrib(elm, 'rev');
436
- setAttrib(elm, 'charset');
437
- setAttrib(elm, 'hreflang');
438
- setAttrib(elm, 'dir');
439
- setAttrib(elm, 'lang');
440
- setAttrib(elm, 'tabindex');
441
- setAttrib(elm, 'accesskey');
442
- setAttrib(elm, 'type');
443
- setAttrib(elm, 'onfocus');
444
- setAttrib(elm, 'onblur');
445
- setAttrib(elm, 'onclick');
446
- setAttrib(elm, 'ondblclick');
447
- setAttrib(elm, 'onmousedown');
448
- setAttrib(elm, 'onmouseup');
449
- setAttrib(elm, 'onmouseover');
450
- setAttrib(elm, 'onmousemove');
451
- setAttrib(elm, 'onmouseout');
452
- setAttrib(elm, 'onkeypress');
453
- setAttrib(elm, 'onkeydown');
454
- setAttrib(elm, 'onkeyup');
455
-
456
- // Refresh in old MSIE
457
- if (tinyMCE.isMSIE5)
458
- elm.outerHTML = elm.outerHTML;
459
- }
460
-
461
- function getSelectValue(form_obj, field_name) {
462
- var elm = form_obj.elements[field_name];
463
-
464
- if (!elm || elm.options == null || elm.selectedIndex == -1)
465
- return "";
466
-
467
- return elm.options[elm.selectedIndex].value;
468
- }
469
-
470
- function getLinkListHTML(elm_id, target_form_element, onchange_func) {
471
- if (typeof(tinyMCELinkList) == "undefined" || tinyMCELinkList.length == 0)
472
- return "";
473
-
474
- var html = "";
475
-
476
- html += '<select id="' + elm_id + '" name="' + elm_id + '"';
477
- html += ' class="mceLinkList" onfoc2us="tinyMCE.addSelectAccessibility(event, this, window);" onchange="this.form.' + target_form_element + '.value=';
478
- html += 'this.options[this.selectedIndex].value;';
479
-
480
- if (typeof(onchange_func) != "undefined")
481
- html += onchange_func + '(\'' + target_form_element + '\',this.options[this.selectedIndex].text,this.options[this.selectedIndex].value);';
482
-
483
- html += '"><option value="">---</option>';
484
-
485
- for (var i=0; i<tinyMCELinkList.length; i++)
486
- html += '<option value="' + tinyMCELinkList[i][1] + '">' + tinyMCELinkList[i][0] + '</option>';
487
-
488
- html += '</select>';
489
-
490
- return html;
491
-
492
- // tinyMCE.debug('-- image list start --', html, '-- image list end --');
493
- }
494
-
495
- function getTargetListHTML(elm_id, target_form_element) {
496
- var targets = tinyMCEPopup.getParam('theme_advanced_link_targets', '').split(';');
497
- var html = '';
498
-
499
- html += '<select id="' + elm_id + '" name="' + elm_id + '" onf2ocus="tinyMCE.addSelectAccessibility(event, this, window);" onchange="this.form.' + target_form_element + '.value=';
500
- html += 'this.options[this.selectedIndex].value;">';
501
- html += '<option value="_self">' + tinyMCEPopup.getLang('advlink_dlg.target_same') + '</option>';
502
- html += '<option value="_blank">' + tinyMCEPopup.getLang('advlink_dlg.target_blank') + ' (_blank)</option>';
503
- html += '<option value="_parent">' + tinyMCEPopup.getLang('advlink_dlg.target_parent') + ' (_parent)</option>';
504
- html += '<option value="_top">' + tinyMCEPopup.getLang('advlink_dlg.target_top') + ' (_top)</option>';
505
-
506
- for (var i=0; i<targets.length; i++) {
507
- var key, value;
508
-
509
- if (targets[i] == "")
510
- continue;
511
-
512
- key = targets[i].split('=')[0];
513
- value = targets[i].split('=')[1];
514
-
515
- html += '<option value="' + key + '">' + value + ' (' + key + ')</option>';
516
- }
517
-
518
- html += '</select>';
519
-
520
- return html;
521
- }
522
-
523
- // While loading
524
- preinit();
525
- tinyMCEPopup.onInit.add(init);
1
+ tinyMCEPopup.requireLangPack();var templates={"window.open":"window.open('${url}','${target}','${options}')"};function preinit(){var a;if(a=tinyMCEPopup.getParam("external_link_list_url")){document.write('<script language="javascript" type="text/javascript" src="'+tinyMCEPopup.editor.documentBaseURI.toAbsolute(a)+'"><\/script>')}}function changeClass(){var a=document.forms[0];a.classes.value=getSelectValue(a,"classlist")}function init(){tinyMCEPopup.resizeToInnerSize();var a=document.forms[0];var f=tinyMCEPopup.editor;var g=f.selection.getNode();var e="insert";var d;document.getElementById("hrefbrowsercontainer").innerHTML=getBrowserHTML("hrefbrowser","href","file","advlink");document.getElementById("popupurlbrowsercontainer").innerHTML=getBrowserHTML("popupurlbrowser","popupurl","file","advlink");document.getElementById("linklisthrefcontainer").innerHTML=getLinkListHTML("linklisthref","href");document.getElementById("anchorlistcontainer").innerHTML=getAnchorListHTML("anchorlist","href");document.getElementById("targetlistcontainer").innerHTML=getTargetListHTML("targetlist","target");d=getLinkListHTML("linklisthref","href");if(d==""){document.getElementById("linklisthrefrow").style.display="none"}else{document.getElementById("linklisthrefcontainer").innerHTML=d}if(isVisible("hrefbrowser")){document.getElementById("href").style.width="260px"}if(isVisible("popupurlbrowser")){document.getElementById("popupurl").style.width="180px"}g=f.dom.getParent(g,"A");if(g!=null&&g.nodeName=="A"){e="update"}a.insert.value=tinyMCEPopup.getLang(e,"Insert",true);setPopupControlsDisabled(true);if(e=="update"){var b=f.dom.getAttrib(g,"href");var c=f.dom.getAttrib(g,"onclick");setFormValue("href",b);setFormValue("title",f.dom.getAttrib(g,"title"));setFormValue("id",f.dom.getAttrib(g,"id"));setFormValue("style",f.dom.getAttrib(g,"style"));setFormValue("rel",f.dom.getAttrib(g,"rel"));setFormValue("rev",f.dom.getAttrib(g,"rev"));setFormValue("charset",f.dom.getAttrib(g,"charset"));setFormValue("hreflang",f.dom.getAttrib(g,"hreflang"));setFormValue("dir",f.dom.getAttrib(g,"dir"));setFormValue("lang",f.dom.getAttrib(g,"lang"));setFormValue("tabindex",f.dom.getAttrib(g,"tabindex",typeof(g.tabindex)!="undefined"?g.tabindex:""));setFormValue("accesskey",f.dom.getAttrib(g,"accesskey",typeof(g.accesskey)!="undefined"?g.accesskey:""));setFormValue("type",f.dom.getAttrib(g,"type"));setFormValue("onfocus",f.dom.getAttrib(g,"onfocus"));setFormValue("onblur",f.dom.getAttrib(g,"onblur"));setFormValue("onclick",c);setFormValue("ondblclick",f.dom.getAttrib(g,"ondblclick"));setFormValue("onmousedown",f.dom.getAttrib(g,"onmousedown"));setFormValue("onmouseup",f.dom.getAttrib(g,"onmouseup"));setFormValue("onmouseover",f.dom.getAttrib(g,"onmouseover"));setFormValue("onmousemove",f.dom.getAttrib(g,"onmousemove"));setFormValue("onmouseout",f.dom.getAttrib(g,"onmouseout"));setFormValue("onkeypress",f.dom.getAttrib(g,"onkeypress"));setFormValue("onkeydown",f.dom.getAttrib(g,"onkeydown"));setFormValue("onkeyup",f.dom.getAttrib(g,"onkeyup"));setFormValue("target",f.dom.getAttrib(g,"target"));setFormValue("classes",f.dom.getAttrib(g,"class"));if(c!=null&&c.indexOf("window.open")!=-1){parseWindowOpen(c)}else{parseFunction(c)}selectByValue(a,"dir",f.dom.getAttrib(g,"dir"));selectByValue(a,"rel",f.dom.getAttrib(g,"rel"));selectByValue(a,"rev",f.dom.getAttrib(g,"rev"));selectByValue(a,"linklisthref",b);if(b.charAt(0)=="#"){selectByValue(a,"anchorlist",b)}addClassesToList("classlist","advlink_styles");selectByValue(a,"classlist",f.dom.getAttrib(g,"class"),true);selectByValue(a,"targetlist",f.dom.getAttrib(g,"target"),true)}else{addClassesToList("classlist","advlink_styles")}}function checkPrefix(a){if(a.value&&Validator.isEmail(a)&&!/^\s*mailto:/i.test(a.value)&&confirm(tinyMCEPopup.getLang("advlink_dlg.is_email"))){a.value="mailto:"+a.value}if(/^\s*www\./i.test(a.value)&&confirm(tinyMCEPopup.getLang("advlink_dlg.is_external"))){a.value="http://"+a.value}}function setFormValue(a,b){document.forms[0].elements[a].value=b}function parseWindowOpen(c){var a=document.forms[0];if(c.indexOf("return false;")!=-1){a.popupreturn.checked=true;c=c.replace("return false;","")}else{a.popupreturn.checked=false}var e=parseLink(c);if(e!=null){a.ispopup.checked=true;setPopupControlsDisabled(false);var d=parseOptions(e.options);var b=e.url;a.popupname.value=e.target;a.popupurl.value=b;a.popupwidth.value=getOption(d,"width");a.popupheight.value=getOption(d,"height");a.popupleft.value=getOption(d,"left");a.popuptop.value=getOption(d,"top");if(a.popupleft.value.indexOf("screen")!=-1){a.popupleft.value="c"}if(a.popuptop.value.indexOf("screen")!=-1){a.popuptop.value="c"}a.popuplocation.checked=getOption(d,"location")=="yes";a.popupscrollbars.checked=getOption(d,"scrollbars")=="yes";a.popupmenubar.checked=getOption(d,"menubar")=="yes";a.popupresizable.checked=getOption(d,"resizable")=="yes";a.popuptoolbar.checked=getOption(d,"toolbar")=="yes";a.popupstatus.checked=getOption(d,"status")=="yes";a.popupdependent.checked=getOption(d,"dependent")=="yes";buildOnClick()}}function parseFunction(b){var a=document.forms[0];var c=parseLink(b)}function getOption(b,a){return typeof(b[a])=="undefined"?"":b[a]}function setPopupControlsDisabled(b){var a=document.forms[0];a.popupname.disabled=b;a.popupurl.disabled=b;a.popupwidth.disabled=b;a.popupheight.disabled=b;a.popupleft.disabled=b;a.popuptop.disabled=b;a.popuplocation.disabled=b;a.popupscrollbars.disabled=b;a.popupmenubar.disabled=b;a.popupresizable.disabled=b;a.popuptoolbar.disabled=b;a.popupstatus.disabled=b;a.popupreturn.disabled=b;a.popupdependent.disabled=b;setBrowserDisabled("popupurlbrowser",b)}function parseLink(f){f=f.replace(new RegExp("&#39;","g"),"'");var a=f.replace(new RegExp("\\s*([A-Za-z0-9.]*)\\s*\\(.*","gi"),"$1");var h=templates[a];if(h){var g=h.match(new RegExp("'?\\$\\{[A-Za-z0-9.]*\\}'?","gi"));var e="\\s*[A-Za-z0-9.]*\\s*\\(";var d="";for(var c=0;c<g.length;c++){if(g[c].indexOf("'${")!=-1){e+="'(.*)'"}else{e+="([0-9]*)"}d+="$"+(c+1);g[c]=g[c].replace(new RegExp("[^A-Za-z0-9]","gi"),"");if(c!=g.length-1){e+="\\s*,\\s*";d+="<delim>"}else{e+=".*"}}e+="\\);?";var j=[];j._function=a;var b=f.replace(new RegExp(e,"gi"),d).split("<delim>");for(var c=0;c<g.length;c++){j[g[c]]=b[c]}return j}return null}function parseOptions(c){if(c==null||c==""){return[]}c=c.toLowerCase();c=c.replace(/;/g,",");c=c.replace(/[^0-9a-z=,]/g,"");var e=c.split(",");var a=[];for(var b=0;b<e.length;b++){var d=e[b].split("=");if(d.length==2){a[d[0]]=d[1]}}return a}function buildOnClick(){var a=document.forms[0];if(!a.ispopup.checked){a.onclick.value="";return}var c="window.open('";var b=a.popupurl.value;c+=b+"','";c+=a.popupname.value+"','";if(a.popuplocation.checked){c+="location=yes,"}if(a.popupscrollbars.checked){c+="scrollbars=yes,"}if(a.popupmenubar.checked){c+="menubar=yes,"}if(a.popupresizable.checked){c+="resizable=yes,"}if(a.popuptoolbar.checked){c+="toolbar=yes,"}if(a.popupstatus.checked){c+="status=yes,"}if(a.popupdependent.checked){c+="dependent=yes,"}if(a.popupwidth.value!=""){c+="width="+a.popupwidth.value+","}if(a.popupheight.value!=""){c+="height="+a.popupheight.value+","}if(a.popupleft.value!=""){if(a.popupleft.value!="c"){c+="left="+a.popupleft.value+","}else{c+="left='+(screen.availWidth/2-"+(a.popupwidth.value/2)+")+',"}}if(a.popuptop.value!=""){if(a.popuptop.value!="c"){c+="top="+a.popuptop.value+","}else{c+="top='+(screen.availHeight/2-"+(a.popupheight.value/2)+")+',"}}if(c.charAt(c.length-1)==","){c=c.substring(0,c.length-1)}c+="');";if(a.popupreturn.checked){c+="return false;"}a.onclick.value=c;if(a.href.value==""){a.href.value=b}}function setAttrib(f,d,c){var b=document.forms[0];var a=b.elements[d.toLowerCase()];var e=tinyMCEPopup.editor.dom;if(typeof(c)=="undefined"||c==null){c="";if(a){c=a.value}}if(d=="style"){c=e.serializeStyle(e.parseStyle(c),"a")}e.setAttrib(f,d,c)}function getAnchorListHTML(g,f){var e=tinyMCEPopup.editor;var a=e.dom.select("a.mceItemAnchor,img.mceItemAnchor"),b,d;var c="";c+='<select id="'+g+'" name="'+g+'" class="mceAnchorList" o2nfocus="tinyMCE.addSelectAccessibility(event, this, window);" onchange="this.form.'+f+".value=";c+='this.options[this.selectedIndex].value;">';c+='<option value="">---</option>';for(d=0;d<a.length;d++){if((b=e.dom.getAttrib(a[d],"name"))!=""){c+='<option value="#'+b+'">'+b+"</option>"}}c+="</select>";return c}function insertAction(){var c=tinyMCEPopup.editor;var d,a,b;d=c.selection.getNode();checkPrefix(document.forms[0].href);d=c.dom.getParent(d,"A");if(!document.forms[0].href.value){b=c.selection.getBookmark();c.dom.remove(d,1);c.selection.moveToBookmark(b);tinyMCEPopup.execCommand("mceEndUndoLevel");tinyMCEPopup.close();return}if(d==null){c.getDoc().execCommand("unlink",false,null);tinyMCEPopup.execCommand("mceInsertLink",false,"#mce_temp_url#",{skip_undo:1});a=tinymce.grep(c.dom.select("a"),function(e){return c.dom.getAttrib(e,"href")=="#mce_temp_url#"});for(b=0;b<a.length;b++){setAllAttribs(d=a[b])}}else{setAllAttribs(d)}if(d.childNodes.length!=1||d.firstChild.nodeName!="IMG"){c.focus();c.selection.select(d);c.selection.collapse(0);tinyMCEPopup.storeSelection()}tinyMCEPopup.execCommand("mceEndUndoLevel");tinyMCEPopup.close()}function setAllAttribs(d){var a=document.forms[0];var b=a.href.value.replace(/ /g,"%20");var c=getSelectValue(a,"targetlist");setAttrib(d,"href",b);setAttrib(d,"title");setAttrib(d,"target",c=="_self"?"":c);setAttrib(d,"id");setAttrib(d,"style");setAttrib(d,"class",getSelectValue(a,"classlist"));setAttrib(d,"rel");setAttrib(d,"rev");setAttrib(d,"charset");setAttrib(d,"hreflang");setAttrib(d,"dir");setAttrib(d,"lang");setAttrib(d,"tabindex");setAttrib(d,"accesskey");setAttrib(d,"type");setAttrib(d,"onfocus");setAttrib(d,"onblur");setAttrib(d,"onclick");setAttrib(d,"ondblclick");setAttrib(d,"onmousedown");setAttrib(d,"onmouseup");setAttrib(d,"onmouseover");setAttrib(d,"onmousemove");setAttrib(d,"onmouseout");setAttrib(d,"onkeypress");setAttrib(d,"onkeydown");setAttrib(d,"onkeyup");if(tinyMCE.isMSIE5){d.outerHTML=d.outerHTML}}function getSelectValue(a,b){var c=a.elements[b];if(!c||c.options==null||c.selectedIndex==-1){return""}return c.options[c.selectedIndex].value}function getLinkListHTML(d,c,e){if(typeof(tinyMCELinkList)=="undefined"||tinyMCELinkList.length==0){return""}var b="";b+='<select id="'+d+'" name="'+d+'"';b+=' class="mceLinkList" onfoc2us="tinyMCE.addSelectAccessibility(event, this, window);" onchange="this.form.'+c+".value=";b+="this.options[this.selectedIndex].value;";if(typeof(e)!="undefined"){b+=e+"('"+c+"',this.options[this.selectedIndex].text,this.options[this.selectedIndex].value);"}b+='"><option value="">---</option>';for(var a=0;a<tinyMCELinkList.length;a++){b+='<option value="'+tinyMCELinkList[a][1]+'">'+tinyMCELinkList[a][0]+"</option>"}b+="</select>";return b}function getTargetListHTML(f,e){var a=tinyMCEPopup.getParam("theme_advanced_link_targets","").split(";");var d="";d+='<select id="'+f+'" name="'+f+'" onf2ocus="tinyMCE.addSelectAccessibility(event, this, window);" onchange="this.form.'+e+".value=";d+='this.options[this.selectedIndex].value;">';d+='<option value="_self">'+tinyMCEPopup.getLang("advlink_dlg.target_same")+"</option>";d+='<option value="_blank">'+tinyMCEPopup.getLang("advlink_dlg.target_blank")+" (_blank)</option>";d+='<option value="_parent">'+tinyMCEPopup.getLang("advlink_dlg.target_parent")+" (_parent)</option>";d+='<option value="_top">'+tinyMCEPopup.getLang("advlink_dlg.target_top")+" (_top)</option>";for(var c=0;c<a.length;c++){var b,g;if(a[c]==""){continue}b=a[c].split("=")[0];g=a[c].split("=")[1];d+='<option value="'+b+'">'+g+" ("+b+")</option>"}d+="</select>";return d}preinit();tinyMCEPopup.onInit.add(init);