kitsune 0.0.18 → 0.0.19

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (247) hide show
  1. data/Rakefile +1 -1
  2. data/generators/kitsune/kitsune_generator.rb +14 -1
  3. data/generators/kitsune/templates/javascripts/tiny_mce/langs/en.js +154 -0
  4. data/generators/kitsune/templates/javascripts/tiny_mce/license.txt +504 -0
  5. data/generators/kitsune/templates/javascripts/tiny_mce/plugins/advhr/css/advhr.css +5 -0
  6. data/generators/kitsune/templates/javascripts/tiny_mce/plugins/advhr/editor_plugin.js +1 -0
  7. data/generators/kitsune/templates/javascripts/tiny_mce/plugins/advhr/editor_plugin_src.js +54 -0
  8. data/generators/kitsune/templates/javascripts/tiny_mce/plugins/advhr/js/rule.js +43 -0
  9. data/generators/kitsune/templates/javascripts/tiny_mce/plugins/advhr/langs/en_dlg.js +5 -0
  10. data/generators/kitsune/templates/javascripts/tiny_mce/plugins/advhr/rule.htm +62 -0
  11. data/generators/kitsune/templates/javascripts/tiny_mce/plugins/advimage/css/advimage.css +13 -0
  12. data/generators/kitsune/templates/javascripts/tiny_mce/plugins/advimage/editor_plugin.js +1 -0
  13. data/generators/kitsune/templates/javascripts/tiny_mce/plugins/advimage/editor_plugin_src.js +47 -0
  14. data/generators/kitsune/templates/javascripts/tiny_mce/plugins/advimage/image.htm +237 -0
  15. data/generators/kitsune/templates/javascripts/tiny_mce/plugins/advimage/img/sample.gif +0 -0
  16. data/generators/kitsune/templates/javascripts/tiny_mce/plugins/advimage/js/image.js +443 -0
  17. data/generators/kitsune/templates/javascripts/tiny_mce/plugins/advimage/langs/en_dlg.js +43 -0
  18. data/generators/kitsune/templates/javascripts/tiny_mce/plugins/advlink/css/advlink.css +8 -0
  19. data/generators/kitsune/templates/javascripts/tiny_mce/plugins/advlink/editor_plugin.js +1 -0
  20. data/generators/kitsune/templates/javascripts/tiny_mce/plugins/advlink/editor_plugin_src.js +58 -0
  21. data/generators/kitsune/templates/javascripts/tiny_mce/plugins/advlink/js/advlink.js +528 -0
  22. data/generators/kitsune/templates/javascripts/tiny_mce/plugins/advlink/langs/en_dlg.js +52 -0
  23. data/generators/kitsune/templates/javascripts/tiny_mce/plugins/advlink/link.htm +338 -0
  24. data/generators/kitsune/templates/javascripts/tiny_mce/plugins/autoresize/editor_plugin.js +1 -0
  25. data/generators/kitsune/templates/javascripts/tiny_mce/plugins/autoresize/editor_plugin_src.js +114 -0
  26. data/generators/kitsune/templates/javascripts/tiny_mce/plugins/autosave/editor_plugin.js +1 -0
  27. data/generators/kitsune/templates/javascripts/tiny_mce/plugins/autosave/editor_plugin_src.js +51 -0
  28. data/generators/kitsune/templates/javascripts/tiny_mce/plugins/bbcode/editor_plugin.js +1 -0
  29. data/generators/kitsune/templates/javascripts/tiny_mce/plugins/bbcode/editor_plugin_src.js +117 -0
  30. data/generators/kitsune/templates/javascripts/tiny_mce/plugins/contextmenu/editor_plugin.js +1 -0
  31. data/generators/kitsune/templates/javascripts/tiny_mce/plugins/contextmenu/editor_plugin_src.js +95 -0
  32. data/generators/kitsune/templates/javascripts/tiny_mce/plugins/directionality/editor_plugin.js +1 -0
  33. data/generators/kitsune/templates/javascripts/tiny_mce/plugins/directionality/editor_plugin_src.js +79 -0
  34. data/generators/kitsune/templates/javascripts/tiny_mce/plugins/emotions/editor_plugin.js +1 -0
  35. data/generators/kitsune/templates/javascripts/tiny_mce/plugins/emotions/editor_plugin_src.js +40 -0
  36. data/generators/kitsune/templates/javascripts/tiny_mce/plugins/emotions/emotions.htm +40 -0
  37. data/generators/kitsune/templates/javascripts/tiny_mce/plugins/emotions/img/smiley-cool.gif +0 -0
  38. data/generators/kitsune/templates/javascripts/tiny_mce/plugins/emotions/img/smiley-cry.gif +0 -0
  39. data/generators/kitsune/templates/javascripts/tiny_mce/plugins/emotions/img/smiley-embarassed.gif +0 -0
  40. data/generators/kitsune/templates/javascripts/tiny_mce/plugins/emotions/img/smiley-foot-in-mouth.gif +0 -0
  41. data/generators/kitsune/templates/javascripts/tiny_mce/plugins/emotions/img/smiley-frown.gif +0 -0
  42. data/generators/kitsune/templates/javascripts/tiny_mce/plugins/emotions/img/smiley-innocent.gif +0 -0
  43. data/generators/kitsune/templates/javascripts/tiny_mce/plugins/emotions/img/smiley-kiss.gif +0 -0
  44. data/generators/kitsune/templates/javascripts/tiny_mce/plugins/emotions/img/smiley-laughing.gif +0 -0
  45. data/generators/kitsune/templates/javascripts/tiny_mce/plugins/emotions/img/smiley-money-mouth.gif +0 -0
  46. data/generators/kitsune/templates/javascripts/tiny_mce/plugins/emotions/img/smiley-sealed.gif +0 -0
  47. data/generators/kitsune/templates/javascripts/tiny_mce/plugins/emotions/img/smiley-smile.gif +0 -0
  48. data/generators/kitsune/templates/javascripts/tiny_mce/plugins/emotions/img/smiley-surprised.gif +0 -0
  49. data/generators/kitsune/templates/javascripts/tiny_mce/plugins/emotions/img/smiley-tongue-out.gif +0 -0
  50. data/generators/kitsune/templates/javascripts/tiny_mce/plugins/emotions/img/smiley-undecided.gif +0 -0
  51. data/generators/kitsune/templates/javascripts/tiny_mce/plugins/emotions/img/smiley-wink.gif +0 -0
  52. data/generators/kitsune/templates/javascripts/tiny_mce/plugins/emotions/img/smiley-yell.gif +0 -0
  53. data/generators/kitsune/templates/javascripts/tiny_mce/plugins/emotions/js/emotions.js +22 -0
  54. data/generators/kitsune/templates/javascripts/tiny_mce/plugins/emotions/langs/en_dlg.js +20 -0
  55. data/generators/kitsune/templates/javascripts/tiny_mce/plugins/example/dialog.htm +27 -0
  56. data/generators/kitsune/templates/javascripts/tiny_mce/plugins/example/editor_plugin.js +1 -0
  57. data/generators/kitsune/templates/javascripts/tiny_mce/plugins/example/editor_plugin_src.js +81 -0
  58. data/generators/kitsune/templates/javascripts/tiny_mce/plugins/example/img/example.gif +0 -0
  59. data/generators/kitsune/templates/javascripts/tiny_mce/plugins/example/js/dialog.js +19 -0
  60. data/generators/kitsune/templates/javascripts/tiny_mce/plugins/example/langs/en.js +3 -0
  61. data/generators/kitsune/templates/javascripts/tiny_mce/plugins/example/langs/en_dlg.js +3 -0
  62. data/generators/kitsune/templates/javascripts/tiny_mce/plugins/fullpage/css/fullpage.css +182 -0
  63. data/generators/kitsune/templates/javascripts/tiny_mce/plugins/fullpage/editor_plugin.js +1 -0
  64. data/generators/kitsune/templates/javascripts/tiny_mce/plugins/fullpage/editor_plugin_src.js +146 -0
  65. data/generators/kitsune/templates/javascripts/tiny_mce/plugins/fullpage/fullpage.htm +576 -0
  66. data/generators/kitsune/templates/javascripts/tiny_mce/plugins/fullpage/js/fullpage.js +461 -0
  67. data/generators/kitsune/templates/javascripts/tiny_mce/plugins/fullpage/langs/en_dlg.js +85 -0
  68. data/generators/kitsune/templates/javascripts/tiny_mce/plugins/fullscreen/editor_plugin.js +1 -0
  69. data/generators/kitsune/templates/javascripts/tiny_mce/plugins/fullscreen/editor_plugin_src.js +145 -0
  70. data/generators/kitsune/templates/javascripts/tiny_mce/plugins/fullscreen/fullscreen.htm +110 -0
  71. data/generators/kitsune/templates/javascripts/tiny_mce/plugins/iespell/editor_plugin.js +1 -0
  72. data/generators/kitsune/templates/javascripts/tiny_mce/plugins/iespell/editor_plugin_src.js +51 -0
  73. data/generators/kitsune/templates/javascripts/tiny_mce/plugins/inlinepopups/editor_plugin.js +1 -0
  74. data/generators/kitsune/templates/javascripts/tiny_mce/plugins/inlinepopups/editor_plugin_src.js +632 -0
  75. data/generators/kitsune/templates/javascripts/tiny_mce/plugins/inlinepopups/skins/clearlooks2/img/alert.gif +0 -0
  76. data/generators/kitsune/templates/javascripts/tiny_mce/plugins/inlinepopups/skins/clearlooks2/img/button.gif +0 -0
  77. data/generators/kitsune/templates/javascripts/tiny_mce/plugins/inlinepopups/skins/clearlooks2/img/buttons.gif +0 -0
  78. data/generators/kitsune/templates/javascripts/tiny_mce/plugins/inlinepopups/skins/clearlooks2/img/confirm.gif +0 -0
  79. data/generators/kitsune/templates/javascripts/tiny_mce/plugins/inlinepopups/skins/clearlooks2/img/corners.gif +0 -0
  80. data/generators/kitsune/templates/javascripts/tiny_mce/plugins/inlinepopups/skins/clearlooks2/img/horizontal.gif +0 -0
  81. data/generators/kitsune/templates/javascripts/tiny_mce/plugins/inlinepopups/skins/clearlooks2/img/vertical.gif +0 -0
  82. data/generators/kitsune/templates/javascripts/tiny_mce/plugins/inlinepopups/skins/clearlooks2/window.css +90 -0
  83. data/generators/kitsune/templates/javascripts/tiny_mce/plugins/inlinepopups/template.htm +387 -0
  84. data/generators/kitsune/templates/javascripts/tiny_mce/plugins/insertdatetime/editor_plugin.js +1 -0
  85. data/generators/kitsune/templates/javascripts/tiny_mce/plugins/insertdatetime/editor_plugin_src.js +80 -0
  86. data/generators/kitsune/templates/javascripts/tiny_mce/plugins/layer/editor_plugin.js +1 -0
  87. data/generators/kitsune/templates/javascripts/tiny_mce/plugins/layer/editor_plugin_src.js +209 -0
  88. data/generators/kitsune/templates/javascripts/tiny_mce/plugins/media/css/content.css +6 -0
  89. data/generators/kitsune/templates/javascripts/tiny_mce/plugins/media/css/media.css +16 -0
  90. data/generators/kitsune/templates/javascripts/tiny_mce/plugins/media/editor_plugin.js +1 -0
  91. data/generators/kitsune/templates/javascripts/tiny_mce/plugins/media/editor_plugin_src.js +411 -0
  92. data/generators/kitsune/templates/javascripts/tiny_mce/plugins/media/img/flash.gif +0 -0
  93. data/generators/kitsune/templates/javascripts/tiny_mce/plugins/media/img/flv_player.swf +0 -0
  94. data/generators/kitsune/templates/javascripts/tiny_mce/plugins/media/img/quicktime.gif +0 -0
  95. data/generators/kitsune/templates/javascripts/tiny_mce/plugins/media/img/realmedia.gif +0 -0
  96. data/generators/kitsune/templates/javascripts/tiny_mce/plugins/media/img/shockwave.gif +0 -0
  97. data/generators/kitsune/templates/javascripts/tiny_mce/plugins/media/img/trans.gif +0 -0
  98. data/generators/kitsune/templates/javascripts/tiny_mce/plugins/media/img/windowsmedia.gif +0 -0
  99. data/generators/kitsune/templates/javascripts/tiny_mce/plugins/media/js/embed.js +73 -0
  100. data/generators/kitsune/templates/javascripts/tiny_mce/plugins/media/js/media.js +630 -0
  101. data/generators/kitsune/templates/javascripts/tiny_mce/plugins/media/langs/en_dlg.js +103 -0
  102. data/generators/kitsune/templates/javascripts/tiny_mce/plugins/media/media.htm +822 -0
  103. data/generators/kitsune/templates/javascripts/tiny_mce/plugins/nonbreaking/editor_plugin.js +1 -0
  104. data/generators/kitsune/templates/javascripts/tiny_mce/plugins/nonbreaking/editor_plugin_src.js +50 -0
  105. data/generators/kitsune/templates/javascripts/tiny_mce/plugins/noneditable/editor_plugin.js +1 -0
  106. data/generators/kitsune/templates/javascripts/tiny_mce/plugins/noneditable/editor_plugin_src.js +87 -0
  107. data/generators/kitsune/templates/javascripts/tiny_mce/plugins/pagebreak/css/content.css +1 -0
  108. data/generators/kitsune/templates/javascripts/tiny_mce/plugins/pagebreak/editor_plugin.js +1 -0
  109. data/generators/kitsune/templates/javascripts/tiny_mce/plugins/pagebreak/editor_plugin_src.js +74 -0
  110. data/generators/kitsune/templates/javascripts/tiny_mce/plugins/pagebreak/img/pagebreak.gif +0 -0
  111. data/generators/kitsune/templates/javascripts/tiny_mce/plugins/pagebreak/img/trans.gif +0 -0
  112. data/generators/kitsune/templates/javascripts/tiny_mce/plugins/paste/editor_plugin.js +1 -0
  113. data/generators/kitsune/templates/javascripts/tiny_mce/plugins/paste/editor_plugin_src.js +531 -0
  114. data/generators/kitsune/templates/javascripts/tiny_mce/plugins/paste/js/pastetext.js +36 -0
  115. data/generators/kitsune/templates/javascripts/tiny_mce/plugins/paste/js/pasteword.js +51 -0
  116. data/generators/kitsune/templates/javascripts/tiny_mce/plugins/paste/langs/en_dlg.js +5 -0
  117. data/generators/kitsune/templates/javascripts/tiny_mce/plugins/paste/pastetext.htm +33 -0
  118. data/generators/kitsune/templates/javascripts/tiny_mce/plugins/paste/pasteword.htm +27 -0
  119. data/generators/kitsune/templates/javascripts/tiny_mce/plugins/preview/editor_plugin.js +1 -0
  120. data/generators/kitsune/templates/javascripts/tiny_mce/plugins/preview/editor_plugin_src.js +50 -0
  121. data/generators/kitsune/templates/javascripts/tiny_mce/plugins/preview/example.html +28 -0
  122. data/generators/kitsune/templates/javascripts/tiny_mce/plugins/preview/jscripts/embed.js +73 -0
  123. data/generators/kitsune/templates/javascripts/tiny_mce/plugins/preview/preview.html +17 -0
  124. data/generators/kitsune/templates/javascripts/tiny_mce/plugins/print/editor_plugin.js +1 -0
  125. data/generators/kitsune/templates/javascripts/tiny_mce/plugins/print/editor_plugin_src.js +31 -0
  126. data/generators/kitsune/templates/javascripts/tiny_mce/plugins/safari/blank.htm +1 -0
  127. data/generators/kitsune/templates/javascripts/tiny_mce/plugins/safari/editor_plugin.js +1 -0
  128. data/generators/kitsune/templates/javascripts/tiny_mce/plugins/safari/editor_plugin_src.js +438 -0
  129. data/generators/kitsune/templates/javascripts/tiny_mce/plugins/save/editor_plugin.js +1 -0
  130. data/generators/kitsune/templates/javascripts/tiny_mce/plugins/save/editor_plugin_src.js +98 -0
  131. data/generators/kitsune/templates/javascripts/tiny_mce/plugins/searchreplace/css/searchreplace.css +6 -0
  132. data/generators/kitsune/templates/javascripts/tiny_mce/plugins/searchreplace/editor_plugin.js +1 -0
  133. data/generators/kitsune/templates/javascripts/tiny_mce/plugins/searchreplace/editor_plugin_src.js +54 -0
  134. data/generators/kitsune/templates/javascripts/tiny_mce/plugins/searchreplace/js/searchreplace.js +126 -0
  135. data/generators/kitsune/templates/javascripts/tiny_mce/plugins/searchreplace/langs/en_dlg.js +16 -0
  136. data/generators/kitsune/templates/javascripts/tiny_mce/plugins/searchreplace/searchreplace.htm +104 -0
  137. data/generators/kitsune/templates/javascripts/tiny_mce/plugins/spellchecker/css/content.css +1 -0
  138. data/generators/kitsune/templates/javascripts/tiny_mce/plugins/spellchecker/editor_plugin.js +1 -0
  139. data/generators/kitsune/templates/javascripts/tiny_mce/plugins/spellchecker/editor_plugin_src.js +338 -0
  140. data/generators/kitsune/templates/javascripts/tiny_mce/plugins/spellchecker/img/wline.gif +0 -0
  141. data/generators/kitsune/templates/javascripts/tiny_mce/plugins/style/css/props.css +13 -0
  142. data/generators/kitsune/templates/javascripts/tiny_mce/plugins/style/editor_plugin.js +1 -0
  143. data/generators/kitsune/templates/javascripts/tiny_mce/plugins/style/editor_plugin_src.js +52 -0
  144. data/generators/kitsune/templates/javascripts/tiny_mce/plugins/style/js/props.js +641 -0
  145. data/generators/kitsune/templates/javascripts/tiny_mce/plugins/style/langs/en_dlg.js +63 -0
  146. data/generators/kitsune/templates/javascripts/tiny_mce/plugins/style/props.htm +730 -0
  147. data/generators/kitsune/templates/javascripts/tiny_mce/plugins/tabfocus/editor_plugin.js +1 -0
  148. data/generators/kitsune/templates/javascripts/tiny_mce/plugins/tabfocus/editor_plugin_src.js +109 -0
  149. data/generators/kitsune/templates/javascripts/tiny_mce/plugins/table/cell.htm +183 -0
  150. data/generators/kitsune/templates/javascripts/tiny_mce/plugins/table/css/cell.css +17 -0
  151. data/generators/kitsune/templates/javascripts/tiny_mce/plugins/table/css/row.css +25 -0
  152. data/generators/kitsune/templates/javascripts/tiny_mce/plugins/table/css/table.css +13 -0
  153. data/generators/kitsune/templates/javascripts/tiny_mce/plugins/table/editor_plugin.js +1 -0
  154. data/generators/kitsune/templates/javascripts/tiny_mce/plugins/table/editor_plugin_src.js +1202 -0
  155. data/generators/kitsune/templates/javascripts/tiny_mce/plugins/table/js/cell.js +269 -0
  156. data/generators/kitsune/templates/javascripts/tiny_mce/plugins/table/js/merge_cells.js +29 -0
  157. data/generators/kitsune/templates/javascripts/tiny_mce/plugins/table/js/row.js +212 -0
  158. data/generators/kitsune/templates/javascripts/tiny_mce/plugins/table/js/table.js +440 -0
  159. data/generators/kitsune/templates/javascripts/tiny_mce/plugins/table/langs/en_dlg.js +74 -0
  160. data/generators/kitsune/templates/javascripts/tiny_mce/plugins/table/merge_cells.htm +37 -0
  161. data/generators/kitsune/templates/javascripts/tiny_mce/plugins/table/row.htm +160 -0
  162. data/generators/kitsune/templates/javascripts/tiny_mce/plugins/table/table.htm +192 -0
  163. data/generators/kitsune/templates/javascripts/tiny_mce/plugins/template/blank.htm +12 -0
  164. data/generators/kitsune/templates/javascripts/tiny_mce/plugins/template/css/template.css +23 -0
  165. data/generators/kitsune/templates/javascripts/tiny_mce/plugins/template/editor_plugin.js +1 -0
  166. data/generators/kitsune/templates/javascripts/tiny_mce/plugins/template/editor_plugin_src.js +156 -0
  167. data/generators/kitsune/templates/javascripts/tiny_mce/plugins/template/js/template.js +106 -0
  168. data/generators/kitsune/templates/javascripts/tiny_mce/plugins/template/langs/en_dlg.js +15 -0
  169. data/generators/kitsune/templates/javascripts/tiny_mce/plugins/template/template.htm +38 -0
  170. data/generators/kitsune/templates/javascripts/tiny_mce/plugins/visualchars/editor_plugin.js +1 -0
  171. data/generators/kitsune/templates/javascripts/tiny_mce/plugins/visualchars/editor_plugin_src.js +73 -0
  172. data/generators/kitsune/templates/javascripts/tiny_mce/plugins/wordcount/editor_plugin.js +1 -0
  173. data/generators/kitsune/templates/javascripts/tiny_mce/plugins/wordcount/editor_plugin_src.js +95 -0
  174. data/generators/kitsune/templates/javascripts/tiny_mce/plugins/xhtmlxtras/abbr.htm +148 -0
  175. data/generators/kitsune/templates/javascripts/tiny_mce/plugins/xhtmlxtras/acronym.htm +148 -0
  176. data/generators/kitsune/templates/javascripts/tiny_mce/plugins/xhtmlxtras/attributes.htm +153 -0
  177. data/generators/kitsune/templates/javascripts/tiny_mce/plugins/xhtmlxtras/cite.htm +148 -0
  178. data/generators/kitsune/templates/javascripts/tiny_mce/plugins/xhtmlxtras/css/attributes.css +11 -0
  179. data/generators/kitsune/templates/javascripts/tiny_mce/plugins/xhtmlxtras/css/popup.css +9 -0
  180. data/generators/kitsune/templates/javascripts/tiny_mce/plugins/xhtmlxtras/del.htm +169 -0
  181. data/generators/kitsune/templates/javascripts/tiny_mce/plugins/xhtmlxtras/editor_plugin.js +1 -0
  182. data/generators/kitsune/templates/javascripts/tiny_mce/plugins/xhtmlxtras/editor_plugin_src.js +136 -0
  183. data/generators/kitsune/templates/javascripts/tiny_mce/plugins/xhtmlxtras/ins.htm +169 -0
  184. data/generators/kitsune/templates/javascripts/tiny_mce/plugins/xhtmlxtras/js/abbr.js +25 -0
  185. data/generators/kitsune/templates/javascripts/tiny_mce/plugins/xhtmlxtras/js/acronym.js +25 -0
  186. data/generators/kitsune/templates/javascripts/tiny_mce/plugins/xhtmlxtras/js/attributes.js +123 -0
  187. data/generators/kitsune/templates/javascripts/tiny_mce/plugins/xhtmlxtras/js/cite.js +25 -0
  188. data/generators/kitsune/templates/javascripts/tiny_mce/plugins/xhtmlxtras/js/del.js +60 -0
  189. data/generators/kitsune/templates/javascripts/tiny_mce/plugins/xhtmlxtras/js/element_common.js +231 -0
  190. data/generators/kitsune/templates/javascripts/tiny_mce/plugins/xhtmlxtras/js/ins.js +59 -0
  191. data/generators/kitsune/templates/javascripts/tiny_mce/plugins/xhtmlxtras/langs/en_dlg.js +32 -0
  192. data/generators/kitsune/templates/javascripts/tiny_mce/themes/advanced/about.htm +56 -0
  193. data/generators/kitsune/templates/javascripts/tiny_mce/themes/advanced/anchor.htm +31 -0
  194. data/generators/kitsune/templates/javascripts/tiny_mce/themes/advanced/charmap.htm +53 -0
  195. data/generators/kitsune/templates/javascripts/tiny_mce/themes/advanced/color_picker.htm +75 -0
  196. data/generators/kitsune/templates/javascripts/tiny_mce/themes/advanced/editor_template.js +1 -0
  197. data/generators/kitsune/templates/javascripts/tiny_mce/themes/advanced/editor_template_src.js +1153 -0
  198. data/generators/kitsune/templates/javascripts/tiny_mce/themes/advanced/image.htm +85 -0
  199. data/generators/kitsune/templates/javascripts/tiny_mce/themes/advanced/img/colorpicker.jpg +0 -0
  200. data/generators/kitsune/templates/javascripts/tiny_mce/themes/advanced/img/icons.gif +0 -0
  201. data/generators/kitsune/templates/javascripts/tiny_mce/themes/advanced/js/about.js +72 -0
  202. data/generators/kitsune/templates/javascripts/tiny_mce/themes/advanced/js/anchor.js +37 -0
  203. data/generators/kitsune/templates/javascripts/tiny_mce/themes/advanced/js/charmap.js +325 -0
  204. data/generators/kitsune/templates/javascripts/tiny_mce/themes/advanced/js/color_picker.js +253 -0
  205. data/generators/kitsune/templates/javascripts/tiny_mce/themes/advanced/js/image.js +245 -0
  206. data/generators/kitsune/templates/javascripts/tiny_mce/themes/advanced/js/link.js +156 -0
  207. data/generators/kitsune/templates/javascripts/tiny_mce/themes/advanced/js/source_editor.js +62 -0
  208. data/generators/kitsune/templates/javascripts/tiny_mce/themes/advanced/langs/en.js +62 -0
  209. data/generators/kitsune/templates/javascripts/tiny_mce/themes/advanced/langs/en_dlg.js +51 -0
  210. data/generators/kitsune/templates/javascripts/tiny_mce/themes/advanced/link.htm +63 -0
  211. data/generators/kitsune/templates/javascripts/tiny_mce/themes/advanced/skins/default/content.css +32 -0
  212. data/generators/kitsune/templates/javascripts/tiny_mce/themes/advanced/skins/default/dialog.css +116 -0
  213. data/generators/kitsune/templates/javascripts/tiny_mce/themes/advanced/skins/default/img/buttons.png +0 -0
  214. data/generators/kitsune/templates/javascripts/tiny_mce/themes/advanced/skins/default/img/items.gif +0 -0
  215. data/generators/kitsune/templates/javascripts/tiny_mce/themes/advanced/skins/default/img/menu_arrow.gif +0 -0
  216. data/generators/kitsune/templates/javascripts/tiny_mce/themes/advanced/skins/default/img/menu_check.gif +0 -0
  217. data/generators/kitsune/templates/javascripts/tiny_mce/themes/advanced/skins/default/img/progress.gif +0 -0
  218. data/generators/kitsune/templates/javascripts/tiny_mce/themes/advanced/skins/default/img/tabs.gif +0 -0
  219. data/generators/kitsune/templates/javascripts/tiny_mce/themes/advanced/skins/default/ui.css +214 -0
  220. data/generators/kitsune/templates/javascripts/tiny_mce/themes/advanced/skins/o2k7/content.css +32 -0
  221. data/generators/kitsune/templates/javascripts/tiny_mce/themes/advanced/skins/o2k7/dialog.css +115 -0
  222. data/generators/kitsune/templates/javascripts/tiny_mce/themes/advanced/skins/o2k7/img/button_bg.png +0 -0
  223. data/generators/kitsune/templates/javascripts/tiny_mce/themes/advanced/skins/o2k7/img/button_bg_black.png +0 -0
  224. data/generators/kitsune/templates/javascripts/tiny_mce/themes/advanced/skins/o2k7/img/button_bg_silver.png +0 -0
  225. data/generators/kitsune/templates/javascripts/tiny_mce/themes/advanced/skins/o2k7/ui.css +215 -0
  226. data/generators/kitsune/templates/javascripts/tiny_mce/themes/advanced/skins/o2k7/ui_black.css +8 -0
  227. data/generators/kitsune/templates/javascripts/tiny_mce/themes/advanced/skins/o2k7/ui_silver.css +5 -0
  228. data/generators/kitsune/templates/javascripts/tiny_mce/themes/advanced/source_editor.htm +31 -0
  229. data/generators/kitsune/templates/javascripts/tiny_mce/themes/simple/editor_template.js +1 -0
  230. data/generators/kitsune/templates/javascripts/tiny_mce/themes/simple/editor_template_src.js +85 -0
  231. data/generators/kitsune/templates/javascripts/tiny_mce/themes/simple/img/icons.gif +0 -0
  232. data/generators/kitsune/templates/javascripts/tiny_mce/themes/simple/langs/en.js +11 -0
  233. data/generators/kitsune/templates/javascripts/tiny_mce/themes/simple/skins/default/content.css +25 -0
  234. data/generators/kitsune/templates/javascripts/tiny_mce/themes/simple/skins/default/ui.css +32 -0
  235. data/generators/kitsune/templates/javascripts/tiny_mce/themes/simple/skins/o2k7/content.css +17 -0
  236. data/generators/kitsune/templates/javascripts/tiny_mce/themes/simple/skins/o2k7/img/button_bg.png +0 -0
  237. data/generators/kitsune/templates/javascripts/tiny_mce/themes/simple/skins/o2k7/ui.css +35 -0
  238. data/generators/kitsune/templates/javascripts/tiny_mce/tiny_mce.js +1 -0
  239. data/generators/kitsune/templates/javascripts/tiny_mce/tiny_mce_popup.js +5 -0
  240. data/generators/kitsune/templates/javascripts/tiny_mce/tiny_mce_src.js +13231 -0
  241. data/generators/kitsune/templates/javascripts/tiny_mce/utils/editable_selects.js +69 -0
  242. data/generators/kitsune/templates/javascripts/tiny_mce/utils/form_utils.js +199 -0
  243. data/generators/kitsune/templates/javascripts/tiny_mce/utils/mctabs.js +76 -0
  244. data/generators/kitsune/templates/javascripts/tiny_mce/utils/validate.js +219 -0
  245. data/lib/kitsune.rb +1 -1
  246. metadata +243 -2
  247. data/generators/kitsune/templates/javascripts/nicEdit.js +0 -102
