Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Added tinymce, switched lots of WP_THEME_DIR to WP_THEME_URL

Because original coders didn't understand the difference
  • Loading branch information...
commit 490ef863c6d102850a55d6fcb267b17532c4f663 1 parent c1c7cc6
Justin Louie authored
Showing with 21,137 additions and 0 deletions.
  1. +6 −0 plugins/ultimate-tinymce/__dev_notes.txt
  2. +1 −0  plugins/ultimate-tinymce/addons/acheck/editor_plugin.js
  3. +83 −0 plugins/ultimate-tinymce/addons/acheck/editor_plugin_src.js
  4. BIN  plugins/ultimate-tinymce/addons/acheck/img/acheck.gif
  5. BIN  plugins/ultimate-tinymce/addons/acheck/img/acheck.png
  6. +19 −0 plugins/ultimate-tinymce/addons/acheck/js/dialog.js
  7. +3 −0  plugins/ultimate-tinymce/addons/acheck/langs/en.js
  8. +3 −0  plugins/ultimate-tinymce/addons/acheck/langs/en_dlg.js
  9. +5 −0 plugins/ultimate-tinymce/addons/advhr/css/advhr.css
  10. +1 −0  plugins/ultimate-tinymce/addons/advhr/editor_plugin.js
  11. +57 −0 plugins/ultimate-tinymce/addons/advhr/editor_plugin_src.js
  12. +43 −0 plugins/ultimate-tinymce/addons/advhr/js/rule.js
  13. +13 −0 plugins/ultimate-tinymce/addons/advhr/langs/en_dlg.js
  14. +58 −0 plugins/ultimate-tinymce/addons/advhr/rule.htm
  15. +13 −0 plugins/ultimate-tinymce/addons/advimage/css/advimage.css
  16. +1 −0  plugins/ultimate-tinymce/addons/advimage/editor_plugin.js
  17. +50 −0 plugins/ultimate-tinymce/addons/advimage/editor_plugin_src.js
  18. +235 −0 plugins/ultimate-tinymce/addons/advimage/image.htm
  19. BIN  plugins/ultimate-tinymce/addons/advimage/img/sample.gif
  20. +462 −0 plugins/ultimate-tinymce/addons/advimage/js/image.js
  21. +1 −0  plugins/ultimate-tinymce/addons/advimage/langs/en_dlg.js
  22. +1 −0  plugins/ultimate-tinymce/addons/advlist/editor_plugin.js
  23. +176 −0 plugins/ultimate-tinymce/addons/advlist/editor_plugin_src.js
  24. +22 −0 plugins/ultimate-tinymce/addons/clear/css/clear.css
  25. +126 −0 plugins/ultimate-tinymce/addons/clear/editor_plugin.dev.js
  26. +82 −0 plugins/ultimate-tinymce/addons/clear/editor_plugin.js
  27. BIN  plugins/ultimate-tinymce/addons/clear/images/clearboth.gif
  28. BIN  plugins/ultimate-tinymce/addons/clear/images/clearboth_button.gif
  29. BIN  plugins/ultimate-tinymce/addons/clear/images/clearleft.gif
  30. BIN  plugins/ultimate-tinymce/addons/clear/images/clearleft_button.gif
  31. BIN  plugins/ultimate-tinymce/addons/clear/images/clearright.gif
  32. BIN  plugins/ultimate-tinymce/addons/clear/images/clearright_button.gif
  33. BIN  plugins/ultimate-tinymce/addons/clear/images/trans.gif
  34. +6 −0 plugins/ultimate-tinymce/addons/clear/langs/en.js
  35. +6 −0 plugins/ultimate-tinymce/addons/clear/langs/es.js
  36. +33 −0 plugins/ultimate-tinymce/addons/clker/dialog.htm
  37. +81 −0 plugins/ultimate-tinymce/addons/clker/editor_plugin.js
  38. BIN  plugins/ultimate-tinymce/addons/clker/img/before.png
  39. BIN  plugins/ultimate-tinymce/addons/clker/img/clker.gif
  40. BIN  plugins/ultimate-tinymce/addons/clker/img/clker.png
  41. BIN  plugins/ultimate-tinymce/addons/clker/img/end.png
  42. BIN  plugins/ultimate-tinymce/addons/clker/img/next.png
  43. BIN  plugins/ultimate-tinymce/addons/clker/img/start.png
  44. +279 −0 plugins/ultimate-tinymce/addons/clker/js/dialog.js
  45. +3 −0  plugins/ultimate-tinymce/addons/clker/langs/en.js
  46. +3 −0  plugins/ultimate-tinymce/addons/clker/langs/en_dlg.js
  47. +7 −0 plugins/ultimate-tinymce/addons/clker/search.php
  48. +66 −0 plugins/ultimate-tinymce/addons/codemagic/codemagic.htm
  49. +99 −0 plugins/ultimate-tinymce/addons/codemagic/css/codemirror.css
  50. +28 −0 plugins/ultimate-tinymce/addons/codemagic/css/default.css
  51. +59 −0 plugins/ultimate-tinymce/addons/codemagic/css/style.css
  52. +1 −0  plugins/ultimate-tinymce/addons/codemagic/editor_plugin.js
  53. +54 −0 plugins/ultimate-tinymce/addons/codemagic/editor_plugin_src.js
  54. BIN  plugins/ultimate-tinymce/addons/codemagic/img/code.png
  55. BIN  plugins/ultimate-tinymce/addons/codemagic/img/icons/file.png
  56. BIN  plugins/ultimate-tinymce/addons/codemagic/img/icons/lens.png
  57. BIN  plugins/ultimate-tinymce/addons/codemagic/img/icons/redo.png
  58. BIN  plugins/ultimate-tinymce/addons/codemagic/img/icons/undo.png
  59. +436 −0 plugins/ultimate-tinymce/addons/codemagic/js/beautify-html.js
  60. +1,147 −0 plugins/ultimate-tinymce/addons/codemagic/js/beautify.js
  61. +581 −0 plugins/ultimate-tinymce/addons/codemagic/js/codemagic.js
  62. +1 −0  plugins/ultimate-tinymce/addons/codemagic/js/codemirror-compressed.js
  63. +3 −0  plugins/ultimate-tinymce/addons/codemagic/langs/cs.js
  64. +14 −0 plugins/ultimate-tinymce/addons/codemagic/langs/cs_dlg.js
  65. +3 −0  plugins/ultimate-tinymce/addons/codemagic/langs/en.js
  66. +14 −0 plugins/ultimate-tinymce/addons/codemagic/langs/en_dlg.js
  67. +3 −0  plugins/ultimate-tinymce/addons/codemagic/langs/sk.js
  68. +14 −0 plugins/ultimate-tinymce/addons/codemagic/langs/sk_dlg.js
  69. +13 −0 plugins/ultimate-tinymce/addons/codemagic/licence.txt
  70. +1 −0  plugins/ultimate-tinymce/addons/directionality/editor_plugin.js
  71. +85 −0 plugins/ultimate-tinymce/addons/directionality/editor_plugin_src.js
  72. +1 −0  plugins/ultimate-tinymce/addons/emotions/editor_plugin.js
  73. +43 −0 plugins/ultimate-tinymce/addons/emotions/editor_plugin_src.js
  74. +130 −0 plugins/ultimate-tinymce/addons/emotions/emotions.htm
  75. BIN  plugins/ultimate-tinymce/addons/emotions/img/blueicons/Ahhhh.png
  76. BIN  plugins/ultimate-tinymce/addons/emotions/img/blueicons/Alien.png
  77. BIN  plugins/ultimate-tinymce/addons/emotions/img/blueicons/Blush.png
  78. BIN  plugins/ultimate-tinymce/addons/emotions/img/blueicons/Cool1.png
  79. BIN  plugins/ultimate-tinymce/addons/emotions/img/blueicons/Crying.png
  80. BIN  plugins/ultimate-tinymce/addons/emotions/img/blueicons/Devil.png
  81. BIN  plugins/ultimate-tinymce/addons/emotions/img/blueicons/Happy.png
  82. BIN  plugins/ultimate-tinymce/addons/emotions/img/blueicons/Huh.png
  83. BIN  plugins/ultimate-tinymce/addons/emotions/img/blueicons/Love.png
  84. BIN  plugins/ultimate-tinymce/addons/emotions/img/blueicons/Sick.png
  85. BIN  plugins/ultimate-tinymce/addons/emotions/img/blueicons/Sleep.png
  86. BIN  plugins/ultimate-tinymce/addons/emotions/img/blueicons/Smile1.png
  87. BIN  plugins/ultimate-tinymce/addons/emotions/img/blueicons/Tear.png
  88. BIN  plugins/ultimate-tinymce/addons/emotions/img/blueicons/Tounge.png
  89. BIN  plugins/ultimate-tinymce/addons/emotions/img/blueicons/Wink1.png
  90. BIN  plugins/ultimate-tinymce/addons/emotions/img/blueicons/Yikes.png
  91. BIN  plugins/ultimate-tinymce/addons/emotions/img/popo/amazing.png
  92. BIN  plugins/ultimate-tinymce/addons/emotions/img/popo/big_smile.png
  93. BIN  plugins/ultimate-tinymce/addons/emotions/img/popo/cry1.png
  94. BIN  plugins/ultimate-tinymce/addons/emotions/img/popo/electric_shock.png
  95. BIN  plugins/ultimate-tinymce/addons/emotions/img/popo/exciting.png
  96. BIN  plugins/ultimate-tinymce/addons/emotions/img/popo/eyes_dropped.png
  97. BIN  plugins/ultimate-tinymce/addons/emotions/img/popo/girl.png
  98. BIN  plugins/ultimate-tinymce/addons/emotions/img/popo/grimace.png
  99. BIN  plugins/ultimate-tinymce/addons/emotions/img/popo/haha.png
  100. BIN  plugins/ultimate-tinymce/addons/emotions/img/popo/scorn.png
  101. BIN  plugins/ultimate-tinymce/addons/emotions/img/popo/secret_smile.png
  102. BIN  plugins/ultimate-tinymce/addons/emotions/img/popo/shame.png
  103. BIN  plugins/ultimate-tinymce/addons/emotions/img/popo/shocked.png
  104. BIN  plugins/ultimate-tinymce/addons/emotions/img/popo/unhappy.png
  105. BIN  plugins/ultimate-tinymce/addons/emotions/img/popo/victory.png
  106. BIN  plugins/ultimate-tinymce/addons/emotions/img/popo/what.png
  107. BIN  plugins/ultimate-tinymce/addons/emotions/img/popobig/adore.png
  108. BIN  plugins/ultimate-tinymce/addons/emotions/img/popobig/ah.png
  109. BIN  plugins/ultimate-tinymce/addons/emotions/img/popobig/angry.png
  110. BIN  plugins/ultimate-tinymce/addons/emotions/img/popobig/baffle.png
  111. BIN  plugins/ultimate-tinymce/addons/emotions/img/popobig/beat_ball.png
  112. BIN  plugins/ultimate-tinymce/addons/emotions/img/popobig/beat_brick.png
  113. BIN  plugins/ultimate-tinymce/addons/emotions/img/popobig/big_smile.png
  114. BIN  plugins/ultimate-tinymce/addons/emotions/img/popobig/boss.png
  115. BIN  plugins/ultimate-tinymce/addons/emotions/img/popobig/burn_joss_stick.png
  116. BIN  plugins/ultimate-tinymce/addons/emotions/img/popobig/canny.png
  117. BIN  plugins/ultimate-tinymce/addons/emotions/img/popobig/confident.png
  118. BIN  plugins/ultimate-tinymce/addons/emotions/img/popobig/confuse.png
  119. BIN  plugins/ultimate-tinymce/addons/emotions/img/popobig/cry.png
  120. BIN  plugins/ultimate-tinymce/addons/emotions/img/popobig/doubt.png
  121. BIN  plugins/ultimate-tinymce/addons/emotions/img/popobig/dribble.png
  122. BIN  plugins/ultimate-tinymce/addons/emotions/img/popobig/embarrassed.png
  123. BIN  plugins/ultimate-tinymce/addons/emotions/img/popobig/feel_good.png
  124. BIN  plugins/ultimate-tinymce/addons/emotions/img/popobig/furious.png
  125. BIN  plugins/ultimate-tinymce/addons/emotions/img/popobig/haha.png
  126. BIN  plugins/ultimate-tinymce/addons/emotions/img/popobig/hell_boy.png
  127. BIN  plugins/ultimate-tinymce/addons/emotions/img/popobig/look_down.png
  128. BIN  plugins/ultimate-tinymce/addons/emotions/img/popobig/matrix.png
  129. BIN  plugins/ultimate-tinymce/addons/emotions/img/popobig/misdoubt.png
  130. BIN  plugins/ultimate-tinymce/addons/emotions/img/popobig/oh.png
  131. BIN  plugins/ultimate-tinymce/addons/emotions/img/popobig/ops.png
  132. BIN  plugins/ultimate-tinymce/addons/emotions/img/popobig/sad.png
  133. BIN  plugins/ultimate-tinymce/addons/emotions/img/popobig/still_dreaming.png
  134. BIN  plugins/ultimate-tinymce/addons/emotions/img/popobig/surrender.png
  135. BIN  plugins/ultimate-tinymce/addons/emotions/img/popobig/sweet_kiss.png
  136. BIN  plugins/ultimate-tinymce/addons/emotions/img/popobig/tired.png
  137. BIN  plugins/ultimate-tinymce/addons/emotions/img/popobig/too_sad.png
  138. BIN  plugins/ultimate-tinymce/addons/emotions/img/popobig/what.png
  139. BIN  plugins/ultimate-tinymce/addons/emotions/img/smiley-cool.gif
  140. BIN  plugins/ultimate-tinymce/addons/emotions/img/smiley-cry.gif
  141. BIN  plugins/ultimate-tinymce/addons/emotions/img/smiley-embarassed.gif
  142. BIN  plugins/ultimate-tinymce/addons/emotions/img/smiley-foot-in-mouth.gif
  143. BIN  plugins/ultimate-tinymce/addons/emotions/img/smiley-frown.gif
  144. BIN  plugins/ultimate-tinymce/addons/emotions/img/smiley-innocent.gif
  145. BIN  plugins/ultimate-tinymce/addons/emotions/img/smiley-kiss.gif
  146. BIN  plugins/ultimate-tinymce/addons/emotions/img/smiley-laughing.gif
  147. BIN  plugins/ultimate-tinymce/addons/emotions/img/smiley-money-mouth.gif
  148. BIN  plugins/ultimate-tinymce/addons/emotions/img/smiley-sealed.gif
  149. BIN  plugins/ultimate-tinymce/addons/emotions/img/smiley-smile.gif
  150. BIN  plugins/ultimate-tinymce/addons/emotions/img/smiley-surprised.gif
  151. BIN  plugins/ultimate-tinymce/addons/emotions/img/smiley-tongue-out.gif
  152. BIN  plugins/ultimate-tinymce/addons/emotions/img/smiley-undecided.gif
  153. BIN  plugins/ultimate-tinymce/addons/emotions/img/smiley-wink.gif
  154. BIN  plugins/ultimate-tinymce/addons/emotions/img/smiley-yell.gif
  155. +43 −0 plugins/ultimate-tinymce/addons/emotions/js/emotions.js
  156. +85 −0 plugins/ultimate-tinymce/addons/emotions/langs/en_dlg.js
  157. +1 −0  plugins/ultimate-tinymce/addons/encode/editor_plugin.js
  158. +1,059 −0 plugins/ultimate-tinymce/addons/encode/editor_plugin_src.js
  159. BIN  plugins/ultimate-tinymce/addons/encode/img/decode.gif
  160. BIN  plugins/ultimate-tinymce/addons/encode/img/encode.gif
  161. BIN  plugins/ultimate-tinymce/addons/encode/img/encode.png
  162. +3 −0  plugins/ultimate-tinymce/addons/encode/langs/en.js
  163. +3 −0  plugins/ultimate-tinymce/addons/encode/langs/en_dlg.js
  164. +89 −0 plugins/ultimate-tinymce/addons/equation/editor_plugin.js
  165. BIN  plugins/ultimate-tinymce/addons/equation/img/equation.gif
  166. +51 −0 plugins/ultimate-tinymce/addons/ezimage/css/ezimage.css
  167. +1 −0  plugins/ultimate-tinymce/addons/ezimage/editor_plugin.js
  168. +77 −0 plugins/ultimate-tinymce/addons/ezimage/editor_plugin_src.js
  169. +89 −0 plugins/ultimate-tinymce/addons/ezimage/ezimage.htm
  170. BIN  plugins/ultimate-tinymce/addons/ezimage/img/ezimage.gif
  171. +583 −0 plugins/ultimate-tinymce/addons/ezimage/js/ezimage.js
  172. +5 −0 plugins/ultimate-tinymce/addons/ezimage/langs/en.js
  173. +25 −0 plugins/ultimate-tinymce/addons/ezimage/langs/en_dlg.js
  174. +5 −0 plugins/ultimate-tinymce/addons/ezimage/langs/fr.js
  175. +25 −0 plugins/ultimate-tinymce/addons/ezimage/langs/fr_dlg.js
  176. +160 −0 plugins/ultimate-tinymce/addons/imgmap/css/imgmap.css
  177. +134 −0 plugins/ultimate-tinymce/addons/imgmap/editor_plugin.js
  178. +134 −0 plugins/ultimate-tinymce/addons/imgmap/editor_plugin_src.js
  179. BIN  plugins/ultimate-tinymce/addons/imgmap/images/accept.gif
  180. BIN  plugins/ultimate-tinymce/addons/imgmap/images/add.gif
  181. BIN  plugins/ultimate-tinymce/addons/imgmap/images/bullet_green.gif
  182. BIN  plugins/ultimate-tinymce/addons/imgmap/images/bullet_orange.gif
  183. BIN  plugins/ultimate-tinymce/addons/imgmap/images/clipboard.gif
  184. BIN  plugins/ultimate-tinymce/addons/imgmap/images/delete.gif
  185. BIN  plugins/ultimate-tinymce/addons/imgmap/images/edit.gif
  186. BIN  plugins/ultimate-tinymce/addons/imgmap/images/html.gif
  187. BIN  plugins/ultimate-tinymce/addons/imgmap/images/tinymce_button.gif
  188. BIN  plugins/ultimate-tinymce/addons/imgmap/images/zoom.gif
  189. +19 −0 plugins/ultimate-tinymce/addons/imgmap/jscripts/excanvas.js
  190. +543 −0 plugins/ultimate-tinymce/addons/imgmap/jscripts/functions.js
  191. +2,900 −0 plugins/ultimate-tinymce/addons/imgmap/jscripts/imgmap.js
  192. +202 −0 plugins/ultimate-tinymce/addons/imgmap/jscripts/imgmap_packed.js
  193. +37 −0 plugins/ultimate-tinymce/addons/imgmap/jscripts/lang_de.js
  194. +37 −0 plugins/ultimate-tinymce/addons/imgmap/jscripts/lang_en.js
  195. +37 −0 plugins/ultimate-tinymce/addons/imgmap/jscripts/lang_es.js
  196. +37 −0 plugins/ultimate-tinymce/addons/imgmap/jscripts/lang_fr.js
  197. +37 −0 plugins/ultimate-tinymce/addons/imgmap/jscripts/lang_hu.js
  198. +37 −0 plugins/ultimate-tinymce/addons/imgmap/jscripts/lang_pt.js
  199. +7 −0 plugins/ultimate-tinymce/addons/imgmap/langs/en.js
  200. +109 −0 plugins/ultimate-tinymce/addons/imgmap/popup.html
  201. +1 −0  plugins/ultimate-tinymce/addons/insertdatetime/editor_plugin.js
  202. +83 −0 plugins/ultimate-tinymce/addons/insertdatetime/editor_plugin_src.js
  203. +48 −0 plugins/ultimate-tinymce/addons/jwl_span/jwl_span.js
  204. +3 −0  plugins/ultimate-tinymce/addons/jwl_span/langs/en.js
  205. BIN  plugins/ultimate-tinymce/addons/jwl_span/span.png
  206. +1 −0  plugins/ultimate-tinymce/addons/layer/editor_plugin.js
  207. +262 −0 plugins/ultimate-tinymce/addons/layer/editor_plugin_src.js
  208. +1 −0  plugins/ultimate-tinymce/addons/loremipsum/editor_plugin.js
  209. +80 −0 plugins/ultimate-tinymce/addons/loremipsum/editor_plugin_src.js
  210. BIN  plugins/ultimate-tinymce/addons/loremipsum/img/loremipsum.gif
  211. BIN  plugins/ultimate-tinymce/addons/loremipsum/img/loremipsum.png
  212. BIN  plugins/ultimate-tinymce/addons/loremipsum/img/loremipsum_de.gif
  213. +1 −0  plugins/ultimate-tinymce/addons/loremipsum/js/loremipsum.js
  214. +118 −0 plugins/ultimate-tinymce/addons/loremipsum/js/loremipsum_src.js
  215. +14 −0 plugins/ultimate-tinymce/addons/loremipsum/langs/ca.js
  216. +20 −0 plugins/ultimate-tinymce/addons/loremipsum/langs/ca_dlg.js
  217. +14 −0 plugins/ultimate-tinymce/addons/loremipsum/langs/cs.js
  218. +20 −0 plugins/ultimate-tinymce/addons/loremipsum/langs/cs_dlg.js
  219. +14 −0 plugins/ultimate-tinymce/addons/loremipsum/langs/de.js
  220. +20 −0 plugins/ultimate-tinymce/addons/loremipsum/langs/de_dlg.js
  221. +14 −0 plugins/ultimate-tinymce/addons/loremipsum/langs/en.js
  222. +20 −0 plugins/ultimate-tinymce/addons/loremipsum/langs/en_dlg.js
  223. +14 −0 plugins/ultimate-tinymce/addons/loremipsum/langs/es.js
  224. +20 −0 plugins/ultimate-tinymce/addons/loremipsum/langs/es_dlg.js
  225. +54 −0 plugins/ultimate-tinymce/addons/loremipsum/loremipsum.html
  226. +48 −0 plugins/ultimate-tinymce/addons/mailto/editor_plugin.js
  227. +49 −0 plugins/ultimate-tinymce/addons/mailto/editor_plugin_src.js
  228. BIN  plugins/ultimate-tinymce/addons/mailto/images/mailto.gif
  229. +4 −0 plugins/ultimate-tinymce/addons/mailto/langs/en.js
  230. +6 −0 plugins/ultimate-tinymce/addons/mailto/langs/es.js
  231. +17 −0 plugins/ultimate-tinymce/addons/media/css/media.css
  232. +1 −0  plugins/ultimate-tinymce/addons/media/editor_plugin.js
  233. +890 −0 plugins/ultimate-tinymce/addons/media/editor_plugin_src.js
  234. +73 −0 plugins/ultimate-tinymce/addons/media/js/embed.js
  235. +464 −0 plugins/ultimate-tinymce/addons/media/js/media.js
  236. +1 −0  plugins/ultimate-tinymce/addons/media/langs/en_dlg.js
  237. +922 −0 plugins/ultimate-tinymce/addons/media/media.htm
  238. BIN  plugins/ultimate-tinymce/addons/media/moxieplayer.swf
  239. +1 −0  plugins/ultimate-tinymce/addons/nonbreaking/editor_plugin.js
  240. +54 −0 plugins/ultimate-tinymce/addons/nonbreaking/editor_plugin_src.js
  241. +1 −0  plugins/ultimate-tinymce/addons/preview/editor_plugin.js
  242. +53 −0 plugins/ultimate-tinymce/addons/preview/editor_plugin_src.js
  243. +28 −0 plugins/ultimate-tinymce/addons/preview/example.html
  244. +73 −0 plugins/ultimate-tinymce/addons/preview/jscripts/embed.js
  245. +17 −0 plugins/ultimate-tinymce/addons/preview/preview.html
  246. +1 −0  plugins/ultimate-tinymce/addons/print/editor_plugin.js
  247. +34 −0 plugins/ultimate-tinymce/addons/print/editor_plugin_src.js
  248. +6 −0 plugins/ultimate-tinymce/addons/searchreplace/css/searchreplace.css
  249. +1 −0  plugins/ultimate-tinymce/addons/searchreplace/editor_plugin.js
  250. +61 −0 plugins/ultimate-tinymce/addons/searchreplace/editor_plugin_src.js
  251. +142 −0 plugins/ultimate-tinymce/addons/searchreplace/js/searchreplace.js
  252. +1 −0  plugins/ultimate-tinymce/addons/searchreplace/langs/en_dlg.js
  253. +100 −0 plugins/ultimate-tinymce/addons/searchreplace/searchreplace.htm
  254. +26 −0 plugins/ultimate-tinymce/addons/shortcodes/css/shortcodes.css
  255. +47 −0 plugins/ultimate-tinymce/addons/shortcodes/editor_plugin_src.js
  256. BIN  plugins/ultimate-tinymce/addons/shortcodes/img/shortcodes.gif
  257. BIN  plugins/ultimate-tinymce/addons/shortcodes/img/wordpress-shortcode.png
  258. +14 −0 plugins/ultimate-tinymce/addons/shortcodes/js/dialog.js
  259. +4 −0 plugins/ultimate-tinymce/addons/shortcodes/langs/en.js
  260. +17 −0 plugins/ultimate-tinymce/addons/shortcodes/langs/en_dlg.js
  261. +49 −0 plugins/ultimate-tinymce/addons/shortcodes/shortcodes.php
  262. +13 −0 plugins/ultimate-tinymce/addons/style/css/props.css
  263. +1 −0  plugins/ultimate-tinymce/addons/style/editor_plugin.js
  264. +55 −0 plugins/ultimate-tinymce/addons/style/editor_plugin_src.js
  265. +635 −0 plugins/ultimate-tinymce/addons/style/js/props.js
  266. +1 −0  plugins/ultimate-tinymce/addons/style/langs/en_dlg.js
  267. +840 −0 plugins/ultimate-tinymce/addons/style/props.htm
  268. +180 −0 plugins/ultimate-tinymce/addons/table/cell.htm
  269. +17 −0 plugins/ultimate-tinymce/addons/table/css/cell.css
  270. +25 −0 plugins/ultimate-tinymce/addons/table/css/row.css
  271. +13 −0 plugins/ultimate-tinymce/addons/table/css/table.css
  272. +1 −0  plugins/ultimate-tinymce/addons/table/editor_plugin.js
  273. +1,408 −0 plugins/ultimate-tinymce/addons/table/editor_plugin_src.js
  274. +319 −0 plugins/ultimate-tinymce/addons/table/js/cell.js
  275. +27 −0 plugins/ultimate-tinymce/addons/table/js/merge_cells.js
  276. +237 −0 plugins/ultimate-tinymce/addons/table/js/row.js
  277. +484 −0 plugins/ultimate-tinymce/addons/table/js/table.js
  278. +1 −0  plugins/ultimate-tinymce/addons/table/langs/en_dlg.js
  279. +32 −0 plugins/ultimate-tinymce/addons/table/merge_cells.htm
  280. +158 −0 plugins/ultimate-tinymce/addons/table/row.htm
  281. +188 −0 plugins/ultimate-tinymce/addons/table/table.htm
  282. +131 −0 plugins/ultimate-tinymce/addons/tableDropdown/editor_plugin.js
  283. +18 −0 plugins/ultimate-tinymce/addons/tagwrap/__notes.txt
  284. +33 −0 plugins/ultimate-tinymce/addons/tagwrap/css/tagwrap.css
  285. +47 −0 plugins/ultimate-tinymce/addons/tagwrap/editor_plugin_src.js
  286. BIN  plugins/ultimate-tinymce/addons/tagwrap/img/html5.png
  287. BIN  plugins/ultimate-tinymce/addons/tagwrap/img/tagwrap.png
  288. BIN  plugins/ultimate-tinymce/addons/tagwrap/img/tinymce_help.png
  289. +14 −0 plugins/ultimate-tinymce/addons/tagwrap/js/dialog.js
  290. +5 −0 plugins/ultimate-tinymce/addons/tagwrap/langs/en.js
  291. +550 −0 plugins/ultimate-tinymce/addons/tagwrap/langs/en_dlg.js
  292. +55 −0 plugins/ultimate-tinymce/addons/tagwrap/tags/a.php
  293. +45 −0 plugins/ultimate-tinymce/addons/tagwrap/tags/abbr.php
  294. +51 −0 plugins/ultimate-tinymce/addons/tagwrap/tags/area.php
  295. +45 −0 plugins/ultimate-tinymce/addons/tagwrap/tags/aside.php
  296. +45 −0 plugins/ultimate-tinymce/addons/tagwrap/tags/audio.php
  297. +52 −0 plugins/ultimate-tinymce/addons/tagwrap/tags/base.php
  298. +45 −0 plugins/ultimate-tinymce/addons/tagwrap/tags/bdo.php
  299. +45 −0 plugins/ultimate-tinymce/addons/tagwrap/tags/body.php
  300. +45 −0 plugins/ultimate-tinymce/addons/tagwrap/tags/br.php
