use_tinymce 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (288) hide show
  1. data/MIT-LICENSE +20 -0
  2. data/README.markdown +48 -0
  3. data/Rakefile +44 -0
  4. data/assets/tinymce/changelog.txt +1303 -0
  5. data/assets/tinymce/examples/accessibility.html +101 -0
  6. data/assets/tinymce/examples/css/content.css +105 -0
  7. data/assets/tinymce/examples/css/word.css +53 -0
  8. data/assets/tinymce/examples/custom_formats.html +111 -0
  9. data/assets/tinymce/examples/full.html +101 -0
  10. data/assets/tinymce/examples/index.html +10 -0
  11. data/assets/tinymce/examples/lists/image_list.js +9 -0
  12. data/assets/tinymce/examples/lists/link_list.js +10 -0
  13. data/assets/tinymce/examples/lists/media_list.js +14 -0
  14. data/assets/tinymce/examples/lists/template_list.js +9 -0
  15. data/assets/tinymce/examples/media/logo.jpg +0 -0
  16. data/assets/tinymce/examples/media/logo_over.jpg +0 -0
  17. data/assets/tinymce/examples/media/sample.avi +0 -0
  18. data/assets/tinymce/examples/media/sample.dcr +0 -0
  19. data/assets/tinymce/examples/media/sample.flv +0 -0
  20. data/assets/tinymce/examples/media/sample.mov +0 -0
  21. data/assets/tinymce/examples/media/sample.ram +1 -0
  22. data/assets/tinymce/examples/media/sample.rm +0 -0
  23. data/assets/tinymce/examples/media/sample.swf +0 -0
  24. data/assets/tinymce/examples/menu.html +18 -0
  25. data/assets/tinymce/examples/simple.html +47 -0
  26. data/assets/tinymce/examples/skins.html +216 -0
  27. data/assets/tinymce/examples/templates/layout1.htm +15 -0
  28. data/assets/tinymce/examples/templates/snippet1.htm +1 -0
  29. data/assets/tinymce/examples/word.html +72 -0
  30. data/assets/tinymce/jscripts/tiny_mce/langs/en.js +223 -0
  31. data/assets/tinymce/jscripts/tiny_mce/license.txt +504 -0
  32. data/assets/tinymce/jscripts/tiny_mce/plugins/advhr/css/advhr.css +5 -0
  33. data/assets/tinymce/jscripts/tiny_mce/plugins/advhr/editor_plugin.js +1 -0
  34. data/assets/tinymce/jscripts/tiny_mce/plugins/advhr/editor_plugin_src.js +57 -0
  35. data/assets/tinymce/jscripts/tiny_mce/plugins/advhr/js/rule.js +43 -0
  36. data/assets/tinymce/jscripts/tiny_mce/plugins/advhr/langs/en_dlg.js +7 -0
  37. data/assets/tinymce/jscripts/tiny_mce/plugins/advhr/rule.htm +58 -0
  38. data/assets/tinymce/jscripts/tiny_mce/plugins/advimage/css/advimage.css +13 -0
  39. data/assets/tinymce/jscripts/tiny_mce/plugins/advimage/editor_plugin.js +1 -0
  40. data/assets/tinymce/jscripts/tiny_mce/plugins/advimage/editor_plugin_src.js +50 -0
  41. data/assets/tinymce/jscripts/tiny_mce/plugins/advimage/image.htm +235 -0
  42. data/assets/tinymce/jscripts/tiny_mce/plugins/advimage/img/sample.gif +0 -0
  43. data/assets/tinymce/jscripts/tiny_mce/plugins/advimage/js/image.js +458 -0
  44. data/assets/tinymce/jscripts/tiny_mce/plugins/advimage/langs/en_dlg.js +45 -0
  45. data/assets/tinymce/jscripts/tiny_mce/plugins/advlink/css/advlink.css +8 -0
  46. data/assets/tinymce/jscripts/tiny_mce/plugins/advlink/editor_plugin.js +1 -0
  47. data/assets/tinymce/jscripts/tiny_mce/plugins/advlink/editor_plugin_src.js +61 -0
  48. data/assets/tinymce/jscripts/tiny_mce/plugins/advlink/js/advlink.js +532 -0
  49. data/assets/tinymce/jscripts/tiny_mce/plugins/advlink/langs/en_dlg.js +54 -0
  50. data/assets/tinymce/jscripts/tiny_mce/plugins/advlink/link.htm +338 -0
  51. data/assets/tinymce/jscripts/tiny_mce/plugins/advlist/editor_plugin.js +1 -0
  52. data/assets/tinymce/jscripts/tiny_mce/plugins/advlist/editor_plugin_src.js +161 -0
  53. data/assets/tinymce/jscripts/tiny_mce/plugins/autolink/editor_plugin.js +1 -0
  54. data/assets/tinymce/jscripts/tiny_mce/plugins/autolink/editor_plugin_src.js +169 -0
  55. data/assets/tinymce/jscripts/tiny_mce/plugins/autoresize/editor_plugin.js +1 -0
  56. data/assets/tinymce/jscripts/tiny_mce/plugins/autoresize/editor_plugin_src.js +128 -0
  57. data/assets/tinymce/jscripts/tiny_mce/plugins/autosave/editor_plugin.js +1 -0
  58. data/assets/tinymce/jscripts/tiny_mce/plugins/autosave/editor_plugin_src.js +431 -0
  59. data/assets/tinymce/jscripts/tiny_mce/plugins/autosave/langs/en.js +4 -0
  60. data/assets/tinymce/jscripts/tiny_mce/plugins/bbcode/editor_plugin.js +1 -0
  61. data/assets/tinymce/jscripts/tiny_mce/plugins/bbcode/editor_plugin_src.js +120 -0
  62. data/assets/tinymce/jscripts/tiny_mce/plugins/contextmenu/editor_plugin.js +1 -0
  63. data/assets/tinymce/jscripts/tiny_mce/plugins/contextmenu/editor_plugin_src.js +161 -0
  64. data/assets/tinymce/jscripts/tiny_mce/plugins/directionality/editor_plugin.js +1 -0
  65. data/assets/tinymce/jscripts/tiny_mce/plugins/directionality/editor_plugin_src.js +82 -0
  66. data/assets/tinymce/jscripts/tiny_mce/plugins/emotions/editor_plugin.js +1 -0
  67. data/assets/tinymce/jscripts/tiny_mce/plugins/emotions/editor_plugin_src.js +43 -0
  68. data/assets/tinymce/jscripts/tiny_mce/plugins/emotions/emotions.htm +41 -0
  69. data/assets/tinymce/jscripts/tiny_mce/plugins/emotions/img/smiley-cool.gif +0 -0
  70. data/assets/tinymce/jscripts/tiny_mce/plugins/emotions/img/smiley-cry.gif +0 -0
  71. data/assets/tinymce/jscripts/tiny_mce/plugins/emotions/img/smiley-embarassed.gif +0 -0
  72. data/assets/tinymce/jscripts/tiny_mce/plugins/emotions/img/smiley-foot-in-mouth.gif +0 -0
  73. data/assets/tinymce/jscripts/tiny_mce/plugins/emotions/img/smiley-frown.gif +0 -0
  74. data/assets/tinymce/jscripts/tiny_mce/plugins/emotions/img/smiley-innocent.gif +0 -0
  75. data/assets/tinymce/jscripts/tiny_mce/plugins/emotions/img/smiley-kiss.gif +0 -0
  76. data/assets/tinymce/jscripts/tiny_mce/plugins/emotions/img/smiley-laughing.gif +0 -0
  77. data/assets/tinymce/jscripts/tiny_mce/plugins/emotions/img/smiley-money-mouth.gif +0 -0
  78. data/assets/tinymce/jscripts/tiny_mce/plugins/emotions/img/smiley-sealed.gif +0 -0
  79. data/assets/tinymce/jscripts/tiny_mce/plugins/emotions/img/smiley-smile.gif +0 -0
  80. data/assets/tinymce/jscripts/tiny_mce/plugins/emotions/img/smiley-surprised.gif +0 -0
  81. data/assets/tinymce/jscripts/tiny_mce/plugins/emotions/img/smiley-tongue-out.gif +0 -0
  82. data/assets/tinymce/jscripts/tiny_mce/plugins/emotions/img/smiley-undecided.gif +0 -0
  83. data/assets/tinymce/jscripts/tiny_mce/plugins/emotions/img/smiley-wink.gif +0 -0
  84. data/assets/tinymce/jscripts/tiny_mce/plugins/emotions/img/smiley-yell.gif +0 -0
  85. data/assets/tinymce/jscripts/tiny_mce/plugins/emotions/js/emotions.js +22 -0
  86. data/assets/tinymce/jscripts/tiny_mce/plugins/emotions/langs/en_dlg.js +20 -0
  87. data/assets/tinymce/jscripts/tiny_mce/plugins/example/dialog.htm +22 -0
  88. data/assets/tinymce/jscripts/tiny_mce/plugins/example/editor_plugin.js +1 -0
  89. data/assets/tinymce/jscripts/tiny_mce/plugins/example/editor_plugin_src.js +84 -0
  90. data/assets/tinymce/jscripts/tiny_mce/plugins/example/img/example.gif +0 -0
  91. data/assets/tinymce/jscripts/tiny_mce/plugins/example/js/dialog.js +19 -0
  92. data/assets/tinymce/jscripts/tiny_mce/plugins/example/langs/en.js +3 -0
  93. data/assets/tinymce/jscripts/tiny_mce/plugins/example/langs/en_dlg.js +3 -0
  94. data/assets/tinymce/jscripts/tiny_mce/plugins/fullpage/css/fullpage.css +143 -0
  95. data/assets/tinymce/jscripts/tiny_mce/plugins/fullpage/editor_plugin.js +1 -0
  96. data/assets/tinymce/jscripts/tiny_mce/plugins/fullpage/editor_plugin_src.js +399 -0
  97. data/assets/tinymce/jscripts/tiny_mce/plugins/fullpage/fullpage.htm +259 -0
  98. data/assets/tinymce/jscripts/tiny_mce/plugins/fullpage/js/fullpage.js +232 -0
  99. data/assets/tinymce/jscripts/tiny_mce/plugins/fullpage/langs/en_dlg.js +85 -0
  100. data/assets/tinymce/jscripts/tiny_mce/plugins/fullscreen/editor_plugin.js +1 -0
  101. data/assets/tinymce/jscripts/tiny_mce/plugins/fullscreen/editor_plugin_src.js +159 -0
  102. data/assets/tinymce/jscripts/tiny_mce/plugins/fullscreen/fullscreen.htm +109 -0
  103. data/assets/tinymce/jscripts/tiny_mce/plugins/iespell/editor_plugin.js +1 -0
  104. data/assets/tinymce/jscripts/tiny_mce/plugins/iespell/editor_plugin_src.js +54 -0
  105. data/assets/tinymce/jscripts/tiny_mce/plugins/inlinepopups/editor_plugin.js +1 -0
  106. data/assets/tinymce/jscripts/tiny_mce/plugins/inlinepopups/editor_plugin_src.js +696 -0
  107. data/assets/tinymce/jscripts/tiny_mce/plugins/inlinepopups/skins/clearlooks2/img/alert.gif +0 -0
  108. data/assets/tinymce/jscripts/tiny_mce/plugins/inlinepopups/skins/clearlooks2/img/button.gif +0 -0
  109. data/assets/tinymce/jscripts/tiny_mce/plugins/inlinepopups/skins/clearlooks2/img/buttons.gif +0 -0
  110. data/assets/tinymce/jscripts/tiny_mce/plugins/inlinepopups/skins/clearlooks2/img/confirm.gif +0 -0
  111. data/assets/tinymce/jscripts/tiny_mce/plugins/inlinepopups/skins/clearlooks2/img/corners.gif +0 -0
  112. data/assets/tinymce/jscripts/tiny_mce/plugins/inlinepopups/skins/clearlooks2/img/horizontal.gif +0 -0
  113. data/assets/tinymce/jscripts/tiny_mce/plugins/inlinepopups/skins/clearlooks2/img/vertical.gif +0 -0
  114. data/assets/tinymce/jscripts/tiny_mce/plugins/inlinepopups/skins/clearlooks2/window.css +90 -0
  115. data/assets/tinymce/jscripts/tiny_mce/plugins/inlinepopups/template.htm +387 -0
  116. data/assets/tinymce/jscripts/tiny_mce/plugins/insertdatetime/editor_plugin.js +1 -0
  117. data/assets/tinymce/jscripts/tiny_mce/plugins/insertdatetime/editor_plugin_src.js +83 -0
  118. data/assets/tinymce/jscripts/tiny_mce/plugins/layer/editor_plugin.js +1 -0
  119. data/assets/tinymce/jscripts/tiny_mce/plugins/layer/editor_plugin_src.js +214 -0
  120. data/assets/tinymce/jscripts/tiny_mce/plugins/legacyoutput/editor_plugin.js +1 -0
  121. data/assets/tinymce/jscripts/tiny_mce/plugins/legacyoutput/editor_plugin_src.js +139 -0
  122. data/assets/tinymce/jscripts/tiny_mce/plugins/lists/editor_plugin.js +1 -0
  123. data/assets/tinymce/jscripts/tiny_mce/plugins/lists/editor_plugin_src.js +617 -0
  124. data/assets/tinymce/jscripts/tiny_mce/plugins/media/css/media.css +17 -0
  125. data/assets/tinymce/jscripts/tiny_mce/plugins/media/editor_plugin.js +1 -0
  126. data/assets/tinymce/jscripts/tiny_mce/plugins/media/editor_plugin_src.js +770 -0
  127. data/assets/tinymce/jscripts/tiny_mce/plugins/media/js/embed.js +73 -0
  128. data/assets/tinymce/jscripts/tiny_mce/plugins/media/js/media.js +354 -0
  129. data/assets/tinymce/jscripts/tiny_mce/plugins/media/langs/en_dlg.js +109 -0
  130. data/assets/tinymce/jscripts/tiny_mce/plugins/media/media.htm +812 -0
  131. data/assets/tinymce/jscripts/tiny_mce/plugins/media/moxieplayer.swf +0 -0
  132. data/assets/tinymce/jscripts/tiny_mce/plugins/nonbreaking/editor_plugin.js +1 -0
  133. data/assets/tinymce/jscripts/tiny_mce/plugins/nonbreaking/editor_plugin_src.js +53 -0
  134. data/assets/tinymce/jscripts/tiny_mce/plugins/noneditable/editor_plugin.js +1 -0
  135. data/assets/tinymce/jscripts/tiny_mce/plugins/noneditable/editor_plugin_src.js +92 -0
  136. data/assets/tinymce/jscripts/tiny_mce/plugins/pagebreak/editor_plugin.js +1 -0
  137. data/assets/tinymce/jscripts/tiny_mce/plugins/pagebreak/editor_plugin_src.js +74 -0
  138. data/assets/tinymce/jscripts/tiny_mce/plugins/paste/editor_plugin.js +1 -0
  139. data/assets/tinymce/jscripts/tiny_mce/plugins/paste/editor_plugin_src.js +933 -0
  140. data/assets/tinymce/jscripts/tiny_mce/plugins/paste/js/pastetext.js +36 -0
  141. data/assets/tinymce/jscripts/tiny_mce/plugins/paste/js/pasteword.js +51 -0
  142. data/assets/tinymce/jscripts/tiny_mce/plugins/paste/langs/en_dlg.js +5 -0
  143. data/assets/tinymce/jscripts/tiny_mce/plugins/paste/pastetext.htm +27 -0
  144. data/assets/tinymce/jscripts/tiny_mce/plugins/paste/pasteword.htm +21 -0
  145. data/assets/tinymce/jscripts/tiny_mce/plugins/preview/editor_plugin.js +1 -0
  146. data/assets/tinymce/jscripts/tiny_mce/plugins/preview/editor_plugin_src.js +53 -0
  147. data/assets/tinymce/jscripts/tiny_mce/plugins/preview/example.html +28 -0
  148. data/assets/tinymce/jscripts/tiny_mce/plugins/preview/jscripts/embed.js +73 -0
  149. data/assets/tinymce/jscripts/tiny_mce/plugins/preview/preview.html +17 -0
  150. data/assets/tinymce/jscripts/tiny_mce/plugins/print/editor_plugin.js +1 -0
  151. data/assets/tinymce/jscripts/tiny_mce/plugins/print/editor_plugin_src.js +34 -0
  152. data/assets/tinymce/jscripts/tiny_mce/plugins/save/editor_plugin.js +1 -0
  153. data/assets/tinymce/jscripts/tiny_mce/plugins/save/editor_plugin_src.js +101 -0
  154. data/assets/tinymce/jscripts/tiny_mce/plugins/searchreplace/css/searchreplace.css +6 -0
  155. data/assets/tinymce/jscripts/tiny_mce/plugins/searchreplace/editor_plugin.js +1 -0
  156. data/assets/tinymce/jscripts/tiny_mce/plugins/searchreplace/editor_plugin_src.js +61 -0
  157. data/assets/tinymce/jscripts/tiny_mce/plugins/searchreplace/js/searchreplace.js +142 -0
  158. data/assets/tinymce/jscripts/tiny_mce/plugins/searchreplace/langs/en_dlg.js +16 -0
  159. data/assets/tinymce/jscripts/tiny_mce/plugins/searchreplace/searchreplace.htm +100 -0
  160. data/assets/tinymce/jscripts/tiny_mce/plugins/spellchecker/css/content.css +1 -0
  161. data/assets/tinymce/jscripts/tiny_mce/plugins/spellchecker/editor_plugin.js +1 -0
  162. data/assets/tinymce/jscripts/tiny_mce/plugins/spellchecker/editor_plugin_src.js +435 -0
  163. data/assets/tinymce/jscripts/tiny_mce/plugins/spellchecker/img/wline.gif +0 -0
  164. data/assets/tinymce/jscripts/tiny_mce/plugins/style/css/props.css +13 -0
  165. data/assets/tinymce/jscripts/tiny_mce/plugins/style/editor_plugin.js +1 -0
  166. data/assets/tinymce/jscripts/tiny_mce/plugins/style/editor_plugin_src.js +55 -0
  167. data/assets/tinymce/jscripts/tiny_mce/plugins/style/js/props.js +635 -0
  168. data/assets/tinymce/jscripts/tiny_mce/plugins/style/langs/en_dlg.js +70 -0
  169. data/assets/tinymce/jscripts/tiny_mce/plugins/style/props.htm +838 -0
  170. data/assets/tinymce/jscripts/tiny_mce/plugins/tabfocus/editor_plugin.js +1 -0
  171. data/assets/tinymce/jscripts/tiny_mce/plugins/tabfocus/editor_plugin_src.js +114 -0
  172. data/assets/tinymce/jscripts/tiny_mce/plugins/table/cell.htm +178 -0
  173. data/assets/tinymce/jscripts/tiny_mce/plugins/table/css/cell.css +17 -0
  174. data/assets/tinymce/jscripts/tiny_mce/plugins/table/css/row.css +25 -0
  175. data/assets/tinymce/jscripts/tiny_mce/plugins/table/css/table.css +13 -0
  176. data/assets/tinymce/jscripts/tiny_mce/plugins/table/editor_plugin.js +1 -0
  177. data/assets/tinymce/jscripts/tiny_mce/plugins/table/editor_plugin_src.js +1202 -0
  178. data/assets/tinymce/jscripts/tiny_mce/plugins/table/js/cell.js +284 -0
  179. data/assets/tinymce/jscripts/tiny_mce/plugins/table/js/merge_cells.js +27 -0
  180. data/assets/tinymce/jscripts/tiny_mce/plugins/table/js/row.js +232 -0
  181. data/assets/tinymce/jscripts/tiny_mce/plugins/table/js/table.js +450 -0
  182. data/assets/tinymce/jscripts/tiny_mce/plugins/table/langs/en_dlg.js +74 -0
  183. data/assets/tinymce/jscripts/tiny_mce/plugins/table/merge_cells.htm +32 -0
  184. data/assets/tinymce/jscripts/tiny_mce/plugins/table/row.htm +157 -0
  185. data/assets/tinymce/jscripts/tiny_mce/plugins/table/table.htm +188 -0
  186. data/assets/tinymce/jscripts/tiny_mce/plugins/template/blank.htm +12 -0
  187. data/assets/tinymce/jscripts/tiny_mce/plugins/template/css/template.css +23 -0
  188. data/assets/tinymce/jscripts/tiny_mce/plugins/template/editor_plugin.js +1 -0
  189. data/assets/tinymce/jscripts/tiny_mce/plugins/template/editor_plugin_src.js +159 -0
  190. data/assets/tinymce/jscripts/tiny_mce/plugins/template/js/template.js +106 -0
  191. data/assets/tinymce/jscripts/tiny_mce/plugins/template/langs/en_dlg.js +15 -0
  192. data/assets/tinymce/jscripts/tiny_mce/plugins/template/template.htm +31 -0
  193. data/assets/tinymce/jscripts/tiny_mce/plugins/visualchars/editor_plugin.js +1 -0
  194. data/assets/tinymce/jscripts/tiny_mce/plugins/visualchars/editor_plugin_src.js +83 -0
  195. data/assets/tinymce/jscripts/tiny_mce/plugins/wordcount/editor_plugin.js +1 -0
  196. data/assets/tinymce/jscripts/tiny_mce/plugins/wordcount/editor_plugin_src.js +114 -0
  197. data/assets/tinymce/jscripts/tiny_mce/plugins/xhtmlxtras/abbr.htm +142 -0
  198. data/assets/tinymce/jscripts/tiny_mce/plugins/xhtmlxtras/acronym.htm +142 -0
  199. data/assets/tinymce/jscripts/tiny_mce/plugins/xhtmlxtras/attributes.htm +149 -0
  200. data/assets/tinymce/jscripts/tiny_mce/plugins/xhtmlxtras/cite.htm +142 -0
  201. data/assets/tinymce/jscripts/tiny_mce/plugins/xhtmlxtras/css/attributes.css +11 -0
  202. data/assets/tinymce/jscripts/tiny_mce/plugins/xhtmlxtras/css/popup.css +9 -0
  203. data/assets/tinymce/jscripts/tiny_mce/plugins/xhtmlxtras/del.htm +162 -0
  204. data/assets/tinymce/jscripts/tiny_mce/plugins/xhtmlxtras/editor_plugin.js +1 -0
  205. data/assets/tinymce/jscripts/tiny_mce/plugins/xhtmlxtras/editor_plugin_src.js +132 -0
  206. data/assets/tinymce/jscripts/tiny_mce/plugins/xhtmlxtras/ins.htm +162 -0
  207. data/assets/tinymce/jscripts/tiny_mce/plugins/xhtmlxtras/js/abbr.js +28 -0
  208. data/assets/tinymce/jscripts/tiny_mce/plugins/xhtmlxtras/js/acronym.js +28 -0
  209. data/assets/tinymce/jscripts/tiny_mce/plugins/xhtmlxtras/js/attributes.js +111 -0
  210. data/assets/tinymce/jscripts/tiny_mce/plugins/xhtmlxtras/js/cite.js +28 -0
  211. data/assets/tinymce/jscripts/tiny_mce/plugins/xhtmlxtras/js/del.js +53 -0
  212. data/assets/tinymce/jscripts/tiny_mce/plugins/xhtmlxtras/js/element_common.js +229 -0
  213. data/assets/tinymce/jscripts/tiny_mce/plugins/xhtmlxtras/js/ins.js +53 -0
  214. data/assets/tinymce/jscripts/tiny_mce/plugins/xhtmlxtras/langs/en_dlg.js +32 -0
  215. data/assets/tinymce/jscripts/tiny_mce/themes/advanced/about.htm +52 -0
  216. data/assets/tinymce/jscripts/tiny_mce/themes/advanced/anchor.htm +26 -0
  217. data/assets/tinymce/jscripts/tiny_mce/themes/advanced/charmap.htm +51 -0
  218. data/assets/tinymce/jscripts/tiny_mce/themes/advanced/color_picker.htm +74 -0
  219. data/assets/tinymce/jscripts/tiny_mce/themes/advanced/editor_template.js +1 -0
  220. data/assets/tinymce/jscripts/tiny_mce/themes/advanced/editor_template_src.js +1360 -0
  221. data/assets/tinymce/jscripts/tiny_mce/themes/advanced/image.htm +80 -0
  222. data/assets/tinymce/jscripts/tiny_mce/themes/advanced/img/colorpicker.jpg +0 -0
  223. data/assets/tinymce/jscripts/tiny_mce/themes/advanced/img/flash.gif +0 -0
  224. data/assets/tinymce/jscripts/tiny_mce/themes/advanced/img/icons.gif +0 -0
  225. data/assets/tinymce/jscripts/tiny_mce/themes/advanced/img/iframe.gif +0 -0
  226. data/assets/tinymce/jscripts/tiny_mce/themes/advanced/img/pagebreak.gif +0 -0
  227. data/assets/tinymce/jscripts/tiny_mce/themes/advanced/img/quicktime.gif +0 -0
  228. data/assets/tinymce/jscripts/tiny_mce/themes/advanced/img/realmedia.gif +0 -0
  229. data/assets/tinymce/jscripts/tiny_mce/themes/advanced/img/shockwave.gif +0 -0
  230. data/assets/tinymce/jscripts/tiny_mce/themes/advanced/img/trans.gif +0 -0
  231. data/assets/tinymce/jscripts/tiny_mce/themes/advanced/img/video.gif +0 -0
  232. data/assets/tinymce/jscripts/tiny_mce/themes/advanced/img/windowsmedia.gif +0 -0
  233. data/assets/tinymce/jscripts/tiny_mce/themes/advanced/js/about.js +73 -0
  234. data/assets/tinymce/jscripts/tiny_mce/themes/advanced/js/anchor.js +42 -0
  235. data/assets/tinymce/jscripts/tiny_mce/themes/advanced/js/charmap.js +355 -0
  236. data/assets/tinymce/jscripts/tiny_mce/themes/advanced/js/color_picker.js +329 -0
  237. data/assets/tinymce/jscripts/tiny_mce/themes/advanced/js/image.js +247 -0
  238. data/assets/tinymce/jscripts/tiny_mce/themes/advanced/js/link.js +153 -0
  239. data/assets/tinymce/jscripts/tiny_mce/themes/advanced/js/source_editor.js +56 -0
  240. data/assets/tinymce/jscripts/tiny_mce/themes/advanced/langs/en.js +68 -0
  241. data/assets/tinymce/jscripts/tiny_mce/themes/advanced/langs/en_dlg.js +54 -0
  242. data/assets/tinymce/jscripts/tiny_mce/themes/advanced/link.htm +57 -0
  243. data/assets/tinymce/jscripts/tiny_mce/themes/advanced/shortcuts.htm +47 -0
  244. data/assets/tinymce/jscripts/tiny_mce/themes/advanced/skins/default/content.css +47 -0
  245. data/assets/tinymce/jscripts/tiny_mce/themes/advanced/skins/default/dialog.css +117 -0
  246. data/assets/tinymce/jscripts/tiny_mce/themes/advanced/skins/default/img/buttons.png +0 -0
  247. data/assets/tinymce/jscripts/tiny_mce/themes/advanced/skins/default/img/items.gif +0 -0
  248. data/assets/tinymce/jscripts/tiny_mce/themes/advanced/skins/default/img/menu_arrow.gif +0 -0
  249. data/assets/tinymce/jscripts/tiny_mce/themes/advanced/skins/default/img/menu_check.gif +0 -0
  250. data/assets/tinymce/jscripts/tiny_mce/themes/advanced/skins/default/img/progress.gif +0 -0
  251. data/assets/tinymce/jscripts/tiny_mce/themes/advanced/skins/default/img/tabs.gif +0 -0
  252. data/assets/tinymce/jscripts/tiny_mce/themes/advanced/skins/default/ui.css +213 -0
  253. data/assets/tinymce/jscripts/tiny_mce/themes/advanced/skins/highcontrast/content.css +23 -0
  254. data/assets/tinymce/jscripts/tiny_mce/themes/advanced/skins/highcontrast/dialog.css +105 -0
  255. data/assets/tinymce/jscripts/tiny_mce/themes/advanced/skins/highcontrast/ui.css +101 -0
  256. data/assets/tinymce/jscripts/tiny_mce/themes/advanced/skins/o2k7/content.css +46 -0
  257. data/assets/tinymce/jscripts/tiny_mce/themes/advanced/skins/o2k7/dialog.css +117 -0
  258. data/assets/tinymce/jscripts/tiny_mce/themes/advanced/skins/o2k7/img/button_bg.png +0 -0
  259. data/assets/tinymce/jscripts/tiny_mce/themes/advanced/skins/o2k7/img/button_bg_black.png +0 -0
  260. data/assets/tinymce/jscripts/tiny_mce/themes/advanced/skins/o2k7/img/button_bg_silver.png +0 -0
  261. data/assets/tinymce/jscripts/tiny_mce/themes/advanced/skins/o2k7/ui.css +216 -0
  262. data/assets/tinymce/jscripts/tiny_mce/themes/advanced/skins/o2k7/ui_black.css +8 -0
  263. data/assets/tinymce/jscripts/tiny_mce/themes/advanced/skins/o2k7/ui_silver.css +5 -0
  264. data/assets/tinymce/jscripts/tiny_mce/themes/advanced/source_editor.htm +25 -0
  265. data/assets/tinymce/jscripts/tiny_mce/themes/simple/editor_template.js +1 -0
  266. data/assets/tinymce/jscripts/tiny_mce/themes/simple/editor_template_src.js +84 -0
  267. data/assets/tinymce/jscripts/tiny_mce/themes/simple/img/icons.gif +0 -0
  268. data/assets/tinymce/jscripts/tiny_mce/themes/simple/langs/en.js +11 -0
  269. data/assets/tinymce/jscripts/tiny_mce/themes/simple/skins/default/content.css +25 -0
  270. data/assets/tinymce/jscripts/tiny_mce/themes/simple/skins/default/ui.css +32 -0
  271. data/assets/tinymce/jscripts/tiny_mce/themes/simple/skins/o2k7/content.css +17 -0
  272. data/assets/tinymce/jscripts/tiny_mce/themes/simple/skins/o2k7/img/button_bg.png +0 -0
  273. data/assets/tinymce/jscripts/tiny_mce/themes/simple/skins/o2k7/ui.css +35 -0
  274. data/assets/tinymce/jscripts/tiny_mce/tiny_mce.js +1 -0
  275. data/assets/tinymce/jscripts/tiny_mce/tiny_mce_popup.js +5 -0
  276. data/assets/tinymce/jscripts/tiny_mce/tiny_mce_src.js +15812 -0
  277. data/assets/tinymce/jscripts/tiny_mce/utils/editable_selects.js +70 -0
  278. data/assets/tinymce/jscripts/tiny_mce/utils/form_utils.js +210 -0
  279. data/assets/tinymce/jscripts/tiny_mce/utils/mctabs.js +162 -0
  280. data/assets/tinymce/jscripts/tiny_mce/utils/validate.js +252 -0
  281. data/assets/use_tinymce_init_advanced.js +15 -0
  282. data/assets/use_tinymce_init_simple.js +5 -0
  283. data/lib/tasks/use_tinymce.rake +25 -0
  284. data/lib/use_tinymce/railengine.rb +12 -0
  285. data/lib/use_tinymce/use_tinymce.rb +33 -0
  286. data/lib/use_tinymce.rb +4 -0
  287. data/test/use_tinymce_base_test.rb +70 -0
  288. metadata +353 -0
