kitsune 0.0.18 → 0.0.19

Sign up to get free protection for your applications and to get access to all the features.
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
data/lib/kitsune.rb CHANGED
@@ -8,7 +8,7 @@ module Kitsune
8
8
  autoload :Page, 'kitsune/page'
9
9
  class << self
10
10
  def version
11
- '0.0.18'
11
+ '0.0.19'
12
12
  end
13
13
 
14
14
  def model_paths # abstract this to something else
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: kitsune
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.18
4
+ version: 0.0.19
5
5
  platform: ruby
6
6
  authors:
7
7
  - Matthew Mongeau <matt@toastyapps.com>
@@ -79,7 +79,248 @@ files:
79
79
  - generators/kitsune/templates/images/nicEditorIcons.gif
80
80
  - generators/kitsune/templates/javascripts/jquery.js
81
81
  - generators/kitsune/templates/javascripts/kitsune_jquery.js
82
- - generators/kitsune/templates/javascripts/nicEdit.js
82
+ - generators/kitsune/templates/javascripts/tiny_mce/langs/en.js
83
+ - generators/kitsune/templates/javascripts/tiny_mce/license.txt
84
+ - generators/kitsune/templates/javascripts/tiny_mce/plugins/advhr/css/advhr.css
85
+ - generators/kitsune/templates/javascripts/tiny_mce/plugins/advhr/editor_plugin.js
86
+ - generators/kitsune/templates/javascripts/tiny_mce/plugins/advhr/editor_plugin_src.js
87
+ - generators/kitsune/templates/javascripts/tiny_mce/plugins/advhr/js/rule.js
88
+ - generators/kitsune/templates/javascripts/tiny_mce/plugins/advhr/langs/en_dlg.js
89
+ - generators/kitsune/templates/javascripts/tiny_mce/plugins/advhr/rule.htm
90
+ - generators/kitsune/templates/javascripts/tiny_mce/plugins/advimage/css/advimage.css
91
+ - generators/kitsune/templates/javascripts/tiny_mce/plugins/advimage/editor_plugin.js
92
+ - generators/kitsune/templates/javascripts/tiny_mce/plugins/advimage/editor_plugin_src.js
93
+ - generators/kitsune/templates/javascripts/tiny_mce/plugins/advimage/image.htm
94
+ - generators/kitsune/templates/javascripts/tiny_mce/plugins/advimage/img/sample.gif
95
+ - generators/kitsune/templates/javascripts/tiny_mce/plugins/advimage/js/image.js
96
+ - generators/kitsune/templates/javascripts/tiny_mce/plugins/advimage/langs/en_dlg.js
97
+ - generators/kitsune/templates/javascripts/tiny_mce/plugins/advlink/css/advlink.css
98
+ - generators/kitsune/templates/javascripts/tiny_mce/plugins/advlink/editor_plugin.js
99
+ - generators/kitsune/templates/javascripts/tiny_mce/plugins/advlink/editor_plugin_src.js
100
+ - generators/kitsune/templates/javascripts/tiny_mce/plugins/advlink/js/advlink.js
101
+ - generators/kitsune/templates/javascripts/tiny_mce/plugins/advlink/langs/en_dlg.js
102
+ - generators/kitsune/templates/javascripts/tiny_mce/plugins/advlink/link.htm
103
+ - generators/kitsune/templates/javascripts/tiny_mce/plugins/autoresize/editor_plugin.js
104
+ - generators/kitsune/templates/javascripts/tiny_mce/plugins/autoresize/editor_plugin_src.js
105
+ - generators/kitsune/templates/javascripts/tiny_mce/plugins/autosave/editor_plugin.js
106
+ - generators/kitsune/templates/javascripts/tiny_mce/plugins/autosave/editor_plugin_src.js
107
+ - generators/kitsune/templates/javascripts/tiny_mce/plugins/bbcode/editor_plugin.js
108
+ - generators/kitsune/templates/javascripts/tiny_mce/plugins/bbcode/editor_plugin_src.js
109
+ - generators/kitsune/templates/javascripts/tiny_mce/plugins/contextmenu/editor_plugin.js
110
+ - generators/kitsune/templates/javascripts/tiny_mce/plugins/contextmenu/editor_plugin_src.js
111
+ - generators/kitsune/templates/javascripts/tiny_mce/plugins/directionality/editor_plugin.js
112
+ - generators/kitsune/templates/javascripts/tiny_mce/plugins/directionality/editor_plugin_src.js
113
+ - generators/kitsune/templates/javascripts/tiny_mce/plugins/emotions/editor_plugin.js
114
+ - generators/kitsune/templates/javascripts/tiny_mce/plugins/emotions/editor_plugin_src.js
115
+ - generators/kitsune/templates/javascripts/tiny_mce/plugins/emotions/emotions.htm
116
+ - generators/kitsune/templates/javascripts/tiny_mce/plugins/emotions/img/smiley-cool.gif
117
+ - generators/kitsune/templates/javascripts/tiny_mce/plugins/emotions/img/smiley-cry.gif
118
+ - generators/kitsune/templates/javascripts/tiny_mce/plugins/emotions/img/smiley-embarassed.gif
119
+ - generators/kitsune/templates/javascripts/tiny_mce/plugins/emotions/img/smiley-foot-in-mouth.gif
120
+ - generators/kitsune/templates/javascripts/tiny_mce/plugins/emotions/img/smiley-frown.gif
121
+ - generators/kitsune/templates/javascripts/tiny_mce/plugins/emotions/img/smiley-innocent.gif
122
+ - generators/kitsune/templates/javascripts/tiny_mce/plugins/emotions/img/smiley-kiss.gif
123
+ - generators/kitsune/templates/javascripts/tiny_mce/plugins/emotions/img/smiley-laughing.gif
124
+ - generators/kitsune/templates/javascripts/tiny_mce/plugins/emotions/img/smiley-money-mouth.gif
125
+ - generators/kitsune/templates/javascripts/tiny_mce/plugins/emotions/img/smiley-sealed.gif
126
+ - generators/kitsune/templates/javascripts/tiny_mce/plugins/emotions/img/smiley-smile.gif
127
+ - generators/kitsune/templates/javascripts/tiny_mce/plugins/emotions/img/smiley-surprised.gif
128
+ - generators/kitsune/templates/javascripts/tiny_mce/plugins/emotions/img/smiley-tongue-out.gif
129
+ - generators/kitsune/templates/javascripts/tiny_mce/plugins/emotions/img/smiley-undecided.gif
130
+ - generators/kitsune/templates/javascripts/tiny_mce/plugins/emotions/img/smiley-wink.gif
131
+ - generators/kitsune/templates/javascripts/tiny_mce/plugins/emotions/img/smiley-yell.gif
132
+ - generators/kitsune/templates/javascripts/tiny_mce/plugins/emotions/js/emotions.js
133
+ - generators/kitsune/templates/javascripts/tiny_mce/plugins/emotions/langs/en_dlg.js
134
+ - generators/kitsune/templates/javascripts/tiny_mce/plugins/example/dialog.htm
135
+ - generators/kitsune/templates/javascripts/tiny_mce/plugins/example/editor_plugin.js
136
+ - generators/kitsune/templates/javascripts/tiny_mce/plugins/example/editor_plugin_src.js
137
+ - generators/kitsune/templates/javascripts/tiny_mce/plugins/example/img/example.gif
138
+ - generators/kitsune/templates/javascripts/tiny_mce/plugins/example/js/dialog.js
139
+ - generators/kitsune/templates/javascripts/tiny_mce/plugins/example/langs/en.js
140
+ - generators/kitsune/templates/javascripts/tiny_mce/plugins/example/langs/en_dlg.js
141
+ - generators/kitsune/templates/javascripts/tiny_mce/plugins/fullpage/css/fullpage.css
142
+ - generators/kitsune/templates/javascripts/tiny_mce/plugins/fullpage/editor_plugin.js
143
+ - generators/kitsune/templates/javascripts/tiny_mce/plugins/fullpage/editor_plugin_src.js
144
+ - generators/kitsune/templates/javascripts/tiny_mce/plugins/fullpage/fullpage.htm
145
+ - generators/kitsune/templates/javascripts/tiny_mce/plugins/fullpage/js/fullpage.js
146
+ - generators/kitsune/templates/javascripts/tiny_mce/plugins/fullpage/langs/en_dlg.js
147
+ - generators/kitsune/templates/javascripts/tiny_mce/plugins/fullscreen/editor_plugin.js
148
+ - generators/kitsune/templates/javascripts/tiny_mce/plugins/fullscreen/editor_plugin_src.js
149
+ - generators/kitsune/templates/javascripts/tiny_mce/plugins/fullscreen/fullscreen.htm
150
+ - generators/kitsune/templates/javascripts/tiny_mce/plugins/iespell/editor_plugin.js
151
+ - generators/kitsune/templates/javascripts/tiny_mce/plugins/iespell/editor_plugin_src.js
152
+ - generators/kitsune/templates/javascripts/tiny_mce/plugins/inlinepopups/editor_plugin.js
153
+ - generators/kitsune/templates/javascripts/tiny_mce/plugins/inlinepopups/editor_plugin_src.js
154
+ - generators/kitsune/templates/javascripts/tiny_mce/plugins/inlinepopups/skins/clearlooks2/img/alert.gif
155
+ - generators/kitsune/templates/javascripts/tiny_mce/plugins/inlinepopups/skins/clearlooks2/img/button.gif
156
+ - generators/kitsune/templates/javascripts/tiny_mce/plugins/inlinepopups/skins/clearlooks2/img/buttons.gif
157
+ - generators/kitsune/templates/javascripts/tiny_mce/plugins/inlinepopups/skins/clearlooks2/img/confirm.gif
158
+ - generators/kitsune/templates/javascripts/tiny_mce/plugins/inlinepopups/skins/clearlooks2/img/corners.gif
159
+ - generators/kitsune/templates/javascripts/tiny_mce/plugins/inlinepopups/skins/clearlooks2/img/horizontal.gif
160
+ - generators/kitsune/templates/javascripts/tiny_mce/plugins/inlinepopups/skins/clearlooks2/img/vertical.gif
161
+ - generators/kitsune/templates/javascripts/tiny_mce/plugins/inlinepopups/skins/clearlooks2/window.css
162
+ - generators/kitsune/templates/javascripts/tiny_mce/plugins/inlinepopups/template.htm
163
+ - generators/kitsune/templates/javascripts/tiny_mce/plugins/insertdatetime/editor_plugin.js
164
+ - generators/kitsune/templates/javascripts/tiny_mce/plugins/insertdatetime/editor_plugin_src.js
165
+ - generators/kitsune/templates/javascripts/tiny_mce/plugins/layer/editor_plugin.js
166
+ - generators/kitsune/templates/javascripts/tiny_mce/plugins/layer/editor_plugin_src.js
167
+ - generators/kitsune/templates/javascripts/tiny_mce/plugins/media/css/content.css
168
+ - generators/kitsune/templates/javascripts/tiny_mce/plugins/media/css/media.css
169
+ - generators/kitsune/templates/javascripts/tiny_mce/plugins/media/editor_plugin.js
170
+ - generators/kitsune/templates/javascripts/tiny_mce/plugins/media/editor_plugin_src.js
171
+ - generators/kitsune/templates/javascripts/tiny_mce/plugins/media/img/flash.gif
172
+ - generators/kitsune/templates/javascripts/tiny_mce/plugins/media/img/flv_player.swf
173
+ - generators/kitsune/templates/javascripts/tiny_mce/plugins/media/img/quicktime.gif
174
+ - generators/kitsune/templates/javascripts/tiny_mce/plugins/media/img/realmedia.gif
175
+ - generators/kitsune/templates/javascripts/tiny_mce/plugins/media/img/shockwave.gif
176
+ - generators/kitsune/templates/javascripts/tiny_mce/plugins/media/img/trans.gif
177
+ - generators/kitsune/templates/javascripts/tiny_mce/plugins/media/img/windowsmedia.gif
178
+ - generators/kitsune/templates/javascripts/tiny_mce/plugins/media/js/embed.js
179
+ - generators/kitsune/templates/javascripts/tiny_mce/plugins/media/js/media.js
180
+ - generators/kitsune/templates/javascripts/tiny_mce/plugins/media/langs/en_dlg.js
181
+ - generators/kitsune/templates/javascripts/tiny_mce/plugins/media/media.htm
182
+ - generators/kitsune/templates/javascripts/tiny_mce/plugins/nonbreaking/editor_plugin.js
183
+ - generators/kitsune/templates/javascripts/tiny_mce/plugins/nonbreaking/editor_plugin_src.js
184
+ - generators/kitsune/templates/javascripts/tiny_mce/plugins/noneditable/editor_plugin.js
185
+ - generators/kitsune/templates/javascripts/tiny_mce/plugins/noneditable/editor_plugin_src.js
186
+ - generators/kitsune/templates/javascripts/tiny_mce/plugins/pagebreak/css/content.css
187
+ - generators/kitsune/templates/javascripts/tiny_mce/plugins/pagebreak/editor_plugin.js
188
+ - generators/kitsune/templates/javascripts/tiny_mce/plugins/pagebreak/editor_plugin_src.js
189
+ - generators/kitsune/templates/javascripts/tiny_mce/plugins/pagebreak/img/pagebreak.gif
190
+ - generators/kitsune/templates/javascripts/tiny_mce/plugins/pagebreak/img/trans.gif
191
+ - generators/kitsune/templates/javascripts/tiny_mce/plugins/paste/editor_plugin.js
192
+ - generators/kitsune/templates/javascripts/tiny_mce/plugins/paste/editor_plugin_src.js
193
+ - generators/kitsune/templates/javascripts/tiny_mce/plugins/paste/js/pastetext.js
194
+ - generators/kitsune/templates/javascripts/tiny_mce/plugins/paste/js/pasteword.js
195
+ - generators/kitsune/templates/javascripts/tiny_mce/plugins/paste/langs/en_dlg.js
196
+ - generators/kitsune/templates/javascripts/tiny_mce/plugins/paste/pastetext.htm
197
+ - generators/kitsune/templates/javascripts/tiny_mce/plugins/paste/pasteword.htm
198
+ - generators/kitsune/templates/javascripts/tiny_mce/plugins/preview/editor_plugin.js
199
+ - generators/kitsune/templates/javascripts/tiny_mce/plugins/preview/editor_plugin_src.js
200
+ - generators/kitsune/templates/javascripts/tiny_mce/plugins/preview/example.html
201
+ - generators/kitsune/templates/javascripts/tiny_mce/plugins/preview/jscripts/embed.js
202
+ - generators/kitsune/templates/javascripts/tiny_mce/plugins/preview/preview.html
203
+ - generators/kitsune/templates/javascripts/tiny_mce/plugins/print/editor_plugin.js
204
+ - generators/kitsune/templates/javascripts/tiny_mce/plugins/print/editor_plugin_src.js
205
+ - generators/kitsune/templates/javascripts/tiny_mce/plugins/safari/blank.htm
206
+ - generators/kitsune/templates/javascripts/tiny_mce/plugins/safari/editor_plugin.js
207
+ - generators/kitsune/templates/javascripts/tiny_mce/plugins/safari/editor_plugin_src.js
208
+ - generators/kitsune/templates/javascripts/tiny_mce/plugins/save/editor_plugin.js
209
+ - generators/kitsune/templates/javascripts/tiny_mce/plugins/save/editor_plugin_src.js
210
+ - generators/kitsune/templates/javascripts/tiny_mce/plugins/searchreplace/css/searchreplace.css
211
+ - generators/kitsune/templates/javascripts/tiny_mce/plugins/searchreplace/editor_plugin.js
212
+ - generators/kitsune/templates/javascripts/tiny_mce/plugins/searchreplace/editor_plugin_src.js
213
+ - generators/kitsune/templates/javascripts/tiny_mce/plugins/searchreplace/js/searchreplace.js
214
+ - generators/kitsune/templates/javascripts/tiny_mce/plugins/searchreplace/langs/en_dlg.js
215
+ - generators/kitsune/templates/javascripts/tiny_mce/plugins/searchreplace/searchreplace.htm
216
+ - generators/kitsune/templates/javascripts/tiny_mce/plugins/spellchecker/css/content.css
217
+ - generators/kitsune/templates/javascripts/tiny_mce/plugins/spellchecker/editor_plugin.js
218
+ - generators/kitsune/templates/javascripts/tiny_mce/plugins/spellchecker/editor_plugin_src.js
219
+ - generators/kitsune/templates/javascripts/tiny_mce/plugins/spellchecker/img/wline.gif
220
+ - generators/kitsune/templates/javascripts/tiny_mce/plugins/style/css/props.css
221
+ - generators/kitsune/templates/javascripts/tiny_mce/plugins/style/editor_plugin.js
222
+ - generators/kitsune/templates/javascripts/tiny_mce/plugins/style/editor_plugin_src.js
223
+ - generators/kitsune/templates/javascripts/tiny_mce/plugins/style/js/props.js
224
+ - generators/kitsune/templates/javascripts/tiny_mce/plugins/style/langs/en_dlg.js
225
+ - generators/kitsune/templates/javascripts/tiny_mce/plugins/style/props.htm
226
+ - generators/kitsune/templates/javascripts/tiny_mce/plugins/tabfocus/editor_plugin.js
227
+ - generators/kitsune/templates/javascripts/tiny_mce/plugins/tabfocus/editor_plugin_src.js
228
+ - generators/kitsune/templates/javascripts/tiny_mce/plugins/table/cell.htm
229
+ - generators/kitsune/templates/javascripts/tiny_mce/plugins/table/css/cell.css
230
+ - generators/kitsune/templates/javascripts/tiny_mce/plugins/table/css/row.css
231
+ - generators/kitsune/templates/javascripts/tiny_mce/plugins/table/css/table.css
232
+ - generators/kitsune/templates/javascripts/tiny_mce/plugins/table/editor_plugin.js
233
+ - generators/kitsune/templates/javascripts/tiny_mce/plugins/table/editor_plugin_src.js
234
+ - generators/kitsune/templates/javascripts/tiny_mce/plugins/table/js/cell.js
235
+ - generators/kitsune/templates/javascripts/tiny_mce/plugins/table/js/merge_cells.js
236
+ - generators/kitsune/templates/javascripts/tiny_mce/plugins/table/js/row.js
237
+ - generators/kitsune/templates/javascripts/tiny_mce/plugins/table/js/table.js
238
+ - generators/kitsune/templates/javascripts/tiny_mce/plugins/table/langs/en_dlg.js
239
+ - generators/kitsune/templates/javascripts/tiny_mce/plugins/table/merge_cells.htm
240
+ - generators/kitsune/templates/javascripts/tiny_mce/plugins/table/row.htm
241
+ - generators/kitsune/templates/javascripts/tiny_mce/plugins/table/table.htm
242
+ - generators/kitsune/templates/javascripts/tiny_mce/plugins/template/blank.htm
243
+ - generators/kitsune/templates/javascripts/tiny_mce/plugins/template/css/template.css
244
+ - generators/kitsune/templates/javascripts/tiny_mce/plugins/template/editor_plugin.js
245
+ - generators/kitsune/templates/javascripts/tiny_mce/plugins/template/editor_plugin_src.js
246
+ - generators/kitsune/templates/javascripts/tiny_mce/plugins/template/js/template.js
247
+ - generators/kitsune/templates/javascripts/tiny_mce/plugins/template/langs/en_dlg.js
248
+ - generators/kitsune/templates/javascripts/tiny_mce/plugins/template/template.htm
249
+ - generators/kitsune/templates/javascripts/tiny_mce/plugins/visualchars/editor_plugin.js
250
+ - generators/kitsune/templates/javascripts/tiny_mce/plugins/visualchars/editor_plugin_src.js
251
+ - generators/kitsune/templates/javascripts/tiny_mce/plugins/wordcount/editor_plugin.js
252
+ - generators/kitsune/templates/javascripts/tiny_mce/plugins/wordcount/editor_plugin_src.js
253
+ - generators/kitsune/templates/javascripts/tiny_mce/plugins/xhtmlxtras/abbr.htm
254
+ - generators/kitsune/templates/javascripts/tiny_mce/plugins/xhtmlxtras/acronym.htm
255
+ - generators/kitsune/templates/javascripts/tiny_mce/plugins/xhtmlxtras/attributes.htm
256
+ - generators/kitsune/templates/javascripts/tiny_mce/plugins/xhtmlxtras/cite.htm
257
+ - generators/kitsune/templates/javascripts/tiny_mce/plugins/xhtmlxtras/css/attributes.css
258
+ - generators/kitsune/templates/javascripts/tiny_mce/plugins/xhtmlxtras/css/popup.css
259
+ - generators/kitsune/templates/javascripts/tiny_mce/plugins/xhtmlxtras/del.htm
260
+ - generators/kitsune/templates/javascripts/tiny_mce/plugins/xhtmlxtras/editor_plugin.js
261
+ - generators/kitsune/templates/javascripts/tiny_mce/plugins/xhtmlxtras/editor_plugin_src.js
262
+ - generators/kitsune/templates/javascripts/tiny_mce/plugins/xhtmlxtras/ins.htm
263
+ - generators/kitsune/templates/javascripts/tiny_mce/plugins/xhtmlxtras/js/abbr.js
264
+ - generators/kitsune/templates/javascripts/tiny_mce/plugins/xhtmlxtras/js/acronym.js
265
+ - generators/kitsune/templates/javascripts/tiny_mce/plugins/xhtmlxtras/js/attributes.js
266
+ - generators/kitsune/templates/javascripts/tiny_mce/plugins/xhtmlxtras/js/cite.js
267
+ - generators/kitsune/templates/javascripts/tiny_mce/plugins/xhtmlxtras/js/del.js
268
+ - generators/kitsune/templates/javascripts/tiny_mce/plugins/xhtmlxtras/js/element_common.js
269
+ - generators/kitsune/templates/javascripts/tiny_mce/plugins/xhtmlxtras/js/ins.js
270
+ - generators/kitsune/templates/javascripts/tiny_mce/plugins/xhtmlxtras/langs/en_dlg.js
271
+ - generators/kitsune/templates/javascripts/tiny_mce/themes/advanced/about.htm
272
+ - generators/kitsune/templates/javascripts/tiny_mce/themes/advanced/anchor.htm
273
+ - generators/kitsune/templates/javascripts/tiny_mce/themes/advanced/charmap.htm
274
+ - generators/kitsune/templates/javascripts/tiny_mce/themes/advanced/color_picker.htm
275
+ - generators/kitsune/templates/javascripts/tiny_mce/themes/advanced/editor_template.js
276
+ - generators/kitsune/templates/javascripts/tiny_mce/themes/advanced/editor_template_src.js
277
+ - generators/kitsune/templates/javascripts/tiny_mce/themes/advanced/image.htm
278
+ - generators/kitsune/templates/javascripts/tiny_mce/themes/advanced/img/colorpicker.jpg
279
+ - generators/kitsune/templates/javascripts/tiny_mce/themes/advanced/img/icons.gif
280
+ - generators/kitsune/templates/javascripts/tiny_mce/themes/advanced/js/about.js
281
+ - generators/kitsune/templates/javascripts/tiny_mce/themes/advanced/js/anchor.js
282
+ - generators/kitsune/templates/javascripts/tiny_mce/themes/advanced/js/charmap.js
283
+ - generators/kitsune/templates/javascripts/tiny_mce/themes/advanced/js/color_picker.js
284
+ - generators/kitsune/templates/javascripts/tiny_mce/themes/advanced/js/image.js
285
+ - generators/kitsune/templates/javascripts/tiny_mce/themes/advanced/js/link.js
286
+ - generators/kitsune/templates/javascripts/tiny_mce/themes/advanced/js/source_editor.js
287
+ - generators/kitsune/templates/javascripts/tiny_mce/themes/advanced/langs/en.js
288
+ - generators/kitsune/templates/javascripts/tiny_mce/themes/advanced/langs/en_dlg.js
289
+ - generators/kitsune/templates/javascripts/tiny_mce/themes/advanced/link.htm
290
+ - generators/kitsune/templates/javascripts/tiny_mce/themes/advanced/skins/default/content.css
291
+ - generators/kitsune/templates/javascripts/tiny_mce/themes/advanced/skins/default/dialog.css
292
+ - generators/kitsune/templates/javascripts/tiny_mce/themes/advanced/skins/default/img/buttons.png
293
+ - generators/kitsune/templates/javascripts/tiny_mce/themes/advanced/skins/default/img/items.gif
294
+ - generators/kitsune/templates/javascripts/tiny_mce/themes/advanced/skins/default/img/menu_arrow.gif
295
+ - generators/kitsune/templates/javascripts/tiny_mce/themes/advanced/skins/default/img/menu_check.gif
296
+ - generators/kitsune/templates/javascripts/tiny_mce/themes/advanced/skins/default/img/progress.gif
297
+ - generators/kitsune/templates/javascripts/tiny_mce/themes/advanced/skins/default/img/tabs.gif
298
+ - generators/kitsune/templates/javascripts/tiny_mce/themes/advanced/skins/default/ui.css
299
+ - generators/kitsune/templates/javascripts/tiny_mce/themes/advanced/skins/o2k7/content.css
300
+ - generators/kitsune/templates/javascripts/tiny_mce/themes/advanced/skins/o2k7/dialog.css
301
+ - generators/kitsune/templates/javascripts/tiny_mce/themes/advanced/skins/o2k7/img/button_bg.png
302
+ - generators/kitsune/templates/javascripts/tiny_mce/themes/advanced/skins/o2k7/img/button_bg_black.png
303
+ - generators/kitsune/templates/javascripts/tiny_mce/themes/advanced/skins/o2k7/img/button_bg_silver.png
304
+ - generators/kitsune/templates/javascripts/tiny_mce/themes/advanced/skins/o2k7/ui.css
305
+ - generators/kitsune/templates/javascripts/tiny_mce/themes/advanced/skins/o2k7/ui_black.css
306
+ - generators/kitsune/templates/javascripts/tiny_mce/themes/advanced/skins/o2k7/ui_silver.css
307
+ - generators/kitsune/templates/javascripts/tiny_mce/themes/advanced/source_editor.htm
308
+ - generators/kitsune/templates/javascripts/tiny_mce/themes/simple/editor_template.js
309
+ - generators/kitsune/templates/javascripts/tiny_mce/themes/simple/editor_template_src.js
310
+ - generators/kitsune/templates/javascripts/tiny_mce/themes/simple/img/icons.gif
311
+ - generators/kitsune/templates/javascripts/tiny_mce/themes/simple/langs/en.js
312
+ - generators/kitsune/templates/javascripts/tiny_mce/themes/simple/skins/default/content.css
313
+ - generators/kitsune/templates/javascripts/tiny_mce/themes/simple/skins/default/ui.css
314
+ - generators/kitsune/templates/javascripts/tiny_mce/themes/simple/skins/o2k7/content.css
315
+ - generators/kitsune/templates/javascripts/tiny_mce/themes/simple/skins/o2k7/img/button_bg.png
316
+ - generators/kitsune/templates/javascripts/tiny_mce/themes/simple/skins/o2k7/ui.css
317
+ - generators/kitsune/templates/javascripts/tiny_mce/tiny_mce.js
318
+ - generators/kitsune/templates/javascripts/tiny_mce/tiny_mce_popup.js
319
+ - generators/kitsune/templates/javascripts/tiny_mce/tiny_mce_src.js
320
+ - generators/kitsune/templates/javascripts/tiny_mce/utils/editable_selects.js
321
+ - generators/kitsune/templates/javascripts/tiny_mce/utils/form_utils.js
322
+ - generators/kitsune/templates/javascripts/tiny_mce/utils/mctabs.js
323
+ - generators/kitsune/templates/javascripts/tiny_mce/utils/validate.js
83
324
  - generators/kitsune/templates/javascripts/upload_maker.js
