ds-kitsune 0.2.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (372) hide show
  1. data/.gitignore +4 -0
  2. data/.specification +447 -0
  3. data/README.textile +16 -0
  4. data/Rakefile +30 -0
  5. data/VERSION +1 -0
  6. data/app/controllers/admin/kitsune/application_controller.rb +3 -0
  7. data/app/controllers/admin/kitsune/kitsune_controller.rb +87 -0
  8. data/app/controllers/admin/kitsune/kitsune_users_controller.rb +20 -0
  9. data/app/controllers/admin/kitsune/media_controller.rb +27 -0
  10. data/app/controllers/admin/kitsune/models_controller.rb +10 -0
  11. data/app/controllers/admin/kitsune/pages_controller.rb +35 -0
  12. data/app/controllers/admin/kitsune/records_controller.rb +98 -0
  13. data/app/controllers/admin/kitsune/sessions_controller.rb +23 -0
  14. data/app/controllers/kitsune_controller.rb +8 -0
  15. data/app/helpers/admin/kitsune/records_helper.rb +39 -0
  16. data/app/views/admin/kitsune/kitsune_users/index.html.haml +19 -0
  17. data/app/views/admin/kitsune/kitsune_users/new.html.haml +19 -0
  18. data/app/views/admin/kitsune/media/new.html.erb +49 -0
  19. data/app/views/admin/kitsune/models/index.html.haml +1 -0
  20. data/app/views/admin/kitsune/pages/_form.html.erb +13 -0
  21. data/app/views/admin/kitsune/pages/edit.html.erb +7 -0
  22. data/app/views/admin/kitsune/pages/index.html.erb +5 -0
  23. data/app/views/admin/kitsune/pages/new.html.erb +7 -0
  24. data/app/views/admin/kitsune/records/_form.html.haml +27 -0
  25. data/app/views/admin/kitsune/records/_list.html.haml +26 -0
  26. data/app/views/admin/kitsune/records/edit.html.haml +6 -0
  27. data/app/views/admin/kitsune/records/index.html.haml +13 -0
  28. data/app/views/admin/kitsune/records/new.html.haml +6 -0
  29. data/app/views/admin/kitsune/records/show.html.haml +11 -0
  30. data/app/views/admin/kitsune/sessions/new.html.haml +12 -0
  31. data/app/views/admin/kitsune/shared/_flashes.html.haml +6 -0
  32. data/app/views/kitsune/show.html.erb +8 -0
  33. data/app/views/kitsune/show.html.haml +5 -0
  34. data/app/views/layouts/admin/kitsune.html.erb +66 -0
  35. data/config/kitsune_routes.rb +21 -0
  36. data/doc/developers.html +38 -0
  37. data/generators/kitsune/USAGE +1 -0
  38. data/generators/kitsune/kitsune_generator.rb +67 -0
  39. data/generators/kitsune/lib/insert_commands.rb +31 -0
  40. data/generators/kitsune/templates/README +18 -0
  41. data/generators/kitsune/templates/VERSIONED_README +19 -0
  42. data/generators/kitsune/templates/images/back-arrow.gif +0 -0
  43. data/generators/kitsune/templates/images/bg.jpg +0 -0
  44. data/generators/kitsune/templates/images/box-shadow.png +0 -0
  45. data/generators/kitsune/templates/images/content-bg.gif +0 -0
  46. data/generators/kitsune/templates/images/form-bg.gif +0 -0
  47. data/generators/kitsune/templates/images/grey-btn.png +0 -0
  48. data/generators/kitsune/templates/images/header-bg.gif +0 -0
  49. data/generators/kitsune/templates/images/header-link.png +0 -0
  50. data/generators/kitsune/templates/images/nicEditorIcons.gif +0 -0
  51. data/generators/kitsune/templates/javascripts/jquery.js +19 -0
  52. data/generators/kitsune/templates/javascripts/kitsune_jquery.js +10 -0
  53. data/generators/kitsune/templates/javascripts/tiny_mce/langs/en.js +154 -0
  54. data/generators/kitsune/templates/javascripts/tiny_mce/license.txt +504 -0
  55. data/generators/kitsune/templates/javascripts/tiny_mce/plugins/advhr/css/advhr.css +5 -0
  56. data/generators/kitsune/templates/javascripts/tiny_mce/plugins/advhr/editor_plugin.js +1 -0
  57. data/generators/kitsune/templates/javascripts/tiny_mce/plugins/advhr/editor_plugin_src.js +54 -0
  58. data/generators/kitsune/templates/javascripts/tiny_mce/plugins/advhr/js/rule.js +43 -0
  59. data/generators/kitsune/templates/javascripts/tiny_mce/plugins/advhr/langs/en_dlg.js +5 -0
  60. data/generators/kitsune/templates/javascripts/tiny_mce/plugins/advhr/rule.htm +62 -0
  61. data/generators/kitsune/templates/javascripts/tiny_mce/plugins/advimage/css/advimage.css +13 -0
  62. data/generators/kitsune/templates/javascripts/tiny_mce/plugins/advimage/editor_plugin.js +1 -0
  63. data/generators/kitsune/templates/javascripts/tiny_mce/plugins/advimage/editor_plugin_src.js +47 -0
  64. data/generators/kitsune/templates/javascripts/tiny_mce/plugins/advimage/image.htm +237 -0
  65. data/generators/kitsune/templates/javascripts/tiny_mce/plugins/advimage/img/sample.gif +0 -0
  66. data/generators/kitsune/templates/javascripts/tiny_mce/plugins/advimage/js/image.js +443 -0
  67. data/generators/kitsune/templates/javascripts/tiny_mce/plugins/advimage/langs/en_dlg.js +43 -0
  68. data/generators/kitsune/templates/javascripts/tiny_mce/plugins/advlink/css/advlink.css +8 -0
  69. data/generators/kitsune/templates/javascripts/tiny_mce/plugins/advlink/editor_plugin.js +1 -0
  70. data/generators/kitsune/templates/javascripts/tiny_mce/plugins/advlink/editor_plugin_src.js +58 -0
  71. data/generators/kitsune/templates/javascripts/tiny_mce/plugins/advlink/js/advlink.js +528 -0
  72. data/generators/kitsune/templates/javascripts/tiny_mce/plugins/advlink/langs/en_dlg.js +52 -0
  73. data/generators/kitsune/templates/javascripts/tiny_mce/plugins/advlink/link.htm +338 -0
  74. data/generators/kitsune/templates/javascripts/tiny_mce/plugins/autoresize/editor_plugin.js +1 -0
  75. data/generators/kitsune/templates/javascripts/tiny_mce/plugins/autoresize/editor_plugin_src.js +114 -0
  76. data/generators/kitsune/templates/javascripts/tiny_mce/plugins/autosave/editor_plugin.js +1 -0
  77. data/generators/kitsune/templates/javascripts/tiny_mce/plugins/autosave/editor_plugin_src.js +51 -0
  78. data/generators/kitsune/templates/javascripts/tiny_mce/plugins/bbcode/editor_plugin.js +1 -0
  79. data/generators/kitsune/templates/javascripts/tiny_mce/plugins/bbcode/editor_plugin_src.js +117 -0
  80. data/generators/kitsune/templates/javascripts/tiny_mce/plugins/contextmenu/editor_plugin.js +1 -0
  81. data/generators/kitsune/templates/javascripts/tiny_mce/plugins/contextmenu/editor_plugin_src.js +95 -0
  82. data/generators/kitsune/templates/javascripts/tiny_mce/plugins/directionality/editor_plugin.js +1 -0
  83. data/generators/kitsune/templates/javascripts/tiny_mce/plugins/directionality/editor_plugin_src.js +79 -0
  84. data/generators/kitsune/templates/javascripts/tiny_mce/plugins/emotions/editor_plugin.js +1 -0
  85. data/generators/kitsune/templates/javascripts/tiny_mce/plugins/emotions/editor_plugin_src.js +40 -0
  86. data/generators/kitsune/templates/javascripts/tiny_mce/plugins/emotions/emotions.htm +40 -0
  87. data/generators/kitsune/templates/javascripts/tiny_mce/plugins/emotions/img/smiley-cool.gif +0 -0
  88. data/generators/kitsune/templates/javascripts/tiny_mce/plugins/emotions/img/smiley-cry.gif +0 -0
  89. data/generators/kitsune/templates/javascripts/tiny_mce/plugins/emotions/img/smiley-embarassed.gif +0 -0
  90. data/generators/kitsune/templates/javascripts/tiny_mce/plugins/emotions/img/smiley-foot-in-mouth.gif +0 -0
  91. data/generators/kitsune/templates/javascripts/tiny_mce/plugins/emotions/img/smiley-frown.gif +0 -0
  92. data/generators/kitsune/templates/javascripts/tiny_mce/plugins/emotions/img/smiley-innocent.gif +0 -0
  93. data/generators/kitsune/templates/javascripts/tiny_mce/plugins/emotions/img/smiley-kiss.gif +0 -0
  94. data/generators/kitsune/templates/javascripts/tiny_mce/plugins/emotions/img/smiley-laughing.gif +0 -0
  95. data/generators/kitsune/templates/javascripts/tiny_mce/plugins/emotions/img/smiley-money-mouth.gif +0 -0
  96. data/generators/kitsune/templates/javascripts/tiny_mce/plugins/emotions/img/smiley-sealed.gif +0 -0
  97. data/generators/kitsune/templates/javascripts/tiny_mce/plugins/emotions/img/smiley-smile.gif +0 -0
  98. data/generators/kitsune/templates/javascripts/tiny_mce/plugins/emotions/img/smiley-surprised.gif +0 -0
  99. data/generators/kitsune/templates/javascripts/tiny_mce/plugins/emotions/img/smiley-tongue-out.gif +0 -0
  100. data/generators/kitsune/templates/javascripts/tiny_mce/plugins/emotions/img/smiley-undecided.gif +0 -0
  101. data/generators/kitsune/templates/javascripts/tiny_mce/plugins/emotions/img/smiley-wink.gif +0 -0
  102. data/generators/kitsune/templates/javascripts/tiny_mce/plugins/emotions/img/smiley-yell.gif +0 -0
  103. data/generators/kitsune/templates/javascripts/tiny_mce/plugins/emotions/js/emotions.js +22 -0
  104. data/generators/kitsune/templates/javascripts/tiny_mce/plugins/emotions/langs/en_dlg.js +20 -0
  105. data/generators/kitsune/templates/javascripts/tiny_mce/plugins/example/dialog.htm +27 -0
  106. data/generators/kitsune/templates/javascripts/tiny_mce/plugins/example/editor_plugin.js +1 -0
  107. data/generators/kitsune/templates/javascripts/tiny_mce/plugins/example/editor_plugin_src.js +81 -0
  108. data/generators/kitsune/templates/javascripts/tiny_mce/plugins/example/img/example.gif +0 -0
  109. data/generators/kitsune/templates/javascripts/tiny_mce/plugins/example/js/dialog.js +19 -0
  110. data/generators/kitsune/templates/javascripts/tiny_mce/plugins/example/langs/en.js +3 -0
  111. data/generators/kitsune/templates/javascripts/tiny_mce/plugins/example/langs/en_dlg.js +3 -0
  112. data/generators/kitsune/templates/javascripts/tiny_mce/plugins/fullpage/css/fullpage.css +182 -0
  113. data/generators/kitsune/templates/javascripts/tiny_mce/plugins/fullpage/editor_plugin.js +1 -0
  114. data/generators/kitsune/templates/javascripts/tiny_mce/plugins/fullpage/editor_plugin_src.js +146 -0
  115. data/generators/kitsune/templates/javascripts/tiny_mce/plugins/fullpage/fullpage.htm +576 -0
  116. data/generators/kitsune/templates/javascripts/tiny_mce/plugins/fullpage/js/fullpage.js +461 -0
  117. data/generators/kitsune/templates/javascripts/tiny_mce/plugins/fullpage/langs/en_dlg.js +85 -0
  118. data/generators/kitsune/templates/javascripts/tiny_mce/plugins/fullscreen/editor_plugin.js +1 -0
  119. data/generators/kitsune/templates/javascripts/tiny_mce/plugins/fullscreen/editor_plugin_src.js +145 -0
  120. data/generators/kitsune/templates/javascripts/tiny_mce/plugins/fullscreen/fullscreen.htm +110 -0
  121. data/generators/kitsune/templates/javascripts/tiny_mce/plugins/iespell/editor_plugin.js +1 -0
  122. data/generators/kitsune/templates/javascripts/tiny_mce/plugins/iespell/editor_plugin_src.js +51 -0
  123. data/generators/kitsune/templates/javascripts/tiny_mce/plugins/inlinepopups/editor_plugin.js +1 -0
  124. data/generators/kitsune/templates/javascripts/tiny_mce/plugins/inlinepopups/editor_plugin_src.js +632 -0
  125. data/generators/kitsune/templates/javascripts/tiny_mce/plugins/inlinepopups/skins/clearlooks2/img/alert.gif +0 -0
  126. data/generators/kitsune/templates/javascripts/tiny_mce/plugins/inlinepopups/skins/clearlooks2/img/button.gif +0 -0
  127. data/generators/kitsune/templates/javascripts/tiny_mce/plugins/inlinepopups/skins/clearlooks2/img/buttons.gif +0 -0
  128. data/generators/kitsune/templates/javascripts/tiny_mce/plugins/inlinepopups/skins/clearlooks2/img/confirm.gif +0 -0
  129. data/generators/kitsune/templates/javascripts/tiny_mce/plugins/inlinepopups/skins/clearlooks2/img/corners.gif +0 -0
  130. data/generators/kitsune/templates/javascripts/tiny_mce/plugins/inlinepopups/skins/clearlooks2/img/horizontal.gif +0 -0
  131. data/generators/kitsune/templates/javascripts/tiny_mce/plugins/inlinepopups/skins/clearlooks2/img/vertical.gif +0 -0
  132. data/generators/kitsune/templates/javascripts/tiny_mce/plugins/inlinepopups/skins/clearlooks2/window.css +90 -0
  133. data/generators/kitsune/templates/javascripts/tiny_mce/plugins/inlinepopups/template.htm +387 -0
  134. data/generators/kitsune/templates/javascripts/tiny_mce/plugins/insertdatetime/editor_plugin.js +1 -0
  135. data/generators/kitsune/templates/javascripts/tiny_mce/plugins/insertdatetime/editor_plugin_src.js +80 -0
  136. data/generators/kitsune/templates/javascripts/tiny_mce/plugins/layer/editor_plugin.js +1 -0
  137. data/generators/kitsune/templates/javascripts/tiny_mce/plugins/layer/editor_plugin_src.js +209 -0
  138. data/generators/kitsune/templates/javascripts/tiny_mce/plugins/media/css/content.css +6 -0
  139. data/generators/kitsune/templates/javascripts/tiny_mce/plugins/media/css/media.css +16 -0
  140. data/generators/kitsune/templates/javascripts/tiny_mce/plugins/media/editor_plugin.js +1 -0
  141. data/generators/kitsune/templates/javascripts/tiny_mce/plugins/media/editor_plugin_src.js +411 -0
  142. data/generators/kitsune/templates/javascripts/tiny_mce/plugins/media/img/flash.gif +0 -0
  143. data/generators/kitsune/templates/javascripts/tiny_mce/plugins/media/img/flv_player.swf +0 -0
  144. data/generators/kitsune/templates/javascripts/tiny_mce/plugins/media/img/quicktime.gif +0 -0
  145. data/generators/kitsune/templates/javascripts/tiny_mce/plugins/media/img/realmedia.gif +0 -0
  146. data/generators/kitsune/templates/javascripts/tiny_mce/plugins/media/img/shockwave.gif +0 -0
  147. data/generators/kitsune/templates/javascripts/tiny_mce/plugins/media/img/trans.gif +0 -0
  148. data/generators/kitsune/templates/javascripts/tiny_mce/plugins/media/img/windowsmedia.gif +0 -0
  149. data/generators/kitsune/templates/javascripts/tiny_mce/plugins/media/js/embed.js +73 -0
  150. data/generators/kitsune/templates/javascripts/tiny_mce/plugins/media/js/media.js +630 -0
  151. data/generators/kitsune/templates/javascripts/tiny_mce/plugins/media/langs/en_dlg.js +103 -0
  152. data/generators/kitsune/templates/javascripts/tiny_mce/plugins/media/media.htm +822 -0
  153. data/generators/kitsune/templates/javascripts/tiny_mce/plugins/nonbreaking/editor_plugin.js +1 -0
  154. data/generators/kitsune/templates/javascripts/tiny_mce/plugins/nonbreaking/editor_plugin_src.js +50 -0
  155. data/generators/kitsune/templates/javascripts/tiny_mce/plugins/noneditable/editor_plugin.js +1 -0
  156. data/generators/kitsune/templates/javascripts/tiny_mce/plugins/noneditable/editor_plugin_src.js +87 -0
  157. data/generators/kitsune/templates/javascripts/tiny_mce/plugins/pagebreak/css/content.css +1 -0
  158. data/generators/kitsune/templates/javascripts/tiny_mce/plugins/pagebreak/editor_plugin.js +1 -0
  159. data/generators/kitsune/templates/javascripts/tiny_mce/plugins/pagebreak/editor_plugin_src.js +74 -0
  160. data/generators/kitsune/templates/javascripts/tiny_mce/plugins/pagebreak/img/pagebreak.gif +0 -0
  161. data/generators/kitsune/templates/javascripts/tiny_mce/plugins/pagebreak/img/trans.gif +0 -0
  162. data/generators/kitsune/templates/javascripts/tiny_mce/plugins/paste/editor_plugin.js +1 -0
  163. data/generators/kitsune/templates/javascripts/tiny_mce/plugins/paste/editor_plugin_src.js +531 -0
  164. data/generators/kitsune/templates/javascripts/tiny_mce/plugins/paste/js/pastetext.js +36 -0
  165. data/generators/kitsune/templates/javascripts/tiny_mce/plugins/paste/js/pasteword.js +51 -0
  166. data/generators/kitsune/templates/javascripts/tiny_mce/plugins/paste/langs/en_dlg.js +5 -0
  167. data/generators/kitsune/templates/javascripts/tiny_mce/plugins/paste/pastetext.htm +33 -0
  168. data/generators/kitsune/templates/javascripts/tiny_mce/plugins/paste/pasteword.htm +27 -0
  169. data/generators/kitsune/templates/javascripts/tiny_mce/plugins/preview/editor_plugin.js +1 -0
  170. data/generators/kitsune/templates/javascripts/tiny_mce/plugins/preview/editor_plugin_src.js +50 -0
  171. data/generators/kitsune/templates/javascripts/tiny_mce/plugins/preview/example.html +28 -0
  172. data/generators/kitsune/templates/javascripts/tiny_mce/plugins/preview/jscripts/embed.js +73 -0
  173. data/generators/kitsune/templates/javascripts/tiny_mce/plugins/preview/preview.html +17 -0
  174. data/generators/kitsune/templates/javascripts/tiny_mce/plugins/print/editor_plugin.js +1 -0
  175. data/generators/kitsune/templates/javascripts/tiny_mce/plugins/print/editor_plugin_src.js +31 -0
  176. data/generators/kitsune/templates/javascripts/tiny_mce/plugins/safari/blank.htm +1 -0
  177. data/generators/kitsune/templates/javascripts/tiny_mce/plugins/safari/editor_plugin.js +1 -0
  178. data/generators/kitsune/templates/javascripts/tiny_mce/plugins/safari/editor_plugin_src.js +438 -0
  179. data/generators/kitsune/templates/javascripts/tiny_mce/plugins/save/editor_plugin.js +1 -0
  180. data/generators/kitsune/templates/javascripts/tiny_mce/plugins/save/editor_plugin_src.js +98 -0
  181. data/generators/kitsune/templates/javascripts/tiny_mce/plugins/searchreplace/css/searchreplace.css +6 -0
  182. data/generators/kitsune/templates/javascripts/tiny_mce/plugins/searchreplace/editor_plugin.js +1 -0
  183. data/generators/kitsune/templates/javascripts/tiny_mce/plugins/searchreplace/editor_plugin_src.js +54 -0
  184. data/generators/kitsune/templates/javascripts/tiny_mce/plugins/searchreplace/js/searchreplace.js +126 -0
  185. data/generators/kitsune/templates/javascripts/tiny_mce/plugins/searchreplace/langs/en_dlg.js +16 -0
  186. data/generators/kitsune/templates/javascripts/tiny_mce/plugins/searchreplace/searchreplace.htm +104 -0
  187. data/generators/kitsune/templates/javascripts/tiny_mce/plugins/spellchecker/css/content.css +1 -0
  188. data/generators/kitsune/templates/javascripts/tiny_mce/plugins/spellchecker/editor_plugin.js +1 -0
  189. data/generators/kitsune/templates/javascripts/tiny_mce/plugins/spellchecker/editor_plugin_src.js +338 -0
  190. data/generators/kitsune/templates/javascripts/tiny_mce/plugins/spellchecker/img/wline.gif +0 -0
  191. data/generators/kitsune/templates/javascripts/tiny_mce/plugins/style/css/props.css +13 -0
  192. data/generators/kitsune/templates/javascripts/tiny_mce/plugins/style/editor_plugin.js +1 -0
  193. data/generators/kitsune/templates/javascripts/tiny_mce/plugins/style/editor_plugin_src.js +52 -0
  194. data/generators/kitsune/templates/javascripts/tiny_mce/plugins/style/js/props.js +641 -0
  195. data/generators/kitsune/templates/javascripts/tiny_mce/plugins/style/langs/en_dlg.js +63 -0
  196. data/generators/kitsune/templates/javascripts/tiny_mce/plugins/style/props.htm +730 -0
  197. data/generators/kitsune/templates/javascripts/tiny_mce/plugins/tabfocus/editor_plugin.js +1 -0
  198. data/generators/kitsune/templates/javascripts/tiny_mce/plugins/tabfocus/editor_plugin_src.js +109 -0
  199. data/generators/kitsune/templates/javascripts/tiny_mce/plugins/table/cell.htm +183 -0
  200. data/generators/kitsune/templates/javascripts/tiny_mce/plugins/table/css/cell.css +17 -0
  201. data/generators/kitsune/templates/javascripts/tiny_mce/plugins/table/css/row.css +25 -0
  202. data/generators/kitsune/templates/javascripts/tiny_mce/plugins/table/css/table.css +13 -0
  203. data/generators/kitsune/templates/javascripts/tiny_mce/plugins/table/editor_plugin.js +1 -0
  204. data/generators/kitsune/templates/javascripts/tiny_mce/plugins/table/editor_plugin_src.js +1202 -0
  205. data/generators/kitsune/templates/javascripts/tiny_mce/plugins/table/js/cell.js +269 -0
  206. data/generators/kitsune/templates/javascripts/tiny_mce/plugins/table/js/merge_cells.js +29 -0
  207. data/generators/kitsune/templates/javascripts/tiny_mce/plugins/table/js/row.js +212 -0
  208. data/generators/kitsune/templates/javascripts/tiny_mce/plugins/table/js/table.js +440 -0
  209. data/generators/kitsune/templates/javascripts/tiny_mce/plugins/table/langs/en_dlg.js +74 -0
  210. data/generators/kitsune/templates/javascripts/tiny_mce/plugins/table/merge_cells.htm +37 -0
  211. data/generators/kitsune/templates/javascripts/tiny_mce/plugins/table/row.htm +160 -0
  212. data/generators/kitsune/templates/javascripts/tiny_mce/plugins/table/table.htm +192 -0
  213. data/generators/kitsune/templates/javascripts/tiny_mce/plugins/template/blank.htm +12 -0
  214. data/generators/kitsune/templates/javascripts/tiny_mce/plugins/template/css/template.css +23 -0
  215. data/generators/kitsune/templates/javascripts/tiny_mce/plugins/template/editor_plugin.js +1 -0
  216. data/generators/kitsune/templates/javascripts/tiny_mce/plugins/template/editor_plugin_src.js +156 -0
  217. data/generators/kitsune/templates/javascripts/tiny_mce/plugins/template/js/template.js +106 -0
  218. data/generators/kitsune/templates/javascripts/tiny_mce/plugins/template/langs/en_dlg.js +15 -0
  219. data/generators/kitsune/templates/javascripts/tiny_mce/plugins/template/template.htm +38 -0
  220. data/generators/kitsune/templates/javascripts/tiny_mce/plugins/visualchars/editor_plugin.js +1 -0
  221. data/generators/kitsune/templates/javascripts/tiny_mce/plugins/visualchars/editor_plugin_src.js +73 -0
  222. data/generators/kitsune/templates/javascripts/tiny_mce/plugins/wordcount/editor_plugin.js +1 -0
  223. data/generators/kitsune/templates/javascripts/tiny_mce/plugins/wordcount/editor_plugin_src.js +95 -0
  224. data/generators/kitsune/templates/javascripts/tiny_mce/plugins/xhtmlxtras/abbr.htm +148 -0
  225. data/generators/kitsune/templates/javascripts/tiny_mce/plugins/xhtmlxtras/acronym.htm +148 -0
  226. data/generators/kitsune/templates/javascripts/tiny_mce/plugins/xhtmlxtras/attributes.htm +153 -0
  227. data/generators/kitsune/templates/javascripts/tiny_mce/plugins/xhtmlxtras/cite.htm +148 -0
  228. data/generators/kitsune/templates/javascripts/tiny_mce/plugins/xhtmlxtras/css/attributes.css +11 -0
  229. data/generators/kitsune/templates/javascripts/tiny_mce/plugins/xhtmlxtras/css/popup.css +9 -0
  230. data/generators/kitsune/templates/javascripts/tiny_mce/plugins/xhtmlxtras/del.htm +169 -0
  231. data/generators/kitsune/templates/javascripts/tiny_mce/plugins/xhtmlxtras/editor_plugin.js +1 -0
  232. data/generators/kitsune/templates/javascripts/tiny_mce/plugins/xhtmlxtras/editor_plugin_src.js +136 -0
  233. data/generators/kitsune/templates/javascripts/tiny_mce/plugins/xhtmlxtras/ins.htm +169 -0
  234. data/generators/kitsune/templates/javascripts/tiny_mce/plugins/xhtmlxtras/js/abbr.js +25 -0
  235. data/generators/kitsune/templates/javascripts/tiny_mce/plugins/xhtmlxtras/js/acronym.js +25 -0
  236. data/generators/kitsune/templates/javascripts/tiny_mce/plugins/xhtmlxtras/js/attributes.js +123 -0
  237. data/generators/kitsune/templates/javascripts/tiny_mce/plugins/xhtmlxtras/js/cite.js +25 -0
  238. data/generators/kitsune/templates/javascripts/tiny_mce/plugins/xhtmlxtras/js/del.js +60 -0
  239. data/generators/kitsune/templates/javascripts/tiny_mce/plugins/xhtmlxtras/js/element_common.js +231 -0
  240. data/generators/kitsune/templates/javascripts/tiny_mce/plugins/xhtmlxtras/js/ins.js +59 -0
  241. data/generators/kitsune/templates/javascripts/tiny_mce/plugins/xhtmlxtras/langs/en_dlg.js +32 -0
  242. data/generators/kitsune/templates/javascripts/tiny_mce/themes/advanced/about.htm +56 -0
  243. data/generators/kitsune/templates/javascripts/tiny_mce/themes/advanced/anchor.htm +31 -0
  244. data/generators/kitsune/templates/javascripts/tiny_mce/themes/advanced/charmap.htm +53 -0
  245. data/generators/kitsune/templates/javascripts/tiny_mce/themes/advanced/color_picker.htm +75 -0
  246. data/generators/kitsune/templates/javascripts/tiny_mce/themes/advanced/editor_template.js +1 -0
  247. data/generators/kitsune/templates/javascripts/tiny_mce/themes/advanced/editor_template_src.js +1153 -0
  248. data/generators/kitsune/templates/javascripts/tiny_mce/themes/advanced/image.htm +85 -0
  249. data/generators/kitsune/templates/javascripts/tiny_mce/themes/advanced/img/colorpicker.jpg +0 -0
  250. data/generators/kitsune/templates/javascripts/tiny_mce/themes/advanced/img/icons.gif +0 -0
  251. data/generators/kitsune/templates/javascripts/tiny_mce/themes/advanced/js/about.js +72 -0
  252. data/generators/kitsune/templates/javascripts/tiny_mce/themes/advanced/js/anchor.js +37 -0
  253. data/generators/kitsune/templates/javascripts/tiny_mce/themes/advanced/js/charmap.js +325 -0
  254. data/generators/kitsune/templates/javascripts/tiny_mce/themes/advanced/js/color_picker.js +253 -0
  255. data/generators/kitsune/templates/javascripts/tiny_mce/themes/advanced/js/image.js +245 -0
  256. data/generators/kitsune/templates/javascripts/tiny_mce/themes/advanced/js/link.js +156 -0
  257. data/generators/kitsune/templates/javascripts/tiny_mce/themes/advanced/js/source_editor.js +62 -0
  258. data/generators/kitsune/templates/javascripts/tiny_mce/themes/advanced/langs/en.js +62 -0
  259. data/generators/kitsune/templates/javascripts/tiny_mce/themes/advanced/langs/en_dlg.js +51 -0
  260. data/generators/kitsune/templates/javascripts/tiny_mce/themes/advanced/link.htm +63 -0
  261. data/generators/kitsune/templates/javascripts/tiny_mce/themes/advanced/skins/default/content.css +32 -0
  262. data/generators/kitsune/templates/javascripts/tiny_mce/themes/advanced/skins/default/dialog.css +116 -0
  263. data/generators/kitsune/templates/javascripts/tiny_mce/themes/advanced/skins/default/img/buttons.png +0 -0
  264. data/generators/kitsune/templates/javascripts/tiny_mce/themes/advanced/skins/default/img/items.gif +0 -0
  265. data/generators/kitsune/templates/javascripts/tiny_mce/themes/advanced/skins/default/img/menu_arrow.gif +0 -0
  266. data/generators/kitsune/templates/javascripts/tiny_mce/themes/advanced/skins/default/img/menu_check.gif +0 -0
  267. data/generators/kitsune/templates/javascripts/tiny_mce/themes/advanced/skins/default/img/progress.gif +0 -0
  268. data/generators/kitsune/templates/javascripts/tiny_mce/themes/advanced/skins/default/img/tabs.gif +0 -0
  269. data/generators/kitsune/templates/javascripts/tiny_mce/themes/advanced/skins/default/ui.css +214 -0
  270. data/generators/kitsune/templates/javascripts/tiny_mce/themes/advanced/skins/o2k7/content.css +32 -0
  271. data/generators/kitsune/templates/javascripts/tiny_mce/themes/advanced/skins/o2k7/dialog.css +115 -0
  272. data/generators/kitsune/templates/javascripts/tiny_mce/themes/advanced/skins/o2k7/img/button_bg.png +0 -0
  273. data/generators/kitsune/templates/javascripts/tiny_mce/themes/advanced/skins/o2k7/img/button_bg_black.png +0 -0
  274. data/generators/kitsune/templates/javascripts/tiny_mce/themes/advanced/skins/o2k7/img/button_bg_silver.png +0 -0
  275. data/generators/kitsune/templates/javascripts/tiny_mce/themes/advanced/skins/o2k7/ui.css +215 -0
  276. data/generators/kitsune/templates/javascripts/tiny_mce/themes/advanced/skins/o2k7/ui_black.css +8 -0
  277. data/generators/kitsune/templates/javascripts/tiny_mce/themes/advanced/skins/o2k7/ui_silver.css +5 -0
  278. data/generators/kitsune/templates/javascripts/tiny_mce/themes/advanced/source_editor.htm +31 -0
  279. data/generators/kitsune/templates/javascripts/tiny_mce/themes/kitsune/about.htm +56 -0
  280. data/generators/kitsune/templates/javascripts/tiny_mce/themes/kitsune/anchor.htm +31 -0
  281. data/generators/kitsune/templates/javascripts/tiny_mce/themes/kitsune/charmap.htm +53 -0
  282. data/generators/kitsune/templates/javascripts/tiny_mce/themes/kitsune/color_picker.htm +75 -0
  283. data/generators/kitsune/templates/javascripts/tiny_mce/themes/kitsune/editor_template.js +1153 -0
  284. data/generators/kitsune/templates/javascripts/tiny_mce/themes/kitsune/editor_template_src.js +1153 -0
  285. data/generators/kitsune/templates/javascripts/tiny_mce/themes/kitsune/image.htm +65 -0
  286. data/generators/kitsune/templates/javascripts/tiny_mce/themes/kitsune/images.json +8 -0
  287. data/generators/kitsune/templates/javascripts/tiny_mce/themes/kitsune/img/colorpicker.jpg +0 -0
  288. data/generators/kitsune/templates/javascripts/tiny_mce/themes/kitsune/img/icons.gif +0 -0
  289. data/generators/kitsune/templates/javascripts/tiny_mce/themes/kitsune/js/about.js +72 -0
  290. data/generators/kitsune/templates/javascripts/tiny_mce/themes/kitsune/js/anchor.js +37 -0
  291. data/generators/kitsune/templates/javascripts/tiny_mce/themes/kitsune/js/charmap.js +325 -0
  292. data/generators/kitsune/templates/javascripts/tiny_mce/themes/kitsune/js/color_picker.js +253 -0
  293. data/generators/kitsune/templates/javascripts/tiny_mce/themes/kitsune/js/image.js +260 -0
  294. data/generators/kitsune/templates/javascripts/tiny_mce/themes/kitsune/js/link.js +156 -0
  295. data/generators/kitsune/templates/javascripts/tiny_mce/themes/kitsune/js/source_editor.js +62 -0
  296. data/generators/kitsune/templates/javascripts/tiny_mce/themes/kitsune/langs/en.js +62 -0
  297. data/generators/kitsune/templates/javascripts/tiny_mce/themes/kitsune/langs/en_dlg.js +51 -0
  298. data/generators/kitsune/templates/javascripts/tiny_mce/themes/kitsune/link.htm +63 -0
  299. data/generators/kitsune/templates/javascripts/tiny_mce/themes/kitsune/skins/default/content.css +32 -0
  300. data/generators/kitsune/templates/javascripts/tiny_mce/themes/kitsune/skins/default/dialog.css +184 -0
  301. data/generators/kitsune/templates/javascripts/tiny_mce/themes/kitsune/skins/default/img/buttons.png +0 -0
  302. data/generators/kitsune/templates/javascripts/tiny_mce/themes/kitsune/skins/default/img/items.gif +0 -0
  303. data/generators/kitsune/templates/javascripts/tiny_mce/themes/kitsune/skins/default/img/menu_arrow.gif +0 -0
  304. data/generators/kitsune/templates/javascripts/tiny_mce/themes/kitsune/skins/default/img/menu_check.gif +0 -0
  305. data/generators/kitsune/templates/javascripts/tiny_mce/themes/kitsune/skins/default/img/progress.gif +0 -0
  306. data/generators/kitsune/templates/javascripts/tiny_mce/themes/kitsune/skins/default/img/tabs.gif +0 -0
  307. data/generators/kitsune/templates/javascripts/tiny_mce/themes/kitsune/skins/default/ui.css +214 -0
  308. data/generators/kitsune/templates/javascripts/tiny_mce/themes/kitsune/skins/o2k7/content.css +32 -0
  309. data/generators/kitsune/templates/javascripts/tiny_mce/themes/kitsune/skins/o2k7/dialog.css +115 -0
  310. data/generators/kitsune/templates/javascripts/tiny_mce/themes/kitsune/skins/o2k7/img/button_bg.png +0 -0
  311. data/generators/kitsune/templates/javascripts/tiny_mce/themes/kitsune/skins/o2k7/img/button_bg_black.png +0 -0
  312. data/generators/kitsune/templates/javascripts/tiny_mce/themes/kitsune/skins/o2k7/img/button_bg_silver.png +0 -0
  313. data/generators/kitsune/templates/javascripts/tiny_mce/themes/kitsune/skins/o2k7/ui.css +215 -0
  314. data/generators/kitsune/templates/javascripts/tiny_mce/themes/kitsune/skins/o2k7/ui_black.css +8 -0
  315. data/generators/kitsune/templates/javascripts/tiny_mce/themes/kitsune/skins/o2k7/ui_silver.css +5 -0
  316. data/generators/kitsune/templates/javascripts/tiny_mce/themes/kitsune/source_editor.htm +31 -0
  317. data/generators/kitsune/templates/javascripts/tiny_mce/themes/simple/editor_template.js +1 -0
  318. data/generators/kitsune/templates/javascripts/tiny_mce/themes/simple/editor_template_src.js +85 -0
  319. data/generators/kitsune/templates/javascripts/tiny_mce/themes/simple/img/icons.gif +0 -0
  320. data/generators/kitsune/templates/javascripts/tiny_mce/themes/simple/langs/en.js +11 -0
  321. data/generators/kitsune/templates/javascripts/tiny_mce/themes/simple/skins/default/content.css +25 -0
  322. data/generators/kitsune/templates/javascripts/tiny_mce/themes/simple/skins/default/ui.css +32 -0
  323. data/generators/kitsune/templates/javascripts/tiny_mce/themes/simple/skins/o2k7/content.css +17 -0
  324. data/generators/kitsune/templates/javascripts/tiny_mce/themes/simple/skins/o2k7/img/button_bg.png +0 -0
  325. data/generators/kitsune/templates/javascripts/tiny_mce/themes/simple/skins/o2k7/ui.css +35 -0
  326. data/generators/kitsune/templates/javascripts/tiny_mce/tiny_mce.js +1 -0
  327. data/generators/kitsune/templates/javascripts/tiny_mce/tiny_mce_popup.js +5 -0
  328. data/generators/kitsune/templates/javascripts/tiny_mce/tiny_mce_src.js +13231 -0
  329. data/generators/kitsune/templates/javascripts/tiny_mce/utils/editable_selects.js +69 -0
  330. data/generators/kitsune/templates/javascripts/tiny_mce/utils/form_utils.js +199 -0
  331. data/generators/kitsune/templates/javascripts/tiny_mce/utils/mctabs.js +76 -0
  332. data/generators/kitsune/templates/javascripts/tiny_mce/utils/validate.js +219 -0
  333. data/generators/kitsune/templates/javascripts/upload_maker.js +19 -0
  334. data/generators/kitsune/templates/kitsune_user.rb +3 -0
  335. data/generators/kitsune/templates/migrations/create_kitsune_users.rb +15 -0
  336. data/generators/kitsune/templates/migrations/create_pages.rb +16 -0
  337. data/generators/kitsune/templates/page.rb +3 -0
  338. data/generators/kitsune/templates/stylesheets/global.css +445 -0
  339. data/generators/kitsune/templates/stylesheets/ie.css +3 -0
  340. data/generators/kitsune_flat_files/kitsune_flat_files_generator.rb +8 -0
  341. data/generators/kitsune_flat_files/templates/index.html.erb +35 -0
  342. data/generators/kitsune_flat_files/templates/views/erb/admin/kitsune/models/_form.html.erb +16 -0
  343. data/generators/kitsune_flat_files/templates/views/erb/admin/kitsune/models/index.html.erb +2 -0
  344. data/generators/kitsune_flat_files/templates/views/erb/admin/kitsune/pages/_form.html.erb +13 -0
  345. data/generators/kitsune_flat_files/templates/views/erb/admin/kitsune/pages/edit.html.erb +7 -0
  346. data/generators/kitsune_flat_files/templates/views/erb/admin/kitsune/pages/index.html.erb +5 -0
  347. data/generators/kitsune_flat_files/templates/views/erb/admin/kitsune/pages/new.html.erb +7 -0
  348. data/generators/kitsune_flat_files/templates/views/erb/admin/kitsune/records/_form.html.erb +21 -0
  349. data/generators/kitsune_flat_files/templates/views/erb/admin/kitsune/records/_list.html.erb +38 -0
  350. data/generators/kitsune_flat_files/templates/views/erb/admin/kitsune/records/edit.html.erb +15 -0
  351. data/generators/kitsune_flat_files/templates/views/erb/admin/kitsune/records/index.html.erb +13 -0
  352. data/generators/kitsune_flat_files/templates/views/erb/admin/kitsune/records/new.html.erb +8 -0
  353. data/generators/kitsune_flat_files/templates/views/erb/kitsune/show.html.erb +1 -0
  354. data/generators/kitsune_flat_files/templates/views/erb/layouts/admin/kitsune.html.erb +46 -0
  355. data/kitsune.gemspec +419 -0
  356. data/lib/kitsune/active_record.rb +36 -0
  357. data/lib/kitsune/builder.rb +236 -0
  358. data/lib/kitsune/extensions/routes.rb +15 -0
  359. data/lib/kitsune/faux_column.rb +8 -0
  360. data/lib/kitsune/form_helper_ext.rb +23 -0
  361. data/lib/kitsune/inspector.rb +268 -0
  362. data/lib/kitsune/layout.rb +15 -0
  363. data/lib/kitsune/mongo_mapper.rb +49 -0
  364. data/lib/kitsune/page.rb +70 -0
  365. data/lib/kitsune.rb +53 -0
  366. data/lib/kitsune_user.rb +49 -0
  367. data/rails/init.rb +7 -0
  368. data/test/builder_test.rb +9 -0
  369. data/test/inspector_test.rb +13 -0
  370. data/test/schema.rb +23 -0
  371. data/test/test_helper.rb +11 -0
  372. metadata +451 -0