@@ -0,0 +1,338 @@
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>{#advlink_dlg.title}</title>
5
+ <script type="text/javascript" src="../../tiny_mce_popup.js"></script>
6
+ <script type="text/javascript" src="../../utils/mctabs.js"></script>
7
+ <script type="text/javascript" src="../../utils/form_utils.js"></script>
8
+ <script type="text/javascript" src="../../utils/validate.js"></script>
9
+ <script type="text/javascript" src="js/advlink.js"></script>
10
+ <link href="css/advlink.css" rel="stylesheet" type="text/css" />
11
+ </head>
12
+ <body id="advlink" style="display: none" role="application" onload="javascript:mcTabs.displayTab('general_tab','general_panel', true);" aria-labelledby="app_label">
13
+ <span class="mceVoiceLabel" id="app_label" style="display:none;">{#advlink_dlg.title}</span>
14
+ <form onsubmit="insertAction();return false;" action="#">
15
+ <div class="tabs" role="presentation">
16
+ <ul>
17
+ <li id="general_tab" class="current" aria-controls="general_panel" ><span><a href="javascript:mcTabs.displayTab('general_tab','general_panel');" onmousedown="return false;">{#advlink_dlg.general_tab}</a></span></li>
18
+ <li id="popup_tab" aria-controls="popup_panel" ><span><a href="javascript:mcTabs.displayTab('popup_tab','popup_panel');" onmousedown="return false;">{#advlink_dlg.popup_tab}</a></span></li>
19
+ <li id="events_tab" aria-controls="events_panel"><span><a href="javascript:mcTabs.displayTab('events_tab','events_panel');" onmousedown="return false;">{#advlink_dlg.events_tab}</a></span></li>
20
+ <li id="advanced_tab" aria-controls="advanced_panel"><span><a href="javascript:mcTabs.displayTab('advanced_tab','advanced_panel');" onmousedown="return false;">{#advlink_dlg.advanced_tab}</a></span></li>
21
+ </ul>
22
+ </div>
23
+
24
+ <div class="panel_wrapper" role="presentation">
25
+ <div id="general_panel" class="panel current">
26
+ <fieldset>
27
+ <legend>{#advlink_dlg.general_props}</legend>
28
+
29
+ <table border="0" cellpadding="4" cellspacing="0" role="presentation">
30
+ <tr>
31
+ <td class="nowrap"><label id="hreflabel" for="href">{#advlink_dlg.url}</label></td>
32
+ <td><table border="0" cellspacing="0" cellpadding="0">
33
+ <tr>
34
+ <td><input id="href" name="href" type="text" class="mceFocus" value="" onchange="selectByValue(this.form,'linklisthref',this.value);" aria-required="true" /></td>
35
+ <td id="hrefbrowsercontainer">&nbsp;</td>
36
+ </tr>
37
+ </table></td>
38
+ </tr>
39
+ <tr id="linklisthrefrow">
40
+ <td class="column1"><label for="linklisthref">{#advlink_dlg.list}</label></td>
41
+ <td colspan="2" id="linklisthrefcontainer"><select id="linklisthref"><option value=""></option></select></td>
42
+ </tr>
43
+ <tr id="anchorlistrow">
44
+ <td class="column1"><label for="anchorlist">{#advlink_dlg.anchor_names}</label></td>
45
+ <td colspan="2" id="anchorlistcontainer"><select id="anchorlist"><option value=""></option></select></td>
46
+ </tr>
47
+ <tr>
48
+ <td><label id="targetlistlabel" for="targetlist">{#advlink_dlg.target}</label></td>
49
+ <td id="targetlistcontainer"><select id="targetlist"><option value=""></option></select></td>
50
+ </tr>
51
+ <tr>
52
+ <td class="nowrap"><label id="titlelabel" for="title">{#advlink_dlg.titlefield}</label></td>
53
+ <td><input id="title" name="title" type="text" value="" /></td>
54
+ </tr>
55
+ <tr>
56
+ <td><label id="classlabel" for="classlist">{#class_name}</label></td>
57
+ <td>
58
+ <select id="classlist" name="classlist" onchange="changeClass();">
59
+ <option value="" selected="selected">{#not_set}</option>
60
+ </select>
61
+ </td>
62
+ </tr>
63
+ </table>
64
+ </fieldset>
65
+ </div>
66
+
67
+ <div id="popup_panel" class="panel">
68
+ <fieldset>
69
+ <legend>{#advlink_dlg.popup_props}</legend>
70
+
71
+ <input type="checkbox" id="ispopup" name="ispopup" class="radio" onclick="setPopupControlsDisabled(!this.checked);buildOnClick();" />
72
+ <label id="ispopuplabel" for="ispopup">{#advlink_dlg.popup}</label>
73
+
74
+ <table border="0" cellpadding="0" cellspacing="4" role="presentation" >
75
+ <tr>
76
+ <td class="nowrap"><label for="popupurl">{#advlink_dlg.popup_url}</label>&nbsp;</td>
77
+ <td>
78
+ <table border="0" cellspacing="0" cellpadding="0">
79
+ <tr>
80
+ <td><input type="text" name="popupurl" id="popupurl" value="" onchange="buildOnClick();" /></td>
81
+ <td id="popupurlbrowsercontainer">&nbsp;</td>
82
+ </tr>
83
+ </table>
84
+ </td>
85
+ </tr>
86
+ <tr>
87
+ <td class="nowrap"><label for="popupname">{#advlink_dlg.popup_name}</label>&nbsp;</td>
88
+ <td><input type="text" name="popupname" id="popupname" value="" onchange="buildOnClick();" /></td>
89
+ </tr>
90
+ <tr role="group" aria-labelledby="popup_size_label">
91
+ <td class="nowrap"><label id="popup_size_label">{#advlink_dlg.popup_size}</label>&nbsp;</td>
92
+ <td class="nowrap">
93
+ <span style="display:none" id="width_voiceLabel">{#advlink_dlg.width}</span>
94
+ <input type="text" id="popupwidth" name="popupwidth" value="" onchange="buildOnClick();" aria-labelledby="width_voiceLabel" /> x
95
+ <span style="display:none" id="height_voiceLabel">{#advlink_dlg.height}</span>
96
+ <input type="text" id="popupheight" name="popupheight" value="" onchange="buildOnClick();" aria-labelledby="height_voiceLabel" /> px
97
+ </td>
98
+ </tr>
99
+ <tr role="group" aria-labelledby="popup_position_label center_hint">
100
+ <td class="nowrap" id="labelleft"><label id="popup_position_label">{#advlink_dlg.popup_position}</label>&nbsp;</td>
101
+ <td class="nowrap">
102
+ <span style="display:none" id="x_voiceLabel">X</span>
103
+ <input type="text" id="popupleft" name="popupleft" value="" onchange="buildOnClick();" aria-labelledby="x_voiceLabel" /> /
104
+ <span style="display:none" id="y_voiceLabel">Y</span>
105
+ <input type="text" id="popuptop" name="popuptop" value="" onchange="buildOnClick();" aria-labelledby="y_voiceLabel" /> <span id="center_hint">(c /c = center)</span>
106
+ </td>
107
+ </tr>
108
+ </table>
109
+
110
+ <fieldset>
111
+ <legend>{#advlink_dlg.popup_opts}</legend>
112
+
113
+ <table border="0" cellpadding="0" cellspacing="4" role="presentation" >
114
+ <tr>
115
+ <td><input type="checkbox" id="popuplocation" name="popuplocation" class="checkbox" onchange="buildOnClick();" /></td>
116
+ <td class="nowrap"><label id="popuplocationlabel" for="popuplocation">{#advlink_dlg.popup_location}</label></td>
117
+ <td><input type="checkbox" id="popupscrollbars" name="popupscrollbars" class="checkbox" onchange="buildOnClick();" /></td>
118
+ <td class="nowrap"><label id="popupscrollbarslabel" for="popupscrollbars">{#advlink_dlg.popup_scrollbars}</label></td>
119
+ </tr>
120
+ <tr>
121
+ <td><input type="checkbox" id="popupmenubar" name="popupmenubar" class="checkbox" onchange="buildOnClick();" /></td>
122
+ <td class="nowrap"><label id="popupmenubarlabel" for="popupmenubar">{#advlink_dlg.popup_menubar}</label></td>
123
+ <td><input type="checkbox" id="popupresizable" name="popupresizable" class="checkbox" onchange="buildOnClick();" /></td>
124
+ <td class="nowrap"><label id="popupresizablelabel" for="popupresizable">{#advlink_dlg.popup_resizable}</label></td>
125
+ </tr>
126
+ <tr>
127
+ <td><input type="checkbox" id="popuptoolbar" name="popuptoolbar" class="checkbox" onchange="buildOnClick();" /></td>
128
+ <td class="nowrap"><label id="popuptoolbarlabel" for="popuptoolbar">{#advlink_dlg.popup_toolbar}</label></td>
129
+ <td><input type="checkbox" id="popupdependent" name="popupdependent" class="checkbox" onchange="buildOnClick();" /></td>
130
+ <td class="nowrap"><label id="popupdependentlabel" for="popupdependent">{#advlink_dlg.popup_dependent}</label></td>
131
+ </tr>
132
+ <tr>
133
+ <td><input type="checkbox" id="popupstatus" name="popupstatus" class="checkbox" onchange="buildOnClick();" /></td>
134
+ <td class="nowrap"><label id="popupstatuslabel" for="popupstatus">{#advlink_dlg.popup_statusbar}</label></td>
135
+ <td><input type="checkbox" id="popupreturn" name="popupreturn" class="checkbox" onchange="buildOnClick();" checked="checked" /></td>
136
+ <td class="nowrap"><label id="popupreturnlabel" for="popupreturn">{#advlink_dlg.popup_return}</label></td>
137
+ </tr>
138
+ </table>
139
+ </fieldset>
140
+ </fieldset>
141
+ </div>
142
+
143
+ <div id="advanced_panel" class="panel">
144
+ <fieldset>
145
+ <legend>{#advlink_dlg.advanced_props}</legend>
146
+
147
+ <table border="0" cellpadding="0" cellspacing="4" role="presentation" >
148
+ <tr>
149
+ <td class="column1"><label id="idlabel" for="id">{#advlink_dlg.id}</label></td>
150
+ <td><input id="id" name="id" type="text" value="" /></td>
151
+ </tr>
152
+
153
+ <tr>
154
+ <td><label id="stylelabel" for="style">{#advlink_dlg.style}</label></td>
155
+ <td><input type="text" id="style" name="style" value="" /></td>
156
+ </tr>
157
+
158
+ <tr>
159
+ <td><label id="classeslabel" for="classes">{#advlink_dlg.classes}</label></td>
160
+ <td><input type="text" id="classes" name="classes" value="" onchange="selectByValue(this.form,'classlist',this.value,true);" /></td>
161
+ </tr>
162
+
163
+ <tr>
164
+ <td><label id="targetlabel" for="target">{#advlink_dlg.target_name}</label></td>
165
+ <td><input type="text" id="target" name="target" value="" onchange="selectByValue(this.form,'targetlist',this.value,true);" /></td>
166
+ </tr>
167
+
168
+ <tr>
169
+ <td class="column1"><label id="dirlabel" for="dir">{#advlink_dlg.langdir}</label></td>
170
+ <td>
171
+ <select id="dir" name="dir">
172
+ <option value="">{#not_set}</option>
173
+ <option value="ltr">{#advlink_dlg.ltr}</option>
174
+ <option value="rtl">{#advlink_dlg.rtl}</option>
175
+ </select>
176
+ </td>
177
+ </tr>
178
+
179
+ <tr>
180
+ <td><label id="hreflanglabel" for="hreflang">{#advlink_dlg.target_langcode}</label></td>
181
+ <td><input type="text" id="hreflang" name="hreflang" value="" /></td>
182
+ </tr>
183
+
184
+ <tr>
185
+ <td class="column1"><label id="langlabel" for="lang">{#advlink_dlg.langcode}</label></td>
186
+ <td>
187
+ <input id="lang" name="lang" type="text" value="" />
188
+ </td>
189
+ </tr>
190
+
191
+ <tr>
192
+ <td><label id="charsetlabel" for="charset">{#advlink_dlg.encoding}</label></td>
193
+ <td><input type="text" id="charset" name="charset" value="" /></td>
194
+ </tr>
195
+
196
+ <tr>
197
+ <td><label id="typelabel" for="type">{#advlink_dlg.mime}</label></td>
198
+ <td><input type="text" id="type" name="type" value="" /></td>
199
+ </tr>
200
+
201
+ <tr>
202
+ <td><label id="rellabel" for="rel">{#advlink_dlg.rel}</label></td>
203
+ <td><select id="rel" name="rel">
204
+ <option value="">{#not_set}</option>
205
+ <option value="lightbox">Lightbox</option>
206
+ <option value="alternate">Alternate</option>
207
+ <option value="designates">Designates</option>
208
+ <option value="stylesheet">Stylesheet</option>
209
+ <option value="start">Start</option>
210
+ <option value="next">Next</option>
211
+ <option value="prev">Prev</option>
212
+ <option value="contents">Contents</option>
213
+ <option value="index">Index</option>
214
+ <option value="glossary">Glossary</option>
215
+ <option value="copyright">Copyright</option>
216
+ <option value="chapter">Chapter</option>
217
+ <option value="subsection">Subsection</option>
218
+ <option value="appendix">Appendix</option>
219
+ <option value="help">Help</option>
220
+ <option value="bookmark">Bookmark</option>
221
+ <option value="nofollow">No Follow</option>
222
+ <option value="tag">Tag</option>
223
+ </select>
224
+ </td>
225
+ </tr>
226
+
227
+ <tr>
228
+ <td><label id="revlabel" for="rev">{#advlink_dlg.rev}</label></td>
229
+ <td><select id="rev" name="rev">
230
+ <option value="">{#not_set}</option>
231
+ <option value="alternate">Alternate</option>
232
+ <option value="designates">Designates</option>
233
+ <option value="stylesheet">Stylesheet</option>
234
+ <option value="start">Start</option>
235
+ <option value="next">Next</option>
236
+ <option value="prev">Prev</option>
237
+ <option value="contents">Contents</option>
238
+ <option value="index">Index</option>
239
+ <option value="glossary">Glossary</option>
240
+ <option value="copyright">Copyright</option>
241
+ <option value="chapter">Chapter</option>
242
+ <option value="subsection">Subsection</option>
243
+ <option value="appendix">Appendix</option>
244
+ <option value="help">Help</option>
245
+ <option value="bookmark">Bookmark</option>
246
+ </select>
247
+ </td>
248
+ </tr>
249
+
250
+ <tr>
251
+ <td><label id="tabindexlabel" for="tabindex">{#advlink_dlg.tabindex}</label></td>
252
+ <td><input type="text" id="tabindex" name="tabindex" value="" /></td>
253
+ </tr>
254
+
255
+ <tr>
256
+ <td><label id="accesskeylabel" for="accesskey">{#advlink_dlg.accesskey}</label></td>
257
+ <td><input type="text" id="accesskey" name="accesskey" value="" /></td>
258
+ </tr>
259
+ </table>
260
+ </fieldset>
261
+ </div>
262
+
263
+ <div id="events_panel" class="panel">
264
+ <fieldset>
265
+ <legend>{#advlink_dlg.event_props}</legend>
266
+
267
+ <table border="0" cellpadding="0" cellspacing="4" role="presentation" >
268
+ <tr>
269
+ <td class="column1"><label for="onfocus">onfocus</label></td>
270
+ <td><input id="onfocus" name="onfocus" type="text" value="" /></td>
271
+ </tr>
272
+
273
+ <tr>
274
+ <td class="column1"><label for="onblur">onblur</label></td>
275
+ <td><input id="onblur" name="onblur" type="text" value="" /></td>
276
+ </tr>
277
+
278
+ <tr>
279
+ <td class="column1"><label for="onclick">onclick</label></td>
280
+ <td><input id="onclick" name="onclick" type="text" value="" /></td>
281
+ </tr>
282
+
283
+ <tr>
284
+ <td class="column1"><label for="ondblclick">ondblclick</label></td>
285
+ <td><input id="ondblclick" name="ondblclick" type="text" value="" /></td>
286
+ </tr>
287
+
288
+ <tr>
289
+ <td class="column1"><label for="onmousedown">onmousedown</label></td>
290
+ <td><input id="onmousedown" name="onmousedown" type="text" value="" /></td>
291
+ </tr>
292
+
293
+ <tr>
294
+ <td class="column1"><label for="onmouseup">onmouseup</label></td>
295
+ <td><input id="onmouseup" name="onmouseup" type="text" value="" /></td>
296
+ </tr>
297
+
298
+ <tr>
299
+ <td class="column1"><label for="onmouseover">onmouseover</label></td>
300
+ <td><input id="onmouseover" name="onmouseover" type="text" value="" /></td>
301
+ </tr>
302
+
303
+ <tr>
304
+ <td class="column1"><label for="onmousemove">onmousemove</label></td>
305
+ <td><input id="onmousemove" name="onmousemove" type="text" value="" /></td>
306
+ </tr>
307
+
308
+ <tr>
309
+ <td class="column1"><label for="onmouseout">onmouseout</label></td>
310
+ <td><input id="onmouseout" name="onmouseout" type="text" value="" /></td>
311
+ </tr>
312
+
313
+ <tr>
314
+ <td class="column1"><label for="onkeypress">onkeypress</label></td>
315
+ <td><input id="onkeypress" name="onkeypress" type="text" value="" /></td>
316
+ </tr>
317
+
318
+ <tr>
319
+ <td class="column1"><label for="onkeydown">onkeydown</label></td>
320
+ <td><input id="onkeydown" name="onkeydown" type="text" value="" /></td>
321
+ </tr>
322
+
323
+ <tr>
324
+ <td class="column1"><label for="onkeyup">onkeyup</label></td>
325
+ <td><input id="onkeyup" name="onkeyup" type="text" value="" /></td>
326
+ </tr>
327
+ </table>
328
+ </fieldset>
329
+ </div>
330
+ </div>
331
+
332
+ <div class="mceActionPanel">
333
+ <input type="submit" id="insert" name="insert" value="{#insert}" />
334
+ <input type="button" id="cancel" name="cancel" value="{#cancel}" onclick="tinyMCEPopup.close();" />
335
+ </div>
336
+ </form>
337
+ </body>
338
+ </html>
@@ -0,0 +1 @@
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,h;if(d=="numlist"||d=="bullist"){if(f[d][0].title=="advlist.def"){h=f[d][0]}function c(i,k){var j=true;a(k.styles,function(m,l){if(f.editor.dom.getStyle(i,l)!=m){j=false;return false}});return j}function g(){var k,i=f.editor,l=i.dom,j=i.selection;k=l.getParent(j.getNode(),"ol,ul");if(!k||k.nodeName==(d=="bullist"?"OL":"UL")||c(k,h)){i.execCommand(d=="bullist"?"InsertUnorderedList":"InsertOrderedList")}if(h){k=l.getParent(j.getNode(),"ol,ul");if(k){l.setStyles(k,h.styles);k.removeAttribute("data-mce-style")}}i.focus()}e=b.createSplitButton(d,{title:"advanced."+d+"_desc","class":"mce_"+d,onclick:function(){g()}});e.onRenderMenu.add(function(i,j){j.onShowMenu.add(function(){var m=f.editor.dom,l=m.getParent(f.editor.selection.getNode(),"ol,ul"),k;if(l||h){k=f[d];a(j.items,function(n){var o=true;n.setSelected(0);if(l&&!n.isDisabled()){a(k,function(p){if(p.id==n.id){if(!c(l,p)){o=false;return false}}});if(o){n.setSelected(1)}}});if(!l){j.items[h.id].setSelected(1)}}});j.add({id:f.editor.dom.uniqueId(),title:"advlist.types","class":"mceMenuItemTitle",titleItem:true}).setDisabled(1);a(f[d],function(k){if(f.isIE7&&k.styles.listStyleType=="lower-greek"){return}k.id=f.editor.dom.uniqueId();j.add({id:k.id,title:k.title,onclick:function(){h=k;g()}})})});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)})();
@@ -0,0 +1,161 @@
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 each = tinymce.each;
13
+
14
+ tinymce.create('tinymce.plugins.AdvListPlugin', {
15
+ init : function(ed, url) {
16
+ var t = this;
17
+
18
+ t.editor = ed;
19
+
20
+ function buildFormats(str) {
21
+ var formats = [];
22
+
23
+ each(str.split(/,/), function(type) {
24
+ formats.push({
25
+ title : 'advlist.' + (type == 'default' ? 'def' : type.replace(/-/g, '_')),
26
+ styles : {
27
+ listStyleType : type == 'default' ? '' : type
28
+ }
29
+ });
30
+ });
31
+
32
+ return formats;
33
+ };
34
+
35
+ // Setup number formats from config or default
36
+ t.numlist = ed.getParam("advlist_number_styles") || buildFormats("default,lower-alpha,lower-greek,lower-roman,upper-alpha,upper-roman");
37
+ t.bullist = ed.getParam("advlist_bullet_styles") || buildFormats("default,circle,disc,square");
38
+
39
+ if (tinymce.isIE && /MSIE [2-7]/.test(navigator.userAgent))
40
+ t.isIE7 = true;
41
+ },
42
+
43
+ createControl: function(name, cm) {
44
+ var t = this, btn, format;
45
+
46
+ if (name == 'numlist' || name == 'bullist') {
47
+ // Default to first item if it's a default item
48
+ if (t[name][0].title == 'advlist.def')
49
+ format = t[name][0];
50
+
51
+ function hasFormat(node, format) {
52
+ var state = true;
53
+
54
+ each(format.styles, function(value, name) {
55
+ // Format doesn't match
56
+ if (t.editor.dom.getStyle(node, name) != value) {
57
+ state = false;
58
+ return false;
59
+ }
60
+ });
61
+
62
+ return state;
63
+ };
64
+
65
+ function applyListFormat() {
66
+ var list, ed = t.editor, dom = ed.dom, sel = ed.selection;
67
+
68
+ // Check for existing list element
69
+ list = dom.getParent(sel.getNode(), 'ol,ul');
70
+
71
+ // Switch/add list type if needed
72
+ if (!list || list.nodeName == (name == 'bullist' ? 'OL' : 'UL') || hasFormat(list, format))
73
+ ed.execCommand(name == 'bullist' ? 'InsertUnorderedList' : 'InsertOrderedList');
74
+
75
+ // Append styles to new list element
76
+ if (format) {
77
+ list = dom.getParent(sel.getNode(), 'ol,ul');
78
+ if (list) {
79
+ dom.setStyles(list, format.styles);
80
+ list.removeAttribute('data-mce-style');
81
+ }
82
+ }
83
+ ed.focus();
84
+ };
85
+
86
+ btn = cm.createSplitButton(name, {
87
+ title : 'advanced.' + name + '_desc',
88
+ 'class' : 'mce_' + name,
89
+ onclick : function() {
90
+ applyListFormat();
91
+ }
92
+ });
93
+
94
+ btn.onRenderMenu.add(function(btn, menu) {
95
+ menu.onShowMenu.add(function() {
96
+ var dom = t.editor.dom, list = dom.getParent(t.editor.selection.getNode(), 'ol,ul'), fmtList;
97
+
98
+ if (list || format) {
99
+ fmtList = t[name];
100
+
101
+ // Unselect existing items
102
+ each(menu.items, function(item) {
103
+ var state = true;
104
+
105
+ item.setSelected(0);
106
+
107
+ if (list && !item.isDisabled()) {
108
+ each(fmtList, function(fmt) {
109
+ if (fmt.id == item.id) {
110
+ if (!hasFormat(list, fmt)) {
111
+ state = false;
112
+ return false;
113
+ }
114
+ }
115
+ });
116
+
117
+ if (state)
118
+ item.setSelected(1);
119
+ }
120
+ });
121
+
122
+ // Select the current format
123
+ if (!list)
124
+ menu.items[format.id].setSelected(1);
125
+ }
126
+ });
127
+
128
+ menu.add({id : t.editor.dom.uniqueId(), title : 'advlist.types', 'class' : 'mceMenuItemTitle', titleItem: true}).setDisabled(1);
129
+
130
+ each(t[name], function(item) {
131
+ // IE<8 doesn't support lower-greek, skip it
132
+ if (t.isIE7 && item.styles.listStyleType == 'lower-greek')
133
+ return;
134
+
135
+ item.id = t.editor.dom.uniqueId();
136
+
137
+ menu.add({id : item.id, title : item.title, onclick : function() {
138
+ format = item;
139
+ applyListFormat();
140
+ }});
141
+ });
142
+ });
143
+
144
+ return btn;
145
+ }
146
+ },
147
+
148
+ getInfo : function() {
149
+ return {
150
+ longname : 'Advanced lists',
151
+ author : 'Moxiecode Systems AB',
152
+ authorurl : 'http://tinymce.moxiecode.com',
153
+ infourl : 'http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/advlist',
154
+ version : tinymce.majorVersion + "." + tinymce.minorVersion
155
+ };
156
+ }
157
+ });
158
+
159
+ // Register plugin
160
+ tinymce.PluginManager.add('advlist', tinymce.plugins.AdvListPlugin);
161
+ })();
@@ -0,0 +1 @@
1
+ (function(){tinymce.create("tinymce.plugins.AutolinkPlugin",{init:function(a,b){var c=this;if(tinyMCE.isIE){return}a.onKeyDown.add(function(d,f){if(f.keyCode==13){return c.handleEnter(d)}if(f.shiftKey&&f.keyCode==48){return c.handleEclipse(d)}});a.onKeyUp.add(function(d,f){if(f.keyCode==32){return c.handleSpacebar(d)}})},handleEclipse:function(a){this.parseCurrentLine(a,-1,"(",true)},handleSpacebar:function(a){this.parseCurrentLine(a,0,"",true)},handleEnter:function(a){this.parseCurrentLine(a,-1,"",false)},parseCurrentLine:function(i,d,b,g){var a,f,c,n,k,m,h,e,j;a=i.selection.getRng().cloneRange();if(a.startOffset<5){e=a.endContainer.previousSibling;if(e==null){if(a.endContainer.firstChild==null||a.endContainer.firstChild.nextSibling==null){return}e=a.endContainer.firstChild.nextSibling}j=e.length;a.setStart(e,j);a.setEnd(e,j);if(a.endOffset<5){return}f=a.endOffset;n=e}else{n=a.endContainer;if(n.nodeType!=3&&n.firstChild){while(n.nodeType!=3&&n.firstChild){n=n.firstChild}a.setStart(n,0);a.setEnd(n,n.nodeValue.length)}if(a.endOffset==1){f=2}else{f=a.endOffset-1-d}}c=f;do{a.setStart(n,f-2);a.setEnd(n,f-1);f-=1}while(a.toString()!=" "&&a.toString()!=""&&a.toString().charCodeAt(0)!=160&&(f-2)>=0&&a.toString()!=b);if(a.toString()==b||a.toString().charCodeAt(0)==160){a.setStart(n,f);a.setEnd(n,c);f+=1}else{if(a.startOffset==0){a.setStart(n,0);a.setEnd(n,c)}else{a.setStart(n,f);a.setEnd(n,c)}}m=a.toString();h=m.match(/^(https?:\/\/|ssh:\/\/|ftp:\/\/|file:\/|www\.)(.+)$/i);if(h){if(h[1]=="www."){h[1]="http://www."}k=i.selection.getBookmark();i.selection.setRng(a);tinyMCE.execCommand("mceInsertLink",false,h[1]+h[2]);i.selection.moveToBookmark(k);if(tinyMCE.isWebKit){i.selection.collapse(false);var l=Math.min(n.length,c+1);a.setStart(n,l);a.setEnd(n,l);i.selection.setRng(a)}}},getInfo:function(){return{longname:"Autolink",author:"Moxiecode Systems AB",authorurl:"http://tinymce.moxiecode.com",infourl:"http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/autolink",version:tinymce.majorVersion+"."+tinymce.minorVersion}}});tinymce.PluginManager.add("autolink",tinymce.plugins.AutolinkPlugin)})();