84
325
  - generators/kitsune/templates/migrations/create_pages.rb
85
326
  - generators/kitsune/templates/page.rb
@@ -1,102 +0,0 @@
1
- /* NicEdit - Micro Inline WYSIWYG
2
- * Copyright 2007-2008 Brian Kirchoff
3
- *
4
- * NicEdit is distributed under the terms of the MIT license
5
- * For more information visit http://nicedit.com/
6
- * Do not remove this copyright message
7
- */
8
- var bkExtend=function(){var A=arguments;if(A.length==1){A=[this,A[0]]}for(var B in A[1]){A[0][B]=A[1][B]}return A[0]};function bkClass(){}bkClass.prototype.construct=function(){};bkClass.extend=function(C){var A=function(){if(arguments[0]!==bkClass){return this.construct.apply(this,arguments)}};var B=new this(bkClass);bkExtend(B,C);A.prototype=B;A.extend=this.extend;return A};var bkElement=bkClass.extend({construct:function(B,A){if(typeof (B)=="string"){B=(A||document).createElement(B)}B=$BK(B);return B},appendTo:function(A){A.appendChild(this);return this},appendBefore:function(A){A.parentNode.insertBefore(this,A);return this},addEvent:function(B,A){bkLib.addEvent(this,B,A);return this},setContent:function(A){this.innerHTML=A;return this},pos:function(){var C=curtop=0;var B=obj=this;if(obj.offsetParent){do{C+=obj.offsetLeft;curtop+=obj.offsetTop}while(obj=obj.offsetParent)}var A=(!window.opera)?parseInt(this.getStyle("border-width")||this.style.border)||0:0;return[C+A,curtop+A+this.offsetHeight]},noSelect:function(){bkLib.noSelect(this);return this},parentTag:function(A){var B=this;do{if(B&&B.nodeName&&B.nodeName.toUpperCase()==A){return B}B=B.parentNode}while(B);return false},hasClass:function(A){return this.className.match(new RegExp("(\\s|^)nicEdit-"+A+"(\\s|$)"))},addClass:function(A){if(!this.hasClass(A)){this.className+=" nicEdit-"+A}return this},removeClass:function(A){if(this.hasClass(A)){this.className=this.className.replace(new RegExp("(\\s|^)nicEdit-"+A+"(\\s|$)")," ")}return this},setStyle:function(A){var B=this.style;for(var C in A){switch(C){case"float":B.cssFloat=B.styleFloat=A[C];break;case"opacity":B.opacity=A[C];B.filter="alpha(opacity="+Math.round(A[C]*100)+")";break;case"className":this.className=A[C];break;default:B[C]=A[C]}}return this},getStyle:function(A,C){var B=(!C)?document.defaultView:C;if(this.nodeType==1){return(B&&B.getComputedStyle)?B.getComputedStyle(this,null).getPropertyValue(A):this.currentStyle[bkLib.camelize(A)]}},remove:function(){this.parentNode.removeChild(this);return this},setAttributes:function(A){for(var B in A){this[B]=A[B]}return this}});var bkLib={isMSIE:(navigator.appVersion.indexOf("MSIE")!=-1),addEvent:function(C,B,A){(C.addEventListener)?C.addEventListener(B,A,false):C.attachEvent("on"+B,A)},toArray:function(C){var B=C.length,A=new Array(B);while(B--){A[B]=C[B]}return A},noSelect:function(B){if(B.setAttribute&&B.nodeName.toLowerCase()!="input"&&B.nodeName.toLowerCase()!="textarea"){B.setAttribute("unselectable","on")}for(var A=0;A<B.childNodes.length;A++){bkLib.noSelect(B.childNodes[A])}},camelize:function(A){return A.replace(/\-(.)/g,function(B,C){return C.toUpperCase()})},inArray:function(A,B){return(bkLib.search(A,B)!=null)},search:function(A,C){for(var B=0;B<A.length;B++){if(A[B]==C){return B}}return null},cancelEvent:function(A){A=A||window.event;if(A.preventDefault&&A.stopPropagation){A.preventDefault();A.stopPropagation()}return false},domLoad:[],domLoaded:function(){if(arguments.callee.done){return }arguments.callee.done=true;for(i=0;i<bkLib.domLoad.length;i++){bkLib.domLoad[i]()}},onDomLoaded:function(A){this.domLoad.push(A);if(document.addEventListener){document.addEventListener("DOMContentLoaded",bkLib.domLoaded,null)}else{if(bkLib.isMSIE){document.write("<style>.nicEdit-main p { margin: 0; }</style><script id=__ie_onload defer "+((location.protocol=="https:")?"src='javascript:void(0)'":"src=//0")+"><\/script>");$BK("__ie_onload").onreadystatechange=function(){if(this.readyState=="complete"){bkLib.domLoaded()}}}}window.onload=bkLib.domLoaded}};function $BK(A){if(typeof (A)=="string"){A=document.getElementById(A)}return(A&&!A.appendTo)?bkExtend(A,bkElement.prototype):A}var bkEvent={addEvent:function(A,B){if(B){this.eventList=this.eventList||{};this.eventList[A]=this.eventList[A]||[];this.eventList[A].push(B)}return this},fireEvent:function(){var A=bkLib.toArray(arguments),C=A.shift();if(this.eventList&&this.eventList[C]){for(var B=0;B<this.eventList[C].length;B++){this.eventList[C][B].apply(this,A)}}}};function __(A){return A}Function.prototype.closure=function(){var A=this,B=bkLib.toArray(arguments),C=B.shift();return function(){if(typeof (bkLib)!="undefined"){return A.apply(C,B.concat(bkLib.toArray(arguments)))}}};Function.prototype.closureListener=function(){var A=this,C=bkLib.toArray(arguments),B=C.shift();return function(E){E=E||window.event;if(E.target){var D=E.target}else{var D=E.srcElement}return A.apply(B,[E,D].concat(C))}};
9
-
10
-
11
-
12
- var nicEditorConfig = bkClass.extend({
13
- buttons : {
14
- 'bold' : {name : __('Click to Bold'), command : 'Bold', tags : ['B','STRONG'], css : {'font-weight' : 'bold'}, key : 'b'},
15
- 'italic' : {name : __('Click to Italic'), command : 'Italic', tags : ['EM','I'], css : {'font-style' : 'italic'}, key : 'i'},
16
- 'underline' : {name : __('Click to Underline'), command : 'Underline', tags : ['U'], css : {'text-decoration' : 'underline'}, key : 'u'},
17
- 'left' : {name : __('Left Align'), command : 'justifyleft', noActive : true},
18
- 'center' : {name : __('Center Align'), command : 'justifycenter', noActive : true},
19
- 'right' : {name : __('Right Align'), command : 'justifyright', noActive : true},
20
- 'justify' : {name : __('Justify Align'), command : 'justifyfull', noActive : true},
21
- 'ol' : {name : __('Insert Ordered List'), command : 'insertorderedlist', tags : ['OL']},
22
- 'ul' : {name : __('Insert Unordered List'), command : 'insertunorderedlist', tags : ['UL']},
23
- 'subscript' : {name : __('Click to Subscript'), command : 'subscript', tags : ['SUB']},
24
- 'superscript' : {name : __('Click to Superscript'), command : 'superscript', tags : ['SUP']},
25
- 'strikethrough' : {name : __('Click to Strike Through'), command : 'strikeThrough', css : {'text-decoration' : 'line-through'}},
26
- 'removeformat' : {name : __('Remove Formatting'), command : 'removeformat', noActive : true},
27
- 'indent' : {name : __('Indent Text'), command : 'indent', noActive : true},
28
- 'outdent' : {name : __('Remove Indent'), command : 'outdent', noActive : true},
29
- 'hr' : {name : __('Horizontal Rule'), command : 'insertHorizontalRule', noActive : true}
30
- },
31
- iconsPath : '/images/kitsune/nicEditorIcons.gif',
32
- buttonList : ['save','bold','italic','underline','left','center','right','justify','ol','ul','fontSize','fontFamily','fontFormat','indent','outdent','image','upload','link','unlink','forecolor','bgcolor'],
33
- iconList : {"bgcolor":1,"forecolor":2,"bold":3,"center":4,"hr":5,"indent":6,"italic":7,"justify":8,"left":9,"ol":10,"outdent":11,"removeformat":12,"right":13,"save":24,"strikethrough":15,"subscript":16,"superscript":17,"ul":18,"underline":19,"image":20,"link":21,"unlink":22,"close":23,"arrow":25}
34
-
35
- });
36
- ;
37
- var nicEditors={nicPlugins:[],editors:[],registerPlugin:function(B,A){this.nicPlugins.push({p:B,o:A})},allTextAreas:function(C){var A=document.getElementsByTagName("textarea");for(var B=0;B<A.length;B++){nicEditors.editors.push(new nicEditor(C).panelInstance(A[B]))}return nicEditors.editors},findEditor:function(C){var B=nicEditors.editors;for(var A=0;A<B.length;A++){if(B[A].instanceById(C)){return B[A].instanceById(C)}}}};var nicEditor=bkClass.extend({construct:function(C){this.options=new nicEditorConfig();bkExtend(this.options,C);this.nicInstances=new Array();this.loadedPlugins=new Array();var A=nicEditors.nicPlugins;for(var B=0;B<A.length;B++){this.loadedPlugins.push(new A[B].p(this,A[B].o))}nicEditors.editors.push(this);bkLib.addEvent(document.body,"mousedown",this.selectCheck.closureListener(this))},panelInstance:function(B,C){B=this.checkReplace($BK(B));var A=new bkElement("DIV").setStyle({width:(parseInt(B.getStyle("width"))||B.clientWidth)+"px"}).appendBefore(B);this.setPanel(A);return this.addInstance(B,C)},checkReplace:function(B){var A=nicEditors.findEditor(B);if(A){A.removeInstance(B);A.removePanel()}return B},addInstance:function(B,C){B=this.checkReplace($BK(B));if(B.contentEditable||!!window.opera){var A=new nicEditorInstance(B,C,this)}else{var A=new nicEditorIFrameInstance(B,C,this)}this.nicInstances.push(A);return this},removeInstance:function(C){C=$BK(C);var B=this.nicInstances;for(var A=0;A<B.length;A++){if(B[A].e==C){B[A].remove();this.nicInstances.splice(A,1)}}},removePanel:function(A){if(this.nicPanel){this.nicPanel.remove();this.nicPanel=null}},instanceById:function(C){C=$BK(C);var B=this.nicInstances;for(var A=0;A<B.length;A++){if(B[A].e==C){return B[A]}}},setPanel:function(A){this.nicPanel=new nicEditorPanel($BK(A),this.options,this);this.fireEvent("panel",this.nicPanel);return this},nicCommand:function(B,A){if(this.selectedInstance){this.selectedInstance.nicCommand(B,A)}},getIcon:function(D,A){var C=this.options.iconList[D];var B=(A.iconFiles)?A.iconFiles[D]:"";return{backgroundImage:"url('"+((C)?this.options.iconsPath:B)+"')",backgroundPosition:((C)?((C-1)*-18):0)+"px 0px"}},selectCheck:function(C,A){var B=false;do{if(A.className&&A.className.indexOf("nicEdit")!=-1){return false}}while(A=A.parentNode);this.fireEvent("blur",this.selectedInstance,A);this.lastSelectedInstance=this.selectedInstance;this.selectedInstance=null;return false}});nicEditor=nicEditor.extend(bkEvent);
38
- var nicEditorInstance=bkClass.extend({isSelected:false,construct:function(G,D,C){this.ne=C;this.elm=this.e=G;this.options=D||{};newX=parseInt(G.getStyle("width"))||G.clientWidth;newY=parseInt(G.getStyle("height"))||G.clientHeight;this.initialHeight=newY-8;var H=(G.nodeName.toLowerCase()=="textarea");if(H||this.options.hasPanel){var B=(bkLib.isMSIE&&!((typeof document.body.style.maxHeight!="undefined")&&document.compatMode=="CSS1Compat"));var E={width:newX+"px",border:"1px solid #ccc",borderTop:0,overflowY:"auto",overflowX:"hidden"};E[(B)?"height":"maxHeight"]=(this.ne.options.maxHeight)?this.ne.options.maxHeight+"px":null;this.editorContain=new bkElement("DIV").setStyle(E).appendBefore(G);var A=new bkElement("DIV").setStyle({width:(newX-8)+"px",margin:"4px",minHeight:newY+"px"}).addClass("main").appendTo(this.editorContain);G.setStyle({display:"none"});A.innerHTML=G.innerHTML;if(H){A.setContent(G.value);this.copyElm=G;var F=G.parentTag("FORM");if(F){bkLib.addEvent(F,"submit",this.saveContent.closure(this))}}A.setStyle((B)?{height:newY+"px"}:{overflow:"hidden"});this.elm=A}this.ne.addEvent("blur",this.blur.closure(this));this.init();this.blur()},init:function(){this.elm.setAttribute("contentEditable","true");if(this.getContent()==""){this.setContent("<br />")}this.instanceDoc=document.defaultView;this.elm.addEvent("mousedown",this.selected.closureListener(this)).addEvent("keypress",this.keyDown.closureListener(this)).addEvent("focus",this.selected.closure(this)).addEvent("blur",this.blur.closure(this)).addEvent("keyup",this.selected.closure(this));this.ne.fireEvent("add",this)},remove:function(){this.saveContent();if(this.copyElm||this.options.hasPanel){this.editorContain.remove();this.e.setStyle({display:"block"});this.ne.removePanel()}this.disable();this.ne.fireEvent("remove",this)},disable:function(){this.elm.setAttribute("contentEditable","false")},getSel:function(){return(window.getSelection)?window.getSelection():document.selection},getRng:function(){var A=this.getSel();if(!A){return null}return(A.rangeCount>0)?A.getRangeAt(0):A.createRange()},selRng:function(A,B){if(window.getSelection){B.removeAllRanges();B.addRange(A)}else{A.select()}},selElm:function(){var C=this.getRng();if(C.startContainer){var D=C.startContainer;if(C.cloneContents().childNodes.length==1){for(var B=0;B<D.childNodes.length;B++){var A=D.childNodes[B].ownerDocument.createRange();A.selectNode(D.childNodes[B]);if(C.compareBoundaryPoints(Range.START_TO_START,A)!=1&&C.compareBoundaryPoints(Range.END_TO_END,A)!=-1){return $BK(D.childNodes[B])}}}return $BK(D)}else{return $BK((this.getSel().type=="Control")?C.item(0):C.parentElement())}},saveRng:function(){this.savedRange=this.getRng();this.savedSel=this.getSel()},restoreRng:function(){if(this.savedRange){this.selRng(this.savedRange,this.savedSel)}},keyDown:function(B,A){if(B.ctrlKey){this.ne.fireEvent("key",this,B)}},selected:function(C,A){if(!A){A=this.selElm()}if(!C.ctrlKey){var B=this.ne.selectedInstance;if(B!=this){if(B){this.ne.fireEvent("blur",B,A)}this.ne.selectedInstance=this;this.ne.fireEvent("focus",B,A)}this.ne.fireEvent("selected",B,A);this.isFocused=true;this.elm.addClass("selected")}return false},blur:function(){this.isFocused=false;this.elm.removeClass("selected")},saveContent:function(){if(this.copyElm||this.options.hasPanel){this.ne.fireEvent("save",this);(this.copyElm)?this.copyElm.value=this.getContent():this.e.innerHTML=this.getContent()}},getElm:function(){return this.elm},getContent:function(){this.content=this.getElm().innerHTML;this.ne.fireEvent("get",this);return this.content},setContent:function(A){this.content=A;this.ne.fireEvent("set",this);this.elm.innerHTML=this.content},nicCommand:function(B,A){document.execCommand(B,false,A)}});
39
- var nicEditorIFrameInstance=nicEditorInstance.extend({savedStyles:[],init:function(){var B=this.elm.innerHTML.replace(/^\s+|\s+$/g,"");this.elm.innerHTML="";(!B)?B="<br />":B;this.initialContent=B;this.elmFrame=new bkElement("iframe").setAttributes({src:"javascript:;",frameBorder:0,allowTransparency:"true",scrolling:"no"}).setStyle({height:"100px",width:"100%"}).addClass("frame").appendTo(this.elm);if(this.copyElm){this.elmFrame.setStyle({width:(this.elm.offsetWidth-4)+"px"})}var A=["font-size","font-family","font-weight","color"];for(itm in A){this.savedStyles[bkLib.camelize(itm)]=this.elm.getStyle(itm)}setTimeout(this.initFrame.closure(this),50)},disable:function(){this.elm.innerHTML=this.getContent()},initFrame:function(){var B=$BK(this.elmFrame.contentWindow.document);B.designMode="on";B.open();var A=this.ne.options.externalCSS;B.write("<html><head>"+((A)?'<link href="'+A+'" rel="stylesheet" type="text/css" />':"")+'</head><body id="nicEditContent" style="margin: 0 !important; background-color: transparent !important;">'+this.initialContent+"</body></html>");B.close();this.frameDoc=B;this.frameWin=$BK(this.elmFrame.contentWindow);this.frameContent=$BK(this.frameWin.document.body).setStyle(this.savedStyles);this.instanceDoc=this.frameWin.document.defaultView;this.heightUpdate();this.frameDoc.addEvent("mousedown",this.selected.closureListener(this)).addEvent("keyup",this.heightUpdate.closureListener(this)).addEvent("keydown",this.keyDown.closureListener(this)).addEvent("keyup",this.selected.closure(this));this.ne.fireEvent("add",this)},getElm:function(){return this.frameContent},setContent:function(A){this.content=A;this.ne.fireEvent("set",this);this.frameContent.innerHTML=this.content;this.heightUpdate()},getSel:function(){return(this.frameWin)?this.frameWin.getSelection():this.frameDoc.selection},heightUpdate:function(){this.elmFrame.style.height=Math.max(this.frameContent.offsetHeight,this.initialHeight)+"px"},nicCommand:function(B,A){this.frameDoc.execCommand(B,false,A);setTimeout(this.heightUpdate.closure(this),100)}});
40
- var nicEditorPanel=bkClass.extend({construct:function(E,B,A){this.elm=E;this.options=B;this.ne=A;this.panelButtons=new Array();this.buttonList=bkExtend([],this.ne.options.buttonList);this.panelContain=new bkElement("DIV").setStyle({overflow:"hidden",width:"100%",border:"1px solid #cccccc",backgroundColor:"#efefef"}).addClass("panelContain");this.panelElm=new bkElement("DIV").setStyle({margin:"2px",marginTop:"0px",zoom:1,overflow:"hidden"}).addClass("panel").appendTo(this.panelContain);this.panelContain.appendTo(E);var C=this.ne.options;var D=C.buttons;for(button in D){this.addButton(button,C,true)}this.reorder();E.noSelect()},addButton:function(buttonName,options,noOrder){var button=options.buttons[buttonName];var type=(button.type)?eval("(typeof("+button.type+') == "undefined") ? null : '+button.type+";"):nicEditorButton;var hasButton=bkLib.inArray(this.buttonList,buttonName);if(type&&(hasButton||this.ne.options.fullPanel)){this.panelButtons.push(new type(this.panelElm,buttonName,options,this.ne));if(!hasButton){this.buttonList.push(buttonName)}}},findButton:function(B){for(var A=0;A<this.panelButtons.length;A++){if(this.panelButtons[A].name==B){return this.panelButtons[A]}}},reorder:function(){var C=this.buttonList;for(var B=0;B<C.length;B++){var A=this.findButton(C[B]);if(A){this.panelElm.appendChild(A.margin)}}},remove:function(){this.elm.remove()}});
41
- var nicEditorButton=bkClass.extend({construct:function(D,A,C,B){this.options=C.buttons[A];this.name=A;this.ne=B;this.elm=D;this.margin=new bkElement("DIV").setStyle({"float":"left",marginTop:"2px"}).appendTo(D);this.contain=new bkElement("DIV").setStyle({width:"20px",height:"20px"}).addClass("buttonContain").appendTo(this.margin);this.border=new bkElement("DIV").setStyle({backgroundColor:"#efefef",border:"1px solid #efefef"}).appendTo(this.contain);this.button=new bkElement("DIV").setStyle({width:"18px",height:"18px",overflow:"hidden",zoom:1,cursor:"pointer"}).addClass("button").setStyle(this.ne.getIcon(A,C)).appendTo(this.border);this.button.addEvent("mouseover",this.hoverOn.closure(this)).addEvent("mouseout",this.hoverOff.closure(this)).addEvent("mousedown",this.mouseClick.closure(this)).noSelect();if(!window.opera){this.button.onmousedown=this.button.onclick=bkLib.cancelEvent}B.addEvent("selected",this.enable.closure(this)).addEvent("blur",this.disable.closure(this)).addEvent("key",this.key.closure(this));this.disable();this.init()},init:function(){},hide:function(){this.contain.setStyle({display:"none"})},updateState:function(){if(this.isDisabled){this.setBg()}else{if(this.isHover){this.setBg("hover")}else{if(this.isActive){this.setBg("active")}else{this.setBg()}}}},setBg:function(A){switch(A){case"hover":var B={border:"1px solid #666",backgroundColor:"#ddd"};break;case"active":var B={border:"1px solid #666",backgroundColor:"#ccc"};break;default:var B={border:"1px solid #efefef",backgroundColor:"#efefef"}}this.border.setStyle(B).addClass("button-"+A)},checkNodes:function(A){var B=A;do{if(this.options.tags&&bkLib.inArray(this.options.tags,B.nodeName)){this.activate();return true}}while(B=B.parentNode&&B.className!="nicEdit");B=$BK(A);while(B.nodeType==3){B=$BK(B.parentNode)}if(this.options.css){for(itm in this.options.css){if(B.getStyle(itm,this.ne.selectedInstance.instanceDoc)==this.options.css[itm]){this.activate();return true}}}this.deactivate();return false},activate:function(){if(!this.isDisabled){this.isActive=true;this.updateState();this.ne.fireEvent("buttonActivate",this)}},deactivate:function(){this.isActive=false;this.updateState();if(!this.isDisabled){this.ne.fireEvent("buttonDeactivate",this)}},enable:function(A,B){this.isDisabled=false;this.contain.setStyle({opacity:1}).addClass("buttonEnabled");this.updateState();this.checkNodes(B)},disable:function(A,B){this.isDisabled=true;this.contain.setStyle({opacity:0.6}).removeClass("buttonEnabled");this.updateState()},toggleActive:function(){(this.isActive)?this.deactivate():this.activate()},hoverOn:function(){if(!this.isDisabled){this.isHover=true;this.updateState();this.ne.fireEvent("buttonOver",this)}},hoverOff:function(){this.isHover=false;this.updateState();this.ne.fireEvent("buttonOut",this)},mouseClick:function(){if(this.options.command){this.ne.nicCommand(this.options.command,this.options.commandArgs);if(!this.options.noActive){this.toggleActive()}}this.ne.fireEvent("buttonClick",this)},key:function(A,B){if(this.options.key&&B.ctrlKey&&String.fromCharCode(B.keyCode||B.charCode).toLowerCase()==this.options.key){this.mouseClick();if(B.preventDefault){B.preventDefault()}}}});
42
- var nicPlugin=bkClass.extend({construct:function(B,A){this.options=A;this.ne=B;this.ne.addEvent("panel",this.loadPanel.closure(this));this.init()},loadPanel:function(C){var B=this.options.buttons;for(var A in B){C.addButton(A,this.options)}C.reorder()},init:function(){}});
43
-
44
-
45
- var nicPaneOptions = { };
46
-
47
- var nicEditorPane=bkClass.extend({construct:function(D,C,B,A){this.ne=C;this.elm=D;this.pos=D.pos();this.contain=new bkElement("div").setStyle({zIndex:"99999",overflow:"hidden",position:"absolute",left:this.pos[0]+"px",top:this.pos[1]+"px"});this.pane=new bkElement("div").setStyle({fontSize:"12px",border:"1px solid #ccc",overflow:"hidden",padding:"4px",textAlign:"left",backgroundColor:"#ffffc9"}).addClass("pane").setStyle(B).appendTo(this.contain);if(A&&!A.options.noClose){this.close=new bkElement("div").setStyle({"float":"right",height:"16px",width:"16px",cursor:"pointer"}).setStyle(this.ne.getIcon("close",nicPaneOptions)).addEvent("mousedown",A.removePane.closure(this)).appendTo(this.pane)}this.contain.noSelect().appendTo(document.body);this.position();this.init()},init:function(){},position:function(){if(this.ne.nicPanel){var B=this.ne.nicPanel.elm;var A=B.pos();var C=A[0]+parseInt(B.getStyle("width"))-(parseInt(this.pane.getStyle("width"))+8);if(C<this.pos[0]){this.contain.setStyle({left:C+"px"})}}},toggle:function(){this.isVisible=!this.isVisible;this.contain.setStyle({display:((this.isVisible)?"block":"none")})},remove:function(){if(this.contain){this.contain.remove();this.contain=null}},append:function(A){A.appendTo(this.pane)},setContent:function(A){this.pane.setContent(A)}});
48
-
49
- var nicEditorAdvancedButton=nicEditorButton.extend({init:function(){this.ne.addEvent("selected",this.removePane.closure(this)).addEvent("blur",this.removePane.closure(this))},mouseClick:function(){if(!this.isDisabled){if(this.pane&&this.pane.pane){this.removePane()}else{this.pane=new nicEditorPane(this.contain,this.ne,{width:(this.width||"270px"),backgroundColor:"#fff"},this);this.addPane();this.ne.selectedInstance.saveRng()}}},addForm:function(C,G){this.form=new bkElement("form").addEvent("submit",this.submit.closureListener(this));this.pane.append(this.form);this.inputs={};for(itm in C){var D=C[itm];var F="";if(G){F=G.getAttribute(itm)}if(!F){F=D.value||""}var A=C[itm].type;if(A=="title"){new bkElement("div").setContent(D.txt).setStyle({fontSize:"14px",fontWeight:"bold",padding:"0px",margin:"2px 0"}).appendTo(this.form)}else{var B=new bkElement("div").setStyle({overflow:"hidden",clear:"both"}).appendTo(this.form);if(D.txt){new bkElement("label").setAttributes({"for":itm}).setContent(D.txt).setStyle({margin:"2px 4px",fontSize:"13px",width:"50px",lineHeight:"20px",textAlign:"right","float":"left"}).appendTo(B)}switch(A){case"text":this.inputs[itm]=new bkElement("input").setAttributes({id:itm,value:F,type:"text"}).setStyle({margin:"2px 0",fontSize:"13px","float":"left",height:"20px",border:"1px solid #ccc",overflow:"hidden"}).setStyle(D.style).appendTo(B);break;case"select":this.inputs[itm]=new bkElement("select").setAttributes({id:itm}).setStyle({border:"1px solid #ccc","float":"left",margin:"2px 0"}).appendTo(B);for(opt in D.options){var E=new bkElement("option").setAttributes({value:opt,selected:(opt==F)?"selected":""}).setContent(D.options[opt]).appendTo(this.inputs[itm])}break;case"content":this.inputs[itm]=new bkElement("textarea").setAttributes({id:itm}).setStyle({border:"1px solid #ccc","float":"left"}).setStyle(D.style).appendTo(B);this.inputs[itm].value=F}}}new bkElement("input").setAttributes({type:"submit"}).setStyle({backgroundColor:"#efefef",border:"1px solid #ccc",margin:"3px 0","float":"left",clear:"both"}).appendTo(this.form);this.form.onsubmit=bkLib.cancelEvent},submit:function(){},findElm:function(B,A,E){var D=this.ne.selectedInstance.getElm().getElementsByTagName(B);for(var C=0;C<D.length;C++){if(D[C].getAttribute(A)==E){return $BK(D[C])}}},removePane:function(){if(this.pane){this.pane.remove();this.pane=null;this.ne.selectedInstance.restoreRng()}}});
50
-
51
- var nicButtonTips=bkClass.extend({construct:function(A){this.ne=A;A.addEvent("buttonOver",this.show.closure(this)).addEvent("buttonOut",this.hide.closure(this))},show:function(A){this.timer=setTimeout(this.create.closure(this,A),400)},create:function(A){this.timer=null;if(!this.pane){this.pane=new nicEditorPane(A.button,this.ne,{fontSize:"12px",marginTop:"5px"});this.pane.setContent(A.options.name)}},hide:function(A){if(this.timer){clearTimeout(this.timer)}if(this.pane){this.pane=this.pane.remove()}}});nicEditors.registerPlugin(nicButtonTips);
52
-
53
-
54
- var nicSelectOptions = {
55
- buttons : {
56
- 'fontSize' : {name : __('Select Font Size'), type : 'nicEditorFontSizeSelect', command : 'fontsize'},
57
- 'fontFamily' : {name : __('Select Font Family'), type : 'nicEditorFontFamilySelect', command : 'fontname'},
58
- 'fontFormat' : {name : __('Select Font Format'), type : 'nicEditorFontFormatSelect', command : 'formatBlock'}
59
- }
60
- };
61
-
62
- var nicEditorSelect=bkClass.extend({construct:function(D,A,C,B){this.options=C.buttons[A];this.elm=D;this.ne=B;this.name=A;this.selOptions=new Array();this.margin=new bkElement("div").setStyle({"float":"left",margin:"2px 1px 0 1px"}).appendTo(this.elm);this.contain=new bkElement("div").setStyle({width:"90px",height:"20px",cursor:"pointer",overflow:"hidden"}).addClass("selectContain").addEvent("click",this.toggle.closure(this)).appendTo(this.margin);this.items=new bkElement("div").setStyle({overflow:"hidden",zoom:1,border:"1px solid #ccc",paddingLeft:"3px",backgroundColor:"#fff"}).appendTo(this.contain);this.control=new bkElement("div").setStyle({overflow:"hidden","float":"right",height:"18px",width:"16px"}).addClass("selectControl").setStyle(this.ne.getIcon("arrow",C)).appendTo(this.items);this.txt=new bkElement("div").setStyle({overflow:"hidden","float":"left",width:"66px",height:"14px",marginTop:"1px",fontFamily:"sans-serif",textAlign:"center",fontSize:"12px"}).addClass("selectTxt").appendTo(this.items);if(!window.opera){this.contain.onmousedown=this.control.onmousedown=this.txt.onmousedown=bkLib.cancelEvent}this.margin.noSelect();this.ne.addEvent("selected",this.enable.closure(this)).addEvent("blur",this.disable.closure(this));this.disable();this.init()},disable:function(){this.isDisabled=true;this.close();this.contain.setStyle({opacity:0.6})},enable:function(A){this.isDisabled=false;this.close();this.contain.setStyle({opacity:1})},setDisplay:function(A){this.txt.setContent(A)},toggle:function(){if(!this.isDisabled){(this.pane)?this.close():this.open()}},open:function(){this.pane=new nicEditorPane(this.items,this.ne,{width:"88px",padding:"0px",borderTop:0,borderLeft:"1px solid #ccc",borderRight:"1px solid #ccc",borderBottom:"0px",backgroundColor:"#fff"});for(var C=0;C<this.selOptions.length;C++){var B=this.selOptions[C];var A=new bkElement("div").setStyle({overflow:"hidden",borderBottom:"1px solid #ccc",width:"88px",textAlign:"left",overflow:"hidden",cursor:"pointer"});var D=new bkElement("div").setStyle({padding:"0px 4px"}).setContent(B[1]).appendTo(A).noSelect();D.addEvent("click",this.update.closure(this,B[0])).addEvent("mouseover",this.over.closure(this,D)).addEvent("mouseout",this.out.closure(this,D)).setAttributes("id",B[0]);this.pane.append(A);if(!window.opera){D.onmousedown=bkLib.cancelEvent}}},close:function(){if(this.pane){this.pane=this.pane.remove()}},over:function(A){A.setStyle({backgroundColor:"#ccc"})},out:function(A){A.setStyle({backgroundColor:"#fff"})},add:function(B,A){this.selOptions.push(new Array(B,A))},update:function(A){this.ne.nicCommand(this.options.command,A);this.close()}});var nicEditorFontSizeSelect=nicEditorSelect.extend({sel:{1:"1&nbsp;(8pt)",2:"2&nbsp;(10pt)",3:"3&nbsp;(12pt)",4:"4&nbsp;(14pt)",5:"5&nbsp;(18pt)",6:"6&nbsp;(24pt)"},init:function(){this.setDisplay("Font&nbsp;Size...");for(itm in this.sel){this.add(itm,'<font size="'+itm+'">'+this.sel[itm]+"</font>")}}});var nicEditorFontFamilySelect=nicEditorSelect.extend({sel:{arial:"Arial","comic sans ms":"Comic Sans","courier new":"Courier New",georgia:"Georgia",helvetica:"Helvetica",impact:"Impact","times new roman":"Times","trebuchet ms":"Trebuchet",verdana:"Verdana"},init:function(){this.setDisplay("Font&nbsp;Family...");for(itm in this.sel){this.add(itm,'<font face="'+itm+'">'+this.sel[itm]+"</font>")}}});var nicEditorFontFormatSelect=nicEditorSelect.extend({sel:{p:"Paragraph",pre:"Pre",h6:"Heading&nbsp;6",h5:"Heading&nbsp;5",h4:"Heading&nbsp;4",h3:"Heading&nbsp;3",h2:"Heading&nbsp;2",h1:"Heading&nbsp;1"},init:function(){this.setDisplay("Font&nbsp;Format...");for(itm in this.sel){var A=itm.toUpperCase();this.add("<"+A+">","<"+itm+' style="padding: 0px; margin: 0px;">'+this.sel[itm]+"</"+A+">")}}});nicEditors.registerPlugin(nicPlugin,nicSelectOptions);
63
-
64
-
65
- var nicLinkOptions = {
66
- buttons : {
67
- 'link' : {name : 'Add Link', type : 'nicLinkButton', tags : ['A']},
68
- 'unlink' : {name : 'Remove Link', command : 'unlink', noActive : true}
69
- }
70
- };
71
-
72
- var nicLinkButton=nicEditorAdvancedButton.extend({addPane:function(){this.ln=this.ne.selectedInstance.selElm().parentTag("A");this.addForm({"":{type:"title",txt:"Add/Edit Link"},href:{type:"text",txt:"URL",value:"http://",style:{width:"150px"}},title:{type:"text",txt:"Title"},target:{type:"select",txt:"Open In",options:{"":"Current Window",_blank:"New Window"},style:{width:"100px"}}},this.ln)},submit:function(C){var A=this.inputs.href.value;if(A=="http://"||A==""){alert("You must enter a URL to Create a Link");return false}this.removePane();if(!this.ln){var B="javascript:nicTemp();";this.ne.nicCommand("createlink",B);this.ln=this.findElm("A","href",B)}if(this.ln){this.ln.setAttributes({href:this.inputs.href.value,title:this.inputs.title.value,target:this.inputs.target.options[this.inputs.target.selectedIndex].value})}}});nicEditors.registerPlugin(nicPlugin,nicLinkOptions);
73
-
74
-
75
- var nicColorOptions = {
76
- buttons : {
77
- 'forecolor' : {name : __('Change Text Color'), type : 'nicEditorColorButton', noClose : true},
78
- 'bgcolor' : {name : __('Change Background Color'), type : 'nicEditorBgColorButton', noClose : true}
79
- }
80
- };
81
-
82
- var nicEditorColorButton=nicEditorAdvancedButton.extend({addPane:function(){var D={0:"00",1:"33",2:"66",3:"99",4:"CC",5:"FF"};var H=new bkElement("DIV").setStyle({width:"270px"});for(var A in D){for(var F in D){for(var E in D){var I="#"+D[A]+D[E]+D[F];var C=new bkElement("DIV").setStyle({cursor:"pointer",height:"15px","float":"left"}).appendTo(H);var G=new bkElement("DIV").setStyle({border:"2px solid "+I}).appendTo(C);var B=new bkElement("DIV").setStyle({backgroundColor:I,overflow:"hidden",width:"11px",height:"11px"}).addEvent("click",this.colorSelect.closure(this,I)).addEvent("mouseover",this.on.closure(this,G)).addEvent("mouseout",this.off.closure(this,G,I)).appendTo(G);if(!window.opera){C.onmousedown=B.onmousedown=bkLib.cancelEvent}}}}this.pane.append(H.noSelect())},colorSelect:function(A){this.ne.nicCommand("foreColor",A);this.removePane()},on:function(A){A.setStyle({border:"2px solid #000"})},off:function(A,B){A.setStyle({border:"2px solid "+B})}});var nicEditorBgColorButton=nicEditorColorButton.extend({colorSelect:function(A){this.ne.nicCommand("hiliteColor",A);this.removePane()}});nicEditors.registerPlugin(nicPlugin,nicColorOptions);
83
-
84
-
85
- var nicImageOptions = {
86
- buttons : {
87
- 'image' : {name : 'Add Image', type : 'nicImageButton', tags : ['IMG']}
88
- }
89
-
90
- };
91
-
92
- var nicImageButton=nicEditorAdvancedButton.extend({addPane:function(){this.im=this.ne.selectedInstance.selElm().parentTag("IMG");this.addForm({"":{type:"title",txt:"Add/Edit Image"},src:{type:"text",txt:"URL",value:"http://",style:{width:"150px"}},alt:{type:"text",txt:"Alt Text",style:{width:"100px"}},align:{type:"select",txt:"Align",options:{none:"Default",left:"Left",right:"Right"}}},this.im)},submit:function(B){var C=this.inputs.src.value;if(C==""||C=="http://"){alert("You must enter a Image URL to insert");return false}this.removePane();if(!this.im){var A="javascript:nicImTemp();";this.ne.nicCommand("insertImage",A);this.im=this.findElm("IMG","src",A)}if(this.im){this.im.setAttributes({src:this.inputs.src.value,alt:this.inputs.alt.value,align:this.inputs.align.value})}}});nicEditors.registerPlugin(nicPlugin,nicImageOptions);
93
-
94
-
95
- var nicSaveOptions = {
96
- buttons : {
97
- 'save' : {name : __('Save this content'), type : 'nicEditorSaveButton'}
98
- }
99
- };
100
-
101
- var nicEditorSaveButton=nicEditorButton.extend({init:function(){if(!this.ne.options.onSave){this.margin.setStyle({display:"none"})}},mouseClick:function(){var B=this.ne.options.onSave;var A=this.ne.selectedInstance;B(A.getContent(),A.elm.id,A)}});nicEditors.registerPlugin(nicPlugin,nicSaveOptions);
102
-