@@ -0,0 +1,169 @@
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>{#xhtmlxtras_dlg.title_ins_element}</title>
5
+ <script type="text/javascript" src="../../tiny_mce_popup.js"></script>
6
+ <script type="text/javascript" src="../../utils/mctabs.js"></script>
7
+ <script type="text/javascript" src="../../utils/form_utils.js"></script>
8
+ <script type="text/javascript" src="../../utils/editable_selects.js"></script>
9
+ <script type="text/javascript" src="js/element_common.js"></script>
10
+ <script type="text/javascript" src="js/ins.js"></script>
11
+ <link rel="stylesheet" type="text/css" href="css/popup.css" />
12
+ </head>
13
+ <body id="xhtmlxtrasins" style="display: none">
14
+ <form onsubmit="insertIns();return false;" action="#">
15
+ <div class="tabs">
16
+ <ul>
17
+ <li id="general_tab" class="current"><span><a href="javascript:mcTabs.displayTab('general_tab','general_panel');" onmousedown="return false;">{#xhtmlxtras_dlg.general_tab}</a></span></li>
18
+ <!-- <li id="events_tab"><span><a href="javascript:mcTabs.displayTab('events_tab','events_panel');" onmousedown="return false;">{#xhtmlxtras_dlg.events_tab}</a></span></li> -->
19
+ </ul>
20
+ </div>
21
+
22
+ <div class="panel_wrapper">
23
+ <div id="general_panel" class="panel current">
24
+ <fieldset>
25
+ <legend>{#xhtmlxtras_dlg.fieldset_general_tab}</legend>
26
+ <table border="0" cellpadding="0" cellspacing="4">
27
+ <tr>
28
+ <td class="label"><label id="datetimelabel" for="datetime">{#xhtmlxtras_dlg.attribute_label_datetime}</label>:</td>
29
+ <td>
30
+ <table border="0" cellspacing="0" cellpadding="0">
31
+ <tr>
32
+ <td><input id="datetime" name="datetime" type="text" value="" maxlength="19" class="field mceFocus" /></td>
33
+ <td><a href="javascript:insertDateTime('datetime');" onmousedown="return false;" class="browse"><span class="datetime" title="{#xhtmlxtras_dlg.insert_date}"></span></a></td>
34
+ </tr>
35
+ </table>
36
+ </td>
37
+ </tr>
38
+ <tr>
39
+ <td class="label"><label id="citelabel" for="cite">{#xhtmlxtras_dlg.attribute_label_cite}</label>:</td>
40
+ <td><input id="cite" name="cite" type="text" value="" class="field" /></td>
41
+ </tr>
42
+ </table>
43
+ </fieldset>
44
+ <fieldset>
45
+ <legend>{#xhtmlxtras_dlg.fieldset_attrib_tab}</legend>
46
+ <table border="0" cellpadding="0" cellspacing="4">
47
+ <tr>
48
+ <td class="label"><label id="titlelabel" for="title">{#xhtmlxtras_dlg.attribute_label_title}</label>:</td>
49
+ <td><input id="title" name="title" type="text" value="" class="field" /></td>
50
+ </tr>
51
+ <tr>
52
+ <td class="label"><label id="idlabel" for="id">{#xhtmlxtras_dlg.attribute_label_id}</label>:</td>
53
+ <td><input id="id" name="id" type="text" value="" class="field" /></td>
54
+ </tr>
55
+ <tr>
56
+ <td class="label"><label id="classlabel" for="class">{#xhtmlxtras_dlg.attribute_label_class}</label>:</td>
57
+ <td>
58
+ <select id="class" name="class" class="field mceEditableSelect">
59
+ <option value="">{#not_set}</option>
60
+ </select>
61
+ </td>
62
+ </tr>
63
+ <tr>
64
+ <td class="label"><label id="stylelabel" for="class">{#xhtmlxtras_dlg.attribute_label_style}</label>:</td>
65
+ <td><input id="style" name="style" type="text" value="" class="field" /></td>
66
+ </tr>
67
+ <tr>
68
+ <td class="label"><label id="dirlabel" for="dir">{#xhtmlxtras_dlg.attribute_label_langdir}</label>:</td>
69
+ <td>
70
+ <select id="dir" name="dir" class="field">
71
+ <option value="">{#not_set}</option>
72
+ <option value="ltr">{#xhtmlxtras_dlg.attribute_option_ltr}</option>
73
+ <option value="rtl">{#xhtmlxtras_dlg.attribute_option_rtl}</option>
74
+ </select>
75
+ </td>
76
+ </tr>
77
+ <tr>
78
+ <td class="label"><label id="langlabel" for="lang">{#xhtmlxtras_dlg.attribute_label_langcode}</label>:</td>
79
+ <td>
80
+ <input id="lang" name="lang" type="text" value="" class="field" />
81
+ </td>
82
+ </tr>
83
+ </table>
84
+ </fieldset>
85
+ </div>
86
+ <div id="events_panel" class="panel">
87
+ <fieldset>
88
+ <legend>{#xhtmlxtras_dlg.fieldset_events_tab}</legend>
89
+
90
+ <table border="0" cellpadding="0" cellspacing="4">
91
+ <tr>
92
+ <td class="label"><label for="onfocus">onfocus</label>:</td>
93
+ <td><input id="onfocus" name="onfocus" type="text" value="" class="field" /></td>
94
+ </tr>
95
+
96
+ <tr>
97
+ <td class="label"><label for="onblur">onblur</label>:</td>
98
+ <td><input id="onblur" name="onblur" type="text" value="" class="field" /></td>
99
+ </tr>
100
+
101
+ <tr>
102
+ <td class="label"><label for="onclick">onclick</label>:</td>
103
+ <td><input id="onclick" name="onclick" type="text" value="" class="field" /></td>
104
+ </tr>
105
+
106
+ <tr>
107
+ <td class="label"><label for="ondblclick">ondblclick</label>:</td>
108
+ <td><input id="ondblclick" name="ondblclick" type="text" value="" class="field" /></td>
109
+ </tr>
110
+
111
+ <tr>
112
+ <td class="label"><label for="onmousedown">onmousedown</label>:</td>
113
+ <td><input id="onmousedown" name="onmousedown" type="text" value="" class="field" /></td>
114
+ </tr>
115
+
116
+ <tr>
117
+ <td class="label"><label for="onmouseup">onmouseup</label>:</td>
118
+ <td><input id="onmouseup" name="onmouseup" type="text" value="" class="field" /></td>
119
+ </tr>
120
+
121
+ <tr>
122
+ <td class="label"><label for="onmouseover">onmouseover</label>:</td>
123
+ <td><input id="onmouseover" name="onmouseover" type="text" value="" class="field" /></td>
124
+ </tr>
125
+
126
+ <tr>
127
+ <td class="label"><label for="onmousemove">onmousemove</label>:</td>
128
+ <td><input id="onmousemove" name="onmousemove" type="text" value="" class="field" /></td>
129
+ </tr>
130
+
131
+ <tr>
132
+ <td class="label"><label for="onmouseout">onmouseout</label>:</td>
133
+ <td><input id="onmouseout" name="onmouseout" type="text" value="" class="field" /></td>
134
+ </tr>
135
+
136
+ <tr>
137
+ <td class="label"><label for="onkeypress">onkeypress</label>:</td>
138
+ <td><input id="onkeypress" name="onkeypress" type="text" value="" class="field" /></td>
139
+ </tr>
140
+
141
+ <tr>
142
+ <td class="label"><label for="onkeydown">onkeydown</label>:</td>
143
+ <td><input id="onkeydown" name="onkeydown" type="text" value="" class="field" /></td>
144
+ </tr>
145
+
146
+ <tr>
147
+ <td class="label"><label for="onkeyup">onkeyup</label>:</td>
148
+ <td><input id="onkeyup" name="onkeyup" type="text" value="" class="field" /></td>
149
+ </tr>
150
+ </table>
151
+ </fieldset>
152
+ </div>
153
+ </div>
154
+ <div class="mceActionPanel">
155
+ <div style="float: left">
156
+ <input type="submit" id="insert" name="insert" value="{#update}" />
157
+ </div>
158
+ <div style="float: left">
159
+ <input type="button" id="remove" name="remove" class="button" value="{#xhtmlxtras_dlg.remove}" onclick="removeIns();" style="display: none;" />
160
+ </div>
161
+ <div style="float: right">
162
+ <input type="button" id="cancel" name="cancel" value="{#cancel}" onclick="tinyMCEPopup.close();" />
163
+ </div>
164
+ </div>
165
+
166
+ </form>
167
+
168
+ </body>
169
+ </html>
@@ -0,0 +1,25 @@
1
+ /**
2
+ * $Id: editor_plugin_src.js 42 2006-08-08 14:32:24Z spocke $
3
+ *
4
+ * @author Moxiecode - based on work by Andrew Tetlaw
5
+ * @copyright Copyright � 2004-2008, Moxiecode Systems AB, All rights reserved.
6
+ */
7
+
8
+ function init() {
9
+ SXE.initElementDialog('abbr');
10
+ if (SXE.currentAction == "update") {
11
+ SXE.showRemoveButton();
12
+ }
13
+ }
14
+
15
+ function insertAbbr() {
16
+ SXE.insertElement(tinymce.isIE ? 'html:abbr' : 'abbr');
17
+ tinyMCEPopup.close();
18
+ }
19
+
20
+ function removeAbbr() {
21
+ SXE.removeElement('abbr');
22
+ tinyMCEPopup.close();
23
+ }
24
+
25
+ tinyMCEPopup.onInit.add(init);
@@ -0,0 +1,25 @@
1
+ /**
2
+ * $Id: editor_plugin_src.js 42 2006-08-08 14:32:24Z spocke $
3
+ *
4
+ * @author Moxiecode - based on work by Andrew Tetlaw
5
+ * @copyright Copyright � 2004-2008, Moxiecode Systems AB, All rights reserved.
6
+ */
7
+
8
+ function init() {
9
+ SXE.initElementDialog('acronym');
10
+ if (SXE.currentAction == "update") {
11
+ SXE.showRemoveButton();
12
+ }
13
+ }
14
+
15
+ function insertAcronym() {
16
+ SXE.insertElement('acronym');
17
+ tinyMCEPopup.close();
18
+ }
19
+
20
+ function removeAcronym() {
21
+ SXE.removeElement('acronym');
22
+ tinyMCEPopup.close();
23
+ }
24
+
25
+ tinyMCEPopup.onInit.add(init);
@@ -0,0 +1,123 @@
1
+ /**
2
+ * $Id: editor_plugin_src.js 42 2006-08-08 14:32:24Z spocke $
3
+ *
4
+ * @author Moxiecode - based on work by Andrew Tetlaw
5
+ * @copyright Copyright � 2004-2006, Moxiecode Systems AB, All rights reserved.
6
+ */
7
+
8
+ function init() {
9
+ tinyMCEPopup.resizeToInnerSize();
10
+ var inst = tinyMCEPopup.editor;
11
+ var dom = inst.dom;
12
+ var elm = inst.selection.getNode();
13
+ var f = document.forms[0];
14
+ var onclick = dom.getAttrib(elm, 'onclick');
15
+
16
+ setFormValue('title', dom.getAttrib(elm, 'title'));
17
+ setFormValue('id', dom.getAttrib(elm, 'id'));
18
+ setFormValue('style', dom.getAttrib(elm, "style"));
19
+ setFormValue('dir', dom.getAttrib(elm, 'dir'));
20
+ setFormValue('lang', dom.getAttrib(elm, 'lang'));
21
+ setFormValue('tabindex', dom.getAttrib(elm, 'tabindex', typeof(elm.tabindex) != "undefined" ? elm.tabindex : ""));
22
+ setFormValue('accesskey', dom.getAttrib(elm, 'accesskey', typeof(elm.accesskey) != "undefined" ? elm.accesskey : ""));
23
+ setFormValue('onfocus', dom.getAttrib(elm, 'onfocus'));
24
+ setFormValue('onblur', dom.getAttrib(elm, 'onblur'));
25
+ setFormValue('onclick', onclick);
26
+ setFormValue('ondblclick', dom.getAttrib(elm, 'ondblclick'));
27
+ setFormValue('onmousedown', dom.getAttrib(elm, 'onmousedown'));
28
+ setFormValue('onmouseup', dom.getAttrib(elm, 'onmouseup'));
29
+ setFormValue('onmouseover', dom.getAttrib(elm, 'onmouseover'));
30
+ setFormValue('onmousemove', dom.getAttrib(elm, 'onmousemove'));
31
+ setFormValue('onmouseout', dom.getAttrib(elm, 'onmouseout'));
32
+ setFormValue('onkeypress', dom.getAttrib(elm, 'onkeypress'));
33
+ setFormValue('onkeydown', dom.getAttrib(elm, 'onkeydown'));
34
+ setFormValue('onkeyup', dom.getAttrib(elm, 'onkeyup'));
35
+ className = dom.getAttrib(elm, 'class');
36
+
37
+ addClassesToList('classlist', 'advlink_styles');
38
+ selectByValue(f, 'classlist', className, true);
39
+
40
+ TinyMCE_EditableSelects.init();
41
+ }
42
+
43
+ function setFormValue(name, value) {
44
+ if(value && document.forms[0].elements[name]){
45
+ document.forms[0].elements[name].value = value;
46
+ }
47
+ }
48
+
49
+ function insertAction() {
50
+ var inst = tinyMCEPopup.editor;
51
+ var elm = inst.selection.getNode();
52
+
53
+ tinyMCEPopup.execCommand("mceBeginUndoLevel");
54
+ setAllAttribs(elm);
55
+ tinyMCEPopup.execCommand("mceEndUndoLevel");
56
+ tinyMCEPopup.close();
57
+ }
58
+
59
+ function setAttrib(elm, attrib, value) {
60
+ var formObj = document.forms[0];
61
+ var valueElm = formObj.elements[attrib.toLowerCase()];
62
+ var inst = tinyMCEPopup.editor;
63
+ var dom = inst.dom;
64
+
65
+ if (typeof(value) == "undefined" || value == null) {
66
+ value = "";
67
+
68
+ if (valueElm)
69
+ value = valueElm.value;
70
+ }
71
+
72
+ if (value != "") {
73
+ dom.setAttrib(elm, attrib.toLowerCase(), value);
74
+
75
+ if (attrib == "style")
76
+ attrib = "style.cssText";
77
+
78
+ if (attrib.substring(0, 2) == 'on')
79
+ value = 'return true;' + value;
80
+
81
+ if (attrib == "class")
82
+ attrib = "className";
83
+
84
+ elm[attrib]=value;
85
+ } else
86
+ elm.removeAttribute(attrib);
87
+ }
88
+
89
+ function setAllAttribs(elm) {
90
+ var f = document.forms[0];
91
+
92
+ setAttrib(elm, 'title');
93
+ setAttrib(elm, 'id');
94
+ setAttrib(elm, 'style');
95
+ setAttrib(elm, 'class', getSelectValue(f, 'classlist'));
96
+ setAttrib(elm, 'dir');
97
+ setAttrib(elm, 'lang');
98
+ setAttrib(elm, 'tabindex');
99
+ setAttrib(elm, 'accesskey');
100
+ setAttrib(elm, 'onfocus');
101
+ setAttrib(elm, 'onblur');
102
+ setAttrib(elm, 'onclick');
103
+ setAttrib(elm, 'ondblclick');
104
+ setAttrib(elm, 'onmousedown');
105
+ setAttrib(elm, 'onmouseup');
106
+ setAttrib(elm, 'onmouseover');
107
+ setAttrib(elm, 'onmousemove');
108
+ setAttrib(elm, 'onmouseout');
109
+ setAttrib(elm, 'onkeypress');
110
+ setAttrib(elm, 'onkeydown');
111
+ setAttrib(elm, 'onkeyup');
112
+
113
+ // Refresh in old MSIE
114
+ // if (tinyMCE.isMSIE5)
115
+ // elm.outerHTML = elm.outerHTML;
116
+ }
117
+
118
+ function insertAttribute() {
119
+ tinyMCEPopup.close();
120
+ }
121
+
122
+ tinyMCEPopup.onInit.add(init);
123
+ tinyMCEPopup.requireLangPack();
@@ -0,0 +1,25 @@
1
+ /**
2
+ * $Id: editor_plugin_src.js 42 2006-08-08 14:32:24Z spocke $
3
+ *
4
+ * @author Moxiecode - based on work by Andrew Tetlaw
5
+ * @copyright Copyright � 2004-2008, Moxiecode Systems AB, All rights reserved.
6
+ */
7
+
8
+ function init() {
9
+ SXE.initElementDialog('cite');
10
+ if (SXE.currentAction == "update") {
11
+ SXE.showRemoveButton();
12
+ }
13
+ }
14
+
15
+ function insertCite() {
16
+ SXE.insertElement('cite');
17
+ tinyMCEPopup.close();
18
+ }
19
+
20
+ function removeCite() {
21
+ SXE.removeElement('cite');
22
+ tinyMCEPopup.close();
23
+ }
24
+
25
+ tinyMCEPopup.onInit.add(init);
@@ -0,0 +1,60 @@
1
+ /**
2
+ * $Id: editor_plugin_src.js 42 2006-08-08 14:32:24Z spocke $
3
+ *
4
+ * @author Moxiecode - based on work by Andrew Tetlaw
5
+ * @copyright Copyright � 2004-2008, Moxiecode Systems AB, All rights reserved.
6
+ */
7
+
8
+ function init() {
9
+ SXE.initElementDialog('del');
10
+ if (SXE.currentAction == "update") {
11
+ setFormValue('datetime', tinyMCEPopup.editor.dom.getAttrib(SXE.updateElement, 'datetime'));
12
+ setFormValue('cite', tinyMCEPopup.editor.dom.getAttrib(SXE.updateElement, 'cite'));
13
+ SXE.showRemoveButton();
14
+ }
15
+ }
16
+
17
+ function setElementAttribs(elm) {
18
+ setAllCommonAttribs(elm);
19
+ setAttrib(elm, 'datetime');
20
+ setAttrib(elm, 'cite');
21
+ }
22
+
23
+ function insertDel() {
24
+ var elm = tinyMCEPopup.editor.dom.getParent(SXE.focusElement, 'DEL');
25
+
26
+ tinyMCEPopup.execCommand('mceBeginUndoLevel');
27
+ if (elm == null) {
28
+ var s = SXE.inst.selection.getContent();
29
+ if(s.length > 0) {
30
+ insertInlineElement('del');
31
+ var elementArray = tinymce.grep(SXE.inst.dom.select('del'), function(n) {return n.id == '#sxe_temp_del#';});
32
+ for (var i=0; i<elementArray.length; i++) {
33
+ var elm = elementArray[i];
34
+ setElementAttribs(elm);
35
+ }
36
+ }
37
+ } else {
38
+ setElementAttribs(elm);
39
+ }
40
+ tinyMCEPopup.editor.nodeChanged();
41
+ tinyMCEPopup.execCommand('mceEndUndoLevel');
42
+ tinyMCEPopup.close();
43
+ }
44
+
45
+ function insertInlineElement(en) {
46
+ var ed = tinyMCEPopup.editor, dom = ed.dom;
47
+
48
+ ed.getDoc().execCommand('FontName', false, 'mceinline');
49
+ tinymce.each(dom.select(tinymce.isWebKit ? 'span' : 'font'), function(n) {
50
+ if (n.style.fontFamily == 'mceinline' || n.face == 'mceinline')
51
+ dom.replace(dom.create(en), n, 1);
52
+ });
53
+ }
54
+
55
+ function removeDel() {
56
+ SXE.removeElement('del');
57
+ tinyMCEPopup.close();
58
+ }
59
+
60
+ tinyMCEPopup.onInit.add(init);
@@ -0,0 +1,231 @@
1
+ /**
2
+ * $Id: editor_plugin_src.js 42 2006-08-08 14:32:24Z spocke $
3
+ *
4
+ * @author Moxiecode - based on work by Andrew Tetlaw
5
+ * @copyright Copyright � 2004-2008, Moxiecode Systems AB, All rights reserved.
6
+ */
7
+
8
+ tinyMCEPopup.requireLangPack();
9
+
10
+ function initCommonAttributes(elm) {
11
+ var formObj = document.forms[0], dom = tinyMCEPopup.editor.dom;
12
+
13
+ // Setup form data for common element attributes
14
+ setFormValue('title', dom.getAttrib(elm, 'title'));
15
+ setFormValue('id', dom.getAttrib(elm, 'id'));
16
+ selectByValue(formObj, 'class', dom.getAttrib(elm, 'class'), true);
17
+ setFormValue('style', dom.getAttrib(elm, 'style'));
18
+ selectByValue(formObj, 'dir', dom.getAttrib(elm, 'dir'));
19
+ setFormValue('lang', dom.getAttrib(elm, 'lang'));
20
+ setFormValue('onfocus', dom.getAttrib(elm, 'onfocus'));
21
+ setFormValue('onblur', dom.getAttrib(elm, 'onblur'));
22
+ setFormValue('onclick', dom.getAttrib(elm, 'onclick'));
23
+ setFormValue('ondblclick', dom.getAttrib(elm, 'ondblclick'));
24
+ setFormValue('onmousedown', dom.getAttrib(elm, 'onmousedown'));
25
+ setFormValue('onmouseup', dom.getAttrib(elm, 'onmouseup'));
26
+ setFormValue('onmouseover', dom.getAttrib(elm, 'onmouseover'));
27
+ setFormValue('onmousemove', dom.getAttrib(elm, 'onmousemove'));
28
+ setFormValue('onmouseout', dom.getAttrib(elm, 'onmouseout'));
29
+ setFormValue('onkeypress', dom.getAttrib(elm, 'onkeypress'));
30
+ setFormValue('onkeydown', dom.getAttrib(elm, 'onkeydown'));
31
+ setFormValue('onkeyup', dom.getAttrib(elm, 'onkeyup'));
32
+ }
33
+
34
+ function setFormValue(name, value) {
35
+ if(document.forms[0].elements[name]) document.forms[0].elements[name].value = value;
36
+ }
37
+
38
+ function insertDateTime(id) {
39
+ document.getElementById(id).value = getDateTime(new Date(), "%Y-%m-%dT%H:%M:%S");
40
+ }
41
+
42
+ function getDateTime(d, fmt) {
43
+ fmt = fmt.replace("%D", "%m/%d/%y");
44
+ fmt = fmt.replace("%r", "%I:%M:%S %p");
45
+ fmt = fmt.replace("%Y", "" + d.getFullYear());
46
+ fmt = fmt.replace("%y", "" + d.getYear());
47
+ fmt = fmt.replace("%m", addZeros(d.getMonth()+1, 2));
48
+ fmt = fmt.replace("%d", addZeros(d.getDate(), 2));
49
+ fmt = fmt.replace("%H", "" + addZeros(d.getHours(), 2));
50
+ fmt = fmt.replace("%M", "" + addZeros(d.getMinutes(), 2));
51
+ fmt = fmt.replace("%S", "" + addZeros(d.getSeconds(), 2));
52
+ fmt = fmt.replace("%I", "" + ((d.getHours() + 11) % 12 + 1));
53
+ fmt = fmt.replace("%p", "" + (d.getHours() < 12 ? "AM" : "PM"));
54
+ fmt = fmt.replace("%%", "%");
55
+
56
+ return fmt;
57
+ }
58
+
59
+ function addZeros(value, len) {
60
+ var i;
61
+
62
+ value = "" + value;
63
+
64
+ if (value.length < len) {
65
+ for (i=0; i<(len-value.length); i++)
66
+ value = "0" + value;
67
+ }
68
+
69
+ return value;
70
+ }
71
+
72
+ function selectByValue(form_obj, field_name, value, add_custom, ignore_case) {
73
+ if (!form_obj || !form_obj.elements[field_name])
74
+ return;
75
+
76
+ var sel = form_obj.elements[field_name];
77
+
78
+ var found = false;
79
+ for (var i=0; i<sel.options.length; i++) {
80
+ var option = sel.options[i];
81
+
82
+ if (option.value == value || (ignore_case && option.value.toLowerCase() == value.toLowerCase())) {
83
+ option.selected = true;
84
+ found = true;
85
+ } else
86
+ option.selected = false;
87
+ }
88
+
89
+ if (!found && add_custom && value != '') {
90
+ var option = new Option('Value: ' + value, value);
91
+ option.selected = true;
92
+ sel.options[sel.options.length] = option;
93
+ }
94
+
95
+ return found;
96
+ }
97
+
98
+ function setAttrib(elm, attrib, value) {
99
+ var formObj = document.forms[0];
100
+ var valueElm = formObj.elements[attrib.toLowerCase()];
101
+ tinyMCEPopup.editor.dom.setAttrib(elm, attrib, value || valueElm.value);
102
+ }
103
+
104
+ function setAllCommonAttribs(elm) {
105
+ setAttrib(elm, 'title');
106
+ setAttrib(elm, 'id');
107
+ setAttrib(elm, 'class');
108
+ setAttrib(elm, 'style');
109
+ setAttrib(elm, 'dir');
110
+ setAttrib(elm, 'lang');
111
+ /*setAttrib(elm, 'onfocus');
112
+ setAttrib(elm, 'onblur');
113
+ setAttrib(elm, 'onclick');
114
+ setAttrib(elm, 'ondblclick');
115
+ setAttrib(elm, 'onmousedown');
116
+ setAttrib(elm, 'onmouseup');
117
+ setAttrib(elm, 'onmouseover');
118
+ setAttrib(elm, 'onmousemove');
119
+ setAttrib(elm, 'onmouseout');
120
+ setAttrib(elm, 'onkeypress');
121
+ setAttrib(elm, 'onkeydown');
122
+ setAttrib(elm, 'onkeyup');*/
123
+ }
124
+
125
+ SXE = {
126
+ currentAction : "insert",
127
+ inst : tinyMCEPopup.editor,
128
+ updateElement : null
129
+ }
130
+
131
+ SXE.focusElement = SXE.inst.selection.getNode();
132
+
133
+ SXE.initElementDialog = function(element_name) {
134
+ addClassesToList('class', 'xhtmlxtras_styles');
135
+ TinyMCE_EditableSelects.init();
136
+
137
+ element_name = element_name.toLowerCase();
138
+ var elm = SXE.inst.dom.getParent(SXE.focusElement, element_name.toUpperCase());
139
+ if (elm != null && elm.nodeName.toUpperCase() == element_name.toUpperCase()) {
140
+ SXE.currentAction = "update";
141
+ }
142
+
143
+ if (SXE.currentAction == "update") {
144
+ initCommonAttributes(elm);
145
+ SXE.updateElement = elm;
146
+ }
147
+
148
+ document.forms[0].insert.value = tinyMCEPopup.getLang(SXE.currentAction, 'Insert', true);
149
+ }
150
+
151
+ SXE.insertElement = function(element_name) {
152
+ var elm = SXE.inst.dom.getParent(SXE.focusElement, element_name.toUpperCase()), h, tagName;
153
+
154
+ tinyMCEPopup.execCommand('mceBeginUndoLevel');
155
+ if (elm == null) {
156
+ var s = SXE.inst.selection.getContent();
157
+ if(s.length > 0) {
158
+ tagName = element_name;
159
+
160
+ if (tinymce.isIE && element_name.indexOf('html:') == 0)
161
+ element_name = element_name.substring(5).toLowerCase();
162
+
163
+ insertInlineElement(element_name);
164
+ var elementArray = tinymce.grep(SXE.inst.dom.select(element_name));
165
+ for (var i=0; i<elementArray.length; i++) {
166
+ var elm = elementArray[i];
167
+
168
+ if (SXE.inst.dom.getAttrib(elm, '_mce_new')) {
169
+ elm.id = '';
170
+ elm.setAttribute('id', '');
171
+ elm.removeAttribute('id');
172
+ elm.removeAttribute('_mce_new');
173
+
174
+ setAllCommonAttribs(elm);
175
+ }
176
+ }
177
+ }
178
+ } else {
179
+ setAllCommonAttribs(elm);
180
+ }
181
+ SXE.inst.nodeChanged();
182
+ tinyMCEPopup.execCommand('mceEndUndoLevel');
183
+ }
184
+
185
+ SXE.removeElement = function(element_name){
186
+ element_name = element_name.toLowerCase();
187
+ elm = SXE.inst.dom.getParent(SXE.focusElement, element_name.toUpperCase());
188
+ if(elm && elm.nodeName.toUpperCase() == element_name.toUpperCase()){
189
+ tinyMCEPopup.execCommand('mceBeginUndoLevel');
190
+ tinyMCE.execCommand('mceRemoveNode', false, elm);
191
+ SXE.inst.nodeChanged();
192
+ tinyMCEPopup.execCommand('mceEndUndoLevel');
193
+ }
194
+ }
195
+
196
+ SXE.showRemoveButton = function() {
197
+ document.getElementById("remove").style.display = 'block';
198
+ }
199
+
200
+ SXE.containsClass = function(elm,cl) {
201
+ return (elm.className.indexOf(cl) > -1) ? true : false;
202
+ }
203
+
204
+ SXE.removeClass = function(elm,cl) {
205
+ if(elm.className == null || elm.className == "" || !SXE.containsClass(elm,cl)) {
206
+ return true;
207
+ }
208
+ var classNames = elm.className.split(" ");
209
+ var newClassNames = "";
210
+ for (var x = 0, cnl = classNames.length; x < cnl; x++) {
211
+ if (classNames[x] != cl) {
212
+ newClassNames += (classNames[x] + " ");
213
+ }
214
+ }
215
+ elm.className = newClassNames.substring(0,newClassNames.length-1); //removes extra space at the end
216
+ }
217
+
218
+ SXE.addClass = function(elm,cl) {
219
+ if(!SXE.containsClass(elm,cl)) elm.className ? elm.className += " " + cl : elm.className = cl;
220
+ return true;
221
+ }
222
+
223
+ function insertInlineElement(en) {
224
+ var ed = tinyMCEPopup.editor, dom = ed.dom;
225
+
226
+ ed.getDoc().execCommand('FontName', false, 'mceinline');
227
+ tinymce.each(dom.select('span,font'), function(n) {
228
+ if (n.style.fontFamily == 'mceinline' || n.face == 'mceinline')
229
+ dom.replace(dom.create(en, {_mce_new : 1}), n, 1);
230
+ });
231
+ }