@@ -0,0 +1 @@
1
+ (function(){tinymce.create("tinymce.plugins.Save",{init:function(a,b){var c=this;c.editor=a;a.addCommand("mceSave",c._save,c);a.addCommand("mceCancel",c._cancel,c);a.addButton("save",{title:"save.save_desc",cmd:"mceSave"});a.addButton("cancel",{title:"save.cancel_desc",cmd:"mceCancel"});a.onNodeChange.add(c._nodeChange,c);a.addShortcut("ctrl+s",a.getLang("save.save_desc"),"mceSave")},getInfo:function(){return{longname:"Save",author:"Moxiecode Systems AB",authorurl:"http://tinymce.moxiecode.com",infourl:"http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/save",version:tinymce.majorVersion+"."+tinymce.minorVersion}},_nodeChange:function(b,a,c){var b=this.editor;if(b.getParam("save_enablewhendirty")){a.setDisabled("save",!b.isDirty());a.setDisabled("cancel",!b.isDirty())}},_save:function(){var c=this.editor,a,e,d,b;a=tinymce.DOM.get(c.id).form||tinymce.DOM.getParent(c.id,"form");if(c.getParam("save_enablewhendirty")&&!c.isDirty()){return}tinyMCE.triggerSave();if(e=c.getParam("save_onsavecallback")){if(c.execCallback("save_onsavecallback",c)){c.startContent=tinymce.trim(c.getContent({format:"raw"}));c.nodeChanged()}return}if(a){c.isNotDirty=true;if(a.onsubmit==null||a.onsubmit()!=false){a.submit()}c.nodeChanged()}else{c.windowManager.alert("Error: No form element found.")}},_cancel:function(){var a=this.editor,c,b=tinymce.trim(a.startContent);if(c=a.getParam("save_oncancelcallback")){a.execCallback("save_oncancelcallback",a);return}a.setContent(b);a.undoManager.clear();a.nodeChanged()}});tinymce.PluginManager.add("save",tinymce.plugins.Save)})();
@@ -0,0 +1,98 @@
1
+ /**
2
+ * $Id: editor_plugin_src.js 851 2008-05-26 15:38:49Z spocke $
3
+ *
4
+ * @author Moxiecode
5
+ * @copyright Copyright � 2004-2008, Moxiecode Systems AB, All rights reserved.
6
+ */
7
+
8
+ (function() {
9
+ tinymce.create('tinymce.plugins.Save', {
10
+ init : function(ed, url) {
11
+ var t = this;
12
+
13
+ t.editor = ed;
14
+
15
+ // Register commands
16
+ ed.addCommand('mceSave', t._save, t);
17
+ ed.addCommand('mceCancel', t._cancel, t);
18
+
19
+ // Register buttons
20
+ ed.addButton('save', {title : 'save.save_desc', cmd : 'mceSave'});
21
+ ed.addButton('cancel', {title : 'save.cancel_desc', cmd : 'mceCancel'});
22
+
23
+ ed.onNodeChange.add(t._nodeChange, t);
24
+ ed.addShortcut('ctrl+s', ed.getLang('save.save_desc'), 'mceSave');
25
+ },
26
+
27
+ getInfo : function() {
28
+ return {
29
+ longname : 'Save',
30
+ author : 'Moxiecode Systems AB',
31
+ authorurl : 'http://tinymce.moxiecode.com',
32
+ infourl : 'http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/save',
33
+ version : tinymce.majorVersion + "." + tinymce.minorVersion
34
+ };
35
+ },
36
+
37
+ // Private methods
38
+
39
+ _nodeChange : function(ed, cm, n) {
40
+ var ed = this.editor;
41
+
42
+ if (ed.getParam('save_enablewhendirty')) {
43
+ cm.setDisabled('save', !ed.isDirty());
44
+ cm.setDisabled('cancel', !ed.isDirty());
45
+ }
46
+ },
47
+
48
+ // Private methods
49
+
50
+ _save : function() {
51
+ var ed = this.editor, formObj, os, i, elementId;
52
+
53
+ formObj = tinymce.DOM.get(ed.id).form || tinymce.DOM.getParent(ed.id, 'form');
54
+
55
+ if (ed.getParam("save_enablewhendirty") && !ed.isDirty())
56
+ return;
57
+
58
+ tinyMCE.triggerSave();
59
+
60
+ // Use callback instead
61
+ if (os = ed.getParam("save_onsavecallback")) {
62
+ if (ed.execCallback('save_onsavecallback', ed)) {
63
+ ed.startContent = tinymce.trim(ed.getContent({format : 'raw'}));
64
+ ed.nodeChanged();
65
+ }
66
+
67
+ return;
68
+ }
69
+
70
+ if (formObj) {
71
+ ed.isNotDirty = true;
72
+
73
+ if (formObj.onsubmit == null || formObj.onsubmit() != false)
74
+ formObj.submit();
75
+
76
+ ed.nodeChanged();
77
+ } else
78
+ ed.windowManager.alert("Error: No form element found.");
79
+ },
80
+
81
+ _cancel : function() {
82
+ var ed = this.editor, os, h = tinymce.trim(ed.startContent);
83
+
84
+ // Use callback instead
85
+ if (os = ed.getParam("save_oncancelcallback")) {
86
+ ed.execCallback('save_oncancelcallback', ed);
87
+ return;
88
+ }
89
+
90
+ ed.setContent(h);
91
+ ed.undoManager.clear();
92
+ ed.nodeChanged();
93
+ }
94
+ });
95
+
96
+ // Register plugin
97
+ tinymce.PluginManager.add('save', tinymce.plugins.Save);
98
+ })();
@@ -0,0 +1,6 @@
1
+ .panel_wrapper {height:85px;}
2
+ .panel_wrapper div.current {height:85px;}
3
+
4
+ /* IE */
5
+ * html .panel_wrapper {height:100px;}
6
+ * html .panel_wrapper div.current {height:100px;}
@@ -0,0 +1 @@
1
+ (function(){tinymce.create("tinymce.plugins.SearchReplacePlugin",{init:function(a,c){function b(d){a.windowManager.open({file:c+"/searchreplace.htm",width:420+parseInt(a.getLang("searchreplace.delta_width",0)),height:160+parseInt(a.getLang("searchreplace.delta_height",0)),inline:1,auto_focus:0},{mode:d,search_string:a.selection.getContent({format:"text"}),plugin_url:c})}a.addCommand("mceSearch",function(){b("search")});a.addCommand("mceReplace",function(){b("replace")});a.addButton("search",{title:"searchreplace.search_desc",cmd:"mceSearch"});a.addButton("replace",{title:"searchreplace.replace_desc",cmd:"mceReplace"});a.addShortcut("ctrl+f","searchreplace.search_desc","mceSearch")},getInfo:function(){return{longname:"Search/Replace",author:"Moxiecode Systems AB",authorurl:"http://tinymce.moxiecode.com",infourl:"http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/searchreplace",version:tinymce.majorVersion+"."+tinymce.minorVersion}}});tinymce.PluginManager.add("searchreplace",tinymce.plugins.SearchReplacePlugin)})();
@@ -0,0 +1,54 @@
1
+ /**
2
+ * $Id: editor_plugin_src.js 686 2008-03-09 18:13:49Z spocke $
3
+ *
4
+ * @author Moxiecode
5
+ * @copyright Copyright � 2004-2008, Moxiecode Systems AB, All rights reserved.
6
+ */
7
+
8
+ (function() {
9
+ tinymce.create('tinymce.plugins.SearchReplacePlugin', {
10
+ init : function(ed, url) {
11
+ function open(m) {
12
+ ed.windowManager.open({
13
+ file : url + '/searchreplace.htm',
14
+ width : 420 + parseInt(ed.getLang('searchreplace.delta_width', 0)),
15
+ height : 160 + parseInt(ed.getLang('searchreplace.delta_height', 0)),
16
+ inline : 1,
17
+ auto_focus : 0
18
+ }, {
19
+ mode : m,
20
+ search_string : ed.selection.getContent({format : 'text'}),
21
+ plugin_url : url
22
+ });
23
+ };
24
+
25
+ // Register commands
26
+ ed.addCommand('mceSearch', function() {
27
+ open('search');
28
+ });
29
+
30
+ ed.addCommand('mceReplace', function() {
31
+ open('replace');
32
+ });
33
+
34
+ // Register buttons
35
+ ed.addButton('search', {title : 'searchreplace.search_desc', cmd : 'mceSearch'});
36
+ ed.addButton('replace', {title : 'searchreplace.replace_desc', cmd : 'mceReplace'});
37
+
38
+ ed.addShortcut('ctrl+f', 'searchreplace.search_desc', 'mceSearch');
39
+ },
40
+
41
+ getInfo : function() {
42
+ return {
43
+ longname : 'Search/Replace',
44
+ author : 'Moxiecode Systems AB',
45
+ authorurl : 'http://tinymce.moxiecode.com',
46
+ infourl : 'http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/searchreplace',
47
+ version : tinymce.majorVersion + "." + tinymce.minorVersion
48
+ };
49
+ }
50
+ });
51
+
52
+ // Register plugin
53
+ tinymce.PluginManager.add('searchreplace', tinymce.plugins.SearchReplacePlugin);
54
+ })();
@@ -0,0 +1,126 @@
1
+ tinyMCEPopup.requireLangPack();
2
+
3
+ var SearchReplaceDialog = {
4
+ init : function(ed) {
5
+ var f = document.forms[0], m = tinyMCEPopup.getWindowArg("mode");
6
+
7
+ this.switchMode(m);
8
+
9
+ f[m + '_panel_searchstring'].value = tinyMCEPopup.getWindowArg("search_string");
10
+
11
+ // Focus input field
12
+ f[m + '_panel_searchstring'].focus();
13
+ },
14
+
15
+ switchMode : function(m) {
16
+ var f, lm = this.lastMode;
17
+
18
+ if (lm != m) {
19
+ f = document.forms[0];
20
+
21
+ if (lm) {
22
+ f[m + '_panel_searchstring'].value = f[lm + '_panel_searchstring'].value;
23
+ f[m + '_panel_backwardsu'].checked = f[lm + '_panel_backwardsu'].checked;
24
+ f[m + '_panel_backwardsd'].checked = f[lm + '_panel_backwardsd'].checked;
25
+ f[m + '_panel_casesensitivebox'].checked = f[lm + '_panel_casesensitivebox'].checked;
26
+ }
27
+
28
+ mcTabs.displayTab(m + '_tab', m + '_panel');
29
+ document.getElementById("replaceBtn").style.display = (m == "replace") ? "inline" : "none";
30
+ document.getElementById("replaceAllBtn").style.display = (m == "replace") ? "inline" : "none";
31
+ this.lastMode = m;
32
+ }
33
+ },
34
+
35
+ searchNext : function(a) {
36
+ var ed = tinyMCEPopup.editor, se = ed.selection, r = se.getRng(), f, m = this.lastMode, s, b, fl = 0, w = ed.getWin(), wm = ed.windowManager, fo = 0;
37
+
38
+ // Get input
39
+ f = document.forms[0];
40
+ s = f[m + '_panel_searchstring'].value;
41
+ b = f[m + '_panel_backwardsu'].checked;
42
+ ca = f[m + '_panel_casesensitivebox'].checked;
43
+ rs = f['replace_panel_replacestring'].value;
44
+
45
+ if (s == '')
46
+ return;
47
+
48
+ function fix() {
49
+ // Correct Firefox graphics glitches
50
+ r = se.getRng().cloneRange();
51
+ ed.getDoc().execCommand('SelectAll', false, null);
52
+ se.setRng(r);
53
+ };
54
+
55
+ function replace() {
56
+ if (tinymce.isIE)
57
+ ed.selection.getRng().duplicate().pasteHTML(rs); // Needs to be duplicated due to selection bug in IE
58
+ else
59
+ ed.getDoc().execCommand('InsertHTML', false, rs);
60
+ };
61
+
62
+ // IE flags
63
+ if (ca)
64
+ fl = fl | 4;
65
+
66
+ switch (a) {
67
+ case 'all':
68
+ // Move caret to beginning of text
69
+ ed.execCommand('SelectAll');
70
+ ed.selection.collapse(true);
71
+
72
+ if (tinymce.isIE) {
73
+ while (r.findText(s, b ? -1 : 1, fl)) {
74
+ r.scrollIntoView();
75
+ r.select();
76
+ replace();
77
+ fo = 1;
78
+ }
79
+
80
+ tinyMCEPopup.storeSelection();
81
+ } else {
82
+ while (w.find(s, ca, b, false, false, false, false)) {
83
+ replace();
84
+ fo = 1;
85
+ }
86
+ }
87
+
88
+ if (fo)
89
+ tinyMCEPopup.alert(ed.getLang('searchreplace_dlg.allreplaced'));
90
+ else
91
+ tinyMCEPopup.alert(ed.getLang('searchreplace_dlg.notfound'));
92
+
93
+ return;
94
+
95
+ case 'current':
96
+ if (!ed.selection.isCollapsed())
97
+ replace();
98
+
99
+ break;
100
+ }
101
+
102
+ se.collapse(b);
103
+ r = se.getRng();
104
+
105
+ // Whats the point
106
+ if (!s)
107
+ return;
108
+
109
+ if (tinymce.isIE) {
110
+ if (r.findText(s, b ? -1 : 1, fl)) {
111
+ r.scrollIntoView();
112
+ r.select();
113
+ } else
114
+ tinyMCEPopup.alert(ed.getLang('searchreplace_dlg.notfound'));
115
+
116
+ tinyMCEPopup.storeSelection();
117
+ } else {
118
+ if (!w.find(s, ca, b, false, false, false, false))
119
+ tinyMCEPopup.alert(ed.getLang('searchreplace_dlg.notfound'));
120
+ else
121
+ fix();
122
+ }
123
+ }
124
+ };
125
+
126
+ tinyMCEPopup.onInit.add(SearchReplaceDialog.init, SearchReplaceDialog);
@@ -0,0 +1,16 @@
1
+ tinyMCE.addI18n('en.searchreplace_dlg',{
2
+ searchnext_desc:"Find again",
3
+ notfound:"The search has been completed. The search string could not be found.",
4
+ search_title:"Find",
5
+ replace_title:"Find/Replace",
6
+ allreplaced:"All occurrences of the search string were replaced.",
7
+ findwhat:"Find what",
8
+ replacewith:"Replace with",
9
+ direction:"Direction",
10
+ up:"Up",
11
+ down:"Down",
12
+ mcase:"Match case",
13
+ findnext:"Find next",
14
+ replace:"Replace",
15
+ replaceall:"Replace all"
16
+ });
@@ -0,0 +1,104 @@
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>{#searchreplace_dlg.replace_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="js/searchreplace.js"></script>
9
+ <link rel="stylesheet" type="text/css" href="css/searchreplace.css" />
10
+ </head>
11
+ <body style="display:none;">
12
+ <form onsubmit="SearchReplaceDialog.searchNext('none');return false;" action="#">
13
+ <div class="tabs">
14
+ <ul>
15
+ <li id="search_tab"><span><a href="javascript:SearchReplaceDialog.switchMode('search');" onmousedown="return false;">{#searchreplace.search_desc}</a></span></li>
16
+ <li id="replace_tab"><span><a href="javascript:SearchReplaceDialog.switchMode('replace');" onmousedown="return false;">{#searchreplace_dlg.replace}</a></span></li>
17
+ </ul>
18
+ </div>
19
+
20
+ <div class="panel_wrapper">
21
+ <div id="search_panel" class="panel">
22
+ <table border="0" cellspacing="0" cellpadding="2">
23
+ <tr>
24
+ <td><label for="search_panel_searchstring">{#searchreplace_dlg.findwhat}</label></td>
25
+ <td><input type="text" id="search_panel_searchstring" name="search_panel_searchstring" style="width: 200px" /></td>
26
+ </tr>
27
+ <tr>
28
+ <td colspan="2">
29
+ <table border="0" cellspacing="0" cellpadding="0" class="direction">
30
+ <tr>
31
+ <td><label>{#searchreplace_dlg.direction}</label></td>
32
+ <td><input id="search_panel_backwardsu" name="search_panel_backwards" class="radio" type="radio" /></td>
33
+ <td><label for="search_panel_backwardsu">{#searchreplace_dlg.up}</label></td>
34
+ <td><input id="search_panel_backwardsd" name="search_panel_backwards" class="radio" type="radio" checked="checked" /></td>
35
+ <td><label for="search_panel_backwardsd">{#searchreplace_dlg.down}</label></td>
36
+ </tr>
37
+ </table>
38
+ </td>
39
+ </tr>
40
+ <tr>
41
+ <td colspan="2">
42
+ <table border="0" cellspacing="0" cellpadding="0">
43
+ <tr>
44
+ <td><input id="search_panel_casesensitivebox" name="search_panel_casesensitivebox" class="checkbox" type="checkbox" /></td>
45
+ <td><label for="search_panel_casesensitivebox">{#searchreplace_dlg.mcase}</label></td>
46
+ </tr>
47
+ </table>
48
+ </td>
49
+ </tr>
50
+ </table>
51
+ </div>
52
+
53
+ <div id="replace_panel" class="panel">
54
+ <table border="0" cellspacing="0" cellpadding="2">
55
+ <tr>
56
+ <td><label for="replace_panel_searchstring">{#searchreplace_dlg.findwhat}</label></td>
57
+ <td><input type="text" id="replace_panel_searchstring" name="replace_panel_searchstring" style="width: 200px" /></td>
58
+ </tr>
59
+ <tr>
60
+ <td><label for="replace_panel_replacestring">{#searchreplace_dlg.replacewith}</label></td>
61
+ <td><input type="text" id="replace_panel_replacestring" name="replace_panel_replacestring" style="width: 200px" /></td>
62
+ </tr>
63
+ <tr>
64
+ <td colspan="2">
65
+ <table border="0" cellspacing="0" cellpadding="0" class="direction">
66
+ <tr>
67
+ <td><label>{#searchreplace_dlg.direction}</label></td>
68
+ <td><input id="replace_panel_backwardsu" name="replace_panel_backwards" class="radio" type="radio" /></td>
69
+ <td><label for="replace_panel_backwardsu">{#searchreplace_dlg.up}</label></td>
70
+ <td><input id="replace_panel_backwardsd" name="replace_panel_backwards" class="radio" type="radio" checked="checked" /></td>
71
+ <td><label for="replace_panel_backwardsd">{#searchreplace_dlg.down}</label></td>
72
+ </tr>
73
+ </table>
74
+ </td>
75
+ </tr>
76
+ <tr>
77
+ <td colspan="2">
78
+ <table border="0" cellspacing="0" cellpadding="0">
79
+ <tr>
80
+ <td><input id="replace_panel_casesensitivebox" name="replace_panel_casesensitivebox" class="checkbox" type="checkbox" /></td>
81
+ <td><label for="replace_panel_casesensitivebox">{#searchreplace_dlg.mcase}</label></td>
82
+ </tr>
83
+ </table>
84
+ </td>
85
+ </tr>
86
+ </table>
87
+ </div>
88
+
89
+ </div>
90
+
91
+ <div class="mceActionPanel">
92
+ <div style="float: left">
93
+ <input type="submit" id="insert" name="insert" value="{#searchreplace_dlg.findnext}" />
94
+ <input type="button" class="button" id="replaceBtn" name="replaceBtn" value="{#searchreplace_dlg.replace}" onclick="SearchReplaceDialog.searchNext('current');" />
95
+ <input type="button" class="button" id="replaceAllBtn" name="replaceAllBtn" value="{#searchreplace_dlg.replaceall}" onclick="SearchReplaceDialog.searchNext('all');" />
96
+ </div>
97
+
98
+ <div style="float: right">
99
+ <input type="button" id="cancel" name="cancel" value="{#cancel}" onclick="tinyMCEPopup.close();" />
100
+ </div>
101
+ </div>
102
+ </form>
103
+ </body>
104
+ </html>
@@ -0,0 +1 @@
1
+ .mceItemHiddenSpellWord {background:url(../img/wline.gif) repeat-x bottom left; cursor:default;}
@@ -0,0 +1 @@
1
+ (function(){var a=tinymce.util.JSONRequest,c=tinymce.each,b=tinymce.DOM;tinymce.create("tinymce.plugins.SpellcheckerPlugin",{getInfo:function(){return{longname:"Spellchecker",author:"Moxiecode Systems AB",authorurl:"http://tinymce.moxiecode.com",infourl:"http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/spellchecker",version:tinymce.majorVersion+"."+tinymce.minorVersion}},init:function(e,f){var g=this,d;g.url=f;g.editor=e;e.addCommand("mceSpellCheck",function(){if(!g.active){e.setProgressState(1);g._sendRPC("checkWords",[g.selectedLang,g._getWords()],function(h){if(h.length>0){g.active=1;g._markWords(h);e.setProgressState(0);e.nodeChanged()}else{e.setProgressState(0);e.windowManager.alert("spellchecker.no_mpell")}})}else{g._done()}});e.onInit.add(function(){if(e.settings.content_css!==false){e.dom.loadCSS(f+"/css/content.css")}});e.onClick.add(g._showMenu,g);e.onContextMenu.add(g._showMenu,g);e.onBeforeGetContent.add(function(){if(g.active){g._removeWords()}});e.onNodeChange.add(function(i,h){h.setActive("spellchecker",g.active)});e.onSetContent.add(function(){g._done()});e.onBeforeGetContent.add(function(){g._done()});e.onBeforeExecCommand.add(function(h,i){if(i=="mceFullScreen"){g._done()}});g.languages={};c(e.getParam("spellchecker_languages","+English=en,Danish=da,Dutch=nl,Finnish=fi,French=fr,German=de,Italian=it,Polish=pl,Portuguese=pt,Spanish=es,Swedish=sv","hash"),function(i,h){if(h.indexOf("+")===0){h=h.substring(1);g.selectedLang=i}g.languages[h]=i})},createControl:function(h,d){var f=this,g,e=f.editor;if(h=="spellchecker"){g=d.createSplitButton(h,{title:"spellchecker.desc",cmd:"mceSpellCheck",scope:f});g.onRenderMenu.add(function(j,i){i.add({title:"spellchecker.langs","class":"mceMenuItemTitle"}).setDisabled(1);c(f.languages,function(n,m){var p={icon:1},l;p.onclick=function(){l.setSelected(1);f.selectedItem.setSelected(0);f.selectedItem=l;f.selectedLang=n};p.title=m;l=i.add(p);l.setSelected(n==f.selectedLang);if(n==f.selectedLang){f.selectedItem=l}})});return g}},_walk:function(i,g){var h=this.editor.getDoc(),e;if(h.createTreeWalker){e=h.createTreeWalker(i,NodeFilter.SHOW_TEXT,null,false);while((i=e.nextNode())!=null){g.call(this,i)}}else{tinymce.walk(i,g,"childNodes")}},_getSeparators:function(){var e="",d,f=this.editor.getParam("spellchecker_word_separator_chars",'\\s!"#$%&()*+,-./:;<=>?@[]^_{|}����������������\u201d\u201c');for(d=0;d<f.length;d++){e+="\\"+f.charAt(d)}return e},_getWords:function(){var e=this.editor,g=[],d="",f={};this._walk(e.getBody(),function(h){if(h.nodeType==3){d+=h.nodeValue+" "}});d=d.replace(new RegExp("([0-9]|["+this._getSeparators()+"])","g")," ");d=tinymce.trim(d.replace(/(\s+)/g," "));c(d.split(" "),function(h){if(!f[h]){g.push(h);f[h]=1}});return g},_removeWords:function(e){var f=this.editor,h=f.dom,g=f.selection,d=g.getBookmark();c(h.select("span").reverse(),function(i){if(i&&(h.hasClass(i,"mceItemHiddenSpellWord")||h.hasClass(i,"mceItemHidden"))){if(!e||h.decode(i.innerHTML)==e){h.remove(i,1)}}});g.moveToBookmark(d)},_markWords:function(o){var i,h,g,f,e,n="",k=this.editor,p=this._getSeparators(),j=k.dom,d=[];var l=k.selection,m=l.getBookmark();c(o,function(q){n+=(n?"|":"")+q});i=new RegExp("(["+p+"])("+n+")(["+p+"])","g");h=new RegExp("^("+n+")","g");g=new RegExp("("+n+")(["+p+"]?)$","g");f=new RegExp("^("+n+")(["+p+"]?)$","g");e=new RegExp("("+n+")(["+p+"])","g");this._walk(this.editor.getBody(),function(q){if(q.nodeType==3){d.push(q)}});c(d,function(r){var q;if(r.nodeType==3){q=r.nodeValue;if(i.test(q)||h.test(q)||g.test(q)||f.test(q)){q=j.encode(q);q=q.replace(e,'<span class="mceItemHiddenSpellWord">$1</span>$2');q=q.replace(g,'<span class="mceItemHiddenSpellWord">$1</span>$2');j.replace(j.create("span",{"class":"mceItemHidden"},q),r)}}});l.moveToBookmark(m)},_showMenu:function(g,i){var h=this,g=h.editor,d=h._menu,k,j=g.dom,f=j.getViewPort(g.getWin());if(!d){k=b.getPos(g.getContentAreaContainer());d=g.controlManager.createDropMenu("spellcheckermenu",{offset_x:k.x,offset_y:k.y,"class":"mceNoIcons"});h._menu=d}if(j.hasClass(i.target,"mceItemHiddenSpellWord")){d.removeAll();d.add({title:"spellchecker.wait","class":"mceMenuItemTitle"}).setDisabled(1);h._sendRPC("getSuggestions",[h.selectedLang,j.decode(i.target.innerHTML)],function(e){d.removeAll();if(e.length>0){d.add({title:"spellchecker.sug","class":"mceMenuItemTitle"}).setDisabled(1);c(e,function(l){d.add({title:l,onclick:function(){j.replace(g.getDoc().createTextNode(l),i.target);h._checkDone()}})});d.addSeparator()}else{d.add({title:"spellchecker.no_sug","class":"mceMenuItemTitle"}).setDisabled(1)}d.add({title:"spellchecker.ignore_word",onclick:function(){j.remove(i.target,1);h._checkDone()}});d.add({title:"spellchecker.ignore_words",onclick:function(){h._removeWords(j.decode(i.target.innerHTML));h._checkDone()}});d.update()});g.selection.select(i.target);k=j.getPos(i.target);d.showMenu(k.x,k.y+i.target.offsetHeight-f.y);return tinymce.dom.Event.cancel(i)}else{d.hideMenu()}},_checkDone:function(){var e=this,d=e.editor,g=d.dom,f;c(g.select("span"),function(h){if(h&&g.hasClass(h,"mceItemHiddenSpellWord")){f=true;return false}});if(!f){e._done()}},_done:function(){var d=this,e=d.active;if(d.active){d.active=0;d._removeWords();if(d._menu){d._menu.hideMenu()}if(e){d.editor.nodeChanged()}}},_sendRPC:function(e,h,d){var g=this,f=g.editor.getParam("spellchecker_rpc_url","{backend}");if(f=="{backend}"){g.editor.setProgressState(0);alert("Please specify: spellchecker_rpc_url");return}a.sendRPC({url:f,method:e,params:h,success:d,error:function(j,i){g.editor.setProgressState(0);g.editor.windowManager.alert(j.errstr||("Error response: "+i.responseText))}})}});tinymce.PluginManager.add("spellchecker",tinymce.plugins.SpellcheckerPlugin)})();
@@ -0,0 +1,338 @@
1
+ /**
2
+ * $Id: editor_plugin_src.js 425 2007-11-21 15:17:39Z spocke $
3
+ *
4
+ * @author Moxiecode
5
+ * @copyright Copyright � 2004-2008, Moxiecode Systems AB, All rights reserved.
6
+ */
7
+
8
+ (function() {
9
+ var JSONRequest = tinymce.util.JSONRequest, each = tinymce.each, DOM = tinymce.DOM;
10
+
11
+ tinymce.create('tinymce.plugins.SpellcheckerPlugin', {
12
+ getInfo : function() {
13
+ return {
14
+ longname : 'Spellchecker',
15
+ author : 'Moxiecode Systems AB',
16
+ authorurl : 'http://tinymce.moxiecode.com',
17
+ infourl : 'http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/spellchecker',
18
+ version : tinymce.majorVersion + "." + tinymce.minorVersion
19
+ };
20
+ },
21
+
22
+ init : function(ed, url) {
23
+ var t = this, cm;
24
+
25
+ t.url = url;
26
+ t.editor = ed;
27
+
28
+ // Register commands
29
+ ed.addCommand('mceSpellCheck', function() {
30
+ if (!t.active) {
31
+ ed.setProgressState(1);
32
+ t._sendRPC('checkWords', [t.selectedLang, t._getWords()], function(r) {
33
+ if (r.length > 0) {
34
+ t.active = 1;
35
+ t._markWords(r);
36
+ ed.setProgressState(0);
37
+ ed.nodeChanged();
38
+ } else {
39
+ ed.setProgressState(0);
40
+ ed.windowManager.alert('spellchecker.no_mpell');
41
+ }
42
+ });
43
+ } else
44
+ t._done();
45
+ });
46
+
47
+ ed.onInit.add(function() {
48
+ if (ed.settings.content_css !== false)
49
+ ed.dom.loadCSS(url + '/css/content.css');
50
+ });
51
+
52
+ ed.onClick.add(t._showMenu, t);
53
+ ed.onContextMenu.add(t._showMenu, t);
54
+ ed.onBeforeGetContent.add(function() {
55
+ if (t.active)
56
+ t._removeWords();
57
+ });
58
+
59
+ ed.onNodeChange.add(function(ed, cm) {
60
+ cm.setActive('spellchecker', t.active);
61
+ });
62
+
63
+ ed.onSetContent.add(function() {
64
+ t._done();
65
+ });
66
+
67
+ ed.onBeforeGetContent.add(function() {
68
+ t._done();
69
+ });
70
+
71
+ ed.onBeforeExecCommand.add(function(ed, cmd) {
72
+ if (cmd == 'mceFullScreen')
73
+ t._done();
74
+ });
75
+
76
+ // Find selected language
77
+ t.languages = {};
78
+ each(ed.getParam('spellchecker_languages', '+English=en,Danish=da,Dutch=nl,Finnish=fi,French=fr,German=de,Italian=it,Polish=pl,Portuguese=pt,Spanish=es,Swedish=sv', 'hash'), function(v, k) {
79
+ if (k.indexOf('+') === 0) {
80
+ k = k.substring(1);
81
+ t.selectedLang = v;
82
+ }
83
+
84
+ t.languages[k] = v;
85
+ });
86
+ },
87
+
88
+ createControl : function(n, cm) {
89
+ var t = this, c, ed = t.editor;
90
+
91
+ if (n == 'spellchecker') {
92
+ c = cm.createSplitButton(n, {title : 'spellchecker.desc', cmd : 'mceSpellCheck', scope : t});
93
+
94
+ c.onRenderMenu.add(function(c, m) {
95
+ m.add({title : 'spellchecker.langs', 'class' : 'mceMenuItemTitle'}).setDisabled(1);
96
+ each(t.languages, function(v, k) {
97
+ var o = {icon : 1}, mi;
98
+
99
+ o.onclick = function() {
100
+ mi.setSelected(1);
101
+ t.selectedItem.setSelected(0);
102
+ t.selectedItem = mi;
103
+ t.selectedLang = v;
104
+ };
105
+
106
+ o.title = k;
107
+ mi = m.add(o);
108
+ mi.setSelected(v == t.selectedLang);
109
+
110
+ if (v == t.selectedLang)
111
+ t.selectedItem = mi;
112
+ })
113
+ });
114
+
115
+ return c;
116
+ }
117
+ },
118
+
119
+ // Internal functions
120
+
121
+ _walk : function(n, f) {
122
+ var d = this.editor.getDoc(), w;
123
+
124
+ if (d.createTreeWalker) {
125
+ w = d.createTreeWalker(n, NodeFilter.SHOW_TEXT, null, false);
126
+
127
+ while ((n = w.nextNode()) != null)
128
+ f.call(this, n);
129
+ } else
130
+ tinymce.walk(n, f, 'childNodes');
131
+ },
132
+
133
+ _getSeparators : function() {
134
+ var re = '', i, str = this.editor.getParam('spellchecker_word_separator_chars', '\\s!"#$%&()*+,-./:;<=>?@[\]^_{|}����������������\u201d\u201c');
135
+
136
+ // Build word separator regexp
137
+ for (i=0; i<str.length; i++)
138
+ re += '\\' + str.charAt(i);
139
+
140
+ return re;
141
+ },
142
+
143
+ _getWords : function() {
144
+ var ed = this.editor, wl = [], tx = '', lo = {};
145
+
146
+ // Get area text
147
+ this._walk(ed.getBody(), function(n) {
148
+ if (n.nodeType == 3)
149
+ tx += n.nodeValue + ' ';
150
+ });
151
+
152
+ // Split words by separator
153
+ tx = tx.replace(new RegExp('([0-9]|[' + this._getSeparators() + '])', 'g'), ' ');
154
+ tx = tinymce.trim(tx.replace(/(\s+)/g, ' '));
155
+
156
+ // Build word array and remove duplicates
157
+ each(tx.split(' '), function(v) {
158
+ if (!lo[v]) {
159
+ wl.push(v);
160
+ lo[v] = 1;
161
+ }
162
+ });
163
+
164
+ return wl;
165
+ },
166
+
167
+ _removeWords : function(w) {
168
+ var ed = this.editor, dom = ed.dom, se = ed.selection, b = se.getBookmark();
169
+
170
+ each(dom.select('span').reverse(), function(n) {
171
+ if (n && (dom.hasClass(n, 'mceItemHiddenSpellWord') || dom.hasClass(n, 'mceItemHidden'))) {
172
+ if (!w || dom.decode(n.innerHTML) == w)
173
+ dom.remove(n, 1);
174
+ }
175
+ });
176
+
177
+ se.moveToBookmark(b);
178
+ },
179
+
180
+ _markWords : function(wl) {
181
+ var r1, r2, r3, r4, r5, w = '', ed = this.editor, re = this._getSeparators(), dom = ed.dom, nl = [];
182
+ var se = ed.selection, b = se.getBookmark();
183
+
184
+ each(wl, function(v) {
185
+ w += (w ? '|' : '') + v;
186
+ });
187
+
188
+ r1 = new RegExp('([' + re + '])(' + w + ')([' + re + '])', 'g');
189
+ r2 = new RegExp('^(' + w + ')', 'g');
190
+ r3 = new RegExp('(' + w + ')([' + re + ']?)$', 'g');
191
+ r4 = new RegExp('^(' + w + ')([' + re + ']?)$', 'g');
192
+ r5 = new RegExp('(' + w + ')([' + re + '])', 'g');
193
+
194
+ // Collect all text nodes
195
+ this._walk(this.editor.getBody(), function(n) {
196
+ if (n.nodeType == 3) {
197
+ nl.push(n);
198
+ }
199
+ });
200
+
201
+ // Wrap incorrect words in spans
202
+ each(nl, function(n) {
203
+ var v;
204
+
205
+ if (n.nodeType == 3) {
206
+ v = n.nodeValue;
207
+
208
+ if (r1.test(v) || r2.test(v) || r3.test(v) || r4.test(v)) {
209
+ v = dom.encode(v);
210
+ v = v.replace(r5, '<span class="mceItemHiddenSpellWord">$1</span>$2');
211
+ v = v.replace(r3, '<span class="mceItemHiddenSpellWord">$1</span>$2');
212
+
213
+ dom.replace(dom.create('span', {'class' : 'mceItemHidden'}, v), n);
214
+ }
215
+ }
216
+ });
217
+
218
+ se.moveToBookmark(b);
219
+ },
220
+
221
+ _showMenu : function(ed, e) {
222
+ var t = this, ed = t.editor, m = t._menu, p1, dom = ed.dom, vp = dom.getViewPort(ed.getWin());
223
+
224
+ if (!m) {
225
+ p1 = DOM.getPos(ed.getContentAreaContainer());
226
+ //p2 = DOM.getPos(ed.getContainer());
227
+
228
+ m = ed.controlManager.createDropMenu('spellcheckermenu', {
229
+ offset_x : p1.x,
230
+ offset_y : p1.y,
231
+ 'class' : 'mceNoIcons'
232
+ });
233
+
234
+ t._menu = m;
235
+ }
236
+
237
+ if (dom.hasClass(e.target, 'mceItemHiddenSpellWord')) {
238
+ m.removeAll();
239
+ m.add({title : 'spellchecker.wait', 'class' : 'mceMenuItemTitle'}).setDisabled(1);
240
+
241
+ t._sendRPC('getSuggestions', [t.selectedLang, dom.decode(e.target.innerHTML)], function(r) {
242
+ m.removeAll();
243
+
244
+ if (r.length > 0) {
245
+ m.add({title : 'spellchecker.sug', 'class' : 'mceMenuItemTitle'}).setDisabled(1);
246
+ each(r, function(v) {
247
+ m.add({title : v, onclick : function() {
248
+ dom.replace(ed.getDoc().createTextNode(v), e.target);
249
+ t._checkDone();
250
+ }});
251
+ });
252
+
253
+ m.addSeparator();
254
+ } else
255
+ m.add({title : 'spellchecker.no_sug', 'class' : 'mceMenuItemTitle'}).setDisabled(1);
256
+
257
+ m.add({
258
+ title : 'spellchecker.ignore_word',
259
+ onclick : function() {
260
+ dom.remove(e.target, 1);
261
+ t._checkDone();
262
+ }
263
+ });
264
+
265
+ m.add({
266
+ title : 'spellchecker.ignore_words',
267
+ onclick : function() {
268
+ t._removeWords(dom.decode(e.target.innerHTML));
269
+ t._checkDone();
270
+ }
271
+ });
272
+
273
+ m.update();
274
+ });
275
+
276
+ ed.selection.select(e.target);
277
+ p1 = dom.getPos(e.target);
278
+ m.showMenu(p1.x, p1.y + e.target.offsetHeight - vp.y);
279
+
280
+ return tinymce.dom.Event.cancel(e);
281
+ } else
282
+ m.hideMenu();
283
+ },
284
+
285
+ _checkDone : function() {
286
+ var t = this, ed = t.editor, dom = ed.dom, o;
287
+
288
+ each(dom.select('span'), function(n) {
289
+ if (n && dom.hasClass(n, 'mceItemHiddenSpellWord')) {
290
+ o = true;
291
+ return false;
292
+ }
293
+ });
294
+
295
+ if (!o)
296
+ t._done();
297
+ },
298
+
299
+ _done : function() {
300
+ var t = this, la = t.active;
301
+
302
+ if (t.active) {
303
+ t.active = 0;
304
+ t._removeWords();
305
+
306
+ if (t._menu)
307
+ t._menu.hideMenu();
308
+
309
+ if (la)
310
+ t.editor.nodeChanged();
311
+ }
312
+ },
313
+
314
+ _sendRPC : function(m, p, cb) {
315
+ var t = this, url = t.editor.getParam("spellchecker_rpc_url", "{backend}");
316
+
317
+ if (url == '{backend}') {
318
+ t.editor.setProgressState(0);
319
+ alert('Please specify: spellchecker_rpc_url');
320
+ return;
321
+ }
322
+
323
+ JSONRequest.sendRPC({
324
+ url : url,
325
+ method : m,
326
+ params : p,
327
+ success : cb,
328
+ error : function(e, x) {
329
+ t.editor.setProgressState(0);
330
+ t.editor.windowManager.alert(e.errstr || ('Error response: ' + x.responseText));
331
+ }
332
+ });
333
+ }
334
+ });
335
+
336
+ // Register plugin
337
+ tinymce.PluginManager.add('spellchecker', tinymce.plugins.SpellcheckerPlugin);
338
+ })();