Sorry, we could not display the entire diff because too many files (745) changed.
View
6 plugins/ultimate-tinymce/__dev_notes.txt
@@ -0,0 +1,6 @@
+* Must Update Tinymce folder when new version of Wordpress or Tinymce is released.
+
+TO-DO:
+* SHortcodes acting funny on various installations. /***** DONE *****/
+* Extra space sometimes inserted with HTML magic.
+* Drag and Drop functionality for buttons.
View
1  plugins/ultimate-tinymce/addons/acheck/editor_plugin.js
@@ -0,0 +1 @@
+(function(){tinymce.PluginManager.requireLangPack('acheck');tinymce.create('tinymce.plugins.AcheckPlugin',{init:function(ed,url){ed.addCommand('mceACheck',function(){var theCode='<html><body onLoad="document.accessform.submit();"> \n';theCode+='<h1>Submitting Code for Accessibility Checking.....</h1>\n';theCode+='<form action="http://achecker.ca/checker/index.php" name="accessform" method="post"> \n';theCode+='<input type="hidden" name="gid[]" value="8" /> \n';theCode+='<input type="hidden" name="show_source" value="1" /> \n';theCode+='<textarea name="validate_content">'+tinyMCE.activeEditor.getContent({format:'raw'})+'</textarea>\n';theCode+='<input type="submit" /></form> \n';theCode+='</body></html> \n';accessWin=window.open('','accessWin','');accessWin.document.writeln(theCode);accessWin.document.close();});ed.addButton('acheck',{title:'acheck.desc',cmd:'mceACheck',image:url+'/img/acheck.gif'});ed.onNodeChange.add(function(ed,cm,n){cm.setActive('acheck',n.nodeName=='acheck');});},createControl:function(n,cm){return null;},getInfo:function(){return{longname:'ACheck Plugin',author:'ATutor',authorurl:'http://www.atutor.ca',infourl:'http://www.atutor.ca',version:"1.0"};}});tinymce.PluginManager.add('acheck',tinymce.plugins.AcheckPlugin);})();
View
83 plugins/ultimate-tinymce/addons/acheck/editor_plugin_src.js
@@ -0,0 +1,83 @@
+/**
+ * $Id: editor_plugin_src.js 201 2008-04-17 15:56:56Z cindy $
+ *
+ * @author Cindy Li
+ * @copyright Copyright © 2008, ATutor, All rights reserved.
+ */
+
+(function() {
+ // Load plugin specific language pack
+ tinymce.PluginManager.requireLangPack('acheck');
+
+ tinymce.create('tinymce.plugins.AcheckPlugin', {
+ /**
+ * Initializes the plugin, this will be executed after the plugin has been created.
+ * This call is done before the editor instance has finished it's initialization so use the onInit event
+ * of the editor instance to intercept that event.
+ *
+ * @param {tinymce.Editor} ed Editor instance that the plugin is initialized in.
+ * @param {string} url Absolute URL to where the plugin is located.
+ */
+ init : function(ed, url) {
+ // Register the command so that it can be invoked by using tinyMCE.activeEditor.execCommand('mceACheck');
+ ed.addCommand('mceACheck', function() {
+
+ var theCode = '<html><body onLoad="document.accessform.submit();"> \n';
+ theCode += '<h1>Submitting Code for Accessibility Checking.....</h1>\n';
+ theCode += '<form action="http://achecker.ca/checker/index.php" name="accessform" method="post"> \n';
+ theCode += '<input type="hidden" name="gid[]" value="8" /> \n';
+ theCode += '<textarea name="validate_content">' + tinyMCE.activeEditor.getContent({format : 'raw'}) + '</textarea>\n';
+ theCode += '<input type="submit" /></form> \n';
+ theCode += '</body></html> \n';
+ accessWin = window.open('', 'accessWin', '');
+ accessWin.document.writeln(theCode);
+ accessWin.document.close();
+ });
+
+ // Register ACheck button
+ ed.addButton('acheck', {
+ title : 'acheck.desc',
+ cmd : 'mceACheck',
+ image : url + '/img/acheck.gif'
+ });
+
+ // Add a node change handler, selects the button in the UI when a image is selected
+ ed.onNodeChange.add(function(ed, cm, n) {
+ cm.setActive('acheck', n.nodeName == 'acheck');
+ });
+ },
+
+ /**
+ * Creates control instances based in the incomming name. This method is normally not
+ * needed since the addButton method of the tinymce.Editor class is a more easy way of adding buttons
+ * but you sometimes need to create more complex controls like listboxes, split buttons etc then this
+ * method can be used to create those.
+ *
+ * @param {String} n Name of the control to create.
+ * @param {tinymce.ControlManager} cm Control manager to use inorder to create new control.
+ * @return {tinymce.ui.Control} New control instance or null if no control was created.
+ */
+ createControl : function(n, cm) {
+ return null;
+ },
+
+ /**
+ * Returns information about the plugin as a name/value array.
+ * The current keys are longname, author, authorurl, infourl and version.
+ *
+ * @return {Object} Name/value array containing information about the plugin.
+ */
+ getInfo : function() {
+ return {
+ longname : 'ACheck Plugin',
+ author : 'ATutor',
+ authorurl : 'http://www.atutor.ca',
+ infourl : 'http://www.atutor.ca',
+ version : "1.0"
+ };
+ }
+ });
+
+ // Register plugin
+ tinymce.PluginManager.add('acheck', tinymce.plugins.AcheckPlugin);
+})();
View
BIN  plugins/ultimate-tinymce/addons/acheck/img/acheck.gif
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN  plugins/ultimate-tinymce/addons/acheck/img/acheck.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
19 plugins/ultimate-tinymce/addons/acheck/js/dialog.js
@@ -0,0 +1,19 @@
+tinyMCEPopup.requireLangPack();
+
+var ExampleDialog = {
+ init : function() {
+ var f = document.forms[0];
+
+ // Get the selected contents as text and place it in the input
+ f.someval.value = tinyMCEPopup.editor.selection.getContent({format : 'text'});
+ f.somearg.value = tinyMCEPopup.getWindowArg('some_custom_arg');
+ },
+
+ insert : function() {
+ // Insert the contents from the input into the document
+ tinyMCEPopup.editor.execCommand('mceInsertContent', false, document.forms[0].someval.value);
+ tinyMCEPopup.close();
+ }
+};
+
+tinyMCEPopup.onInit.add(ExampleDialog.init, ExampleDialog);
View
3  plugins/ultimate-tinymce/addons/acheck/langs/en.js
@@ -0,0 +1,3 @@
+tinyMCE.addI18n('en.acheck',{
+ desc : 'Check Accessibility'
+});
View
3  plugins/ultimate-tinymce/addons/acheck/langs/en_dlg.js
@@ -0,0 +1,3 @@
+tinyMCE.addI18n('en.acheck_dlg',{
+ title : 'ATRC Accessibility Checker'
+});
View
5 plugins/ultimate-tinymce/addons/advhr/css/advhr.css
@@ -0,0 +1,5 @@
+input.radio {border:1px none #000; background:transparent; vertical-align:middle;}
+.panel_wrapper div.current {height:80px;}
+#width {width:50px; vertical-align:middle;}
+#width2 {width:50px; vertical-align:middle;}
+#size {width:100px;}
View
1  plugins/ultimate-tinymce/addons/advhr/editor_plugin.js
@@ -0,0 +1 @@
+(function(){tinymce.create("tinymce.plugins.AdvancedHRPlugin",{init:function(a,b){a.addCommand("mceAdvancedHr",function(){a.windowManager.open({file:b+"/rule.htm",width:250+parseInt(a.getLang("advhr.delta_width",0)),height:160+parseInt(a.getLang("advhr.delta_height",0)),inline:1},{plugin_url:b})});a.addButton("advhr",{title:"advhr.advhr_desc",cmd:"mceAdvancedHr"});a.onNodeChange.add(function(d,c,e){c.setActive("advhr",e.nodeName=="HR")});a.onClick.add(function(c,d){d=d.target;if(d.nodeName==="HR"){c.selection.select(d)}})},getInfo:function(){return{longname:"Advanced HR",author:"Moxiecode Systems AB",authorurl:"http://tinymce.moxiecode.com",infourl:"http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/advhr",version:tinymce.majorVersion+"."+tinymce.minorVersion}}});tinymce.PluginManager.add("advhr",tinymce.plugins.AdvancedHRPlugin)})();
View
57 plugins/ultimate-tinymce/addons/advhr/editor_plugin_src.js
@@ -0,0 +1,57 @@
+/**
+ * editor_plugin_src.js
+ *
+ * Copyright 2009, Moxiecode Systems AB
+ * Released under LGPL License.
+ *
+ * License: http://tinymce.moxiecode.com/license
+ * Contributing: http://tinymce.moxiecode.com/contributing
+ */
+
+(function() {
+ tinymce.create('tinymce.plugins.AdvancedHRPlugin', {
+ init : function(ed, url) {
+ // Register commands
+ ed.addCommand('mceAdvancedHr', function() {
+ ed.windowManager.open({
+ file : url + '/rule.htm',
+ width : 250 + parseInt(ed.getLang('advhr.delta_width', 0)),
+ height : 160 + parseInt(ed.getLang('advhr.delta_height', 0)),
+ inline : 1
+ }, {
+ plugin_url : url
+ });
+ });
+
+ // Register buttons
+ ed.addButton('advhr', {
+ title : 'advhr.advhr_desc',
+ cmd : 'mceAdvancedHr'
+ });
+
+ ed.onNodeChange.add(function(ed, cm, n) {
+ cm.setActive('advhr', n.nodeName == 'HR');
+ });
+
+ ed.onClick.add(function(ed, e) {
+ e = e.target;
+
+ if (e.nodeName === 'HR')
+ ed.selection.select(e);
+ });
+ },
+
+ getInfo : function() {
+ return {
+ longname : 'Advanced HR',
+ author : 'Moxiecode Systems AB',
+ authorurl : 'http://tinymce.moxiecode.com',
+ infourl : 'http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/advhr',
+ version : tinymce.majorVersion + "." + tinymce.minorVersion
+ };
+ }
+ });
+
+ // Register plugin
+ tinymce.PluginManager.add('advhr', tinymce.plugins.AdvancedHRPlugin);
+})();
View
43 plugins/ultimate-tinymce/addons/advhr/js/rule.js
@@ -0,0 +1,43 @@
+var AdvHRDialog = {
+ init : function(ed) {
+ var dom = ed.dom, f = document.forms[0], n = ed.selection.getNode(), w;
+
+ w = dom.getAttrib(n, 'width');
+ f.width.value = w ? parseInt(w) : (dom.getStyle('width') || '');
+ f.size.value = dom.getAttrib(n, 'size') || parseInt(dom.getStyle('height')) || '';
+ f.noshade.checked = !!dom.getAttrib(n, 'noshade') || !!dom.getStyle('border-width');
+ selectByValue(f, 'width2', w.indexOf('%') != -1 ? '%' : 'px');
+ },
+
+ update : function() {
+ var ed = tinyMCEPopup.editor, h, f = document.forms[0], st = '';
+
+ h = '<hr';
+
+ if (f.size.value) {
+ h += ' size="' + f.size.value + '"';
+ st += ' height:' + f.size.value + 'px;';
+ }
+
+ if (f.width.value) {
+ h += ' width="' + f.width.value + (f.width2.value == '%' ? '%' : '') + '"';
+ st += ' width:' + f.width.value + (f.width2.value == '%' ? '%' : 'px') + ';';
+ }
+
+ if (f.noshade.checked) {
+ h += ' noshade="noshade"';
+ st += ' border-width: 1px; border-style: solid; border-color: #CCCCCC; color: #ffffff;';
+ }
+
+ if (ed.settings.inline_styles)
+ h += ' style="' + tinymce.trim(st) + '"';
+
+ h += ' />';
+
+ ed.execCommand("mceInsertContent", false, h);
+ tinyMCEPopup.close();
+ }
+};
+
+tinyMCEPopup.requireLangPack();
+tinyMCEPopup.onInit.add(AdvHRDialog.init, AdvHRDialog);
View
13 plugins/ultimate-tinymce/addons/advhr/langs/en_dlg.js
@@ -0,0 +1,13 @@
+tinyMCE.addI18n('en.advhr_dlg',{
+ desc: "Advanced HR",
+
+ size:"Height",
+ noshade:"No Shadow",
+ width:"Width",
+ normal:"Normal",
+ widthunits:"Units"
+});
+
+tinyMCE.addI18n('en.advhr',{
+ delta_width: "Width"
+});
View
58 plugins/ultimate-tinymce/addons/advhr/rule.htm
@@ -0,0 +1,58 @@
+<!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>{#advhr.advhr_desc}</title>
+ <script type="text/javascript" src="../../tinymce/tiny_mce_popup.js"></script>
+ <script type="text/javascript" src="../../tinymce/mctabs.js"></script>
+ <script type="text/javascript" src="../../tinymce/form_utils.js"></script>
+ <script type="text/javascript" src="js/rule.js"></script>
+ <link href="css/advhr.css" rel="stylesheet" type="text/css" />
+</head>
+<body role="application">
+<form onsubmit="AdvHRDialog.update();return false;" action="#">
+ <div class="tabs">
+ <ul>
+ <li id="general_tab" class="current" aria-controls="general_panel"><span><a href="javascript:mcTabs.displayTab('general_tab','general_panel');" onmousedown="return false;">{#advhr.advhr_desc}</a></span></li>
+ </ul>
+ </div>
+
+ <div class="panel_wrapper">
+ <div id="general_panel" class="panel current">
+ <table role="presentation" border="0" cellpadding="4" cellspacing="0">
+ <tr role="group" aria-labelledby="width_label">
+ <td><label id="width_label" for="width">{#advhr_dlg.width}</label></td>
+ <td class="nowrap">
+ <input id="width" name="width" type="text" value="" class="mceFocus" />
+ <span style="display:none;" id="width_unit_label">{#advhr_dlg.widthunits}</span>
+ <select name="width2" id="width2" aria-labelledby="width_unit_label">
+ <option value="">px</option>
+ <option value="%">%</option>
+ </select>
+ </td>
+ </tr>
+ <tr>
+ <td><label for="size">{#advhr_dlg.size}</label></td>
+ <td><select id="size" name="size">
+ <option value="">{#advhr_dlg.normal}</option>
+ <option value="1">1</option>
+ <option value="2">2</option>
+ <option value="3">3</option>
+ <option value="4">4</option>
+ <option value="5">5</option>
+ </select></td>
+ </tr>
+ <tr>
+ <td><label for="noshade">{#advhr_dlg.noshade}</label></td>
+ <td><input type="checkbox" name="noshade" id="noshade" class="radio" /></td>
+ </tr>
+ </table>
+ </div>
+ </div>
+
+ <div class="mceActionPanel">
+ <input type="submit" id="insert" name="insert" value="{#insert}" />
+ <input type="button" id="cancel" name="cancel" value="{#cancel}" onclick="tinyMCEPopup.close();" />
+ </div>
+</form>
+</body>
+</html>
View
13 plugins/ultimate-tinymce/addons/advimage/css/advimage.css
@@ -0,0 +1,13 @@
+#src_list, #over_list, #out_list {width:280px;}
+.mceActionPanel {margin-top:7px;}
+.alignPreview {border:1px solid #000; width:140px; height:140px; overflow:hidden; padding:5px;}
+.checkbox {border:0;}
+.panel_wrapper div.current {height:305px;}
+#prev {margin:0; border:1px solid #000; width:428px; height:150px; overflow:auto;}
+#align, #classlist {width:150px;}
+#width, #height {vertical-align:middle; width:50px; text-align:center;}
+#vspace, #hspace, #border {vertical-align:middle; width:30px; text-align:center;}
+#class_list {width:180px;}
+input {width: 280px;}
+#constrain, #onmousemovecheck {width:auto;}
+#id, #dir, #lang, #usemap, #longdesc {width:200px;}
View
1  plugins/ultimate-tinymce/addons/advimage/editor_plugin.js
@@ -0,0 +1 @@
+(function(){tinymce.create("tinymce.plugins.AdvancedImagePlugin",{init:function(a,b){a.addCommand("mceAdvImage",function(){if(a.dom.getAttrib(a.selection.getNode(),"class","").indexOf("mceItem")!=-1){return}a.windowManager.open({file:b+"/image.htm",width:480+parseInt(a.getLang("advimage.delta_width",0)),height:385+parseInt(a.getLang("advimage.delta_height",0)),inline:1},{plugin_url:b})});a.addButton("image",{title:"advimage.image_desc",cmd:"mceAdvImage"})},getInfo:function(){return{longname:"Advanced image",author:"Moxiecode Systems AB",authorurl:"http://tinymce.moxiecode.com",infourl:"http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/advimage",version:tinymce.majorVersion+"."+tinymce.minorVersion}}});tinymce.PluginManager.add("advimage",tinymce.plugins.AdvancedImagePlugin)})();
View
50 plugins/ultimate-tinymce/addons/advimage/editor_plugin_src.js
@@ -0,0 +1,50 @@
+/**
+ * editor_plugin_src.js
+ *
+ * Copyright 2009, Moxiecode Systems AB
+ * Released under LGPL License.
+ *
+ * License: http://tinymce.moxiecode.com/license
+ * Contributing: http://tinymce.moxiecode.com/contributing
+ */
+
+(function() {
+ tinymce.create('tinymce.plugins.AdvancedImagePlugin', {
+ init : function(ed, url) {
+ // Register commands
+ ed.addCommand('mceAdvImage', function() {
+ // Internal image object like a flash placeholder
+ if (ed.dom.getAttrib(ed.selection.getNode(), 'class', '').indexOf('mceItem') != -1)
+ return;
+
+ ed.windowManager.open({
+ file : url + '/image.htm',
+ width : 480 + parseInt(ed.getLang('advimage.delta_width', 0)),
+ height : 385 + parseInt(ed.getLang('advimage.delta_height', 0)),
+ inline : 1
+ }, {
+ plugin_url : url
+ });
+ });
+
+ // Register buttons
+ ed.addButton('image', {
+ title : 'advimage.image_desc',
+ cmd : 'mceAdvImage'
+ });
+ },
+
+ getInfo : function() {
+ return {
+ longname : 'Advanced image',
+ author : 'Moxiecode Systems AB',
+ authorurl : 'http://tinymce.moxiecode.com',
+ infourl : 'http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/advimage',
+ version : tinymce.majorVersion + "." + tinymce.minorVersion
+ };
+ }
+ });
+
+ // Register plugin
+ tinymce.PluginManager.add('advimage', tinymce.plugins.AdvancedImagePlugin);
+})();
View
235 plugins/ultimate-tinymce/addons/advimage/image.htm
@@ -0,0 +1,235 @@
+<!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>{#advimage_dlg.dialog_title}</title>
+ <script type="text/javascript" src="../../tinymce/tiny_mce_popup.js"></script>
+ <script type="text/javascript" src="../../tinymce/mctabs.js"></script>
+ <script type="text/javascript" src="../../tinymce/form_utils.js"></script>
+ <script type="text/javascript" src="../../tinymce/validate.js"></script>
+ <script type="text/javascript" src="../../tinymce/editable_selects.js"></script>
+ <script type="text/javascript" src="js/image.js"></script>
+ <link href="css/advimage.css" rel="stylesheet" type="text/css" />
+</head>
+<body id="advimage" style="display: none" role="application" aria-labelledby="app_title">
+ <span id="app_title" style="display:none">{#advimage_dlg.dialog_title}</span>
+ <form onsubmit="ImageDialog.insert();return false;" action="#">
+ <div class="tabs">
+ <ul>
+ <li id="general_tab" class="current" aria-controls="general_panel"><span><a href="javascript:mcTabs.displayTab('general_tab','general_panel');" onmousedown="return false;">{#advimage_dlg.tab_general}</a></span></li>
+ <li id="appearance_tab" aria-controls="appearance_panel"><span><a href="javascript:mcTabs.displayTab('appearance_tab','appearance_panel');" onmousedown="return false;">{#advimage_dlg.tab_appearance}</a></span></li>
+ <li id="advanced_tab" aria-controls="advanced_panel"><span><a href="javascript:mcTabs.displayTab('advanced_tab','advanced_panel');" onmousedown="return false;">{#advimage_dlg.tab_advanced}</a></span></li>
+ </ul>
+ </div>
+
+ <div class="panel_wrapper">
+ <div id="general_panel" class="panel current">
+ <fieldset>
+ <legend>{#advimage_dlg.general}</legend>
+
+ <table role="presentation" class="properties">
+ <tr>
+ <td class="column1"><label id="srclabel" for="src">{#advimage_dlg.src}</label></td>
+ <td colspan="2"><table role="presentation" border="0" cellspacing="0" cellpadding="0">
+ <tr>
+ <td><input name="src" type="text" id="src" value="" class="mceFocus" onchange="ImageDialog.showPreviewImage(this.value);" aria-required="true" /></td>
+ <td id="srcbrowsercontainer">&nbsp;</td>
+ </tr>
+ </table></td>
+ </tr>
+ <tr>
+ <td><label for="src_list">{#advimage_dlg.image_list}</label></td>
+ <td><select id="src_list" name="src_list" onchange="document.getElementById('src').value=this.options[this.selectedIndex].value;document.getElementById('alt').value=this.options[this.selectedIndex].text;document.getElementById('title').value=this.options[this.selectedIndex].text;ImageDialog.showPreviewImage(this.options[this.selectedIndex].value);"><option value=""></option></select></td>
+ </tr>
+ <tr>
+ <td class="column1"><label id="altlabel" for="alt">{#advimage_dlg.alt}</label></td>
+ <td colspan="2"><input id="alt" name="alt" type="text" value="" /></td>
+ </tr>
+ <tr>
+ <td class="column1"><label id="titlelabel" for="title">{#advimage_dlg.title}</label></td>
+ <td colspan="2"><input id="title" name="title" type="text" value="" /></td>
+ </tr>
+ </table>
+ </fieldset>
+
+ <fieldset>
+ <legend>{#advimage_dlg.preview}</legend>
+ <div id="prev"></div>
+ </fieldset>
+ </div>
+
+ <div id="appearance_panel" class="panel">
+ <fieldset>
+ <legend>{#advimage_dlg.tab_appearance}</legend>
+
+ <table role="presentation" border="0" cellpadding="4" cellspacing="0">
+ <tr>
+ <td class="column1"><label id="alignlabel" for="align">{#advimage_dlg.align}</label></td>
+ <td><select id="align" name="align" onchange="ImageDialog.updateStyle('align');ImageDialog.changeAppearance();">
+ <option value="">{#not_set}</option>
+ <option value="baseline">{#advimage_dlg.align_baseline}</option>
+ <option value="top">{#advimage_dlg.align_top}</option>
+ <option value="middle">{#advimage_dlg.align_middle}</option>
+ <option value="bottom">{#advimage_dlg.align_bottom}</option>
+ <option value="text-top">{#advimage_dlg.align_texttop}</option>
+ <option value="text-bottom">{#advimage_dlg.align_textbottom}</option>
+ <option value="left">{#advimage_dlg.align_left}</option>
+ <option value="right">{#advimage_dlg.align_right}</option>
+ </select>
+ </td>
+ <td rowspan="6" valign="top">
+ <div class="alignPreview">
+ <img id="alignSampleImg" src="img/sample.gif" alt="{#advimage_dlg.example_img}" />
+ Lorem ipsum, Dolor sit amet, consectetuer adipiscing loreum ipsum edipiscing elit, sed diam
+ nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat.Loreum ipsum
+ edipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam
+ erat volutpat.
+ </div>
+ </td>
+ </tr>
+
+ <tr role="group" aria-labelledby="widthlabel">
+ <td class="column1"><label id="widthlabel" for="width">{#advimage_dlg.dimensions}</label></td>
+ <td class="nowrap">
+ <span style="display:none" id="width_voiceLabel">{#advimage_dlg.width}</span>
+ <input name="width" type="text" id="width" value="" size="5" maxlength="5" class="size" onchange="ImageDialog.changeHeight();" aria-labelledby="width_voiceLabel" /> x
+ <span style="display:none" id="height_voiceLabel">{#advimage_dlg.height}</span>
+ <input name="height" type="text" id="height" value="" size="5" maxlength="5" class="size" onchange="ImageDialog.changeWidth();" aria-labelledby="height_voiceLabel" /> px
+ </td>
+ </tr>
+
+ <tr>
+ <td>&nbsp;</td>
+ <td><table role="presentation" border="0" cellpadding="0" cellspacing="0">
+ <tr>
+ <td><input id="constrain" type="checkbox" name="constrain" class="checkbox" /></td>
+ <td><label id="constrainlabel" for="constrain">{#advimage_dlg.constrain_proportions}</label></td>
+ </tr>
+ </table></td>
+ </tr>
+
+ <tr>
+ <td class="column1"><label id="vspacelabel" for="vspace">{#advimage_dlg.vspace}</label></td>
+ <td><input name="vspace" type="text" id="vspace" value="" size="3" maxlength="3" class="number" onchange="ImageDialog.updateStyle('vspace');ImageDialog.changeAppearance();" onblur="ImageDialog.updateStyle('vspace');ImageDialog.changeAppearance();" />
+ </td>
+ </tr>
+
+ <tr>
+ <td class="column1"><label id="hspacelabel" for="hspace">{#advimage_dlg.hspace}</label></td>
+ <td><input name="hspace" type="text" id="hspace" value="" size="3" maxlength="3" class="number" onchange="ImageDialog.updateStyle('hspace');ImageDialog.changeAppearance();" onblur="ImageDialog.updateStyle('hspace');ImageDialog.changeAppearance();" /></td>
+ </tr>
+
+ <tr>
+ <td class="column1"><label id="borderlabel" for="border">{#advimage_dlg.border}</label></td>
+ <td><input id="border" name="border" type="text" value="" size="3" maxlength="3" class="number" onchange="ImageDialog.updateStyle('border');ImageDialog.changeAppearance();" onblur="ImageDialog.updateStyle('border');ImageDialog.changeAppearance();" /></td>
+ </tr>
+
+ <tr>
+ <td><label for="class_list">{#class_name}</label></td>
+ <td colspan="2"><select id="class_list" name="class_list" class="mceEditableSelect"><option value=""></option></select></td>
+ </tr>
+
+ <tr>
+ <td class="column1"><label id="stylelabel" for="style">{#advimage_dlg.style}</label></td>
+ <td colspan="2"><input id="style" name="style" type="text" value="" onchange="ImageDialog.changeAppearance();" /></td>
+ </tr>
+
+ <!-- <tr>
+ <td class="column1"><label id="classeslabel" for="classes">{#advimage_dlg.classes}</label></td>
+ <td colspan="2"><input id="classes" name="classes" type="text" value="" onchange="selectByValue(this.form,'classlist',this.value,true);" /></td>
+ </tr> -->
+ </table>
+ </fieldset>
+ </div>
+
+ <div id="advanced_panel" class="panel">
+ <fieldset>
+ <legend>{#advimage_dlg.swap_image}</legend>
+
+ <input type="checkbox" id="onmousemovecheck" name="onmousemovecheck" class="checkbox" onclick="ImageDialog.setSwapImage(this.checked);" aria-controls="onmouseoversrc onmouseoutsrc" />
+ <label id="onmousemovechecklabel" for="onmousemovecheck">{#advimage_dlg.alt_image}</label>
+
+ <table role="presentation" border="0" cellpadding="4" cellspacing="0" width="100%">
+ <tr>
+ <td class="column1"><label id="onmouseoversrclabel" for="onmouseoversrc">{#advimage_dlg.mouseover}</label></td>
+ <td><table role="presentation" border="0" cellspacing="0" cellpadding="0">
+ <tr>
+ <td><input id="onmouseoversrc" name="onmouseoversrc" type="text" value="" /></td>
+ <td id="onmouseoversrccontainer">&nbsp;</td>
+ </tr>
+ </table></td>
+ </tr>
+ <tr>
+ <td><label for="over_list">{#advimage_dlg.image_list}</label></td>
+ <td><select id="over_list" name="over_list" onchange="document.getElementById('onmouseoversrc').value=this.options[this.selectedIndex].value;"><option value=""></option></select></td>
+ </tr>
+ <tr>
+ <td class="column1"><label id="onmouseoutsrclabel" for="onmouseoutsrc">{#advimage_dlg.mouseout}</label></td>
+ <td class="column2"><table role="presentation" border="0" cellspacing="0" cellpadding="0">
+ <tr>
+ <td><input id="onmouseoutsrc" name="onmouseoutsrc" type="text" value="" /></td>
+ <td id="onmouseoutsrccontainer">&nbsp;</td>
+ </tr>
+ </table></td>
+ </tr>
+ <tr>
+ <td><label for="out_list">{#advimage_dlg.image_list}</label></td>
+ <td><select id="out_list" name="out_list" onchange="document.getElementById('onmouseoutsrc').value=this.options[this.selectedIndex].value;"><option value=""></option></select></td>
+ </tr>
+ </table>
+ </fieldset>
+
+ <fieldset>
+ <legend>{#advimage_dlg.misc}</legend>
+
+ <table role="presentation" border="0" cellpadding="4" cellspacing="0">
+ <tr>
+ <td class="column1"><label id="idlabel" for="id">{#advimage_dlg.id}</label></td>
+ <td><input id="id" name="id" type="text" value="" /></td>
+ </tr>
+
+ <tr>
+ <td class="column1"><label id="dirlabel" for="dir">{#advimage_dlg.langdir}</label></td>
+ <td>
+ <select id="dir" name="dir" onchange="ImageDialog.changeAppearance();">
+ <option value="">{#not_set}</option>
+ <option value="ltr">{#advimage_dlg.ltr}</option>
+ <option value="rtl">{#advimage_dlg.rtl}</option>
+ </select>
+ </td>
+ </tr>
+
+ <tr>
+ <td class="column1"><label id="langlabel" for="lang">{#advimage_dlg.langcode}</label></td>
+ <td>
+ <input id="lang" name="lang" type="text" value="" />
+ </td>
+ </tr>
+
+ <tr>
+ <td class="column1"><label id="usemaplabel" for="usemap">{#advimage_dlg.map}</label></td>
+ <td>
+ <input id="usemap" name="usemap" type="text" value="" />
+ </td>
+ </tr>
+
+ <tr>
+ <td class="column1"><label id="longdesclabel" for="longdesc">{#advimage_dlg.long_desc}</label></td>
+ <td><table role="presentation" border="0" cellspacing="0" cellpadding="0">
+ <tr>
+ <td><input id="longdesc" name="longdesc" type="text" value="" /></td>
+ <td id="longdesccontainer">&nbsp;</td>
+ </tr>
+ </table></td>
+ </tr>
+ </table>
+ </fieldset>
+ </div>
+ </div>
+
+ <div class="mceActionPanel">
+ <input type="submit" id="insert" name="insert" value="{#insert}" />
+ <input type="button" id="cancel" name="cancel" value="{#cancel}" onclick="tinyMCEPopup.close();" />
+ </div>
+ </form>
+</body>
+</html>
View
BIN  plugins/ultimate-tinymce/addons/advimage/img/sample.gif
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
462 plugins/ultimate-tinymce/addons/advimage/js/image.js
@@ -0,0 +1,462 @@
+var ImageDialog = {
+ preInit : function() {
+ var url;
+
+ tinyMCEPopup.requireLangPack();
+
+ if (url = tinyMCEPopup.getParam("external_image_list_url"))
+ document.write('<script language="javascript" type="text/javascript" src="' + tinyMCEPopup.editor.documentBaseURI.toAbsolute(url) + '"></script>');
+ },
+
+ init : function(ed) {
+ var f = document.forms[0], nl = f.elements, ed = tinyMCEPopup.editor, dom = ed.dom, n = ed.selection.getNode(), fl = tinyMCEPopup.getParam('external_image_list', 'tinyMCEImageList');
+
+ tinyMCEPopup.resizeToInnerSize();
+ this.fillClassList('class_list');
+ this.fillFileList('src_list', fl);
+ this.fillFileList('over_list', fl);
+ this.fillFileList('out_list', fl);
+ TinyMCE_EditableSelects.init();
+
+ if (n.nodeName == 'IMG') {
+ nl.src.value = dom.getAttrib(n, 'src');
+ nl.width.value = dom.getAttrib(n, 'width');
+ nl.height.value = dom.getAttrib(n, 'height');
+ nl.alt.value = dom.getAttrib(n, 'alt');
+ nl.title.value = dom.getAttrib(n, 'title');
+ nl.vspace.value = this.getAttrib(n, 'vspace');
+ nl.hspace.value = this.getAttrib(n, 'hspace');
+ nl.border.value = this.getAttrib(n, 'border');
+ selectByValue(f, 'align', this.getAttrib(n, 'align'));
+ selectByValue(f, 'class_list', dom.getAttrib(n, 'class'), true, true);
+ nl.style.value = dom.getAttrib(n, 'style');
+ nl.id.value = dom.getAttrib(n, 'id');
+ nl.dir.value = dom.getAttrib(n, 'dir');
+ nl.lang.value = dom.getAttrib(n, 'lang');
+ nl.usemap.value = dom.getAttrib(n, 'usemap');
+ nl.longdesc.value = dom.getAttrib(n, 'longdesc');
+ nl.insert.value = ed.getLang('update');
+
+ if (/^\s*this.src\s*=\s*\'([^\']+)\';?\s*$/.test(dom.getAttrib(n, 'onmouseover')))
+ nl.onmouseoversrc.value = dom.getAttrib(n, 'onmouseover').replace(/^\s*this.src\s*=\s*\'([^\']+)\';?\s*$/, '$1');
+
+ if (/^\s*this.src\s*=\s*\'([^\']+)\';?\s*$/.test(dom.getAttrib(n, 'onmouseout')))
+ nl.onmouseoutsrc.value = dom.getAttrib(n, 'onmouseout').replace(/^\s*this.src\s*=\s*\'([^\']+)\';?\s*$/, '$1');
+
+ if (ed.settings.inline_styles) {
+ // Move attribs to styles
+ if (dom.getAttrib(n, 'align'))
+ this.updateStyle('align');
+
+ if (dom.getAttrib(n, 'hspace'))
+ this.updateStyle('hspace');
+
+ if (dom.getAttrib(n, 'border'))
+ this.updateStyle('border');
+
+ if (dom.getAttrib(n, 'vspace'))
+ this.updateStyle('vspace');
+ }
+ }
+
+ // Setup browse button
+ document.getElementById('srcbrowsercontainer').innerHTML = getBrowserHTML('srcbrowser','src','image','theme_advanced_image');
+ if (isVisible('srcbrowser'))
+ document.getElementById('src').style.width = '260px';
+
+ // Setup browse button
+ document.getElementById('onmouseoversrccontainer').innerHTML = getBrowserHTML('overbrowser','onmouseoversrc','image','theme_advanced_image');
+ if (isVisible('overbrowser'))
+ document.getElementById('onmouseoversrc').style.width = '260px';
+
+ // Setup browse button
+ document.getElementById('onmouseoutsrccontainer').innerHTML = getBrowserHTML('outbrowser','onmouseoutsrc','image','theme_advanced_image');
+ if (isVisible('outbrowser'))
+ document.getElementById('onmouseoutsrc').style.width = '260px';
+
+ // If option enabled default contrain proportions to checked
+ if (ed.getParam("advimage_constrain_proportions", true))
+ f.constrain.checked = true;
+
+ // Check swap image if valid data
+ if (nl.onmouseoversrc.value || nl.onmouseoutsrc.value)
+ this.setSwapImage(true);
+ else
+ this.setSwapImage(false);
+
+ this.changeAppearance();
+ this.showPreviewImage(nl.src.value, 1);
+ },
+
+ insert : function(file, title) {
+ var ed = tinyMCEPopup.editor, t = this, f = document.forms[0];
+
+ if (f.src.value === '') {
+ if (ed.selection.getNode().nodeName == 'IMG') {
+ ed.dom.remove(ed.selection.getNode());
+ ed.execCommand('mceRepaint');
+ }
+
+ tinyMCEPopup.close();
+ return;
+ }
+
+ if (tinyMCEPopup.getParam("accessibility_warnings", 1)) {
+ if (!f.alt.value) {
+ tinyMCEPopup.confirm(tinyMCEPopup.getLang('advimage_dlg.missing_alt'), function(s) {
+ if (s)
+ t.insertAndClose();
+ });
+
+ return;
+ }
+ }
+
+ t.insertAndClose();
+ },
+
+ insertAndClose : function() {
+ var ed = tinyMCEPopup.editor, f = document.forms[0], nl = f.elements, v, args = {}, el;
+
+ tinyMCEPopup.restoreSelection();
+
+ // Fixes crash in Safari
+ if (tinymce.isWebKit)
+ ed.getWin().focus();
+
+ if (!ed.settings.inline_styles) {
+ args = {
+ vspace : nl.vspace.value,
+ hspace : nl.hspace.value,
+ border : nl.border.value,
+ align : getSelectValue(f, 'align')
+ };
+ } else {
+ // Remove deprecated values
+ args = {
+ vspace : '',
+ hspace : '',
+ border : '',
+ align : ''
+ };
+ }
+
+ tinymce.extend(args, {
+ src : nl.src.value.replace(/ /g, '%20'),
+ width : nl.width.value,
+ height : nl.height.value,
+ alt : nl.alt.value,
+ title : nl.title.value,
+ 'class' : getSelectValue(f, 'class_list'),
+ style : nl.style.value,
+ id : nl.id.value,
+ dir : nl.dir.value,
+ lang : nl.lang.value,
+ usemap : nl.usemap.value,
+ longdesc : nl.longdesc.value
+ });
+
+ args.onmouseover = args.onmouseout = '';
+
+ if (f.onmousemovecheck.checked) {
+ if (nl.onmouseoversrc.value)
+ args.onmouseover = "this.src='" + nl.onmouseoversrc.value + "';";
+
+ if (nl.onmouseoutsrc.value)
+ args.onmouseout = "this.src='" + nl.onmouseoutsrc.value + "';";
+ }
+
+ el = ed.selection.getNode();
+
+ if (el && el.nodeName == 'IMG') {
+ ed.dom.setAttribs(el, args);
+ } else {
+ tinymce.each(args, function(value, name) {
+ if (value === "") {
+ delete args[name];
+ }
+ });
+
+ ed.execCommand('mceInsertContent', false, tinyMCEPopup.editor.dom.createHTML('img', args), {skip_undo : 1});
+ ed.undoManager.add();
+ }
+
+ tinyMCEPopup.editor.execCommand('mceRepaint');
+ tinyMCEPopup.editor.focus();
+ tinyMCEPopup.close();
+ },
+
+ getAttrib : function(e, at) {
+ var ed = tinyMCEPopup.editor, dom = ed.dom, v, v2;
+
+ if (ed.settings.inline_styles) {
+ switch (at) {
+ case 'align':
+ if (v = dom.getStyle(e, 'float'))
+ return v;
+
+ if (v = dom.getStyle(e, 'vertical-align'))
+ return v;
+
+ break;
+
+ case 'hspace':
+ v = dom.getStyle(e, 'margin-left')
+ v2 = dom.getStyle(e, 'margin-right');
+
+ if (v && v == v2)
+ return parseInt(v.replace(/[^0-9]/g, ''));
+
+ break;
+
+ case 'vspace':
+ v = dom.getStyle(e, 'margin-top')
+ v2 = dom.getStyle(e, 'margin-bottom');
+ if (v && v == v2)
+ return parseInt(v.replace(/[^0-9]/g, ''));
+
+ break;
+
+ case 'border':
+ v = 0;
+
+ tinymce.each(['top', 'right', 'bottom', 'left'], function(sv) {
+ sv = dom.getStyle(e, 'border-' + sv + '-width');
+
+ // False or not the same as prev
+ if (!sv || (sv != v && v !== 0)) {
+ v = 0;
+ return false;
+ }
+
+ if (sv)
+ v = sv;
+ });
+
+ if (v)
+ return parseInt(v.replace(/[^0-9]/g, ''));
+
+ break;
+ }
+ }
+
+ if (v = dom.getAttrib(e, at))
+ return v;
+
+ return '';
+ },
+
+ setSwapImage : function(st) {
+ var f = document.forms[0];
+
+ f.onmousemovecheck.checked = st;
+ setBrowserDisabled('overbrowser', !st);
+ setBrowserDisabled('outbrowser', !st);
+
+ if (f.over_list)
+ f.over_list.disabled = !st;
+
+ if (f.out_list)
+ f.out_list.disabled = !st;
+
+ f.onmouseoversrc.disabled = !st;
+ f.onmouseoutsrc.disabled = !st;
+ },
+
+ fillClassList : function(id) {
+ var dom = tinyMCEPopup.dom, lst = dom.get(id), v, cl;
+
+ if (v = tinyMCEPopup.getParam('theme_advanced_styles')) {
+ cl = [];
+
+ tinymce.each(v.split(';'), function(v) {
+ var p = v.split('=');
+
+ cl.push({'title' : p[0], 'class' : p[1]});
+ });
+ } else
+ cl = tinyMCEPopup.editor.dom.getClasses();
+
+ if (cl.length > 0) {
+ lst.options.length = 0;
+ lst.options[lst.options.length] = new Option(tinyMCEPopup.getLang('not_set'), '');
+
+ tinymce.each(cl, function(o) {
+ lst.options[lst.options.length] = new Option(o.title || o['class'], o['class']);
+ });
+ } else
+ dom.remove(dom.getParent(id, 'tr'));
+ },
+
+ fillFileList : function(id, l) {
+ var dom = tinyMCEPopup.dom, lst = dom.get(id), v, cl;
+
+ l = typeof(l) === 'function' ? l() : window[l];
+ lst.options.length = 0;
+
+ if (l && l.length > 0) {
+ lst.options[lst.options.length] = new Option('', '');
+
+ tinymce.each(l, function(o) {
+ lst.options[lst.options.length] = new Option(o[0], o[1]);
+ });
+ } else
+ dom.remove(dom.getParent(id, 'tr'));
+ },
+
+ resetImageData : function() {
+ var f = document.forms[0];
+
+ f.elements.width.value = f.elements.height.value = '';
+ },
+
+ updateImageData : function(img, st) {
+ var f = document.forms[0];
+
+ if (!st) {
+ f.elements.width.value = img.width;
+ f.elements.height.value = img.height;
+ }
+
+ this.preloadImg = img;
+ },
+
+ changeAppearance : function() {
+ var ed = tinyMCEPopup.editor, f = document.forms[0], img = document.getElementById('alignSampleImg');
+
+ if (img) {
+ if (ed.getParam('inline_styles')) {
+ ed.dom.setAttrib(img, 'style', f.style.value);
+ } else {
+ img.align = f.align.value;
+ img.border = f.border.value;
+ img.hspace = f.hspace.value;
+ img.vspace = f.vspace.value;
+ }
+ }
+ },
+
+ changeHeight : function() {
+ var f = document.forms[0], tp, t = this;
+
+ if (!f.constrain.checked || !t.preloadImg) {
+ return;
+ }
+
+ if (f.width.value == "" || f.height.value == "")
+ return;
+
+ tp = (parseInt(f.width.value) / parseInt(t.preloadImg.width)) * t.preloadImg.height;
+ f.height.value = tp.toFixed(0);
+ },
+
+ changeWidth : function() {
+ var f = document.forms[0], tp, t = this;
+
+ if (!f.constrain.checked || !t.preloadImg) {
+ return;
+ }
+
+ if (f.width.value == "" || f.height.value == "")
+ return;
+
+ tp = (parseInt(f.height.value) / parseInt(t.preloadImg.height)) * t.preloadImg.width;
+ f.width.value = tp.toFixed(0);
+ },
+
+ updateStyle : function(ty) {
+ var dom = tinyMCEPopup.dom, b, bStyle, bColor, v, isIE = tinymce.isIE, f = document.forms[0], img = dom.create('img', {style : dom.get('style').value});
+
+ if (tinyMCEPopup.editor.settings.inline_styles) {
+ // Handle align
+ if (ty == 'align') {
+ dom.setStyle(img, 'float', '');
+ dom.setStyle(img, 'vertical-align', '');
+
+ v = getSelectValue(f, 'align');
+ if (v) {
+ if (v == 'left' || v == 'right')
+ dom.setStyle(img, 'float', v);
+ else
+ img.style.verticalAlign = v;
+ }
+ }
+
+ // Handle border
+ if (ty == 'border') {
+ b = img.style.border ? img.style.border.split(' ') : [];
+ bStyle = dom.getStyle(img, 'border-style');
+ bColor = dom.getStyle(img, 'border-color');
+
+ dom.setStyle(img, 'border', '');
+
+ v = f.border.value;
+ if (v || v == '0') {
+ if (v == '0')
+ img.style.border = isIE ? '0' : '0 none none';
+ else {
+ if (b.length == 3 && b[isIE ? 2 : 1])
+ bStyle = b[isIE ? 2 : 1];
+ else if (!bStyle || bStyle == 'none')
+ bStyle = 'solid';
+ if (b.length == 3 && b[isIE ? 0 : 2])
+ bColor = b[isIE ? 0 : 2];
+ else if (!bColor || bColor == 'none')
+ bColor = 'black';
+ img.style.border = v + 'px ' + bStyle + ' ' + bColor;
+ }
+ }
+ }
+
+ // Handle hspace
+ if (ty == 'hspace') {
+ dom.setStyle(img, 'marginLeft', '');
+ dom.setStyle(img, 'marginRight', '');
+
+ v = f.hspace.value;
+ if (v) {
+ img.style.marginLeft = v + 'px';
+ img.style.marginRight = v + 'px';
+ }
+ }
+
+ // Handle vspace
+ if (ty == 'vspace') {
+ dom.setStyle(img, 'marginTop', '');
+ dom.setStyle(img, 'marginBottom', '');
+
+ v = f.vspace.value;
+ if (v) {
+ img.style.marginTop = v + 'px';
+ img.style.marginBottom = v + 'px';
+ }
+ }
+
+ // Merge
+ dom.get('style').value = dom.serializeStyle(dom.parseStyle(img.style.cssText), 'img');
+ }
+ },
+
+ changeMouseMove : function() {
+ },
+
+ showPreviewImage : function(u, st) {
+ if (!u) {
+ tinyMCEPopup.dom.setHTML('prev', '');
+ return;
+ }
+
+ if (!st && tinyMCEPopup.getParam("advimage_update_dimensions_onchange", true))
+ this.resetImageData();
+
+ u = tinyMCEPopup.editor.documentBaseURI.toAbsolute(u);
+
+ if (!st)
+ tinyMCEPopup.dom.setHTML('prev', '<img id="previewImg" src="' + u + '" border="0" onload="ImageDialog.updateImageData(this);" onerror="ImageDialog.resetImageData();" />');
+ else
+ tinyMCEPopup.dom.setHTML('prev', '<img id="previewImg" src="' + u + '" border="0" onload="ImageDialog.updateImageData(this, 1);" />');
+ }
+};
+
+ImageDialog.preInit();
+tinyMCEPopup.onInit.add(ImageDialog.init, ImageDialog);
View
1  plugins/ultimate-tinymce/addons/advimage/langs/en_dlg.js
@@ -0,0 +1 @@
+tinyMCE.addI18n('en.advimage_dlg',{"image_list":"Image List","align_right":"Right","align_left":"Left","align_textbottom":"Text Bottom","align_texttop":"Text Top","align_bottom":"Bottom","align_middle":"Middle","align_top":"Top","align_baseline":"Baseline",align:"Alignment",hspace:"Horizontal Space",vspace:"Vertical Space",dimensions:"Dimensions",border:"Border",list:"Image List",alt:"Image Description",src:"Image URL","dialog_title":"Insert/Edit Image","missing_alt":"Are you sure you want to continue without including an Image Description? Without it the image may not be accessible to some users with disabilities, or to those using a text browser, or browsing the Web with images turned off.","example_img":"Appearance Preview Image",misc:"Miscellaneous",mouseout:"For Mouse Out",mouseover:"For Mouse Over","alt_image":"Alternative Image","swap_image":"Swap Image",map:"Image Map",id:"ID",rtl:"Right to Left",ltr:"Left to Right",classes:"Classes",style:"Style","long_desc":"Long Description Link",langcode:"Language Code",langdir:"Language Direction","constrain_proportions":"Constrain Proportions",preview:"Preview",title:"Title",general:"General","tab_advanced":"Advanced","tab_appearance":"Appearance","tab_general":"General",width:"Width",height:"Height"});
View
1  plugins/ultimate-tinymce/addons/advlist/editor_plugin.js
@@ -0,0 +1 @@
+(function(){var a=tinymce.each;tinymce.create("tinymce.plugins.AdvListPlugin",{init:function(b,c){var d=this;d.editor=b;function e(g){var f=[];a(g.split(/,/),function(h){f.push({title:"advlist."+(h=="default"?"def":h.replace(/-/g,"_")),styles:{listStyleType:h=="default"?"":h}})});return f}d.numlist=b.getParam("advlist_number_styles")||e("default,lower-alpha,lower-greek,lower-roman,upper-alpha,upper-roman");d.bullist=b.getParam("advlist_bullet_styles")||e("default,circle,disc,square");if(tinymce.isIE&&/MSIE [2-7]/.test(navigator.userAgent)){d.isIE7=true}},createControl:function(d,b){var f=this,e,i,g=f.editor;if(d=="numlist"||d=="bullist"){if(f[d][0].title=="advlist.def"){i=f[d][0]}function c(j,l){var k=true;a(l.styles,function(n,m){if(g.dom.getStyle(j,m)!=n){k=false;return false}});return k}function h(){var k,l=g.dom,j=g.selection;k=l.getParent(j.getNode(),"ol,ul");if(!k||k.nodeName==(d=="bullist"?"OL":"UL")||c(k,i)){g.execCommand(d=="bullist"?"InsertUnorderedList":"InsertOrderedList")}if(i){k=l.getParent(j.getNode(),"ol,ul");if(k){l.setStyles(k,i.styles);k.removeAttribute("data-mce-style")}}g.focus()}e=b.createSplitButton(d,{title:"advanced."+d+"_desc","class":"mce_"+d,onclick:function(){h()}});e.onRenderMenu.add(function(j,k){k.onHideMenu.add(function(){if(f.bookmark){g.selection.moveToBookmark(f.bookmark);f.bookmark=0}});k.onShowMenu.add(function(){var n=g.dom,m=n.getParent(g.selection.getNode(),"ol,ul"),l;if(m||i){l=f[d];a(k.items,function(o){var p=true;o.setSelected(0);if(m&&!o.isDisabled()){a(l,function(q){if(q.id==o.id){if(!c(m,q)){p=false;return false}}});if(p){o.setSelected(1)}}});if(!m){k.items[i.id].setSelected(1)}}g.focus();if(tinymce.isIE){f.bookmark=g.selection.getBookmark(1)}});k.add({id:g.dom.uniqueId(),title:"advlist.types","class":"mceMenuItemTitle",titleItem:true}).setDisabled(1);a(f[d],function(l){if(f.isIE7&&l.styles.listStyleType=="lower-greek"){return}l.id=g.dom.uniqueId();k.add({id:l.id,title:l.title,onclick:function(){i=l;h()}})})});return e}},getInfo:function(){return{longname:"Advanced lists",author:"Moxiecode Systems AB",authorurl:"http://tinymce.moxiecode.com",infourl:"http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/advlist",version:tinymce.majorVersion+"."+tinymce.minorVersion}}});tinymce.PluginManager.add("advlist",tinymce.plugins.AdvListPlugin)})();
View
176 plugins/ultimate-tinymce/addons/advlist/editor_plugin_src.js
@@ -0,0 +1,176 @@
+/**
+ * editor_plugin_src.js
+ *
+ * Copyright 2009, Moxiecode Systems AB
+ * Released under LGPL License.
+ *
+ * License: http://tinymce.moxiecode.com/license
+ * Contributing: http://tinymce.moxiecode.com/contributing
+ */
+
+(function() {
+ var each = tinymce.each;
+
+ tinymce.create('tinymce.plugins.AdvListPlugin', {
+ init : function(ed, url) {
+ var t = this;
+
+ t.editor = ed;
+
+ function buildFormats(str) {
+ var formats = [];
+
+ each(str.split(/,/), function(type) {
+ formats.push({
+ title : 'advlist.' + (type == 'default' ? 'def' : type.replace(/-/g, '_')),
+ styles : {
+ listStyleType : type == 'default' ? '' : type
+ }
+ });
+ });
+
+ return formats;
+ };
+
+ // Setup number formats from config or default
+ t.numlist = ed.getParam("advlist_number_styles") || buildFormats("default,lower-alpha,lower-greek,lower-roman,upper-alpha,upper-roman");
+ t.bullist = ed.getParam("advlist_bullet_styles") || buildFormats("default,circle,disc,square");
+
+ if (tinymce.isIE && /MSIE [2-7]/.test(navigator.userAgent))
+ t.isIE7 = true;
+ },
+
+ createControl: function(name, cm) {
+ var t = this, btn, format, editor = t.editor;
+
+ if (name == 'numlist' || name == 'bullist') {
+ // Default to first item if it's a default item
+ if (t[name][0].title == 'advlist.def')
+ format = t[name][0];
+
+ function hasFormat(node, format) {
+ var state = true;
+
+ each(format.styles, function(value, name) {
+ // Format doesn't match
+ if (editor.dom.getStyle(node, name) != value) {
+ state = false;
+ return false;
+ }
+ });
+
+ return state;
+ };
+
+ function applyListFormat() {
+ var list, dom = editor.dom, sel = editor.selection;
+
+ // Check for existing list element
+ list = dom.getParent(sel.getNode(), 'ol,ul');
+
+ // Switch/add list type if needed
+ if (!list || list.nodeName == (name == 'bullist' ? 'OL' : 'UL') || hasFormat(list, format))
+ editor.execCommand(name == 'bullist' ? 'InsertUnorderedList' : 'InsertOrderedList');
+
+ // Append styles to new list element
+ if (format) {
+ list = dom.getParent(sel.getNode(), 'ol,ul');
+ if (list) {
+ dom.setStyles(list, format.styles);
+ list.removeAttribute('data-mce-style');
+ }
+ }
+
+ editor.focus();
+ };
+
+ btn = cm.createSplitButton(name, {
+ title : 'advanced.' + name + '_desc',
+ 'class' : 'mce_' + name,
+ onclick : function() {
+ applyListFormat();
+ }
+ });
+
+ btn.onRenderMenu.add(function(btn, menu) {
+ menu.onHideMenu.add(function() {
+ if (t.bookmark) {
+ editor.selection.moveToBookmark(t.bookmark);
+ t.bookmark = 0;
+ }
+ });
+
+ menu.onShowMenu.add(function() {
+ var dom = editor.dom, list = dom.getParent(editor.selection.getNode(), 'ol,ul'), fmtList;
+
+ if (list || format) {
+ fmtList = t[name];
+
+ // Unselect existing items
+ each(menu.items, function(item) {
+ var state = true;
+
+ item.setSelected(0);
+
+ if (list && !item.isDisabled()) {
+ each(fmtList, function(fmt) {
+ if (fmt.id == item.id) {
+ if (!hasFormat(list, fmt)) {
+ state = false;
+ return false;
+ }
+ }
+ });
+
+ if (state)
+ item.setSelected(1);
+ }
+ });
+
+ // Select the current format
+ if (!list)
+ menu.items[format.id].setSelected(1);
+ }
+
+ editor.focus();
+
+ // IE looses it's selection so store it away and restore it later
+ if (tinymce.isIE) {
+ t.bookmark = editor.selection.getBookmark(1);
+ }
+ });
+
+ menu.add({id : editor.dom.uniqueId(), title : 'advlist.types', 'class' : 'mceMenuItemTitle', titleItem: true}).setDisabled(1);
+
+ each(t[name], function(item) {
+ // IE<8 doesn't support lower-greek, skip it
+ if (t.isIE7 && item.styles.listStyleType == 'lower-greek')
+ return;
+
+ item.id = editor.dom.uniqueId();
+
+ menu.add({id : item.id, title : item.title, onclick : function() {
+ format = item;
+ applyListFormat();
+ }});
+ });
+ });
+
+ return btn;
+ }
+ },
+
+ getInfo : function() {
+ return {
+ longname : 'Advanced lists',
+ author : 'Moxiecode Systems AB',
+ authorurl : 'http://tinymce.moxiecode.com',
+ infourl : 'http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/advlist',
+ version : tinymce.majorVersion + "." + tinymce.minorVersion
+ };
+ }
+ });
+
+ // Register plugin
+ tinymce.PluginManager.add('advlist', tinymce.plugins.AdvListPlugin);
+})();
View
22 plugins/ultimate-tinymce/addons/clear/css/clear.css
@@ -0,0 +1,22 @@
+.mceClear {
+ border: 0px;
+ border-top: 1px dotted #cccccc;
+ display: block;
+ width: 100%;
+ height: 12px;
+ margin-top: 15px;
+}
+
+.mceClearleft {
+ background: #ffffff url(../images/clearleft.gif) no-repeat left top;
+}
+
+.mceClearright {
+ background: #ffffff url(../images/clearright.gif) no-repeat right top;
+}
+
+.mceClearboth {
+ background: #ffffff url(../images/clearboth.gif) no-repeat center top;
+}
+
+
View
126 plugins/ultimate-tinymce/addons/clear/editor_plugin.dev.js
@@ -0,0 +1,126 @@
+(function() {
+ // Load plugin specific language pack
+ tinymce.PluginManager.requireLangPack('clear');
+
+ tinymce.create('tinymce.plugins.Clear', {
+ /**
+ * Initializes the plugin, this will be executed after the plugin has been created.
+ * This call is done before the editor instance has finished it's initialization so use the onInit event
+ * of the editor instance to intercept that event.
+ *
+ * @param {tinymce.Editor} ed Editor instance that the plugin is initialized in.
+ * @param {string} url Absolute URL to where the plugin is located.
+ */
+ init : function(ed, url) {
+
+ ed.addButton('clearleft', {
+ title : 'clear.clearleft_desc',
+ cmd : 'clearLeft',
+ image : url + '/images/clearleft_button.gif'
+ });
+ ed.addButton('clearright', {
+ title : 'clear.clearright_desc',
+ cmd : 'clearRight',
+ image : url + '/images/clearright_button.gif'
+ });
+ ed.addButton('clearboth', {
+ title : 'clear.clearboth_desc',
+ cmd : 'clearBoth',
+ image : url + '/images/clearboth_button.gif'
+ });
+
+ var clearHTML = '<img src="' + url + '/images/trans.gif" style="clear:$1;" class="mceClear mceClear$1 mceItemNoResize" title="'+ed.getLang('clear.clear_alt')+'" />';
+ var insertClear = function(clear){
+ var html = clearHTML.replace(/\$1/g, clear);
+ ed.execCommand('mceInsertContent', false, html);
+ // ed.selection.setContent('');
+ };
+
+ ed.addCommand('clearLeft', function(){ insertClear('left'); });
+ ed.addCommand('clearRight', function(){ insertClear('right'); });
+ ed.addCommand('clearBoth', function(){ insertClear('both'); });
+
+ // Set active buttons if user selected pagebreak or more break
+ ed.onNodeChange.add(function(ed, cm, n) {
+ cm.setActive('clearleft', n.nodeName === 'IMG' && ed.dom.hasClass(n, 'mceClearleft'));
+ cm.setActive('clearright', n.nodeName === 'IMG' && ed.dom.hasClass(n, 'mceClearright'));
+ cm.setActive('clearboth', n.nodeName === 'IMG' && ed.dom.hasClass(n, 'mceClearboth'));
+ });
+
+ // Load plugin specific CSS into editor
+ ed.onInit.add(function() {
+ ed.dom.loadCSS(url + '/css/clear.css');
+ });
+
+ // Display clear instead if img in element path
+ ed.onPostRender.add(function() {
+ if (ed.theme.onResolveName) {
+ ed.theme.onResolveName.add(function(th, o) {
+ if (o.node.nodeName == 'IMG') {
+ if ( ed.dom.hasClass(o.node, 'mceClearleft') )
+ o.name = 'clear.left';
+ else if ( ed.dom.hasClass(o.node, 'mceClearright') )
+ o.name = 'clear.right';
+ else if ( ed.dom.hasClass(o.node, 'mceClearboth') )
+ o.name = 'clear.both';
+ }
+ });
+ }
+ });
+
+ // Replace clear with images
+ ed.onBeforeSetContent.add(function(ed, o) {
+ o.content = o.content.replace(/<div clear=" *([^" ]+) *"><\/div>/g, clearHTML);
+ o.content = o.content.replace(/<div style="clear: *([^"; ]+) *;?"><\/div>/g, clearHTML);
+ });
+
+ // Replace images with clear
+ ed.onPostProcess.add(function(ed, o) {
+ if (o.get){
+ o.content = o.content.replace(/<img[^>]+>/g, function(html) {
+ if (html.indexOf('class="mceClear') !== -1) {
+ var m, clear = (m = html.match(/mceClear([a-z]+)/)) ? m[1] : '';
+ html = '<div style="clear:'+clear+';"></div>';
+ }
+ return html;
+ });
+ }
+ });
+ },
+
+
+ /**
+ * Creates control instances based in the incomming name. This method is normally not
+ * needed since the addButton method of the tinymce.Editor class is a more easy way of adding buttons
+ * but you sometimes need to create more complex controls like listboxes, split buttons etc then this
+ * method can be used to create those.
+ *
+ * @param {String} n Name of the control to create.
+ * @param {tinymce.ControlManager} cm Control manager to use inorder to create new control.
+ * @return {tinymce.ui.Control} New control instance or null if no control was created.
+ */
+ createControl : function(n, cm) {
+ return null;
+ },
+
+ /**
+ * Returns information about the plugin as a name/value array.
+ * The current keys are longname, author, authorurl, infourl and version.
+ *
+ * @return {Object} Name/value array containing information about the plugin.
+ */
+ getInfo : function() {
+ return {
+ longname : 'Clear',
+ author : 'Miguel Ibero',
+ authorurl : 'http://www.peix.org',
+ infourl : 'http://www.peix.org/code',
+ version : "1.0"
+ };
+ }
+ });
+
+ // Register plugin
+ tinymce.PluginManager.add('clear', tinymce.plugins.Clear);
+})();
+
View
82 plugins/ultimate-tinymce/addons/clear/editor_plugin.js
@@ -0,0 +1,82 @@
+
+(function () {
+ tinymce.PluginManager.requireLangPack('clear');
+ tinymce.create('tinymce.plugins.Clear', {
+ init: function (ed, url) {
+ ed.addButton('clearleft', {
+ title: 'clear.clearleft_desc',
+ cmd: 'clearLeft',
+ image: url + '/images/clearleft_button.gif'
+ });
+ ed.addButton('clearright', {
+ title: 'clear.clearright_desc',
+ cmd: 'clearRight',
+ image: url + '/images/clearright_button.gif'
+ });
+ ed.addButton('clearboth', {
+ title: 'clear.clearboth_desc',
+ cmd: 'clearBoth',
+ image: url + '/images/clearboth_button.gif'
+ });
+ var clearHTML = '<img src="' + url + '/images/trans.gif" style="clear:$1;" class="mceClear mceClear$1 mceItemNoResize" title="' + ed.getLang('clear.clear_alt') + '" />';
+ var insertClear = function (clear) {
+ var html = clearHTML.replace(/\$1/g, clear);
+ ed.execCommand('mceInsertContent', false, html);
+ };
+ ed.addCommand('clearLeft', function () {
+ insertClear('left');
+ });
+ ed.addCommand('clearRight', function () {
+ insertClear('right');
+ });
+ ed.addCommand('clearBoth', function () {
+ insertClear('both');
+ });
+ ed.onNodeChange.add(function (ed, cm, n) {
+ cm.setActive('clearleft', n.nodeName === 'IMG' && ed.dom.hasClass(n, 'mceClearleft'));
+ cm.setActive('clearright', n.nodeName === 'IMG' && ed.dom.hasClass(n, 'mceClearright'));
+ cm.setActive('clearboth', n.nodeName === 'IMG' && ed.dom.hasClass(n, 'mceClearboth'));
+ });
+ ed.onInit.add(function () {
+ ed.dom.loadCSS(url + '/css/clear.css');
+ });
+ ed.onPostRender.add(function () {
+ if (ed.theme.onResolveName) {
+ ed.theme.onResolveName.add(function (th, o) {
+ if (o.node.nodeName == 'IMG') {
+ if (ed.dom.hasClass(o.node, 'mceClearleft')) o.name = 'clear.left';
+ else if (ed.dom.hasClass(o.node, 'mceClearright')) o.name = 'clear.right';
+ else if (ed.dom.hasClass(o.node, 'mceClearboth')) o.name = 'clear.both';
+ }
+ });
+ }
+ });
+ ed.onBeforeSetContent.add(function (ed, o) {
+ o.content = o.content.replace(/<div clear=" *([^" ]+) *"><\/div>/g, clearHTML);
+ o.content = o.content.replace(/<div style="clear: *([^"; ]+) *;?"><\/div>/g, clearHTML);
+ });
+ ed.onPostProcess.add(function (ed, o) {
+ if (o.get) o.content = o.content.replace(/<img[^>]+>/g, function (html) {
+ if (html.indexOf('class="mceClear') !== -1) {
+ var m, clear = (m = html.match(/mceClear([a-z]+)/)) ? m[1] : '';
+ html = '<div style="clear:' + clear + ';"></div>';
+ }
+ return html;
+ });
+ });
+ },
+ createControl: function (n, cm) {
+ return null;
+ },
+ getInfo: function () {
+ return {
+ longname: 'Clear',
+ author: 'Miguel Ibero',
+ authorurl: 'http://www.peix.org',
+ infourl: 'http://www.peix.org/code',
+ version: "1.0"
+ };
+ }
+ });
+ tinymce.PluginManager.add('clear', tinymce.plugins.Clear);
+})();
View
BIN  plugins/ultimate-tinymce/addons/clear/images/clearboth.gif
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN  plugins/ultimate-tinymce/addons/clear/images/clearboth_button.gif
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN  plugins/ultimate-tinymce/addons/clear/images/clearleft.gif
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN  plugins/ultimate-tinymce/addons/clear/images/clearleft_button.gif
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN  plugins/ultimate-tinymce/addons/clear/images/clearright.gif
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN  plugins/ultimate-tinymce/addons/clear/images/clearright_button.gif
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN  plugins/ultimate-tinymce/addons/clear/images/trans.gif
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
6 plugins/ultimate-tinymce/addons/clear/langs/en.js
@@ -0,0 +1,6 @@
+tinyMCE.addI18n('en.clear',{
+clearleft_desc:"Div Clear left",
+clearright_desc:"Div Clear right",
+clearboth_desc:"Div Clear both",
+clear_alt:"Div Clear"
+});
View
6 plugins/ultimate-tinymce/addons/clear/langs/es.js
@@ -0,0 +1,6 @@
+tinyMCE.addI18n('es.clear',{
+clearleft_desc:"Salir de flotante izquierdo",
+clearright_desc:"Salir de flotante derecho",
+clearboth_desc:"Salir de ambos flotantes",
+clear_alt:"Salir de flotante"
+});
View
33 plugins/ultimate-tinymce/addons/clker/dialog.htm
@@ -0,0 +1,33 @@
+<!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>Clker.com - The online royalty free public domain clip art</title>
+ <script type="text/javascript" src="../../tinymce/tiny_mce_popup.js"></script>
+ <script type="text/javascript" src="js/dialog.js"></script>
+ </head>
+ <body>
+ <form onsubmit="ClkerDialog.search();return false;" action="#">
+ <table width='100%'>
+ <tr>
+ <td valign='middle'>
+ <input type="text" style='font-size:1.5em' id="search" size='30' name="searchtext"/>&nbsp;&nbsp;&nbsp;
+ </td>
+ <td valign='middle'>
+ <div class="mceActionPanel">
+ <input type="button" id="insert" name="searchbut" value="Search" onclick="ClkerDialog.search();" />
+ <input type="button" id="cancel" name="cancel" value="{#cancel}" onclick="tinyMCEPopup.close();" />
+ </div>
+ </td>
+ <td valign='middle'>
+ <a href='http://www.clker.com' target='_blank'>Clker.com
+ plugin, V1.0</a>
+ </td>
+ </tr>
+ </table>
+ </form>
+
+ <div id='results'>
+ </div>
+
+ </body>
+</html>
View
81 plugins/ultimate-tinymce/addons/clker/editor_plugin.js
@@ -0,0 +1,81 @@
+/**
+ * $Id: editor_plugin_src.js 201 2007-02-12 15:56:56Z spocke $
+ *
+ * @author Moxiecode
+ * @copyright Copyright © 2004-2008, Moxiecode Systems AB, All rights reserved.
+ */
+
+(function() {
+ // Load plugin specific language pack
+ tinymce.PluginManager.requireLangPack('clker');
+
+ tinymce.create('tinymce.plugins.clkerPlugin', {
+ /**
+ * Initializes the plugin, this will be executed after the plugin has been created.
+ * This call is done before the editor instance has finished it's initialization so use the onInit event
+ * of the editor instance to intercept that event.
+ *
+ * @param {tinymce.Editor} ed Editor instance that the plugin is initialized in.
+ * @param {string} url Absolute URL to where the plugin is located.
+ */
+ init : function(ed, url) {
+ // Register the command so that it can be invoked by using tinyMCE.activeEditor.execCommand('mceExample');
+ ed.addCommand('mceclker', function() {
+ ed.windowManager.open({
+ file : url + '/dialog.htm',
+ width : 700 + parseInt(ed.getLang('clker.delta_width', 0)),
+ height : 450 + parseInt(ed.getLang('clker.delta_height', 0)),
+ inline : 1
+ }, {
+ plugin_url : url, // Plugin absolute URL
+ some_custom_arg : 'custom arg' // Custom argument
+ });
+ });
+
+ // Register clker button
+ ed.addButton('clker', {
+ title : 'clker.desc',
+ cmd : 'mceclker',
+ image : url + '/img/clker.gif'
+ });
+
+ // Add a node change handler, selects the button in the UI when a image is selected
+ ed.onNodeChange.add(function(ed, cm, n) {
+ cm.setActive('clker', n.nodeName == 'IMG');
+ });
+ },
+
+ /**
+ * Creates control instances based in the incomming name. This method is normally not
+ * needed since the addButton method of the tinymce.Editor class is a more easy way of adding buttons
+ * but you sometimes need to create more complex controls like listboxes, split buttons etc then this
+ * method can be used to create those.
+ *
+ * @param {String} n Name of the control to create.