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.fullpage_dlg",{title:"Dokument-Eigenschaften",meta_tab:"Allgemein",appearance_tab:"Aussehen",advanced_tab:"Erweitert",meta_props:"Meta-Information",langprops:"Sprache und Codierung",meta_title:"Titel",meta_keywords:"Keywords",meta_description:"Beschreibung",meta_robots:"Robots",doctypes:"DocType",langcode:"Sprachcode",langdir:"Sprachrichtung",ltr:"Links nach Rechts",rtl:"Rechts nach Links",xml_pi:"XML Deklaration",encoding:"Zeichencodierung",appearance_bgprops:"Hintergrund-Eigenschaften",appearance_marginprops:"Abst\u00e4nde des Body",appearance_linkprops:"Linkfarben",appearance_textprops:"Text-Eigenschaften",bgcolor:"Hintergrundfarbe",bgimage:"Hintergrundbild",left_margin:"Linker Abstand",right_margin:"Rechter Abstand",top_margin:"Oberer Abstand",bottom_margin:"Unterer Abstand",text_color:"Textfarbe",font_size:"Schriftgr\u00f6\u00dfe",font_face:"Schriftart",link_color:"Linkfarbe",hover_color:"Hover-Farbe",visited_color:"Visited-Farbe",active_color:"Active-Farbe",textcolor:"Farbe",fontsize:"Schriftgr\u00f6\u00dfe",fontface:"Schriftart",meta_index_follow:"Indizieren und den Links folgen",meta_index_nofollow:"Indizieren, aber den Links nicht folgen",meta_noindex_follow:"Nicht indizieren, aber den Links folgen",meta_noindex_nofollow:"Nicht indizieren und auch nicht den Links folgen",appearance_style:"CSS-Stylesheet und Stileigenschaften",stylesheet:"CSS-Stylesheet",style:"CSS-Stil",author:"Autor",copyright:"Copyright",add:"Neues Element hinzuf\u00fcgen",remove:"Ausgew\u00e4hltes Element entfernen",moveup:"Ausgew\u00e4hltes Element nach oben bewegen",movedown:"Ausgew\u00e4hltes Element nach unten bewegen",head_elements:"\u00dcberschriftenelemente",info:"Information",add_title:"Titel-Element",add_meta:"Meta-Element",add_script:"Script-Element",add_style:"Style-Element",add_link:"Link-Element",add_base:"Base-Element",add_comment:"HTML-Kommentar",title_element:"Titel-Element",script_element:"Script-Element",style_element:"Style-Element",base_element:"Base-Element",link_element:"Link-Element",meta_element:"Meta_Element",comment_element:"Kommentar",src:"Src",language:"Sprache",href:"Href",target:"Ziel",type:"Typ",charset:"Zeichensatz",defer:"Defer",media:"Media",properties:"Eigenschaften",name:"Name",value:"Wert",content:"Inhalt",rel:"Rel",rev:"Rev",hreflang:"Href lang",general_props:"Allgemein",advanced_props:"Erweitert"});
@@ -1,85 +1 @@
1
- tinyMCE.addI18n('en.fullpage_dlg',{
2
- title:"Document properties",
3
- meta_tab:"General",
4
- appearance_tab:"Appearance",
5
- advanced_tab:"Advanced",
6
- meta_props:"Meta information",
7
- langprops:"Language and encoding",
8
- meta_title:"Title",
9
- meta_keywords:"Keywords",
10
- meta_description:"Description",
11
- meta_robots:"Robots",
12
- doctypes:"Doctype",
13
- langcode:"Language code",
14
- langdir:"Language direction",
15
- ltr:"Left to right",
16
- rtl:"Right to left",
17
- xml_pi:"XML declaration",
18
- encoding:"Character encoding",
19
- appearance_bgprops:"Background properties",
20
- appearance_marginprops:"Body margins",
21
- appearance_linkprops:"Link colors",
22
- appearance_textprops:"Text properties",
23
- bgcolor:"Background color",
24
- bgimage:"Background image",
25
- left_margin:"Left margin",
26
- right_margin:"Right margin",
27
- top_margin:"Top margin",
28
- bottom_margin:"Bottom margin",
29
- text_color:"Text color",
30
- font_size:"Font size",
31
- font_face:"Font face",
32
- link_color:"Link color",
33
- hover_color:"Hover color",
34
- visited_color:"Visited color",
35
- active_color:"Active color",
36
- textcolor:"Color",
37
- fontsize:"Font size",
38
- fontface:"Font family",
39
- meta_index_follow:"Index and follow the links",
40
- meta_index_nofollow:"Index and don't follow the links",
41
- meta_noindex_follow:"Do not index but follow the links",
42
- meta_noindex_nofollow:"Do not index and don\'t follow the links",
43
- appearance_style:"Stylesheet and style properties",
44
- stylesheet:"Stylesheet",
45
- style:"Style",
46
- author:"Author",
47
- copyright:"Copyright",
48
- add:"Add new element",
49
- remove:"Remove selected element",
50
- moveup:"Move selected element up",
51
- movedown:"Move selected element down",
52
- head_elements:"Head elements",
53
- info:"Information",
54
- add_title:"Title element",
55
- add_meta:"Meta element",
56
- add_script:"Script element",
57
- add_style:"Style element",
58
- add_link:"Link element",
59
- add_base:"Base element",
60
- add_comment:"Comment node",
61
- title_element:"Title element",
62
- script_element:"Script element",
63
- style_element:"Style element",
64
- base_element:"Base element",
65
- link_element:"Link element",
66
- meta_element:"Meta element",
67
- comment_element:"Comment",
68
- src:"Src",
69
- language:"Language",
70
- href:"Href",
71
- target:"Target",
72
- type:"Type",
73
- charset:"Charset",
74
- defer:"Defer",
75
- media:"Media",
76
- properties:"Properties",
77
- name:"Name",
78
- value:"Value",
79
- content:"Content",
80
- rel:"Rel",
81
- rev:"Rev",
82
- hreflang:"Href lang",
83
- general_props:"General",
84
- advanced_props:"Advanced"
85
- });
1
+ tinyMCE.addI18n("en.fullpage_dlg",{title:"Document properties",meta_tab:"General",appearance_tab:"Appearance",advanced_tab:"Advanced",meta_props:"Meta information",langprops:"Language and encoding",meta_title:"Title",meta_keywords:"Keywords",meta_description:"Description",meta_robots:"Robots",doctypes:"Doctype",langcode:"Language code",langdir:"Language direction",ltr:"Left to right",rtl:"Right to left",xml_pi:"XML declaration",encoding:"Character encoding",appearance_bgprops:"Background properties",appearance_marginprops:"Body margins",appearance_linkprops:"Link colors",appearance_textprops:"Text properties",bgcolor:"Background color",bgimage:"Background image",left_margin:"Left margin",right_margin:"Right margin",top_margin:"Top margin",bottom_margin:"Bottom margin",text_color:"Text color",font_size:"Font size",font_face:"Font face",link_color:"Link color",hover_color:"Hover color",visited_color:"Visited color",active_color:"Active color",textcolor:"Color",fontsize:"Font size",fontface:"Font family",meta_index_follow:"Index and follow the links",meta_index_nofollow:"Index and don't follow the links",meta_noindex_follow:"Do not index but follow the links",meta_noindex_nofollow:"Do not index and don't follow the links",appearance_style:"Stylesheet and style properties",stylesheet:"Stylesheet",style:"Style",author:"Author",copyright:"Copyright",add:"Add new element",remove:"Remove selected element",moveup:"Move selected element up",movedown:"Move selected element down",head_elements:"Head elements",info:"Information",add_title:"Title element",add_meta:"Meta element",add_script:"Script element",add_style:"Style element",add_link:"Link element",add_base:"Base element",add_comment:"Comment node",title_element:"Title element",script_element:"Script element",style_element:"Style element",base_element:"Base element",link_element:"Link element",meta_element:"Meta element",comment_element:"Comment",src:"Src",language:"Language",href:"Href",target:"Target",type:"Type",charset:"Charset",defer:"Defer",media:"Media",properties:"Properties",name:"Name",value:"Value",content:"Content",rel:"Rel",rev:"Rev",hreflang:"Href lang",general_props:"General",advanced_props:"Advanced"});
@@ -1 +1 @@
1
- (function(){var a=tinymce.DOM;tinymce.create("tinymce.plugins.FullScreenPlugin",{init:function(d,e){var f=this,g={},c,b;f.editor=d;d.addCommand("mceFullScreen",function(){var i,j=a.doc.documentElement;if(d.getParam("fullscreen_is_enabled")){if(d.getParam("fullscreen_new_window")){closeFullscreen()}else{a.win.setTimeout(function(){tinymce.dom.Event.remove(a.win,"resize",f.resizeFunc);tinyMCE.get(d.getParam("fullscreen_editor_id")).setContent(d.getContent({format:"raw"}),{format:"raw"});tinyMCE.remove(d);a.remove("mce_fullscreen_container");j.style.overflow=d.getParam("fullscreen_html_overflow");a.setStyle(a.doc.body,"overflow",d.getParam("fullscreen_overflow"));a.win.scrollTo(d.getParam("fullscreen_scrollx"),d.getParam("fullscreen_scrolly"));tinyMCE.settings=tinyMCE.oldSettings},10)}return}if(d.getParam("fullscreen_new_window")){i=a.win.open(e+"/fullscreen.htm","mceFullScreenPopup","fullscreen=yes,menubar=no,toolbar=no,scrollbars=no,resizable=yes,left=0,top=0,width="+screen.availWidth+",height="+screen.availHeight);try{i.resizeTo(screen.availWidth,screen.availHeight)}catch(h){}}else{tinyMCE.oldSettings=tinyMCE.settings;g.fullscreen_overflow=a.getStyle(a.doc.body,"overflow",1)||"auto";g.fullscreen_html_overflow=a.getStyle(j,"overflow",1);c=a.getViewPort();g.fullscreen_scrollx=c.x;g.fullscreen_scrolly=c.y;if(tinymce.isOpera&&g.fullscreen_overflow=="visible"){g.fullscreen_overflow="auto"}if(tinymce.isIE&&g.fullscreen_overflow=="scroll"){g.fullscreen_overflow="auto"}if(tinymce.isIE&&(g.fullscreen_html_overflow=="visible"||g.fullscreen_html_overflow=="scroll")){g.fullscreen_html_overflow="auto"}if(g.fullscreen_overflow=="0px"){g.fullscreen_overflow=""}a.setStyle(a.doc.body,"overflow","hidden");j.style.overflow="hidden";c=a.getViewPort();a.win.scrollTo(0,0);if(tinymce.isIE){c.h-=1}if(tinymce.isIE6){b="absolute;top:"+c.y}else{b="fixed;top:0"}n=a.add(a.doc.body,"div",{id:"mce_fullscreen_container",style:"position:"+b+";left:0;width:"+c.w+"px;height:"+c.h+"px;z-index:200000;"});a.add(n,"div",{id:"mce_fullscreen"});tinymce.each(d.settings,function(k,l){g[l]=k});g.id="mce_fullscreen";g.width=n.clientWidth;g.height=n.clientHeight-15;g.fullscreen_is_enabled=true;g.fullscreen_editor_id=d.id;g.theme_advanced_resizing=false;g.save_onsavecallback=function(){d.setContent(tinyMCE.get(g.id).getContent({format:"raw"}),{format:"raw"});d.execCommand("mceSave")};tinymce.each(d.getParam("fullscreen_settings"),function(m,l){g[l]=m});if(g.theme_advanced_toolbar_location==="external"){g.theme_advanced_toolbar_location="top"}f.fullscreenEditor=new tinymce.Editor("mce_fullscreen",g);f.fullscreenEditor.onInit.add(function(){f.fullscreenEditor.setContent(d.getContent());f.fullscreenEditor.focus()});f.fullscreenEditor.render();f.fullscreenElement=new tinymce.dom.Element("mce_fullscreen_container");f.fullscreenElement.update();f.resizeFunc=tinymce.dom.Event.add(a.win,"resize",function(){var o=tinymce.DOM.getViewPort(),l=f.fullscreenEditor,k,m;k=l.dom.getSize(l.getContainer().firstChild);m=l.dom.getSize(l.getContainer().getElementsByTagName("iframe")[0]);l.theme.resizeTo(o.w-k.w+m.w,o.h-k.h+m.h)})}});d.addButton("fullscreen",{title:"fullscreen.desc",cmd:"mceFullScreen"});d.onNodeChange.add(function(i,h){h.setActive("fullscreen",i.getParam("fullscreen_is_enabled"))})},getInfo:function(){return{longname:"Fullscreen",author:"Moxiecode Systems AB",authorurl:"http://tinymce.moxiecode.com",infourl:"http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/fullscreen",version:tinymce.majorVersion+"."+tinymce.minorVersion}}});tinymce.PluginManager.add("fullscreen",tinymce.plugins.FullScreenPlugin)})();
1
+ (function(){var b=tinymce.DOM;tinymce.create("tinymce.plugins.FullScreenPlugin",{init:function(k,j){var i=this,h={},l,a;i.editor=k;k.addCommand("mceFullScreen",function(){var d,c=b.doc.documentElement;if(k.getParam("fullscreen_is_enabled")){if(k.getParam("fullscreen_new_window")){closeFullscreen()}else{b.win.setTimeout(function(){tinymce.dom.Event.remove(b.win,"resize",i.resizeFunc);tinyMCE.get(k.getParam("fullscreen_editor_id")).setContent(k.getContent({format:"raw"}),{format:"raw"});tinyMCE.remove(k);b.remove("mce_fullscreen_container");c.style.overflow=k.getParam("fullscreen_html_overflow");b.setStyle(b.doc.body,"overflow",k.getParam("fullscreen_overflow"));b.win.scrollTo(k.getParam("fullscreen_scrollx"),k.getParam("fullscreen_scrolly"));tinyMCE.settings=tinyMCE.oldSettings},10)}return}if(k.getParam("fullscreen_new_window")){d=b.win.open(j+"/fullscreen.htm","mceFullScreenPopup","fullscreen=yes,menubar=no,toolbar=no,scrollbars=no,resizable=yes,left=0,top=0,width="+screen.availWidth+",height="+screen.availHeight);try{d.resizeTo(screen.availWidth,screen.availHeight)}catch(e){}}else{tinyMCE.oldSettings=tinyMCE.settings;h.fullscreen_overflow=b.getStyle(b.doc.body,"overflow",1)||"auto";h.fullscreen_html_overflow=b.getStyle(c,"overflow",1);l=b.getViewPort();h.fullscreen_scrollx=l.x;h.fullscreen_scrolly=l.y;if(tinymce.isOpera&&h.fullscreen_overflow=="visible"){h.fullscreen_overflow="auto"}if(tinymce.isIE&&h.fullscreen_overflow=="scroll"){h.fullscreen_overflow="auto"}if(tinymce.isIE&&(h.fullscreen_html_overflow=="visible"||h.fullscreen_html_overflow=="scroll")){h.fullscreen_html_overflow="auto"}if(h.fullscreen_overflow=="0px"){h.fullscreen_overflow=""}b.setStyle(b.doc.body,"overflow","hidden");c.style.overflow="hidden";l=b.getViewPort();b.win.scrollTo(0,0);if(tinymce.isIE){l.h-=1}if(tinymce.isIE6){a="absolute;top:"+l.y}else{a="fixed;top:0"}n=b.add(b.doc.body,"div",{id:"mce_fullscreen_container",style:"position:"+a+";left:0;width:"+l.w+"px;height:"+l.h+"px;z-index:200000;"});b.add(n,"div",{id:"mce_fullscreen"});tinymce.each(k.settings,function(g,f){h[f]=g});h.id="mce_fullscreen";h.width=n.clientWidth;h.height=n.clientHeight-15;h.fullscreen_is_enabled=true;h.fullscreen_editor_id=k.id;h.theme_advanced_resizing=false;h.save_onsavecallback=function(){k.setContent(tinyMCE.get(h.id).getContent({format:"raw"}),{format:"raw"});k.execCommand("mceSave")};tinymce.each(k.getParam("fullscreen_settings"),function(f,g){h[g]=f});if(h.theme_advanced_toolbar_location==="external"){h.theme_advanced_toolbar_location="top"}i.fullscreenEditor=new tinymce.Editor("mce_fullscreen",h);i.fullscreenEditor.onInit.add(function(){i.fullscreenEditor.setContent(k.getContent());i.fullscreenEditor.focus()});i.fullscreenEditor.render();i.fullscreenElement=new tinymce.dom.Element("mce_fullscreen_container");i.fullscreenElement.update();i.resizeFunc=tinymce.dom.Event.add(b.win,"resize",function(){var q=tinymce.DOM.getViewPort(),g=i.fullscreenEditor,p,f;p=g.dom.getSize(g.getContainer().firstChild);f=g.dom.getSize(g.getContainer().getElementsByTagName("iframe")[0]);g.theme.resizeTo(q.w-p.w+f.w,q.h-p.h+f.h)})}});k.addButton("fullscreen",{title:"fullscreen.desc",cmd:"mceFullScreen"});k.onNodeChange.add(function(c,d){d.setActive("fullscreen",c.getParam("fullscreen_is_enabled"))})},getInfo:function(){return{longname:"Fullscreen",author:"Moxiecode Systems AB",authorurl:"http://tinymce.moxiecode.com",infourl:"http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/fullscreen",version:tinymce.majorVersion+"."+tinymce.minorVersion}}});tinymce.PluginManager.add("fullscreen",tinymce.plugins.FullScreenPlugin)})();
@@ -1,159 +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
- var DOM = tinymce.DOM;
13
-
14
- tinymce.create('tinymce.plugins.FullScreenPlugin', {
15
- init : function(ed, url) {
16
- var t = this, s = {}, vp, posCss;
17
-
18
- t.editor = ed;
19
-
20
- // Register commands
21
- ed.addCommand('mceFullScreen', function() {
22
- var win, de = DOM.doc.documentElement;
23
-
24
- if (ed.getParam('fullscreen_is_enabled')) {
25
- if (ed.getParam('fullscreen_new_window'))
26
- closeFullscreen(); // Call to close in new window
27
- else {
28
- DOM.win.setTimeout(function() {
29
- tinymce.dom.Event.remove(DOM.win, 'resize', t.resizeFunc);
30
- tinyMCE.get(ed.getParam('fullscreen_editor_id')).setContent(ed.getContent({format : 'raw'}), {format : 'raw'});
31
- tinyMCE.remove(ed);
32
- DOM.remove('mce_fullscreen_container');
33
- de.style.overflow = ed.getParam('fullscreen_html_overflow');
34
- DOM.setStyle(DOM.doc.body, 'overflow', ed.getParam('fullscreen_overflow'));
35
- DOM.win.scrollTo(ed.getParam('fullscreen_scrollx'), ed.getParam('fullscreen_scrolly'));
36
- tinyMCE.settings = tinyMCE.oldSettings; // Restore old settings
37
- }, 10);
38
- }
39
-
40
- return;
41
- }
42
-
43
- if (ed.getParam('fullscreen_new_window')) {
44
- win = DOM.win.open(url + "/fullscreen.htm", "mceFullScreenPopup", "fullscreen=yes,menubar=no,toolbar=no,scrollbars=no,resizable=yes,left=0,top=0,width=" + screen.availWidth + ",height=" + screen.availHeight);
45
- try {
46
- win.resizeTo(screen.availWidth, screen.availHeight);
47
- } catch (e) {
48
- // Ignore
49
- }
50
- } else {
51
- tinyMCE.oldSettings = tinyMCE.settings; // Store old settings
52
- s.fullscreen_overflow = DOM.getStyle(DOM.doc.body, 'overflow', 1) || 'auto';
53
- s.fullscreen_html_overflow = DOM.getStyle(de, 'overflow', 1);
54
- vp = DOM.getViewPort();
55
- s.fullscreen_scrollx = vp.x;
56
- s.fullscreen_scrolly = vp.y;
57
-
58
- // Fixes an Opera bug where the scrollbars doesn't reappear
59
- if (tinymce.isOpera && s.fullscreen_overflow == 'visible')
60
- s.fullscreen_overflow = 'auto';
61
-
62
- // Fixes an IE bug where horizontal scrollbars would appear
63
- if (tinymce.isIE && s.fullscreen_overflow == 'scroll')
64
- s.fullscreen_overflow = 'auto';
65
-
66
- // Fixes an IE bug where the scrollbars doesn't reappear
67
- if (tinymce.isIE && (s.fullscreen_html_overflow == 'visible' || s.fullscreen_html_overflow == 'scroll'))
68
- s.fullscreen_html_overflow = 'auto';
69
-
70
- if (s.fullscreen_overflow == '0px')
71
- s.fullscreen_overflow = '';
72
-
73
- DOM.setStyle(DOM.doc.body, 'overflow', 'hidden');
74
- de.style.overflow = 'hidden'; //Fix for IE6/7
75
- vp = DOM.getViewPort();
76
- DOM.win.scrollTo(0, 0);
77
-
78
- if (tinymce.isIE)
79
- vp.h -= 1;
80
-
81
- // Use fixed position if it exists
82
- if (tinymce.isIE6)
83
- posCss = 'absolute;top:' + vp.y;
84
- else
85
- posCss = 'fixed;top:0';
86
-
87
- n = DOM.add(DOM.doc.body, 'div', {
88
- id : 'mce_fullscreen_container',
89
- style : 'position:' + posCss + ';left:0;width:' + vp.w + 'px;height:' + vp.h + 'px;z-index:200000;'});
90
- DOM.add(n, 'div', {id : 'mce_fullscreen'});
91
-
92
- tinymce.each(ed.settings, function(v, n) {
93
- s[n] = v;
94
- });
95
-
96
- s.id = 'mce_fullscreen';
97
- s.width = n.clientWidth;
98
- s.height = n.clientHeight - 15;
99
- s.fullscreen_is_enabled = true;
100
- s.fullscreen_editor_id = ed.id;
101
- s.theme_advanced_resizing = false;
102
- s.save_onsavecallback = function() {
103
- ed.setContent(tinyMCE.get(s.id).getContent({format : 'raw'}), {format : 'raw'});
104
- ed.execCommand('mceSave');
105
- };
106
-
107
- tinymce.each(ed.getParam('fullscreen_settings'), function(v, k) {
108
- s[k] = v;
109
- });
110
-
111
- if (s.theme_advanced_toolbar_location === 'external')
112
- s.theme_advanced_toolbar_location = 'top';
113
-
114
- t.fullscreenEditor = new tinymce.Editor('mce_fullscreen', s);
115
- t.fullscreenEditor.onInit.add(function() {
116
- t.fullscreenEditor.setContent(ed.getContent());
117
- t.fullscreenEditor.focus();
118
- });
119
-
120
- t.fullscreenEditor.render();
121
-
122
- t.fullscreenElement = new tinymce.dom.Element('mce_fullscreen_container');
123
- t.fullscreenElement.update();
124
- //document.body.overflow = 'hidden';
125
-
126
- t.resizeFunc = tinymce.dom.Event.add(DOM.win, 'resize', function() {
127
- var vp = tinymce.DOM.getViewPort(), fed = t.fullscreenEditor, outerSize, innerSize;
128
-
129
- // Get outer/inner size to get a delta size that can be used to calc the new iframe size
130
- outerSize = fed.dom.getSize(fed.getContainer().firstChild);
131
- innerSize = fed.dom.getSize(fed.getContainer().getElementsByTagName('iframe')[0]);
132
-
133
- fed.theme.resizeTo(vp.w - outerSize.w + innerSize.w, vp.h - outerSize.h + innerSize.h);
134
- });
135
- }
136
- });
137
-
138
- // Register buttons
139
- ed.addButton('fullscreen', {title : 'fullscreen.desc', cmd : 'mceFullScreen'});
140
-
141
- ed.onNodeChange.add(function(ed, cm) {
142
- cm.setActive('fullscreen', ed.getParam('fullscreen_is_enabled'));
143
- });
144
- },
145
-
146
- getInfo : function() {
147
- return {
148
- longname : 'Fullscreen',
149
- author : 'Moxiecode Systems AB',
150
- authorurl : 'http://tinymce.moxiecode.com',
151
- infourl : 'http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/fullscreen',
152
- version : tinymce.majorVersion + "." + tinymce.minorVersion
153
- };
154
- }
155
- });
156
-
157
- // Register plugin
158
- tinymce.PluginManager.add('fullscreen', tinymce.plugins.FullScreenPlugin);
159
- })();
1
+ (function(){var a=tinymce.DOM;tinymce.create("tinymce.plugins.FullScreenPlugin",{init:function(d,e){var f=this,g={},c,b;f.editor=d;d.addCommand("mceFullScreen",function(){var i,j=a.doc.documentElement;if(d.getParam("fullscreen_is_enabled")){if(d.getParam("fullscreen_new_window")){closeFullscreen()}else{a.win.setTimeout(function(){tinymce.dom.Event.remove(a.win,"resize",f.resizeFunc);tinyMCE.get(d.getParam("fullscreen_editor_id")).setContent(d.getContent({format:"raw"}),{format:"raw"});tinyMCE.remove(d);a.remove("mce_fullscreen_container");j.style.overflow=d.getParam("fullscreen_html_overflow");a.setStyle(a.doc.body,"overflow",d.getParam("fullscreen_overflow"));a.win.scrollTo(d.getParam("fullscreen_scrollx"),d.getParam("fullscreen_scrolly"));tinyMCE.settings=tinyMCE.oldSettings},10)}return}if(d.getParam("fullscreen_new_window")){i=a.win.open(e+"/fullscreen.htm","mceFullScreenPopup","fullscreen=yes,menubar=no,toolbar=no,scrollbars=no,resizable=yes,left=0,top=0,width="+screen.availWidth+",height="+screen.availHeight);try{i.resizeTo(screen.availWidth,screen.availHeight)}catch(h){}}else{tinyMCE.oldSettings=tinyMCE.settings;g.fullscreen_overflow=a.getStyle(a.doc.body,"overflow",1)||"auto";g.fullscreen_html_overflow=a.getStyle(j,"overflow",1);c=a.getViewPort();g.fullscreen_scrollx=c.x;g.fullscreen_scrolly=c.y;if(tinymce.isOpera&&g.fullscreen_overflow=="visible"){g.fullscreen_overflow="auto"}if(tinymce.isIE&&g.fullscreen_overflow=="scroll"){g.fullscreen_overflow="auto"}if(tinymce.isIE&&(g.fullscreen_html_overflow=="visible"||g.fullscreen_html_overflow=="scroll")){g.fullscreen_html_overflow="auto"}if(g.fullscreen_overflow=="0px"){g.fullscreen_overflow=""}a.setStyle(a.doc.body,"overflow","hidden");j.style.overflow="hidden";c=a.getViewPort();a.win.scrollTo(0,0);if(tinymce.isIE){c.h-=1}if(tinymce.isIE6){b="absolute;top:"+c.y}else{b="fixed;top:0"}n=a.add(a.doc.body,"div",{id:"mce_fullscreen_container",style:"position:"+b+";left:0;width:"+c.w+"px;height:"+c.h+"px;z-index:200000;"});a.add(n,"div",{id:"mce_fullscreen"});tinymce.each(d.settings,function(k,l){g[l]=k});g.id="mce_fullscreen";g.width=n.clientWidth;g.height=n.clientHeight-15;g.fullscreen_is_enabled=true;g.fullscreen_editor_id=d.id;g.theme_advanced_resizing=false;g.save_onsavecallback=function(){d.setContent(tinyMCE.get(g.id).getContent({format:"raw"}),{format:"raw"});d.execCommand("mceSave")};tinymce.each(d.getParam("fullscreen_settings"),function(m,l){g[l]=m});if(g.theme_advanced_toolbar_location==="external"){g.theme_advanced_toolbar_location="top"}f.fullscreenEditor=new tinymce.Editor("mce_fullscreen",g);f.fullscreenEditor.onInit.add(function(){f.fullscreenEditor.setContent(d.getContent());f.fullscreenEditor.focus()});f.fullscreenEditor.render();f.fullscreenElement=new tinymce.dom.Element("mce_fullscreen_container");f.fullscreenElement.update();f.resizeFunc=tinymce.dom.Event.add(a.win,"resize",function(){var o=tinymce.DOM.getViewPort(),l=f.fullscreenEditor,k,m;k=l.dom.getSize(l.getContainer().firstChild);m=l.dom.getSize(l.getContainer().getElementsByTagName("iframe")[0]);l.theme.resizeTo(o.w-k.w+m.w,o.h-k.h+m.h)})}});d.addButton("fullscreen",{title:"fullscreen.desc",cmd:"mceFullScreen"});d.onNodeChange.add(function(i,h){h.setActive("fullscreen",i.getParam("fullscreen_is_enabled"))})},getInfo:function(){return{longname:"Fullscreen",author:"Moxiecode Systems AB",authorurl:"http://tinymce.moxiecode.com",infourl:"http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/fullscreen",version:tinymce.majorVersion+"."+tinymce.minorVersion}}});tinymce.PluginManager.add("fullscreen",tinymce.plugins.FullScreenPlugin)})();
@@ -1,109 +1 @@
1
- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
2
- <html xmlns="http://www.w3.org/1999/xhtml">
3
- <head>
4
- <title></title>
5
- <script type="text/javascript" src="../../tiny_mce.js"></script>
6
- <script type="text/javascript">
7
- function patchCallback(settings, key) {
8
- if (settings[key])
9
- settings[key] = "window.opener." + settings[key];
10
- }
11
-
12
- var settings = {}, paSe = window.opener.tinyMCE.activeEditor.settings, oeID = window.opener.tinyMCE.activeEditor.id;
13
-
14
- // Clone array
15
- for (var n in paSe)
16
- settings[n] = paSe[n];
17
-
18
- // Override options for fullscreen
19
- for (var n in paSe.fullscreen_settings)
20
- settings[n] = paSe.fullscreen_settings[n];
21
-
22
- // Patch callbacks, make them point to window.opener
23
- patchCallback(settings, 'urlconverter_callback');
24
- patchCallback(settings, 'insertlink_callback');
25
- patchCallback(settings, 'insertimage_callback');
26
- patchCallback(settings, 'setupcontent_callback');
27
- patchCallback(settings, 'save_callback');
28
- patchCallback(settings, 'onchange_callback');
29
- patchCallback(settings, 'init_instance_callback');
30
- patchCallback(settings, 'file_browser_callback');
31
- patchCallback(settings, 'cleanup_callback');
32
- patchCallback(settings, 'execcommand_callback');
33
- patchCallback(settings, 'oninit');
34
-
35
- // Set options
36
- delete settings.id;
37
- settings['mode'] = 'exact';
38
- settings['elements'] = 'fullscreenarea';
39
- settings['add_unload_trigger'] = false;
40
- settings['ask'] = false;
41
- settings['document_base_url'] = window.opener.tinyMCE.activeEditor.documentBaseURI.getURI();
42
- settings['fullscreen_is_enabled'] = true;
43
- settings['fullscreen_editor_id'] = oeID;
44
- settings['theme_advanced_resizing'] = false;
45
- settings['strict_loading_mode'] = true;
46
-
47
- settings.save_onsavecallback = function() {
48
- window.opener.tinyMCE.get(oeID).setContent(tinyMCE.get('fullscreenarea').getContent({format : 'raw'}), {format : 'raw'});
49
- window.opener.tinyMCE.get(oeID).execCommand('mceSave');
50
- window.close();
51
- };
52
-
53
- function unloadHandler(e) {
54
- moveContent();
55
- }
56
-
57
- function moveContent() {
58
- window.opener.tinyMCE.get(oeID).setContent(tinyMCE.activeEditor.getContent());
59
- }
60
-
61
- function closeFullscreen() {
62
- moveContent();
63
- window.close();
64
- }
65
-
66
- function doParentSubmit() {
67
- moveContent();
68
-
69
- if (window.opener.tinyMCE.selectedInstance.formElement.form)
70
- window.opener.tinyMCE.selectedInstance.formElement.form.submit();
71
-
72
- window.close();
73
-
74
- return false;
75
- }
76
-
77
- function render() {
78
- var e = document.getElementById('fullscreenarea'), vp, ed, ow, oh, dom = tinymce.DOM;
79
-
80
- e.value = window.opener.tinyMCE.get(oeID).getContent();
81
-
82
- vp = dom.getViewPort();
83
- settings.width = vp.w;
84
- settings.height = vp.h - 15;
85
-
86
- tinymce.dom.Event.add(window, 'resize', function() {
87
- var vp = dom.getViewPort();
88
-
89
- tinyMCE.activeEditor.theme.resizeTo(vp.w, vp.h);
90
- });
91
-
92
- tinyMCE.init(settings);
93
- }
94
-
95
- // Add onunload
96
- tinymce.dom.Event.add(window, "beforeunload", unloadHandler);
97
- </script>
98
- </head>
99
- <body style="margin:0;overflow:hidden;width:100%;height:100%" scrolling="no" scroll="no">
100
- <form onsubmit="doParentSubmit();">
101
- <textarea id="fullscreenarea" style="width:100%; height:100%"></textarea>
102
- </form>
103
-
104
- <script type="text/javascript">
105
- render();
106
- </script>
107
-
108
- </body>
109
- </html>
1
+ <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><title></title><script type="text/javascript" src="../../tiny_mce.js"></script><script type="text/javascript">function patchCallback(settings,key){if(settings[key]) settings[key] = "window.opener."+settings[key]},paSe = window.opener.tinyMCE.activeEditor.settings,oeID = window.opener.tinyMCE.activeEditor.id;// Clone array for(var n in paSe) settings[n] = paSe[n];// Override options for fullscreen for(var n in paSe.fullscreen_settings) settings[n] = paSe.fullscreen_settings[n];// Patch callbacks,make them point to window.opener patchCallback(settings,'urlconverter_callback');patchCallback(settings,'insertlink_callback');patchCallback(settings,'insertimage_callback');patchCallback(settings,'setupcontent_callback');patchCallback(settings,'save_callback');patchCallback(settings,'onchange_callback');patchCallback(settings,'init_instance_callback');patchCallback(settings,'file_browser_callback');patchCallback(settings,'cleanup_callback');patchCallback(settings,'execcommand_callback');patchCallback(settings,'oninit');// Set options delete settings.id;settings['mode'] = 'exact';settings['elements'] = 'fullscreenarea';settings['add_unload_trigger'] = false;settings['ask'] = false;settings['document_base_url'] = window.opener.tinyMCE.activeEditor.documentBaseURI.getURI();settings['fullscreen_is_enabled'] = true;settings['fullscreen_editor_id'] = oeID;settings['theme_advanced_resizing'] = false;settings['strict_loading_mode'] = true;settings.save_onsavecallback = function(){window.opener.tinyMCE.get(oeID).setContent(tinyMCE.get('fullscreenarea').getContent({format:'raw'}),{format:'raw'});window.opener.tinyMCE.get(oeID).execCommand('mceSave');window.close()};function unloadHandler(e){moveContent()}function moveContent(){window.opener.tinyMCE.get(oeID).setContent(tinyMCE.activeEditor.getContent())}function closeFullscreen(){moveContent();window.close()}function doParentSubmit(){moveContent();if(window.opener.tinyMCE.selectedInstance.formElement.form) window.opener.tinyMCE.selectedInstance.formElement.form.submit();window.close();return false}function render(){var e = document.getElementById('fullscreenarea'),vp,ed,ow,oh,dom = tinymce.DOM;e.value = window.opener.tinyMCE.get(oeID).getContent();vp = dom.getViewPort();settings.width = vp.w;settings.height = vp.h - 15;tinymce.dom.Event.add(window,'resize',function(){var vp = dom.getViewPort();tinyMCE.activeEditor.theme.resizeTo(vp.w,vp.h)});tinyMCE.init(settings)}// Add onunload tinymce.dom.Event.add(window,"beforeunload",unloadHandler);</script></head><body style="margin:0;overflow:hidden;width:100%;height:100%" scrolling="no" scroll="no"><form onsubmit="doParentSubmit();"><textarea id="fullscreenarea" style="width:100%; height:100%"></textarea></form><script type="text/javascript">render();</script></body></html>
@@ -1 +1 @@
1
- (function(){tinymce.create("tinymce.plugins.IESpell",{init:function(a,b){var c=this,d;if(!tinymce.isIE){return}c.editor=a;a.addCommand("mceIESpell",function(){try{d=new ActiveXObject("ieSpell.ieSpellExtension");d.CheckDocumentNode(a.getDoc().documentElement)}catch(f){if(f.number==-2146827859){a.windowManager.confirm(a.getLang("iespell.download"),function(e){if(e){window.open("http://www.iespell.com/download.php","ieSpellDownload","")}})}else{a.windowManager.alert("Error Loading ieSpell: Exception "+f.number)}}});a.addButton("iespell",{title:"iespell.iespell_desc",cmd:"mceIESpell"})},getInfo:function(){return{longname:"IESpell (IE Only)",author:"Moxiecode Systems AB",authorurl:"http://tinymce.moxiecode.com",infourl:"http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/iespell",version:tinymce.majorVersion+"."+tinymce.minorVersion}}});tinymce.PluginManager.add("iespell",tinymce.plugins.IESpell)})();
1
+ (function(){tinymce.create("tinymce.plugins.IESpell",{init:function(f,e){var h=this,g;if(!tinymce.isIE){return}h.editor=f;f.addCommand("mceIESpell",function(){try{g=new ActiveXObject("ieSpell.ieSpellExtension");g.CheckDocumentNode(f.getDoc().documentElement)}catch(a){if(a.number==-2146827859){f.windowManager.confirm(f.getLang("iespell.download"),function(b){if(b){window.open("http://www.iespell.com/download.php","ieSpellDownload","")}})}else{f.windowManager.alert("Error Loading ieSpell: Exception "+a.number)}}});f.addButton("iespell",{title:"iespell.iespell_desc",cmd:"mceIESpell"})},getInfo:function(){return{longname:"IESpell (IE Only)",author:"Moxiecode Systems AB",authorurl:"http://tinymce.moxiecode.com",infourl:"http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/iespell",version:tinymce.majorVersion+"."+tinymce.minorVersion}}});tinymce.PluginManager.add("iespell",tinymce.plugins.IESpell)})();
@@ -1,54 +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.IESpell', {
13
- init : function(ed, url) {
14
- var t = this, sp;
15
-
16
- if (!tinymce.isIE)
17
- return;
18
-
19
- t.editor = ed;
20
-
21
- // Register commands
22
- ed.addCommand('mceIESpell', function() {
23
- try {
24
- sp = new ActiveXObject("ieSpell.ieSpellExtension");
25
- sp.CheckDocumentNode(ed.getDoc().documentElement);
26
- } catch (e) {
27
- if (e.number == -2146827859) {
28
- ed.windowManager.confirm(ed.getLang("iespell.download"), function(s) {
29
- if (s)
30
- window.open('http://www.iespell.com/download.php', 'ieSpellDownload', '');
31
- });
32
- } else
33
- ed.windowManager.alert("Error Loading ieSpell: Exception " + e.number);
34
- }
35
- });
36
-
37
- // Register buttons
38
- ed.addButton('iespell', {title : 'iespell.iespell_desc', cmd : 'mceIESpell'});
39
- },
40
-
41
- getInfo : function() {
42
- return {
43
- longname : 'IESpell (IE Only)',
44
- author : 'Moxiecode Systems AB',
45
- authorurl : 'http://tinymce.moxiecode.com',
46
- infourl : 'http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/iespell',
47
- version : tinymce.majorVersion + "." + tinymce.minorVersion
48
- };
49
- }
50
- });
51
-
52
- // Register plugin
53
- tinymce.PluginManager.add('iespell', tinymce.plugins.IESpell);
54
- })();
1
+ (function(){tinymce.create("tinymce.plugins.IESpell",{init:function(a,b){var c=this,d;if(!tinymce.isIE){return}c.editor=a;a.addCommand("mceIESpell",function(){try{d=new ActiveXObject("ieSpell.ieSpellExtension");d.CheckDocumentNode(a.getDoc().documentElement)}catch(f){if(f.number==-2146827859){a.windowManager.confirm(a.getLang("iespell.download"),function(e){if(e){window.open("http://www.iespell.com/download.php","ieSpellDownload","")}})}else{a.windowManager.alert("Error Loading ieSpell: Exception "+f.number)}}});a.addButton("iespell",{title:"iespell.iespell_desc",cmd:"mceIESpell"})},getInfo:function(){return{longname:"IESpell (IE Only)",author:"Moxiecode Systems AB",authorurl:"http://tinymce.moxiecode.com",infourl:"http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/iespell",version:tinymce.majorVersion+"."+tinymce.minorVersion}}});tinymce.PluginManager.add("iespell",tinymce.plugins.IESpell)})();
@@ -1 +1 @@
1
- (function(){var d=tinymce.DOM,b=tinymce.dom.Element,a=tinymce.dom.Event,e=tinymce.each,c=tinymce.is;tinymce.create("tinymce.plugins.InlinePopups",{init:function(f,g){f.onBeforeRenderUI.add(function(){f.windowManager=new tinymce.InlineWindowManager(f);d.loadCSS(g+"/skins/"+(f.settings.inlinepopups_skin||"clearlooks2")+"/window.css")})},getInfo:function(){return{longname:"InlinePopups",author:"Moxiecode Systems AB",authorurl:"http://tinymce.moxiecode.com",infourl:"http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/inlinepopups",version:tinymce.majorVersion+"."+tinymce.minorVersion}}});tinymce.create("tinymce.InlineWindowManager:tinymce.WindowManager",{InlineWindowManager:function(f){var g=this;g.parent(f);g.zIndex=300000;g.count=0;g.windows={}},open:function(s,j){var z=this,i,k="",r=z.editor,g=0,v=0,h,m,o,q,l,x,y,n;s=s||{};j=j||{};if(!s.inline){return z.parent(s,j)}n=z._frontWindow();if(n&&d.get(n.id+"_ifr")){n.focussedElement=d.get(n.id+"_ifr").contentWindow.document.activeElement}if(!s.type){z.bookmark=r.selection.getBookmark(1)}i=d.uniqueId();h=d.getViewPort();s.width=parseInt(s.width||320);s.height=parseInt(s.height||240)+(tinymce.isIE?8:0);s.min_width=parseInt(s.min_width||150);s.min_height=parseInt(s.min_height||100);s.max_width=parseInt(s.max_width||2000);s.max_height=parseInt(s.max_height||2000);s.left=s.left||Math.round(Math.max(h.x,h.x+(h.w/2)-(s.width/2)));s.top=s.top||Math.round(Math.max(h.y,h.y+(h.h/2)-(s.height/2)));s.movable=s.resizable=true;j.mce_width=s.width;j.mce_height=s.height;j.mce_inline=true;j.mce_window_id=i;j.mce_auto_focus=s.auto_focus;z.features=s;z.params=j;z.onOpen.dispatch(z,s,j);if(s.type){k+=" mceModal";if(s.type){k+=" mce"+s.type.substring(0,1).toUpperCase()+s.type.substring(1)}s.resizable=false}if(s.statusbar){k+=" mceStatusbar"}if(s.resizable){k+=" mceResizable"}if(s.minimizable){k+=" mceMinimizable"}if(s.maximizable){k+=" mceMaximizable"}if(s.movable){k+=" mceMovable"}z._addAll(d.doc.body,["div",{id:i,role:"dialog","aria-labelledby":s.type?i+"_content":i+"_title","class":(r.settings.inlinepopups_skin||"clearlooks2")+(tinymce.isIE&&window.getSelection?" ie9":""),style:"width:100px;height:100px"},["div",{id:i+"_wrapper","class":"mceWrapper"+k},["div",{id:i+"_top","class":"mceTop"},["div",{"class":"mceLeft"}],["div",{"class":"mceCenter"}],["div",{"class":"mceRight"}],["span",{id:i+"_title"},s.title||""]],["div",{id:i+"_middle","class":"mceMiddle"},["div",{id:i+"_left","class":"mceLeft",tabindex:"0"}],["span",{id:i+"_content"}],["div",{id:i+"_right","class":"mceRight",tabindex:"0"}]],["div",{id:i+"_bottom","class":"mceBottom"},["div",{"class":"mceLeft"}],["div",{"class":"mceCenter"}],["div",{"class":"mceRight"}],["span",{id:i+"_status"},"Content"]],["a",{"class":"mceMove",tabindex:"-1",href:"javascript:;"}],["a",{"class":"mceMin",tabindex:"-1",href:"javascript:;",onmousedown:"return false;"}],["a",{"class":"mceMax",tabindex:"-1",href:"javascript:;",onmousedown:"return false;"}],["a",{"class":"mceMed",tabindex:"-1",href:"javascript:;",onmousedown:"return false;"}],["a",{"class":"mceClose",tabindex:"-1",href:"javascript:;",onmousedown:"return false;"}],["a",{id:i+"_resize_n","class":"mceResize mceResizeN",tabindex:"-1",href:"javascript:;"}],["a",{id:i+"_resize_s","class":"mceResize mceResizeS",tabindex:"-1",href:"javascript:;"}],["a",{id:i+"_resize_w","class":"mceResize mceResizeW",tabindex:"-1",href:"javascript:;"}],["a",{id:i+"_resize_e","class":"mceResize mceResizeE",tabindex:"-1",href:"javascript:;"}],["a",{id:i+"_resize_nw","class":"mceResize mceResizeNW",tabindex:"-1",href:"javascript:;"}],["a",{id:i+"_resize_ne","class":"mceResize mceResizeNE",tabindex:"-1",href:"javascript:;"}],["a",{id:i+"_resize_sw","class":"mceResize mceResizeSW",tabindex:"-1",href:"javascript:;"}],["a",{id:i+"_resize_se","class":"mceResize mceResizeSE",tabindex:"-1",href:"javascript:;"}]]]);d.setStyles(i,{top:-10000,left:-10000});if(tinymce.isGecko){d.setStyle(i,"overflow","auto")}if(!s.type){g+=d.get(i+"_left").clientWidth;g+=d.get(i+"_right").clientWidth;v+=d.get(i+"_top").clientHeight;v+=d.get(i+"_bottom").clientHeight}d.setStyles(i,{top:s.top,left:s.left,width:s.width+g,height:s.height+v});y=s.url||s.file;if(y){if(tinymce.relaxedDomain){y+=(y.indexOf("?")==-1?"?":"&")+"mce_rdomain="+tinymce.relaxedDomain}y=tinymce._addVer(y)}if(!s.type){d.add(i+"_content","iframe",{id:i+"_ifr",src:'javascript:""',frameBorder:0,style:"border:0;width:10px;height:10px"});d.setStyles(i+"_ifr",{width:s.width,height:s.height});d.setAttrib(i+"_ifr","src",y)}else{d.add(i+"_wrapper","a",{id:i+"_ok","class":"mceButton mceOk",href:"javascript:;",onmousedown:"return false;"},"Ok");if(s.type=="confirm"){d.add(i+"_wrapper","a",{"class":"mceButton mceCancel",href:"javascript:;",onmousedown:"return false;"},"Cancel")}d.add(i+"_middle","div",{"class":"mceIcon"});d.setHTML(i+"_content",s.content.replace("\n","<br />"));a.add(i,"keyup",function(f){var p=27;if(f.keyCode===p){s.button_func(false);return a.cancel(f)}});a.add(i,"keydown",function(f){var t,p=9;if(f.keyCode===p){t=d.select("a.mceCancel",i+"_wrapper")[0];if(t&&t!==f.target){t.focus()}else{d.get(i+"_ok").focus()}return a.cancel(f)}})}o=a.add(i,"mousedown",function(t){var u=t.target,f,p;f=z.windows[i];z.focus(i);if(u.nodeName=="A"||u.nodeName=="a"){if(u.className=="mceMax"){f.oldPos=f.element.getXY();f.oldSize=f.element.getSize();p=d.getViewPort();p.w-=2;p.h-=2;f.element.moveTo(p.x,p.y);f.element.resizeTo(p.w,p.h);d.setStyles(i+"_ifr",{width:p.w-f.deltaWidth,height:p.h-f.deltaHeight});d.addClass(i+"_wrapper","mceMaximized")}else{if(u.className=="mceMed"){f.element.moveTo(f.oldPos.x,f.oldPos.y);f.element.resizeTo(f.oldSize.w,f.oldSize.h);f.iframeElement.resizeTo(f.oldSize.w-f.deltaWidth,f.oldSize.h-f.deltaHeight);d.removeClass(i+"_wrapper","mceMaximized")}else{if(u.className=="mceMove"){return z._startDrag(i,t,u.className)}else{if(d.hasClass(u,"mceResize")){return z._startDrag(i,t,u.className.substring(13))}}}}}});q=a.add(i,"click",function(f){var p=f.target;z.focus(i);if(p.nodeName=="A"||p.nodeName=="a"){switch(p.className){case"mceClose":z.close(null,i);return a.cancel(f);case"mceButton mceOk":case"mceButton mceCancel":s.button_func(p.className=="mceButton mceOk");return a.cancel(f)}}});a.add([i+"_left",i+"_right"],"focus",function(p){var t=d.get(i+"_ifr");if(t){var f=t.contentWindow.document.body;var u=d.select(":input:enabled,*[tabindex=0]",f);if(p.target.id===(i+"_left")){u[u.length-1].focus()}else{u[0].focus()}}else{d.get(i+"_ok").focus()}});x=z.windows[i]={id:i,mousedown_func:o,click_func:q,element:new b(i,{blocker:1,container:r.getContainer()}),iframeElement:new b(i+"_ifr"),features:s,deltaWidth:g,deltaHeight:v};x.iframeElement.on("focus",function(){z.focus(i)});if(z.count==0&&z.editor.getParam("dialog_type","modal")=="modal"){d.add(d.doc.body,"div",{id:"mceModalBlocker","class":(z.editor.settings.inlinepopups_skin||"clearlooks2")+"_modalBlocker",style:{zIndex:z.zIndex-1}});d.show("mceModalBlocker");d.setAttrib(d.doc.body,"aria-hidden","true")}else{d.setStyle("mceModalBlocker","z-index",z.zIndex-1)}if(tinymce.isIE6||/Firefox\/2\./.test(navigator.userAgent)||(tinymce.isIE&&!d.boxModel)){d.setStyles("mceModalBlocker",{position:"absolute",left:h.x,top:h.y,width:h.w-2,height:h.h-2})}d.setAttrib(i,"aria-hidden","false");z.focus(i);z._fixIELayout(i,1);if(d.get(i+"_ok")){d.get(i+"_ok").focus()}z.count++;return x},focus:function(h){var g=this,f;if(f=g.windows[h]){f.zIndex=this.zIndex++;f.element.setStyle("zIndex",f.zIndex);f.element.update();h=h+"_wrapper";d.removeClass(g.lastId,"mceFocus");d.addClass(h,"mceFocus");g.lastId=h;if(f.focussedElement){f.focussedElement.focus()}else{if(d.get(h+"_ok")){d.get(f.id+"_ok").focus()}else{if(d.get(f.id+"_ifr")){d.get(f.id+"_ifr").focus()}}}}},_addAll:function(k,h){var g,l,f=this,j=tinymce.DOM;if(c(h,"string")){k.appendChild(j.doc.createTextNode(h))}else{if(h.length){k=k.appendChild(j.create(h[0],h[1]));for(g=2;g<h.length;g++){f._addAll(k,h[g])}}}},_startDrag:function(v,G,E){var o=this,u,z,C=d.doc,f,l=o.windows[v],h=l.element,y=h.getXY(),x,q,F,g,A,s,r,j,i,m,k,n,B;g={x:0,y:0};A=d.getViewPort();A.w-=2;A.h-=2;j=G.screenX;i=G.screenY;m=k=n=B=0;u=a.add(C,"mouseup",function(p){a.remove(C,"mouseup",u);a.remove(C,"mousemove",z);if(f){f.remove()}h.moveBy(m,k);h.resizeBy(n,B);q=h.getSize();d.setStyles(v+"_ifr",{width:q.w-l.deltaWidth,height:q.h-l.deltaHeight});o._fixIELayout(v,1);return a.cancel(p)});if(E!="Move"){D()}function D(){if(f){return}o._fixIELayout(v,0);d.add(C.body,"div",{id:"mceEventBlocker","class":"mceEventBlocker "+(o.editor.settings.inlinepopups_skin||"clearlooks2"),style:{zIndex:o.zIndex+1}});if(tinymce.isIE6||(tinymce.isIE&&!d.boxModel)){d.setStyles("mceEventBlocker",{position:"absolute",left:A.x,top:A.y,width:A.w-2,height:A.h-2})}f=new b("mceEventBlocker");f.update();x=h.getXY();q=h.getSize();s=g.x+x.x-A.x;r=g.y+x.y-A.y;d.add(f.get(),"div",{id:"mcePlaceHolder","class":"mcePlaceHolder",style:{left:s,top:r,width:q.w,height:q.h}});F=new b("mcePlaceHolder")}z=a.add(C,"mousemove",function(w){var p,H,t;D();p=w.screenX-j;H=w.screenY-i;switch(E){case"ResizeW":m=p;n=0-p;break;case"ResizeE":n=p;break;case"ResizeN":case"ResizeNW":case"ResizeNE":if(E=="ResizeNW"){m=p;n=0-p}else{if(E=="ResizeNE"){n=p}}k=H;B=0-H;break;case"ResizeS":case"ResizeSW":case"ResizeSE":if(E=="ResizeSW"){m=p;n=0-p}else{if(E=="ResizeSE"){n=p}}B=H;break;case"mceMove":m=p;k=H;break}if(n<(t=l.features.min_width-q.w)){if(m!==0){m+=n-t}n=t}if(B<(t=l.features.min_height-q.h)){if(k!==0){k+=B-t}B=t}n=Math.min(n,l.features.max_width-q.w);B=Math.min(B,l.features.max_height-q.h);m=Math.max(m,A.x-(s+A.x));k=Math.max(k,A.y-(r+A.y));m=Math.min(m,(A.w+A.x)-(s+q.w+A.x));k=Math.min(k,(A.h+A.y)-(r+q.h+A.y));if(m+k!==0){if(s+m<0){m=0}if(r+k<0){k=0}F.moveTo(s+m,r+k)}if(n+B!==0){F.resizeTo(q.w+n,q.h+B)}return a.cancel(w)});return a.cancel(G)},resizeBy:function(g,h,i){var f=this.windows[i];if(f){f.element.resizeBy(g,h);f.iframeElement.resizeBy(g,h)}},close:function(i,k){var g=this,f,j=d.doc,h,k;k=g._findId(k||i);if(!g.windows[k]){g.parent(i);return}g.count--;if(g.count==0){d.remove("mceModalBlocker");d.setAttrib(d.doc.body,"aria-hidden","false");g.editor.focus()}if(f=g.windows[k]){g.onClose.dispatch(g);a.remove(j,"mousedown",f.mousedownFunc);a.remove(j,"click",f.clickFunc);a.clear(k);a.clear(k+"_ifr");d.setAttrib(k+"_ifr","src",'javascript:""');f.element.remove();delete g.windows[k];h=g._frontWindow();if(h){g.focus(h.id)}}},_frontWindow:function(){var g,f=0;e(this.windows,function(h){if(h.zIndex>f){g=h;f=h.zIndex}});return g},setTitle:function(f,g){var h;f=this._findId(f);if(h=d.get(f+"_title")){h.innerHTML=d.encode(g)}},alert:function(g,f,j){var i=this,h;h=i.open({title:i,type:"alert",button_func:function(k){if(f){f.call(k||i,k)}i.close(null,h.id)},content:d.encode(i.editor.getLang(g,g)),inline:1,width:400,height:130})},confirm:function(g,f,j){var i=this,h;h=i.open({title:i,type:"confirm",button_func:function(k){if(f){f.call(k||i,k)}i.close(null,h.id)},content:d.encode(i.editor.getLang(g,g)),inline:1,width:400,height:130})},_findId:function(f){var g=this;if(typeof(f)=="string"){return f}e(g.windows,function(h){var i=d.get(h.id+"_ifr");if(i&&f==i.contentWindow){f=h.id;return false}});return f},_fixIELayout:function(i,h){var f,g;if(!tinymce.isIE6){return}e(["n","s","w","e","nw","ne","sw","se"],function(j){var k=d.get(i+"_resize_"+j);d.setStyles(k,{width:h?k.clientWidth:"",height:h?k.clientHeight:"",cursor:d.getStyle(k,"cursor",1)});d.setStyle(i+"_bottom","bottom","-1px");k=0});if(f=this.windows[i]){f.element.hide();f.element.show();e(d.select("div,a",i),function(k,j){if(k.currentStyle.backgroundImage!="none"){g=new Image();g.src=k.currentStyle.backgroundImage.replace(/url\(\"(.+)\"\)/,"$1")}});d.get(i).style.filter=""}}});tinymce.PluginManager.add("inlinepopups",tinymce.plugins.InlinePopups)})();
1
+ (function(){var i=tinymce.DOM,f=tinymce.dom.Element,g=tinymce.dom.Event,h=tinymce.each,j=tinymce.is;tinymce.create("tinymce.plugins.InlinePopups",{init:function(b,a){b.onBeforeRenderUI.add(function(){b.windowManager=new tinymce.InlineWindowManager(b);i.loadCSS(a+"/skins/"+(b.settings.inlinepopups_skin||"clearlooks2")+"/window.css")})},getInfo:function(){return{longname:"InlinePopups",author:"Moxiecode Systems AB",authorurl:"http://tinymce.moxiecode.com",infourl:"http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/inlinepopups",version:tinymce.majorVersion+"."+tinymce.minorVersion}}});tinymce.create("tinymce.InlineWindowManager:tinymce.WindowManager",{InlineWindowManager:function(b){var a=this;a.parent(b);a.zIndex=300000;a.count=0;a.windows={}},open:function(G,u){var C=this,w,t="",a=C.editor,B=0,F=0,A,e,c,b,p,E,D,d;G=G||{};u=u||{};if(!G.inline){return C.parent(G,u)}d=C._frontWindow();if(d&&i.get(d.id+"_ifr")){d.focussedElement=i.get(d.id+"_ifr").contentWindow.document.activeElement}if(!G.type){C.bookmark=a.selection.getBookmark(1)}w=i.uniqueId();A=i.getViewPort();G.width=parseInt(G.width||320);G.height=parseInt(G.height||240)+(tinymce.isIE?8:0);G.min_width=parseInt(G.min_width||150);G.min_height=parseInt(G.min_height||100);G.max_width=parseInt(G.max_width||2000);G.max_height=parseInt(G.max_height||2000);G.left=G.left||Math.round(Math.max(A.x,A.x+(A.w/2)-(G.width/2)));G.top=G.top||Math.round(Math.max(A.y,A.y+(A.h/2)-(G.height/2)));G.movable=G.resizable=true;u.mce_width=G.width;u.mce_height=G.height;u.mce_inline=true;u.mce_window_id=w;u.mce_auto_focus=G.auto_focus;C.features=G;C.params=u;C.onOpen.dispatch(C,G,u);if(G.type){t+=" mceModal";if(G.type){t+=" mce"+G.type.substring(0,1).toUpperCase()+G.type.substring(1)}G.resizable=false}if(G.statusbar){t+=" mceStatusbar"}if(G.resizable){t+=" mceResizable"}if(G.minimizable){t+=" mceMinimizable"}if(G.maximizable){t+=" mceMaximizable"}if(G.movable){t+=" mceMovable"}C._addAll(i.doc.body,["div",{id:w,role:"dialog","aria-labelledby":G.type?w+"_content":w+"_title","class":(a.settings.inlinepopups_skin||"clearlooks2")+(tinymce.isIE&&window.getSelection?" ie9":""),style:"width:100px;height:100px"},["div",{id:w+"_wrapper","class":"mceWrapper"+t},["div",{id:w+"_top","class":"mceTop"},["div",{"class":"mceLeft"}],["div",{"class":"mceCenter"}],["div",{"class":"mceRight"}],["span",{id:w+"_title"},G.title||""]],["div",{id:w+"_middle","class":"mceMiddle"},["div",{id:w+"_left","class":"mceLeft",tabindex:"0"}],["span",{id:w+"_content"}],["div",{id:w+"_right","class":"mceRight",tabindex:"0"}]],["div",{id:w+"_bottom","class":"mceBottom"},["div",{"class":"mceLeft"}],["div",{"class":"mceCenter"}],["div",{"class":"mceRight"}],["span",{id:w+"_status"},"Content"]],["a",{"class":"mceMove",tabindex:"-1",href:"javascript:;"}],["a",{"class":"mceMin",tabindex:"-1",href:"javascript:;",onmousedown:"return false;"}],["a",{"class":"mceMax",tabindex:"-1",href:"javascript:;",onmousedown:"return false;"}],["a",{"class":"mceMed",tabindex:"-1",href:"javascript:;",onmousedown:"return false;"}],["a",{"class":"mceClose",tabindex:"-1",href:"javascript:;",onmousedown:"return false;"}],["a",{id:w+"_resize_n","class":"mceResize mceResizeN",tabindex:"-1",href:"javascript:;"}],["a",{id:w+"_resize_s","class":"mceResize mceResizeS",tabindex:"-1",href:"javascript:;"}],["a",{id:w+"_resize_w","class":"mceResize mceResizeW",tabindex:"-1",href:"javascript:;"}],["a",{id:w+"_resize_e","class":"mceResize mceResizeE",tabindex:"-1",href:"javascript:;"}],["a",{id:w+"_resize_nw","class":"mceResize mceResizeNW",tabindex:"-1",href:"javascript:;"}],["a",{id:w+"_resize_ne","class":"mceResize mceResizeNE",tabindex:"-1",href:"javascript:;"}],["a",{id:w+"_resize_sw","class":"mceResize mceResizeSW",tabindex:"-1",href:"javascript:;"}],["a",{id:w+"_resize_se","class":"mceResize mceResizeSE",tabindex:"-1",href:"javascript:;"}]]]);i.setStyles(w,{top:-10000,left:-10000});if(tinymce.isGecko){i.setStyle(w,"overflow","auto")}if(!G.type){B+=i.get(w+"_left").clientWidth;B+=i.get(w+"_right").clientWidth;F+=i.get(w+"_top").clientHeight;F+=i.get(w+"_bottom").clientHeight}i.setStyles(w,{top:G.top,left:G.left,width:G.width+B,height:G.height+F});D=G.url||G.file;if(D){if(tinymce.relaxedDomain){D+=(D.indexOf("?")==-1?"?":"&")+"mce_rdomain="+tinymce.relaxedDomain}D=tinymce._addVer(D)}if(!G.type){i.add(w+"_content","iframe",{id:w+"_ifr",src:'javascript:""',frameBorder:0,style:"border:0;width:10px;height:10px"});i.setStyles(w+"_ifr",{width:G.width,height:G.height});i.setAttrib(w+"_ifr","src",D)}else{i.add(w+"_wrapper","a",{id:w+"_ok","class":"mceButton mceOk",href:"javascript:;",onmousedown:"return false;"},"Ok");if(G.type=="confirm"){i.add(w+"_wrapper","a",{"class":"mceButton mceCancel",href:"javascript:;",onmousedown:"return false;"},"Cancel")}i.add(w+"_middle","div",{"class":"mceIcon"});i.setHTML(w+"_content",G.content.replace("\n","<br />"));g.add(w,"keyup",function(k){var l=27;if(k.keyCode===l){G.button_func(false);return g.cancel(k)}});g.add(w,"keydown",function(l){var k,m=9;if(l.keyCode===m){k=i.select("a.mceCancel",w+"_wrapper")[0];if(k&&k!==l.target){k.focus()}else{i.get(w+"_ok").focus()}return g.cancel(l)}})}c=g.add(w,"mousedown",function(l){var k=l.target,m,n;m=C.windows[w];C.focus(w);if(k.nodeName=="A"||k.nodeName=="a"){if(k.className=="mceMax"){m.oldPos=m.element.getXY();m.oldSize=m.element.getSize();n=i.getViewPort();n.w-=2;n.h-=2;m.element.moveTo(n.x,n.y);m.element.resizeTo(n.w,n.h);i.setStyles(w+"_ifr",{width:n.w-m.deltaWidth,height:n.h-m.deltaHeight});i.addClass(w+"_wrapper","mceMaximized")}else{if(k.className=="mceMed"){m.element.moveTo(m.oldPos.x,m.oldPos.y);m.element.resizeTo(m.oldSize.w,m.oldSize.h);m.iframeElement.resizeTo(m.oldSize.w-m.deltaWidth,m.oldSize.h-m.deltaHeight);i.removeClass(w+"_wrapper","mceMaximized")}else{if(k.className=="mceMove"){return C._startDrag(w,l,k.className)}else{if(i.hasClass(k,"mceResize")){return C._startDrag(w,l,k.className.substring(13))}}}}}});b=g.add(w,"click",function(k){var l=k.target;C.focus(w);if(l.nodeName=="A"||l.nodeName=="a"){switch(l.className){case"mceClose":C.close(null,w);return g.cancel(k);case"mceButton mceOk":case"mceButton mceCancel":G.button_func(l.className=="mceButton mceOk");return g.cancel(k)}}});g.add([w+"_left",w+"_right"],"focus",function(n){var l=i.get(w+"_ifr");if(l){var m=l.contentWindow.document.body;var k=i.select(":input:enabled,*[tabindex=0]",m);if(n.target.id===(w+"_left")){k[k.length-1].focus()}else{k[0].focus()}}else{i.get(w+"_ok").focus()}});E=C.windows[w]={id:w,mousedown_func:c,click_func:b,element:new f(w,{blocker:1,container:a.getContainer()}),iframeElement:new f(w+"_ifr"),features:G,deltaWidth:B,deltaHeight:F};E.iframeElement.on("focus",function(){C.focus(w)});if(C.count==0&&C.editor.getParam("dialog_type","modal")=="modal"){i.add(i.doc.body,"div",{id:"mceModalBlocker","class":(C.editor.settings.inlinepopups_skin||"clearlooks2")+"_modalBlocker",style:{zIndex:C.zIndex-1}});i.show("mceModalBlocker");i.setAttrib(i.doc.body,"aria-hidden","true")}else{i.setStyle("mceModalBlocker","z-index",C.zIndex-1)}if(tinymce.isIE6||/Firefox\/2\./.test(navigator.userAgent)||(tinymce.isIE&&!i.boxModel)){i.setStyles("mceModalBlocker",{position:"absolute",left:A.x,top:A.y,width:A.w-2,height:A.h-2})}i.setAttrib(w,"aria-hidden","false");C.focus(w);C._fixIELayout(w,1);if(i.get(w+"_ok")){i.get(w+"_ok").focus()}C.count++;return E},focus:function(a){var b=this,c;if(c=b.windows[a]){c.zIndex=this.zIndex++;c.element.setStyle("zIndex",c.zIndex);c.element.update();a=a+"_wrapper";i.removeClass(b.lastId,"mceFocus");i.addClass(a,"mceFocus");b.lastId=a;if(c.focussedElement){c.focussedElement.focus()}else{if(i.get(a+"_ok")){i.get(c.id+"_ok").focus()}else{if(i.get(c.id+"_ifr")){i.get(c.id+"_ifr").focus()}}}}},_addAll:function(b,d){var e,a,m=this,c=tinymce.DOM;if(j(d,"string")){b.appendChild(c.doc.createTextNode(d))}else{if(d.length){b=b.appendChild(c.create(d[0],d[1]));for(e=2;e<d.length;e++){m._addAll(b,d[e])}}}},_startDrag:function(e,d,w){var O=this,t,a,K=i.doc,X,R=O.windows[e],V=R.element,b=V.getXY(),c,M,p,W,N,I,J,T,U,Q,S,P,L;W={x:0,y:0};N=i.getViewPort();N.w-=2;N.h-=2;T=d.screenX;U=d.screenY;Q=S=P=L=0;t=g.add(K,"mouseup",function(k){g.remove(K,"mouseup",t);g.remove(K,"mousemove",a);if(X){X.remove()}V.moveBy(Q,S);V.resizeBy(P,L);M=V.getSize();i.setStyles(e+"_ifr",{width:M.w-R.deltaWidth,height:M.h-R.deltaHeight});O._fixIELayout(e,1);return g.cancel(k)});if(w!="Move"){H()}function H(){if(X){return}O._fixIELayout(e,0);i.add(K.body,"div",{id:"mceEventBlocker","class":"mceEventBlocker "+(O.editor.settings.inlinepopups_skin||"clearlooks2"),style:{zIndex:O.zIndex+1}});if(tinymce.isIE6||(tinymce.isIE&&!i.boxModel)){i.setStyles("mceEventBlocker",{position:"absolute",left:N.x,top:N.y,width:N.w-2,height:N.h-2})}X=new f("mceEventBlocker");X.update();c=V.getXY();M=V.getSize();I=W.x+c.x-N.x;J=W.y+c.y-N.y;i.add(X.get(),"div",{id:"mcePlaceHolder","class":"mcePlaceHolder",style:{left:I,top:J,width:M.w,height:M.h}});p=new f("mcePlaceHolder")}a=g.add(K,"mousemove",function(k){var n,m,l;H();n=k.screenX-T;m=k.screenY-U;switch(w){case"ResizeW":Q=n;P=0-n;break;case"ResizeE":P=n;break;case"ResizeN":case"ResizeNW":case"ResizeNE":if(w=="ResizeNW"){Q=n;P=0-n}else{if(w=="ResizeNE"){P=n}}S=m;L=0-m;break;case"ResizeS":case"ResizeSW":case"ResizeSE":if(w=="ResizeSW"){Q=n;P=0-n}else{if(w=="ResizeSE"){P=n}}L=m;break;case"mceMove":Q=n;S=m;break}if(P<(l=R.features.min_width-M.w)){if(Q!==0){Q+=P-l}P=l}if(L<(l=R.features.min_height-M.h)){if(S!==0){S+=L-l}L=l}P=Math.min(P,R.features.max_width-M.w);L=Math.min(L,R.features.max_height-M.h);Q=Math.max(Q,N.x-(I+N.x));S=Math.max(S,N.y-(J+N.y));Q=Math.min(Q,(N.w+N.x)-(I+M.w+N.x));S=Math.min(S,(N.h+N.y)-(J+M.h+N.y));if(Q+S!==0){if(I+Q<0){Q=0}if(J+S<0){S=0}p.moveTo(I+Q,J+S)}if(P+L!==0){p.resizeTo(M.w+P,M.h+L)}return g.cancel(k)});return g.cancel(d)},resizeBy:function(c,b,a){var d=this.windows[a];if(d){d.element.resizeBy(c,b);d.iframeElement.resizeBy(c,b)}},close:function(c,a){var e=this,l,b=i.doc,d,a;a=e._findId(a||c);if(!e.windows[a]){e.parent(c);return}e.count--;if(e.count==0){i.remove("mceModalBlocker");i.setAttrib(i.doc.body,"aria-hidden","false");e.editor.focus()}if(l=e.windows[a]){e.onClose.dispatch(e);g.remove(b,"mousedown",l.mousedownFunc);g.remove(b,"click",l.clickFunc);g.clear(a);g.clear(a+"_ifr");i.setAttrib(a+"_ifr","src",'javascript:""');l.element.remove();delete e.windows[a];d=e._frontWindow();if(d){e.focus(d.id)}}},_frontWindow:function(){var a,b=0;h(this.windows,function(c){if(c.zIndex>b){a=c;b=c.zIndex}});return a},setTitle:function(c,b){var a;c=this._findId(c);if(a=i.get(c+"_title")){a.innerHTML=i.encode(b)}},alert:function(d,e,a){var b=this,c;c=b.open({title:b,type:"alert",button_func:function(l){if(e){e.call(l||b,l)}b.close(null,c.id)},content:i.encode(b.editor.getLang(d,d)),inline:1,width:400,height:130})},confirm:function(d,e,a){var b=this,c;c=b.open({title:b,type:"confirm",button_func:function(l){if(e){e.call(l||b,l)}b.close(null,c.id)},content:i.encode(b.editor.getLang(d,d)),inline:1,width:400,height:130})},_findId:function(b){var a=this;if(typeof(b)=="string"){return b}h(a.windows,function(d){var c=i.get(d.id+"_ifr");if(c&&b==c.contentWindow){b=d.id;return false}});return b},_fixIELayout:function(a,b){var d,c;if(!tinymce.isIE6){return}h(["n","s","w","e","nw","ne","sw","se"],function(l){var e=i.get(a+"_resize_"+l);i.setStyles(e,{width:b?e.clientWidth:"",height:b?e.clientHeight:"",cursor:i.getStyle(e,"cursor",1)});i.setStyle(a+"_bottom","bottom","-1px");e=0});if(d=this.windows[a]){d.element.hide();d.element.show();h(i.select("div,a",a),function(e,l){if(e.currentStyle.backgroundImage!="none"){c=new Image();c.src=e.currentStyle.backgroundImage.replace(/url\(\"(.+)\"\)/,"$1")}});i.get(a).style.filter=""}}});tinymce.PluginManager.add("inlinepopups",tinymce.plugins.InlinePopups)})();
@@ -1,696 +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
- var DOM = tinymce.DOM, Element = tinymce.dom.Element, Event = tinymce.dom.Event, each = tinymce.each, is = tinymce.is;
13
-
14
- tinymce.create('tinymce.plugins.InlinePopups', {
15
- init : function(ed, url) {
16
- // Replace window manager
17
- ed.onBeforeRenderUI.add(function() {
18
- ed.windowManager = new tinymce.InlineWindowManager(ed);
19
- DOM.loadCSS(url + '/skins/' + (ed.settings.inlinepopups_skin || 'clearlooks2') + "/window.css");
20
- });
21
- },
22
-
23
- getInfo : function() {
24
- return {
25
- longname : 'InlinePopups',
26
- author : 'Moxiecode Systems AB',
27
- authorurl : 'http://tinymce.moxiecode.com',
28
- infourl : 'http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/inlinepopups',
29
- version : tinymce.majorVersion + "." + tinymce.minorVersion
30
- };
31
- }
32
- });
33
-
34
- tinymce.create('tinymce.InlineWindowManager:tinymce.WindowManager', {
35
- InlineWindowManager : function(ed) {
36
- var t = this;
37
-
38
- t.parent(ed);
39
- t.zIndex = 300000;
40
- t.count = 0;
41
- t.windows = {};
42
- },
43
-
44
- open : function(f, p) {
45
- var t = this, id, opt = '', ed = t.editor, dw = 0, dh = 0, vp, po, mdf, clf, we, w, u, parentWindow;
46
-
47
- f = f || {};
48
- p = p || {};
49
-
50
- // Run native windows
51
- if (!f.inline)
52
- return t.parent(f, p);
53
-
54
- parentWindow = t._frontWindow();
55
- if (parentWindow && DOM.get(parentWindow.id + '_ifr')) {
56
- parentWindow.focussedElement = DOM.get(parentWindow.id + '_ifr').contentWindow.document.activeElement;
57
- }
58
-
59
- // Only store selection if the type is a normal window
60
- if (!f.type)
61
- t.bookmark = ed.selection.getBookmark(1);
62
-
63
- id = DOM.uniqueId();
64
- vp = DOM.getViewPort();
65
- f.width = parseInt(f.width || 320);
66
- f.height = parseInt(f.height || 240) + (tinymce.isIE ? 8 : 0);
67
- f.min_width = parseInt(f.min_width || 150);
68
- f.min_height = parseInt(f.min_height || 100);
69
- f.max_width = parseInt(f.max_width || 2000);
70
- f.max_height = parseInt(f.max_height || 2000);
71
- f.left = f.left || Math.round(Math.max(vp.x, vp.x + (vp.w / 2.0) - (f.width / 2.0)));
72
- f.top = f.top || Math.round(Math.max(vp.y, vp.y + (vp.h / 2.0) - (f.height / 2.0)));
73
- f.movable = f.resizable = true;
74
- p.mce_width = f.width;
75
- p.mce_height = f.height;
76
- p.mce_inline = true;
77
- p.mce_window_id = id;
78
- p.mce_auto_focus = f.auto_focus;
79
-
80
- // Transpose
81
- // po = DOM.getPos(ed.getContainer());
82
- // f.left -= po.x;
83
- // f.top -= po.y;
84
-
85
- t.features = f;
86
- t.params = p;
87
- t.onOpen.dispatch(t, f, p);
88
-
89
- if (f.type) {
90
- opt += ' mceModal';
91
-
92
- if (f.type)
93
- opt += ' mce' + f.type.substring(0, 1).toUpperCase() + f.type.substring(1);
94
-
95
- f.resizable = false;
96
- }
97
-
98
- if (f.statusbar)
99
- opt += ' mceStatusbar';
100
-
101
- if (f.resizable)
102
- opt += ' mceResizable';
103
-
104
- if (f.minimizable)
105
- opt += ' mceMinimizable';
106
-
107
- if (f.maximizable)
108
- opt += ' mceMaximizable';
109
-
110
- if (f.movable)
111
- opt += ' mceMovable';
112
-
113
- // Create DOM objects
114
- t._addAll(DOM.doc.body,
115
- ['div', {id : id, role : 'dialog', 'aria-labelledby': f.type ? id + '_content' : id + '_title', 'class' : (ed.settings.inlinepopups_skin || 'clearlooks2') + (tinymce.isIE && window.getSelection ? ' ie9' : ''), style : 'width:100px;height:100px'},
116
- ['div', {id : id + '_wrapper', 'class' : 'mceWrapper' + opt},
117
- ['div', {id : id + '_top', 'class' : 'mceTop'},
118
- ['div', {'class' : 'mceLeft'}],
119
- ['div', {'class' : 'mceCenter'}],
120
- ['div', {'class' : 'mceRight'}],
121
- ['span', {id : id + '_title'}, f.title || '']
122
- ],
123
-
124
- ['div', {id : id + '_middle', 'class' : 'mceMiddle'},
125
- ['div', {id : id + '_left', 'class' : 'mceLeft', tabindex : '0'}],
126
- ['span', {id : id + '_content'}],
127
- ['div', {id : id + '_right', 'class' : 'mceRight', tabindex : '0'}]
128
- ],
129
-
130
- ['div', {id : id + '_bottom', 'class' : 'mceBottom'},
131
- ['div', {'class' : 'mceLeft'}],
132
- ['div', {'class' : 'mceCenter'}],
133
- ['div', {'class' : 'mceRight'}],
134
- ['span', {id : id + '_status'}, 'Content']
135
- ],
136
-
137
- ['a', {'class' : 'mceMove', tabindex : '-1', href : 'javascript:;'}],
138
- ['a', {'class' : 'mceMin', tabindex : '-1', href : 'javascript:;', onmousedown : 'return false;'}],
139
- ['a', {'class' : 'mceMax', tabindex : '-1', href : 'javascript:;', onmousedown : 'return false;'}],
140
- ['a', {'class' : 'mceMed', tabindex : '-1', href : 'javascript:;', onmousedown : 'return false;'}],
141
- ['a', {'class' : 'mceClose', tabindex : '-1', href : 'javascript:;', onmousedown : 'return false;'}],
142
- ['a', {id : id + '_resize_n', 'class' : 'mceResize mceResizeN', tabindex : '-1', href : 'javascript:;'}],
143
- ['a', {id : id + '_resize_s', 'class' : 'mceResize mceResizeS', tabindex : '-1', href : 'javascript:;'}],
144
- ['a', {id : id + '_resize_w', 'class' : 'mceResize mceResizeW', tabindex : '-1', href : 'javascript:;'}],
145
- ['a', {id : id + '_resize_e', 'class' : 'mceResize mceResizeE', tabindex : '-1', href : 'javascript:;'}],
146
- ['a', {id : id + '_resize_nw', 'class' : 'mceResize mceResizeNW', tabindex : '-1', href : 'javascript:;'}],
147
- ['a', {id : id + '_resize_ne', 'class' : 'mceResize mceResizeNE', tabindex : '-1', href : 'javascript:;'}],
148
- ['a', {id : id + '_resize_sw', 'class' : 'mceResize mceResizeSW', tabindex : '-1', href : 'javascript:;'}],
149
- ['a', {id : id + '_resize_se', 'class' : 'mceResize mceResizeSE', tabindex : '-1', href : 'javascript:;'}]
150
- ]
151
- ]
152
- );
153
-
154
- DOM.setStyles(id, {top : -10000, left : -10000});
155
-
156
- // Fix gecko rendering bug, where the editors iframe messed with window contents
157
- if (tinymce.isGecko)
158
- DOM.setStyle(id, 'overflow', 'auto');
159
-
160
- // Measure borders
161
- if (!f.type) {
162
- dw += DOM.get(id + '_left').clientWidth;
163
- dw += DOM.get(id + '_right').clientWidth;
164
- dh += DOM.get(id + '_top').clientHeight;
165
- dh += DOM.get(id + '_bottom').clientHeight;
166
- }
167
-
168
- // Resize window
169
- DOM.setStyles(id, {top : f.top, left : f.left, width : f.width + dw, height : f.height + dh});
170
-
171
- u = f.url || f.file;
172
- if (u) {
173
- if (tinymce.relaxedDomain)
174
- u += (u.indexOf('?') == -1 ? '?' : '&') + 'mce_rdomain=' + tinymce.relaxedDomain;
175
-
176
- u = tinymce._addVer(u);
177
- }
178
-
179
- if (!f.type) {
180
- DOM.add(id + '_content', 'iframe', {id : id + '_ifr', src : 'javascript:""', frameBorder : 0, style : 'border:0;width:10px;height:10px'});
181
- DOM.setStyles(id + '_ifr', {width : f.width, height : f.height});
182
- DOM.setAttrib(id + '_ifr', 'src', u);
183
- } else {
184
- DOM.add(id + '_wrapper', 'a', {id : id + '_ok', 'class' : 'mceButton mceOk', href : 'javascript:;', onmousedown : 'return false;'}, 'Ok');
185
-
186
- if (f.type == 'confirm')
187
- DOM.add(id + '_wrapper', 'a', {'class' : 'mceButton mceCancel', href : 'javascript:;', onmousedown : 'return false;'}, 'Cancel');
188
-
189
- DOM.add(id + '_middle', 'div', {'class' : 'mceIcon'});
190
- DOM.setHTML(id + '_content', f.content.replace('\n', '<br />'));
191
-
192
- Event.add(id, 'keyup', function(evt) {
193
- var VK_ESCAPE = 27;
194
- if (evt.keyCode === VK_ESCAPE) {
195
- f.button_func(false);
196
- return Event.cancel(evt);
197
- }
198
- });
199
-
200
- Event.add(id, 'keydown', function(evt) {
201
- var cancelButton, VK_TAB = 9;
202
- if (evt.keyCode === VK_TAB) {
203
- cancelButton = DOM.select('a.mceCancel', id + '_wrapper')[0];
204
- if (cancelButton && cancelButton !== evt.target) {
205
- cancelButton.focus();
206
- } else {
207
- DOM.get(id + '_ok').focus();
208
- }
209
- return Event.cancel(evt);
210
- }
211
- });
212
- }
213
-
214
- // Register events
215
- mdf = Event.add(id, 'mousedown', function(e) {
216
- var n = e.target, w, vp;
217
-
218
- w = t.windows[id];
219
- t.focus(id);
220
-
221
- if (n.nodeName == 'A' || n.nodeName == 'a') {
222
- if (n.className == 'mceMax') {
223
- w.oldPos = w.element.getXY();
224
- w.oldSize = w.element.getSize();
225
-
226
- vp = DOM.getViewPort();
227
-
228
- // Reduce viewport size to avoid scrollbars
229
- vp.w -= 2;
230
- vp.h -= 2;
231
-
232
- w.element.moveTo(vp.x, vp.y);
233
- w.element.resizeTo(vp.w, vp.h);
234
- DOM.setStyles(id + '_ifr', {width : vp.w - w.deltaWidth, height : vp.h - w.deltaHeight});
235
- DOM.addClass(id + '_wrapper', 'mceMaximized');
236
- } else if (n.className == 'mceMed') {
237
- // Reset to old size
238
- w.element.moveTo(w.oldPos.x, w.oldPos.y);
239
- w.element.resizeTo(w.oldSize.w, w.oldSize.h);
240
- w.iframeElement.resizeTo(w.oldSize.w - w.deltaWidth, w.oldSize.h - w.deltaHeight);
241
-
242
- DOM.removeClass(id + '_wrapper', 'mceMaximized');
243
- } else if (n.className == 'mceMove')
244
- return t._startDrag(id, e, n.className);
245
- else if (DOM.hasClass(n, 'mceResize'))
246
- return t._startDrag(id, e, n.className.substring(13));
247
- }
248
- });
249
-
250
- clf = Event.add(id, 'click', function(e) {
251
- var n = e.target;
252
-
253
- t.focus(id);
254
-
255
- if (n.nodeName == 'A' || n.nodeName == 'a') {
256
- switch (n.className) {
257
- case 'mceClose':
258
- t.close(null, id);
259
- return Event.cancel(e);
260
-
261
- case 'mceButton mceOk':
262
- case 'mceButton mceCancel':
263
- f.button_func(n.className == 'mceButton mceOk');
264
- return Event.cancel(e);
265
- }
266
- }
267
- });
268
-
269
- // Make sure the tab order loops within the dialog.
270
- Event.add([id + '_left', id + '_right'], 'focus', function(evt) {
271
- var iframe = DOM.get(id + '_ifr');
272
- if (iframe) {
273
- var body = iframe.contentWindow.document.body;
274
- var focusable = DOM.select(':input:enabled,*[tabindex=0]', body);
275
- if (evt.target.id === (id + '_left')) {
276
- focusable[focusable.length - 1].focus();
277
- } else {
278
- focusable[0].focus();
279
- }
280
- } else {
281
- DOM.get(id + '_ok').focus();
282
- }
283
- });
284
-
285
- // Add window
286
- w = t.windows[id] = {
287
- id : id,
288
- mousedown_func : mdf,
289
- click_func : clf,
290
- element : new Element(id, {blocker : 1, container : ed.getContainer()}),
291
- iframeElement : new Element(id + '_ifr'),
292
- features : f,
293
- deltaWidth : dw,
294
- deltaHeight : dh
295
- };
296
-
297
- w.iframeElement.on('focus', function() {
298
- t.focus(id);
299
- });
300
-
301
- // Setup blocker
302
- if (t.count == 0 && t.editor.getParam('dialog_type', 'modal') == 'modal') {
303
- DOM.add(DOM.doc.body, 'div', {
304
- id : 'mceModalBlocker',
305
- 'class' : (t.editor.settings.inlinepopups_skin || 'clearlooks2') + '_modalBlocker',
306
- style : {zIndex : t.zIndex - 1}
307
- });
308
-
309
- DOM.show('mceModalBlocker'); // Reduces flicker in IE
310
- DOM.setAttrib(DOM.doc.body, 'aria-hidden', 'true');
311
- } else
312
- DOM.setStyle('mceModalBlocker', 'z-index', t.zIndex - 1);
313
-
314
- if (tinymce.isIE6 || /Firefox\/2\./.test(navigator.userAgent) || (tinymce.isIE && !DOM.boxModel))
315
- DOM.setStyles('mceModalBlocker', {position : 'absolute', left : vp.x, top : vp.y, width : vp.w - 2, height : vp.h - 2});
316
-
317
- DOM.setAttrib(id, 'aria-hidden', 'false');
318
- t.focus(id);
319
- t._fixIELayout(id, 1);
320
-
321
- // Focus ok button
322
- if (DOM.get(id + '_ok'))
323
- DOM.get(id + '_ok').focus();
324
- t.count++;
325
-
326
- return w;
327
- },
328
-
329
- focus : function(id) {
330
- var t = this, w;
331
-
332
- if (w = t.windows[id]) {
333
- w.zIndex = this.zIndex++;
334
- w.element.setStyle('zIndex', w.zIndex);
335
- w.element.update();
336
-
337
- id = id + '_wrapper';
338
- DOM.removeClass(t.lastId, 'mceFocus');
339
- DOM.addClass(id, 'mceFocus');
340
- t.lastId = id;
341
-
342
- if (w.focussedElement) {
343
- w.focussedElement.focus();
344
- } else if (DOM.get(id + '_ok')) {
345
- DOM.get(w.id + '_ok').focus();
346
- } else if (DOM.get(w.id + '_ifr')) {
347
- DOM.get(w.id + '_ifr').focus();
348
- }
349
- }
350
- },
351
-
352
- _addAll : function(te, ne) {
353
- var i, n, t = this, dom = tinymce.DOM;
354
-
355
- if (is(ne, 'string'))
356
- te.appendChild(dom.doc.createTextNode(ne));
357
- else if (ne.length) {
358
- te = te.appendChild(dom.create(ne[0], ne[1]));
359
-
360
- for (i=2; i<ne.length; i++)
361
- t._addAll(te, ne[i]);
362
- }
363
- },
364
-
365
- _startDrag : function(id, se, ac) {
366
- var t = this, mu, mm, d = DOM.doc, eb, w = t.windows[id], we = w.element, sp = we.getXY(), p, sz, ph, cp, vp, sx, sy, sex, sey, dx, dy, dw, dh;
367
-
368
- // Get positons and sizes
369
- // cp = DOM.getPos(t.editor.getContainer());
370
- cp = {x : 0, y : 0};
371
- vp = DOM.getViewPort();
372
-
373
- // Reduce viewport size to avoid scrollbars while dragging
374
- vp.w -= 2;
375
- vp.h -= 2;
376
-
377
- sex = se.screenX;
378
- sey = se.screenY;
379
- dx = dy = dw = dh = 0;
380
-
381
- // Handle mouse up
382
- mu = Event.add(d, 'mouseup', function(e) {
383
- Event.remove(d, 'mouseup', mu);
384
- Event.remove(d, 'mousemove', mm);
385
-
386
- if (eb)
387
- eb.remove();
388
-
389
- we.moveBy(dx, dy);
390
- we.resizeBy(dw, dh);
391
- sz = we.getSize();
392
- DOM.setStyles(id + '_ifr', {width : sz.w - w.deltaWidth, height : sz.h - w.deltaHeight});
393
- t._fixIELayout(id, 1);
394
-
395
- return Event.cancel(e);
396
- });
397
-
398
- if (ac != 'Move')
399
- startMove();
400
-
401
- function startMove() {
402
- if (eb)
403
- return;
404
-
405
- t._fixIELayout(id, 0);
406
-
407
- // Setup event blocker
408
- DOM.add(d.body, 'div', {
409
- id : 'mceEventBlocker',
410
- 'class' : 'mceEventBlocker ' + (t.editor.settings.inlinepopups_skin || 'clearlooks2'),
411
- style : {zIndex : t.zIndex + 1}
412
- });
413
-
414
- if (tinymce.isIE6 || (tinymce.isIE && !DOM.boxModel))
415
- DOM.setStyles('mceEventBlocker', {position : 'absolute', left : vp.x, top : vp.y, width : vp.w - 2, height : vp.h - 2});
416
-
417
- eb = new Element('mceEventBlocker');
418
- eb.update();
419
-
420
- // Setup placeholder
421
- p = we.getXY();
422
- sz = we.getSize();
423
- sx = cp.x + p.x - vp.x;
424
- sy = cp.y + p.y - vp.y;
425
- DOM.add(eb.get(), 'div', {id : 'mcePlaceHolder', 'class' : 'mcePlaceHolder', style : {left : sx, top : sy, width : sz.w, height : sz.h}});
426
- ph = new Element('mcePlaceHolder');
427
- };
428
-
429
- // Handle mouse move/drag
430
- mm = Event.add(d, 'mousemove', function(e) {
431
- var x, y, v;
432
-
433
- startMove();
434
-
435
- x = e.screenX - sex;
436
- y = e.screenY - sey;
437
-
438
- switch (ac) {
439
- case 'ResizeW':
440
- dx = x;
441
- dw = 0 - x;
442
- break;
443
-
444
- case 'ResizeE':
445
- dw = x;
446
- break;
447
-
448
- case 'ResizeN':
449
- case 'ResizeNW':
450
- case 'ResizeNE':
451
- if (ac == "ResizeNW") {
452
- dx = x;
453
- dw = 0 - x;
454
- } else if (ac == "ResizeNE")
455
- dw = x;
456
-
457
- dy = y;
458
- dh = 0 - y;
459
- break;
460
-
461
- case 'ResizeS':
462
- case 'ResizeSW':
463
- case 'ResizeSE':
464
- if (ac == "ResizeSW") {
465
- dx = x;
466
- dw = 0 - x;
467
- } else if (ac == "ResizeSE")
468
- dw = x;
469
-
470
- dh = y;
471
- break;
472
-
473
- case 'mceMove':
474
- dx = x;
475
- dy = y;
476
- break;
477
- }
478
-
479
- // Boundary check
480
- if (dw < (v = w.features.min_width - sz.w)) {
481
- if (dx !== 0)
482
- dx += dw - v;
483
-
484
- dw = v;
485
- }
486
-
487
- if (dh < (v = w.features.min_height - sz.h)) {
488
- if (dy !== 0)
489
- dy += dh - v;
490
-
491
- dh = v;
492
- }
493
-
494
- dw = Math.min(dw, w.features.max_width - sz.w);
495
- dh = Math.min(dh, w.features.max_height - sz.h);
496
- dx = Math.max(dx, vp.x - (sx + vp.x));
497
- dy = Math.max(dy, vp.y - (sy + vp.y));
498
- dx = Math.min(dx, (vp.w + vp.x) - (sx + sz.w + vp.x));
499
- dy = Math.min(dy, (vp.h + vp.y) - (sy + sz.h + vp.y));
500
-
501
- // Move if needed
502
- if (dx + dy !== 0) {
503
- if (sx + dx < 0)
504
- dx = 0;
505
-
506
- if (sy + dy < 0)
507
- dy = 0;
508
-
509
- ph.moveTo(sx + dx, sy + dy);
510
- }
511
-
512
- // Resize if needed
513
- if (dw + dh !== 0)
514
- ph.resizeTo(sz.w + dw, sz.h + dh);
515
-
516
- return Event.cancel(e);
517
- });
518
-
519
- return Event.cancel(se);
520
- },
521
-
522
- resizeBy : function(dw, dh, id) {
523
- var w = this.windows[id];
524
-
525
- if (w) {
526
- w.element.resizeBy(dw, dh);
527
- w.iframeElement.resizeBy(dw, dh);
528
- }
529
- },
530
-
531
- close : function(win, id) {
532
- var t = this, w, d = DOM.doc, fw, id;
533
-
534
- id = t._findId(id || win);
535
-
536
- // Probably not inline
537
- if (!t.windows[id]) {
538
- t.parent(win);
539
- return;
540
- }
541
-
542
- t.count--;
543
-
544
- if (t.count == 0) {
545
- DOM.remove('mceModalBlocker');
546
- DOM.setAttrib(DOM.doc.body, 'aria-hidden', 'false');
547
- t.editor.focus();
548
- }
549
-
550
- if (w = t.windows[id]) {
551
- t.onClose.dispatch(t);
552
- Event.remove(d, 'mousedown', w.mousedownFunc);
553
- Event.remove(d, 'click', w.clickFunc);
554
- Event.clear(id);
555
- Event.clear(id + '_ifr');
556
-
557
- DOM.setAttrib(id + '_ifr', 'src', 'javascript:""'); // Prevent leak
558
- w.element.remove();
559
- delete t.windows[id];
560
-
561
- fw = t._frontWindow();
562
-
563
- if (fw)
564
- t.focus(fw.id);
565
- }
566
- },
567
-
568
- // Find front most window
569
- _frontWindow : function() {
570
- var fw, ix = 0;
571
- // Find front most window and focus that
572
- each (this.windows, function(w) {
573
- if (w.zIndex > ix) {
574
- fw = w;
575
- ix = w.zIndex;
576
- }
577
- });
578
- return fw;
579
- },
580
-
581
- setTitle : function(w, ti) {
582
- var e;
583
-
584
- w = this._findId(w);
585
-
586
- if (e = DOM.get(w + '_title'))
587
- e.innerHTML = DOM.encode(ti);
588
- },
589
-
590
- alert : function(txt, cb, s) {
591
- var t = this, w;
592
-
593
- w = t.open({
594
- title : t,
595
- type : 'alert',
596
- button_func : function(s) {
597
- if (cb)
598
- cb.call(s || t, s);
599
-
600
- t.close(null, w.id);
601
- },
602
- content : DOM.encode(t.editor.getLang(txt, txt)),
603
- inline : 1,
604
- width : 400,
605
- height : 130
606
- });
607
- },
608
-
609
- confirm : function(txt, cb, s) {
610
- var t = this, w;
611
-
612
- w = t.open({
613
- title : t,
614
- type : 'confirm',
615
- button_func : function(s) {
616
- if (cb)
617
- cb.call(s || t, s);
618
-
619
- t.close(null, w.id);
620
- },
621
- content : DOM.encode(t.editor.getLang(txt, txt)),
622
- inline : 1,
623
- width : 400,
624
- height : 130
625
- });
626
- },
627
-
628
- // Internal functions
629
-
630
- _findId : function(w) {
631
- var t = this;
632
-
633
- if (typeof(w) == 'string')
634
- return w;
635
-
636
- each(t.windows, function(wo) {
637
- var ifr = DOM.get(wo.id + '_ifr');
638
-
639
- if (ifr && w == ifr.contentWindow) {
640
- w = wo.id;
641
- return false;
642
- }
643
- });
644
-
645
- return w;
646
- },
647
-
648
- _fixIELayout : function(id, s) {
649
- var w, img;
650
-
651
- if (!tinymce.isIE6)
652
- return;
653
-
654
- // Fixes the bug where hover flickers and does odd things in IE6
655
- each(['n','s','w','e','nw','ne','sw','se'], function(v) {
656
- var e = DOM.get(id + '_resize_' + v);
657
-
658
- DOM.setStyles(e, {
659
- width : s ? e.clientWidth : '',
660
- height : s ? e.clientHeight : '',
661
- cursor : DOM.getStyle(e, 'cursor', 1)
662
- });
663
-
664
- DOM.setStyle(id + "_bottom", 'bottom', '-1px');
665
-
666
- e = 0;
667
- });
668
-
669
- // Fixes graphics glitch
670
- if (w = this.windows[id]) {
671
- // Fixes rendering bug after resize
672
- w.element.hide();
673
- w.element.show();
674
-
675
- // Forced a repaint of the window
676
- //DOM.get(id).style.filter = '';
677
-
678
- // IE has a bug where images used in CSS won't get loaded
679
- // sometimes when the cache in the browser is disabled
680
- // This fix tries to solve it by loading the images using the image object
681
- each(DOM.select('div,a', id), function(e, i) {
682
- if (e.currentStyle.backgroundImage != 'none') {
683
- img = new Image();
684
- img.src = e.currentStyle.backgroundImage.replace(/url\(\"(.+)\"\)/, '$1');
685
- }
686
- });
687
-
688
- DOM.get(id).style.filter = '';
689
- }
690
- }
691
- });
692
-
693
- // Register plugin
694
- tinymce.PluginManager.add('inlinepopups', tinymce.plugins.InlinePopups);
695
- })();
696
-
1
+ (function(){var d=tinymce.DOM,b=tinymce.dom.Element,a=tinymce.dom.Event,e=tinymce.each,c=tinymce.is;tinymce.create("tinymce.plugins.InlinePopups",{init:function(f,g){f.onBeforeRenderUI.add(function(){f.windowManager=new tinymce.InlineWindowManager(f);d.loadCSS(g+"/skins/"+(f.settings.inlinepopups_skin||"clearlooks2")+"/window.css")})},getInfo:function(){return{longname:"InlinePopups",author:"Moxiecode Systems AB",authorurl:"http://tinymce.moxiecode.com",infourl:"http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/inlinepopups",version:tinymce.majorVersion+"."+tinymce.minorVersion}}});tinymce.create("tinymce.InlineWindowManager:tinymce.WindowManager",{InlineWindowManager:function(f){var g=this;g.parent(f);g.zIndex=300000;g.count=0;g.windows={}},open:function(s,j){var z=this,i,k="",r=z.editor,g=0,v=0,h,m,o,q,l,x,y,n;s=s||{};j=j||{};if(!s.inline){return z.parent(s,j)}n=z._frontWindow();if(n&&d.get(n.id+"_ifr")){n.focussedElement=d.get(n.id+"_ifr").contentWindow.document.activeElement}if(!s.type){z.bookmark=r.selection.getBookmark(1)}i=d.uniqueId();h=d.getViewPort();s.width=parseInt(s.width||320);s.height=parseInt(s.height||240)+(tinymce.isIE?8:0);s.min_width=parseInt(s.min_width||150);s.min_height=parseInt(s.min_height||100);s.max_width=parseInt(s.max_width||2000);s.max_height=parseInt(s.max_height||2000);s.left=s.left||Math.round(Math.max(h.x,h.x+(h.w/2)-(s.width/2)));s.top=s.top||Math.round(Math.max(h.y,h.y+(h.h/2)-(s.height/2)));s.movable=s.resizable=true;j.mce_width=s.width;j.mce_height=s.height;j.mce_inline=true;j.mce_window_id=i;j.mce_auto_focus=s.auto_focus;z.features=s;z.params=j;z.onOpen.dispatch(z,s,j);if(s.type){k+=" mceModal";if(s.type){k+=" mce"+s.type.substring(0,1).toUpperCase()+s.type.substring(1)}s.resizable=false}if(s.statusbar){k+=" mceStatusbar"}if(s.resizable){k+=" mceResizable"}if(s.minimizable){k+=" mceMinimizable"}if(s.maximizable){k+=" mceMaximizable"}if(s.movable){k+=" mceMovable"}z._addAll(d.doc.body,["div",{id:i,role:"dialog","aria-labelledby":s.type?i+"_content":i+"_title","class":(r.settings.inlinepopups_skin||"clearlooks2")+(tinymce.isIE&&window.getSelection?" ie9":""),style:"width:100px;height:100px"},["div",{id:i+"_wrapper","class":"mceWrapper"+k},["div",{id:i+"_top","class":"mceTop"},["div",{"class":"mceLeft"}],["div",{"class":"mceCenter"}],["div",{"class":"mceRight"}],["span",{id:i+"_title"},s.title||""]],["div",{id:i+"_middle","class":"mceMiddle"},["div",{id:i+"_left","class":"mceLeft",tabindex:"0"}],["span",{id:i+"_content"}],["div",{id:i+"_right","class":"mceRight",tabindex:"0"}]],["div",{id:i+"_bottom","class":"mceBottom"},["div",{"class":"mceLeft"}],["div",{"class":"mceCenter"}],["div",{"class":"mceRight"}],["span",{id:i+"_status"},"Content"]],["a",{"class":"mceMove",tabindex:"-1",href:"javascript:;"}],["a",{"class":"mceMin",tabindex:"-1",href:"javascript:;",onmousedown:"return false;"}],["a",{"class":"mceMax",tabindex:"-1",href:"javascript:;",onmousedown:"return false;"}],["a",{"class":"mceMed",tabindex:"-1",href:"javascript:;",onmousedown:"return false;"}],["a",{"class":"mceClose",tabindex:"-1",href:"javascript:;",onmousedown:"return false;"}],["a",{id:i+"_resize_n","class":"mceResize mceResizeN",tabindex:"-1",href:"javascript:;"}],["a",{id:i+"_resize_s","class":"mceResize mceResizeS",tabindex:"-1",href:"javascript:;"}],["a",{id:i+"_resize_w","class":"mceResize mceResizeW",tabindex:"-1",href:"javascript:;"}],["a",{id:i+"_resize_e","class":"mceResize mceResizeE",tabindex:"-1",href:"javascript:;"}],["a",{id:i+"_resize_nw","class":"mceResize mceResizeNW",tabindex:"-1",href:"javascript:;"}],["a",{id:i+"_resize_ne","class":"mceResize mceResizeNE",tabindex:"-1",href:"javascript:;"}],["a",{id:i+"_resize_sw","class":"mceResize mceResizeSW",tabindex:"-1",href:"javascript:;"}],["a",{id:i+"_resize_se","class":"mceResize mceResizeSE",tabindex:"-1",href:"javascript:;"}]]]);d.setStyles(i,{top:-10000,left:-10000});if(tinymce.isGecko){d.setStyle(i,"overflow","auto")}if(!s.type){g+=d.get(i+"_left").clientWidth;g+=d.get(i+"_right").clientWidth;v+=d.get(i+"_top").clientHeight;v+=d.get(i+"_bottom").clientHeight}d.setStyles(i,{top:s.top,left:s.left,width:s.width+g,height:s.height+v});y=s.url||s.file;if(y){if(tinymce.relaxedDomain){y+=(y.indexOf("?")==-1?"?":"&")+"mce_rdomain="+tinymce.relaxedDomain}y=tinymce._addVer(y)}if(!s.type){d.add(i+"_content","iframe",{id:i+"_ifr",src:'javascript:""',frameBorder:0,style:"border:0;width:10px;height:10px"});d.setStyles(i+"_ifr",{width:s.width,height:s.height});d.setAttrib(i+"_ifr","src",y)}else{d.add(i+"_wrapper","a",{id:i+"_ok","class":"mceButton mceOk",href:"javascript:;",onmousedown:"return false;"},"Ok");if(s.type=="confirm"){d.add(i+"_wrapper","a",{"class":"mceButton mceCancel",href:"javascript:;",onmousedown:"return false;"},"Cancel")}d.add(i+"_middle","div",{"class":"mceIcon"});d.setHTML(i+"_content",s.content.replace("\n","<br />"));a.add(i,"keyup",function(f){var p=27;if(f.keyCode===p){s.button_func(false);return a.cancel(f)}});a.add(i,"keydown",function(f){var t,p=9;if(f.keyCode===p){t=d.select("a.mceCancel",i+"_wrapper")[0];if(t&&t!==f.target){t.focus()}else{d.get(i+"_ok").focus()}return a.cancel(f)}})}o=a.add(i,"mousedown",function(t){var u=t.target,f,p;f=z.windows[i];z.focus(i);if(u.nodeName=="A"||u.nodeName=="a"){if(u.className=="mceMax"){f.oldPos=f.element.getXY();f.oldSize=f.element.getSize();p=d.getViewPort();p.w-=2;p.h-=2;f.element.moveTo(p.x,p.y);f.element.resizeTo(p.w,p.h);d.setStyles(i+"_ifr",{width:p.w-f.deltaWidth,height:p.h-f.deltaHeight});d.addClass(i+"_wrapper","mceMaximized")}else{if(u.className=="mceMed"){f.element.moveTo(f.oldPos.x,f.oldPos.y);f.element.resizeTo(f.oldSize.w,f.oldSize.h);f.iframeElement.resizeTo(f.oldSize.w-f.deltaWidth,f.oldSize.h-f.deltaHeight);d.removeClass(i+"_wrapper","mceMaximized")}else{if(u.className=="mceMove"){return z._startDrag(i,t,u.className)}else{if(d.hasClass(u,"mceResize")){return z._startDrag(i,t,u.className.substring(13))}}}}}});q=a.add(i,"click",function(f){var p=f.target;z.focus(i);if(p.nodeName=="A"||p.nodeName=="a"){switch(p.className){case"mceClose":z.close(null,i);return a.cancel(f);case"mceButton mceOk":case"mceButton mceCancel":s.button_func(p.className=="mceButton mceOk");return a.cancel(f)}}});a.add([i+"_left",i+"_right"],"focus",function(p){var t=d.get(i+"_ifr");if(t){var f=t.contentWindow.document.body;var u=d.select(":input:enabled,*[tabindex=0]",f);if(p.target.id===(i+"_left")){u[u.length-1].focus()}else{u[0].focus()}}else{d.get(i+"_ok").focus()}});x=z.windows[i]={id:i,mousedown_func:o,click_func:q,element:new b(i,{blocker:1,container:r.getContainer()}),iframeElement:new b(i+"_ifr"),features:s,deltaWidth:g,deltaHeight:v};x.iframeElement.on("focus",function(){z.focus(i)});if(z.count==0&&z.editor.getParam("dialog_type","modal")=="modal"){d.add(d.doc.body,"div",{id:"mceModalBlocker","class":(z.editor.settings.inlinepopups_skin||"clearlooks2")+"_modalBlocker",style:{zIndex:z.zIndex-1}});d.show("mceModalBlocker");d.setAttrib(d.doc.body,"aria-hidden","true")}else{d.setStyle("mceModalBlocker","z-index",z.zIndex-1)}if(tinymce.isIE6||/Firefox\/2\./.test(navigator.userAgent)||(tinymce.isIE&&!d.boxModel)){d.setStyles("mceModalBlocker",{position:"absolute",left:h.x,top:h.y,width:h.w-2,height:h.h-2})}d.setAttrib(i,"aria-hidden","false");z.focus(i);z._fixIELayout(i,1);if(d.get(i+"_ok")){d.get(i+"_ok").focus()}z.count++;return x},focus:function(h){var g=this,f;if(f=g.windows[h]){f.zIndex=this.zIndex++;f.element.setStyle("zIndex",f.zIndex);f.element.update();h=h+"_wrapper";d.removeClass(g.lastId,"mceFocus");d.addClass(h,"mceFocus");g.lastId=h;if(f.focussedElement){f.focussedElement.focus()}else{if(d.get(h+"_ok")){d.get(f.id+"_ok").focus()}else{if(d.get(f.id+"_ifr")){d.get(f.id+"_ifr").focus()}}}}},_addAll:function(k,h){var g,l,f=this,j=tinymce.DOM;if(c(h,"string")){k.appendChild(j.doc.createTextNode(h))}else{if(h.length){k=k.appendChild(j.create(h[0],h[1]));for(g=2;g<h.length;g++){f._addAll(k,h[g])}}}},_startDrag:function(v,G,E){var o=this,u,z,C=d.doc,f,l=o.windows[v],h=l.element,y=h.getXY(),x,q,F,g,A,s,r,j,i,m,k,n,B;g={x:0,y:0};A=d.getViewPort();A.w-=2;A.h-=2;j=G.screenX;i=G.screenY;m=k=n=B=0;u=a.add(C,"mouseup",function(p){a.remove(C,"mouseup",u);a.remove(C,"mousemove",z);if(f){f.remove()}h.moveBy(m,k);h.resizeBy(n,B);q=h.getSize();d.setStyles(v+"_ifr",{width:q.w-l.deltaWidth,height:q.h-l.deltaHeight});o._fixIELayout(v,1);return a.cancel(p)});if(E!="Move"){D()}function D(){if(f){return}o._fixIELayout(v,0);d.add(C.body,"div",{id:"mceEventBlocker","class":"mceEventBlocker "+(o.editor.settings.inlinepopups_skin||"clearlooks2"),style:{zIndex:o.zIndex+1}});if(tinymce.isIE6||(tinymce.isIE&&!d.boxModel)){d.setStyles("mceEventBlocker",{position:"absolute",left:A.x,top:A.y,width:A.w-2,height:A.h-2})}f=new b("mceEventBlocker");f.update();x=h.getXY();q=h.getSize();s=g.x+x.x-A.x;r=g.y+x.y-A.y;d.add(f.get(),"div",{id:"mcePlaceHolder","class":"mcePlaceHolder",style:{left:s,top:r,width:q.w,height:q.h}});F=new b("mcePlaceHolder")}z=a.add(C,"mousemove",function(w){var p,H,t;D();p=w.screenX-j;H=w.screenY-i;switch(E){case"ResizeW":m=p;n=0-p;break;case"ResizeE":n=p;break;case"ResizeN":case"ResizeNW":case"ResizeNE":if(E=="ResizeNW"){m=p;n=0-p}else{if(E=="ResizeNE"){n=p}}k=H;B=0-H;break;case"ResizeS":case"ResizeSW":case"ResizeSE":if(E=="ResizeSW"){m=p;n=0-p}else{if(E=="ResizeSE"){n=p}}B=H;break;case"mceMove":m=p;k=H;break}if(n<(t=l.features.min_width-q.w)){if(m!==0){m+=n-t}n=t}if(B<(t=l.features.min_height-q.h)){if(k!==0){k+=B-t}B=t}n=Math.min(n,l.features.max_width-q.w);B=Math.min(B,l.features.max_height-q.h);m=Math.max(m,A.x-(s+A.x));k=Math.max(k,A.y-(r+A.y));m=Math.min(m,(A.w+A.x)-(s+q.w+A.x));k=Math.min(k,(A.h+A.y)-(r+q.h+A.y));if(m+k!==0){if(s+m<0){m=0}if(r+k<0){k=0}F.moveTo(s+m,r+k)}if(n+B!==0){F.resizeTo(q.w+n,q.h+B)}return a.cancel(w)});return a.cancel(G)},resizeBy:function(g,h,i){var f=this.windows[i];if(f){f.element.resizeBy(g,h);f.iframeElement.resizeBy(g,h)}},close:function(i,k){var g=this,f,j=d.doc,h,k;k=g._findId(k||i);if(!g.windows[k]){g.parent(i);return}g.count--;if(g.count==0){d.remove("mceModalBlocker");d.setAttrib(d.doc.body,"aria-hidden","false");g.editor.focus()}if(f=g.windows[k]){g.onClose.dispatch(g);a.remove(j,"mousedown",f.mousedownFunc);a.remove(j,"click",f.clickFunc);a.clear(k);a.clear(k+"_ifr");d.setAttrib(k+"_ifr","src",'javascript:""');f.element.remove();delete g.windows[k];h=g._frontWindow();if(h){g.focus(h.id)}}},_frontWindow:function(){var g,f=0;e(this.windows,function(h){if(h.zIndex>f){g=h;f=h.zIndex}});return g},setTitle:function(f,g){var h;f=this._findId(f);if(h=d.get(f+"_title")){h.innerHTML=d.encode(g)}},alert:function(g,f,j){var i=this,h;h=i.open({title:i,type:"alert",button_func:function(k){if(f){f.call(k||i,k)}i.close(null,h.id)},content:d.encode(i.editor.getLang(g,g)),inline:1,width:400,height:130})},confirm:function(g,f,j){var i=this,h;h=i.open({title:i,type:"confirm",button_func:function(k){if(f){f.call(k||i,k)}i.close(null,h.id)},content:d.encode(i.editor.getLang(g,g)),inline:1,width:400,height:130})},_findId:function(f){var g=this;if(typeof(f)=="string"){return f}e(g.windows,function(h){var i=d.get(h.id+"_ifr");if(i&&f==i.contentWindow){f=h.id;return false}});return f},_fixIELayout:function(i,h){var f,g;if(!tinymce.isIE6){return}e(["n","s","w","e","nw","ne","sw","se"],function(j){var k=d.get(i+"_resize_"+j);d.setStyles(k,{width:h?k.clientWidth:"",height:h?k.clientHeight:"",cursor:d.getStyle(k,"cursor",1)});d.setStyle(i+"_bottom","bottom","-1px");k=0});if(f=this.windows[i]){f.element.hide();f.element.show();e(d.select("div,a",i),function(k,j){if(k.currentStyle.backgroundImage!="none"){g=new Image();g.src=k.currentStyle.backgroundImage.replace(/url\(\"(.+)\"\)/,"$1")}});d.get(i).style.filter=""}}});tinymce.PluginManager.add("inlinepopups",tinymce.plugins.InlinePopups)})();