jonleighton-bcms_feeds 1.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (622) hide show
  1. data/.gitignore +4 -0
  2. data/README +10 -0
  3. data/Rakefile +33 -0
  4. data/VERSION +1 -0
  5. data/app/controllers/application_controller.rb +10 -0
  6. data/app/helpers/application_helper.rb +3 -0
  7. data/app/models/feed.rb +35 -0
  8. data/app/portlets/feed_portlet.rb +9 -0
  9. data/app/views/portlets/feed/_form.html.erb +4 -0
  10. data/app/views/portlets/feed/render.html.erb +1 -0
  11. data/bcms_feeds.gemspec +675 -0
  12. data/config/boot.rb +110 -0
  13. data/config/database.example.yml +22 -0
  14. data/config/environment.rb +44 -0
  15. data/config/environments/development.rb +18 -0
  16. data/config/environments/production.rb +31 -0
  17. data/config/environments/test.rb +29 -0
  18. data/config/initializers/backtrace_silencers.rb +7 -0
  19. data/config/initializers/browsercms.rb +1 -0
  20. data/config/initializers/inflections.rb +10 -0
  21. data/config/initializers/mime_types.rb +5 -0
  22. data/config/initializers/new_rails_defaults.rb +19 -0
  23. data/config/initializers/session_store.rb +15 -0
  24. data/config/locales/en.yml +5 -0
  25. data/config/routes.rb +45 -0
  26. data/db/migrate/20090813213104_add_feeds.rb +13 -0
  27. data/db/schema.rb +436 -0
  28. data/doc/README_FOR_APP +2 -0
  29. data/lib/bcms_feeds.rb +1 -0
  30. data/public/404.html +30 -0
  31. data/public/422.html +30 -0
  32. data/public/500.html +30 -0
  33. data/public/favicon.ico +0 -0
  34. data/public/fckeditor/editor/css/behaviors/disablehandles.htc +15 -0
  35. data/public/fckeditor/editor/css/behaviors/showtableborders.htc +36 -0
  36. data/public/fckeditor/editor/css/fck_editorarea.css +110 -0
  37. data/public/fckeditor/editor/css/fck_internal.css +199 -0
  38. data/public/fckeditor/editor/css/fck_showtableborders_gecko.css +49 -0
  39. data/public/fckeditor/editor/css/images/block_address.png +0 -0
  40. data/public/fckeditor/editor/css/images/block_blockquote.png +0 -0
  41. data/public/fckeditor/editor/css/images/block_div.png +0 -0
  42. data/public/fckeditor/editor/css/images/block_h1.png +0 -0
  43. data/public/fckeditor/editor/css/images/block_h2.png +0 -0
  44. data/public/fckeditor/editor/css/images/block_h3.png +0 -0
  45. data/public/fckeditor/editor/css/images/block_h4.png +0 -0
  46. data/public/fckeditor/editor/css/images/block_h5.png +0 -0
  47. data/public/fckeditor/editor/css/images/block_h6.png +0 -0
  48. data/public/fckeditor/editor/css/images/block_p.png +0 -0
  49. data/public/fckeditor/editor/css/images/block_pre.png +0 -0
  50. data/public/fckeditor/editor/css/images/fck_anchor.gif +0 -0
  51. data/public/fckeditor/editor/css/images/fck_flashlogo.gif +0 -0
  52. data/public/fckeditor/editor/css/images/fck_hiddenfield.gif +0 -0
  53. data/public/fckeditor/editor/css/images/fck_pagebreak.gif +0 -0
  54. data/public/fckeditor/editor/css/images/fck_plugin.gif +0 -0
  55. data/public/fckeditor/editor/dialog/common/fck_dialog_common.css +85 -0
  56. data/public/fckeditor/editor/dialog/common/fck_dialog_common.js +311 -0
  57. data/public/fckeditor/editor/dialog/common/images/locked.gif +0 -0
  58. data/public/fckeditor/editor/dialog/common/images/reset.gif +0 -0
  59. data/public/fckeditor/editor/dialog/common/images/unlocked.gif +0 -0
  60. data/public/fckeditor/editor/dialog/fck_about/logo_fckeditor.gif +0 -0
  61. data/public/fckeditor/editor/dialog/fck_about/logo_fredck.gif +0 -0
  62. data/public/fckeditor/editor/dialog/fck_about/sponsors/spellchecker_net.gif +0 -0
  63. data/public/fckeditor/editor/dialog/fck_about.html +161 -0
  64. data/public/fckeditor/editor/dialog/fck_anchor.html +220 -0
  65. data/public/fckeditor/editor/dialog/fck_button.html +104 -0
  66. data/public/fckeditor/editor/dialog/fck_checkbox.html +104 -0
  67. data/public/fckeditor/editor/dialog/fck_colorselector.html +172 -0
  68. data/public/fckeditor/editor/dialog/fck_div.html +364 -0
  69. data/public/fckeditor/editor/dialog/fck_docprops/fck_document_preview.html +113 -0
  70. data/public/fckeditor/editor/dialog/fck_docprops.html +600 -0
  71. data/public/fckeditor/editor/dialog/fck_flash/fck_flash.js +300 -0
  72. data/public/fckeditor/editor/dialog/fck_flash/fck_flash_preview.html +50 -0
  73. data/public/fckeditor/editor/dialog/fck_flash.html +152 -0
  74. data/public/fckeditor/editor/dialog/fck_form.html +109 -0
  75. data/public/fckeditor/editor/dialog/fck_hiddenfield.html +115 -0
  76. data/public/fckeditor/editor/dialog/fck_image/fck_image.js +512 -0
  77. data/public/fckeditor/editor/dialog/fck_image/fck_image_preview.html +72 -0
  78. data/public/fckeditor/editor/dialog/fck_image.html +258 -0
  79. data/public/fckeditor/editor/dialog/fck_link/fck_link.js +893 -0
  80. data/public/fckeditor/editor/dialog/fck_link.html +295 -0
  81. data/public/fckeditor/editor/dialog/fck_listprop.html +120 -0
  82. data/public/fckeditor/editor/dialog/fck_paste.html +346 -0
  83. data/public/fckeditor/editor/dialog/fck_radiobutton.html +104 -0
  84. data/public/fckeditor/editor/dialog/fck_replace.html +648 -0
  85. data/public/fckeditor/editor/dialog/fck_select/fck_select.js +194 -0
  86. data/public/fckeditor/editor/dialog/fck_select.html +180 -0
  87. data/public/fckeditor/editor/dialog/fck_smiley.html +111 -0
  88. data/public/fckeditor/editor/dialog/fck_source.html +68 -0
  89. data/public/fckeditor/editor/dialog/fck_specialchar.html +121 -0
  90. data/public/fckeditor/editor/dialog/fck_spellerpages/spellerpages/blank.html +0 -0
  91. data/public/fckeditor/editor/dialog/fck_spellerpages/spellerpages/controlWindow.js +87 -0
  92. data/public/fckeditor/editor/dialog/fck_spellerpages/spellerpages/controls.html +153 -0
  93. data/public/fckeditor/editor/dialog/fck_spellerpages/spellerpages/server-scripts/spellchecker.cfm +148 -0
  94. data/public/fckeditor/editor/dialog/fck_spellerpages/spellerpages/server-scripts/spellchecker.php +199 -0
  95. data/public/fckeditor/editor/dialog/fck_spellerpages/spellerpages/server-scripts/spellchecker.pl +181 -0
  96. data/public/fckeditor/editor/dialog/fck_spellerpages/spellerpages/spellChecker.js +461 -0
  97. data/public/fckeditor/editor/dialog/fck_spellerpages/spellerpages/spellchecker.html +71 -0
  98. data/public/fckeditor/editor/dialog/fck_spellerpages/spellerpages/spellerStyle.css +49 -0
  99. data/public/fckeditor/editor/dialog/fck_spellerpages/spellerpages/wordWindow.js +272 -0
  100. data/public/fckeditor/editor/dialog/fck_spellerpages.html +70 -0
  101. data/public/fckeditor/editor/dialog/fck_table.html +298 -0
  102. data/public/fckeditor/editor/dialog/fck_tablecell.html +257 -0
  103. data/public/fckeditor/editor/dialog/fck_template/images/template1.gif +0 -0
  104. data/public/fckeditor/editor/dialog/fck_template/images/template2.gif +0 -0
  105. data/public/fckeditor/editor/dialog/fck_template/images/template3.gif +0 -0
  106. data/public/fckeditor/editor/dialog/fck_template.html +242 -0
  107. data/public/fckeditor/editor/dialog/fck_textarea.html +94 -0
  108. data/public/fckeditor/editor/dialog/fck_textfield.html +136 -0
  109. data/public/fckeditor/editor/dtd/fck_dtd_test.html +41 -0
  110. data/public/fckeditor/editor/dtd/fck_xhtml10strict.js +116 -0
  111. data/public/fckeditor/editor/dtd/fck_xhtml10transitional.js +140 -0
  112. data/public/fckeditor/editor/fckdebug.html +153 -0
  113. data/public/fckeditor/editor/fckdialog.html +812 -0
  114. data/public/fckeditor/editor/fckeditor.html +317 -0
  115. data/public/fckeditor/editor/fckeditor.original.html +424 -0
  116. data/public/fckeditor/editor/filemanager/browser/default/browser.css +87 -0
  117. data/public/fckeditor/editor/filemanager/browser/default/browser.html +200 -0
  118. data/public/fckeditor/editor/filemanager/browser/default/frmactualfolder.html +95 -0
  119. data/public/fckeditor/editor/filemanager/browser/default/frmcreatefolder.html +114 -0
  120. data/public/fckeditor/editor/filemanager/browser/default/frmfolders.html +198 -0
  121. data/public/fckeditor/editor/filemanager/browser/default/frmresourceslist.html +169 -0
  122. data/public/fckeditor/editor/filemanager/browser/default/frmresourcetype.html +68 -0
  123. data/public/fckeditor/editor/filemanager/browser/default/frmupload.html +115 -0
  124. data/public/fckeditor/editor/filemanager/browser/default/images/ButtonArrow.gif +0 -0
  125. data/public/fckeditor/editor/filemanager/browser/default/images/Folder.gif +0 -0
  126. data/public/fckeditor/editor/filemanager/browser/default/images/Folder32.gif +0 -0
  127. data/public/fckeditor/editor/filemanager/browser/default/images/FolderOpened.gif +0 -0
  128. data/public/fckeditor/editor/filemanager/browser/default/images/FolderOpened32.gif +0 -0
  129. data/public/fckeditor/editor/filemanager/browser/default/images/FolderUp.gif +0 -0
  130. data/public/fckeditor/editor/filemanager/browser/default/images/icons/32/ai.gif +0 -0
  131. data/public/fckeditor/editor/filemanager/browser/default/images/icons/32/avi.gif +0 -0
  132. data/public/fckeditor/editor/filemanager/browser/default/images/icons/32/bmp.gif +0 -0
  133. data/public/fckeditor/editor/filemanager/browser/default/images/icons/32/cs.gif +0 -0
  134. data/public/fckeditor/editor/filemanager/browser/default/images/icons/32/default.icon.gif +0 -0
  135. data/public/fckeditor/editor/filemanager/browser/default/images/icons/32/dll.gif +0 -0
  136. data/public/fckeditor/editor/filemanager/browser/default/images/icons/32/doc.gif +0 -0
  137. data/public/fckeditor/editor/filemanager/browser/default/images/icons/32/exe.gif +0 -0
  138. data/public/fckeditor/editor/filemanager/browser/default/images/icons/32/fla.gif +0 -0
  139. data/public/fckeditor/editor/filemanager/browser/default/images/icons/32/gif.gif +0 -0
  140. data/public/fckeditor/editor/filemanager/browser/default/images/icons/32/htm.gif +0 -0
  141. data/public/fckeditor/editor/filemanager/browser/default/images/icons/32/html.gif +0 -0
  142. data/public/fckeditor/editor/filemanager/browser/default/images/icons/32/jpg.gif +0 -0
  143. data/public/fckeditor/editor/filemanager/browser/default/images/icons/32/js.gif +0 -0
  144. data/public/fckeditor/editor/filemanager/browser/default/images/icons/32/mdb.gif +0 -0
  145. data/public/fckeditor/editor/filemanager/browser/default/images/icons/32/mp3.gif +0 -0
  146. data/public/fckeditor/editor/filemanager/browser/default/images/icons/32/pdf.gif +0 -0
  147. data/public/fckeditor/editor/filemanager/browser/default/images/icons/32/png.gif +0 -0
  148. data/public/fckeditor/editor/filemanager/browser/default/images/icons/32/ppt.gif +0 -0
  149. data/public/fckeditor/editor/filemanager/browser/default/images/icons/32/rdp.gif +0 -0
  150. data/public/fckeditor/editor/filemanager/browser/default/images/icons/32/swf.gif +0 -0
  151. data/public/fckeditor/editor/filemanager/browser/default/images/icons/32/swt.gif +0 -0
  152. data/public/fckeditor/editor/filemanager/browser/default/images/icons/32/txt.gif +0 -0
  153. data/public/fckeditor/editor/filemanager/browser/default/images/icons/32/vsd.gif +0 -0
  154. data/public/fckeditor/editor/filemanager/browser/default/images/icons/32/xls.gif +0 -0
  155. data/public/fckeditor/editor/filemanager/browser/default/images/icons/32/xml.gif +0 -0
  156. data/public/fckeditor/editor/filemanager/browser/default/images/icons/32/zip.gif +0 -0
  157. data/public/fckeditor/editor/filemanager/browser/default/images/icons/ai.gif +0 -0
  158. data/public/fckeditor/editor/filemanager/browser/default/images/icons/avi.gif +0 -0
  159. data/public/fckeditor/editor/filemanager/browser/default/images/icons/bmp.gif +0 -0
  160. data/public/fckeditor/editor/filemanager/browser/default/images/icons/cs.gif +0 -0
  161. data/public/fckeditor/editor/filemanager/browser/default/images/icons/default.icon.gif +0 -0
  162. data/public/fckeditor/editor/filemanager/browser/default/images/icons/dll.gif +0 -0
  163. data/public/fckeditor/editor/filemanager/browser/default/images/icons/doc.gif +0 -0
  164. data/public/fckeditor/editor/filemanager/browser/default/images/icons/exe.gif +0 -0
  165. data/public/fckeditor/editor/filemanager/browser/default/images/icons/fla.gif +0 -0
  166. data/public/fckeditor/editor/filemanager/browser/default/images/icons/gif.gif +0 -0
  167. data/public/fckeditor/editor/filemanager/browser/default/images/icons/htm.gif +0 -0
  168. data/public/fckeditor/editor/filemanager/browser/default/images/icons/html.gif +0 -0
  169. data/public/fckeditor/editor/filemanager/browser/default/images/icons/jpg.gif +0 -0
  170. data/public/fckeditor/editor/filemanager/browser/default/images/icons/js.gif +0 -0
  171. data/public/fckeditor/editor/filemanager/browser/default/images/icons/mdb.gif +0 -0
  172. data/public/fckeditor/editor/filemanager/browser/default/images/icons/mp3.gif +0 -0
  173. data/public/fckeditor/editor/filemanager/browser/default/images/icons/pdf.gif +0 -0
  174. data/public/fckeditor/editor/filemanager/browser/default/images/icons/png.gif +0 -0
  175. data/public/fckeditor/editor/filemanager/browser/default/images/icons/ppt.gif +0 -0
  176. data/public/fckeditor/editor/filemanager/browser/default/images/icons/rdp.gif +0 -0
  177. data/public/fckeditor/editor/filemanager/browser/default/images/icons/swf.gif +0 -0
  178. data/public/fckeditor/editor/filemanager/browser/default/images/icons/swt.gif +0 -0
  179. data/public/fckeditor/editor/filemanager/browser/default/images/icons/txt.gif +0 -0
  180. data/public/fckeditor/editor/filemanager/browser/default/images/icons/vsd.gif +0 -0
  181. data/public/fckeditor/editor/filemanager/browser/default/images/icons/xls.gif +0 -0
  182. data/public/fckeditor/editor/filemanager/browser/default/images/icons/xml.gif +0 -0
  183. data/public/fckeditor/editor/filemanager/browser/default/images/icons/zip.gif +0 -0
  184. data/public/fckeditor/editor/filemanager/browser/default/images/spacer.gif +0 -0
  185. data/public/fckeditor/editor/filemanager/browser/default/js/common.js +88 -0
  186. data/public/fckeditor/editor/filemanager/browser/default/js/fckxml.js +147 -0
  187. data/public/fckeditor/editor/images/anchor.gif +0 -0
  188. data/public/fckeditor/editor/images/arrow_ltr.gif +0 -0
  189. data/public/fckeditor/editor/images/arrow_rtl.gif +0 -0
  190. data/public/fckeditor/editor/images/smiley/msn/angel_smile.gif +0 -0
  191. data/public/fckeditor/editor/images/smiley/msn/angry_smile.gif +0 -0
  192. data/public/fckeditor/editor/images/smiley/msn/broken_heart.gif +0 -0
  193. data/public/fckeditor/editor/images/smiley/msn/cake.gif +0 -0
  194. data/public/fckeditor/editor/images/smiley/msn/confused_smile.gif +0 -0
  195. data/public/fckeditor/editor/images/smiley/msn/cry_smile.gif +0 -0
  196. data/public/fckeditor/editor/images/smiley/msn/devil_smile.gif +0 -0
  197. data/public/fckeditor/editor/images/smiley/msn/embaressed_smile.gif +0 -0
  198. data/public/fckeditor/editor/images/smiley/msn/envelope.gif +0 -0
  199. data/public/fckeditor/editor/images/smiley/msn/heart.gif +0 -0
  200. data/public/fckeditor/editor/images/smiley/msn/kiss.gif +0 -0
  201. data/public/fckeditor/editor/images/smiley/msn/lightbulb.gif +0 -0
  202. data/public/fckeditor/editor/images/smiley/msn/omg_smile.gif +0 -0
  203. data/public/fckeditor/editor/images/smiley/msn/regular_smile.gif +0 -0
  204. data/public/fckeditor/editor/images/smiley/msn/sad_smile.gif +0 -0
  205. data/public/fckeditor/editor/images/smiley/msn/shades_smile.gif +0 -0
  206. data/public/fckeditor/editor/images/smiley/msn/teeth_smile.gif +0 -0
  207. data/public/fckeditor/editor/images/smiley/msn/thumbs_down.gif +0 -0
  208. data/public/fckeditor/editor/images/smiley/msn/thumbs_up.gif +0 -0
  209. data/public/fckeditor/editor/images/smiley/msn/tounge_smile.gif +0 -0
  210. data/public/fckeditor/editor/images/smiley/msn/whatchutalkingabout_smile.gif +0 -0
  211. data/public/fckeditor/editor/images/smiley/msn/wink_smile.gif +0 -0
  212. data/public/fckeditor/editor/images/spacer.gif +0 -0
  213. data/public/fckeditor/editor/js/fckadobeair.js +176 -0
  214. data/public/fckeditor/editor/js/fckeditorcode_gecko.js +108 -0
  215. data/public/fckeditor/editor/js/fckeditorcode_ie.js +109 -0
  216. data/public/fckeditor/editor/lang/_translationstatus.txt +78 -0
  217. data/public/fckeditor/editor/lang/af.js +526 -0
  218. data/public/fckeditor/editor/lang/ar.js +526 -0
  219. data/public/fckeditor/editor/lang/bg.js +526 -0
  220. data/public/fckeditor/editor/lang/bn.js +526 -0
  221. data/public/fckeditor/editor/lang/bs.js +526 -0
  222. data/public/fckeditor/editor/lang/ca.js +526 -0
  223. data/public/fckeditor/editor/lang/cs.js +526 -0
  224. data/public/fckeditor/editor/lang/da.js +526 -0
  225. data/public/fckeditor/editor/lang/de.js +526 -0
  226. data/public/fckeditor/editor/lang/el.js +526 -0
  227. data/public/fckeditor/editor/lang/en-au.js +526 -0
  228. data/public/fckeditor/editor/lang/en-ca.js +526 -0
  229. data/public/fckeditor/editor/lang/en-uk.js +526 -0
  230. data/public/fckeditor/editor/lang/en.js +526 -0
  231. data/public/fckeditor/editor/lang/eo.js +526 -0
  232. data/public/fckeditor/editor/lang/es.js +526 -0
  233. data/public/fckeditor/editor/lang/et.js +526 -0
  234. data/public/fckeditor/editor/lang/eu.js +527 -0
  235. data/public/fckeditor/editor/lang/fa.js +526 -0
  236. data/public/fckeditor/editor/lang/fi.js +526 -0
  237. data/public/fckeditor/editor/lang/fo.js +526 -0
  238. data/public/fckeditor/editor/lang/fr-ca.js +526 -0
  239. data/public/fckeditor/editor/lang/fr.js +526 -0
  240. data/public/fckeditor/editor/lang/gl.js +526 -0
  241. data/public/fckeditor/editor/lang/gu.js +526 -0
  242. data/public/fckeditor/editor/lang/he.js +526 -0
  243. data/public/fckeditor/editor/lang/hi.js +526 -0
  244. data/public/fckeditor/editor/lang/hr.js +526 -0
  245. data/public/fckeditor/editor/lang/hu.js +526 -0
  246. data/public/fckeditor/editor/lang/it.js +526 -0
  247. data/public/fckeditor/editor/lang/ja.js +526 -0
  248. data/public/fckeditor/editor/lang/km.js +526 -0
  249. data/public/fckeditor/editor/lang/ko.js +526 -0
  250. data/public/fckeditor/editor/lang/lt.js +526 -0
  251. data/public/fckeditor/editor/lang/lv.js +526 -0
  252. data/public/fckeditor/editor/lang/mn.js +526 -0
  253. data/public/fckeditor/editor/lang/ms.js +526 -0
  254. data/public/fckeditor/editor/lang/nb.js +526 -0
  255. data/public/fckeditor/editor/lang/nl.js +526 -0
  256. data/public/fckeditor/editor/lang/no.js +526 -0
  257. data/public/fckeditor/editor/lang/pl.js +526 -0
  258. data/public/fckeditor/editor/lang/pt-br.js +526 -0
  259. data/public/fckeditor/editor/lang/pt.js +526 -0
  260. data/public/fckeditor/editor/lang/ro.js +526 -0
  261. data/public/fckeditor/editor/lang/ru.js +526 -0
  262. data/public/fckeditor/editor/lang/sk.js +526 -0
  263. data/public/fckeditor/editor/lang/sl.js +526 -0
  264. data/public/fckeditor/editor/lang/sr-latn.js +526 -0
  265. data/public/fckeditor/editor/lang/sr.js +526 -0
  266. data/public/fckeditor/editor/lang/sv.js +526 -0
  267. data/public/fckeditor/editor/lang/th.js +526 -0
  268. data/public/fckeditor/editor/lang/tr.js +526 -0
  269. data/public/fckeditor/editor/lang/uk.js +526 -0
  270. data/public/fckeditor/editor/lang/vi.js +526 -0
  271. data/public/fckeditor/editor/lang/zh-cn.js +526 -0
  272. data/public/fckeditor/editor/lang/zh.js +526 -0
  273. data/public/fckeditor/editor/plugins/autogrow/fckplugin.js +99 -0
  274. data/public/fckeditor/editor/plugins/bbcode/_sample/sample.config.js +26 -0
  275. data/public/fckeditor/editor/plugins/bbcode/_sample/sample.html +67 -0
  276. data/public/fckeditor/editor/plugins/bbcode/fckplugin.js +123 -0
  277. data/public/fckeditor/editor/plugins/dragresizetable/fckplugin.js +524 -0
  278. data/public/fckeditor/editor/plugins/placeholder/fck_placeholder.html +105 -0
  279. data/public/fckeditor/editor/plugins/placeholder/fckplugin.js +187 -0
  280. data/public/fckeditor/editor/plugins/placeholder/lang/de.js +27 -0
  281. data/public/fckeditor/editor/plugins/placeholder/lang/en.js +27 -0
  282. data/public/fckeditor/editor/plugins/placeholder/lang/es.js +27 -0
  283. data/public/fckeditor/editor/plugins/placeholder/lang/fr.js +27 -0
  284. data/public/fckeditor/editor/plugins/placeholder/lang/it.js +27 -0
  285. data/public/fckeditor/editor/plugins/placeholder/lang/pl.js +27 -0
  286. data/public/fckeditor/editor/plugins/placeholder/placeholder.gif +0 -0
  287. data/public/fckeditor/editor/plugins/simplecommands/fckplugin.js +29 -0
  288. data/public/fckeditor/editor/plugins/tablecommands/fckplugin.js +33 -0
  289. data/public/fckeditor/editor/skins/_fckviewstrips.html +121 -0
  290. data/public/fckeditor/editor/skins/default/fck_dialog.css +402 -0
  291. data/public/fckeditor/editor/skins/default/fck_dialog_ie6.js +110 -0
  292. data/public/fckeditor/editor/skins/default/fck_editor.css +464 -0
  293. data/public/fckeditor/editor/skins/default/fck_strip.gif +0 -0
  294. data/public/fckeditor/editor/skins/default/images/dialog.sides.gif +0 -0
  295. data/public/fckeditor/editor/skins/default/images/dialog.sides.png +0 -0
  296. data/public/fckeditor/editor/skins/default/images/dialog.sides.rtl.png +0 -0
  297. data/public/fckeditor/editor/skins/default/images/sprites.gif +0 -0
  298. data/public/fckeditor/editor/skins/default/images/sprites.png +0 -0
  299. data/public/fckeditor/editor/skins/default/images/toolbar.arrowright.gif +0 -0
  300. data/public/fckeditor/editor/skins/default/images/toolbar.buttonarrow.gif +0 -0
  301. data/public/fckeditor/editor/skins/default/images/toolbar.collapse.gif +0 -0
  302. data/public/fckeditor/editor/skins/default/images/toolbar.end.gif +0 -0
  303. data/public/fckeditor/editor/skins/default/images/toolbar.expand.gif +0 -0
  304. data/public/fckeditor/editor/skins/default/images/toolbar.separator.gif +0 -0
  305. data/public/fckeditor/editor/skins/default/images/toolbar.start.gif +0 -0
  306. data/public/fckeditor/editor/skins/office2003/fck_dialog.css +402 -0
  307. data/public/fckeditor/editor/skins/office2003/fck_dialog_ie6.js +110 -0
  308. data/public/fckeditor/editor/skins/office2003/fck_editor.css +476 -0
  309. data/public/fckeditor/editor/skins/office2003/fck_strip.gif +0 -0
  310. data/public/fckeditor/editor/skins/office2003/images/dialog.sides.gif +0 -0
  311. data/public/fckeditor/editor/skins/office2003/images/dialog.sides.png +0 -0
  312. data/public/fckeditor/editor/skins/office2003/images/dialog.sides.rtl.png +0 -0
  313. data/public/fckeditor/editor/skins/office2003/images/sprites.gif +0 -0
  314. data/public/fckeditor/editor/skins/office2003/images/sprites.png +0 -0
  315. data/public/fckeditor/editor/skins/office2003/images/toolbar.arrowright.gif +0 -0
  316. data/public/fckeditor/editor/skins/office2003/images/toolbar.bg.gif +0 -0
  317. data/public/fckeditor/editor/skins/office2003/images/toolbar.buttonarrow.gif +0 -0
  318. data/public/fckeditor/editor/skins/office2003/images/toolbar.collapse.gif +0 -0
  319. data/public/fckeditor/editor/skins/office2003/images/toolbar.end.gif +0 -0
  320. data/public/fckeditor/editor/skins/office2003/images/toolbar.expand.gif +0 -0
  321. data/public/fckeditor/editor/skins/office2003/images/toolbar.separator.gif +0 -0
  322. data/public/fckeditor/editor/skins/office2003/images/toolbar.start.gif +0 -0
  323. data/public/fckeditor/editor/skins/silver/fck_dialog.css +402 -0
  324. data/public/fckeditor/editor/skins/silver/fck_dialog_ie6.js +110 -0
  325. data/public/fckeditor/editor/skins/silver/fck_editor.css +473 -0
  326. data/public/fckeditor/editor/skins/silver/fck_strip.gif +0 -0
  327. data/public/fckeditor/editor/skins/silver/images/dialog.sides.gif +0 -0
  328. data/public/fckeditor/editor/skins/silver/images/dialog.sides.png +0 -0
  329. data/public/fckeditor/editor/skins/silver/images/dialog.sides.rtl.png +0 -0
  330. data/public/fckeditor/editor/skins/silver/images/sprites.gif +0 -0
  331. data/public/fckeditor/editor/skins/silver/images/sprites.png +0 -0
  332. data/public/fckeditor/editor/skins/silver/images/toolbar.arrowright.gif +0 -0
  333. data/public/fckeditor/editor/skins/silver/images/toolbar.buttonarrow.gif +0 -0
  334. data/public/fckeditor/editor/skins/silver/images/toolbar.buttonbg.gif +0 -0
  335. data/public/fckeditor/editor/skins/silver/images/toolbar.collapse.gif +0 -0
  336. data/public/fckeditor/editor/skins/silver/images/toolbar.end.gif +0 -0
  337. data/public/fckeditor/editor/skins/silver/images/toolbar.expand.gif +0 -0
  338. data/public/fckeditor/editor/skins/silver/images/toolbar.separator.gif +0 -0
  339. data/public/fckeditor/editor/skins/silver/images/toolbar.start.gif +0 -0
  340. data/public/fckeditor/fckconfig.js +364 -0
  341. data/public/fckeditor/fckdebug.html +153 -0
  342. data/public/fckeditor/fckdialog.html +812 -0
  343. data/public/fckeditor/fckeditor.html +317 -0
  344. data/public/fckeditor/fckeditor.js +328 -0
  345. data/public/fckeditor/fckeditor.original.html +424 -0
  346. data/public/fckeditor/fckpackager.xml +262 -0
  347. data/public/fckeditor/fckstyles.xml +111 -0
  348. data/public/fckeditor/fcktemplates.xml +103 -0
  349. data/public/images/cms/administration/user_browser_bg.gif +0 -0
  350. data/public/images/cms/bg.png +0 -0
  351. data/public/images/cms/bl_curve.png +0 -0
  352. data/public/images/cms/bottom_cap.png +0 -0
  353. data/public/images/cms/bottom_cap_content.png +0 -0
  354. data/public/images/cms/browse.gif +0 -0
  355. data/public/images/cms/browser_media_logo.png +0 -0
  356. data/public/images/cms/browsercms_logo.png +0 -0
  357. data/public/images/cms/buttons/button.png +0 -0
  358. data/public/images/cms/buttons/button_bg.png +0 -0
  359. data/public/images/cms/buttons/button_cap.png +0 -0
  360. data/public/images/cms/buttons/button_cap_h.png +0 -0
  361. data/public/images/cms/buttons/button_cap_off.gif +0 -0
  362. data/public/images/cms/buttons/button_cap_off_middle.gif +0 -0
  363. data/public/images/cms/buttons/button_h.png +0 -0
  364. data/public/images/cms/buttons/button_left_bg.png +0 -0
  365. data/public/images/cms/buttons/button_off.png +0 -0
  366. data/public/images/cms/buttons/button_off_middle.png +0 -0
  367. data/public/images/cms/buttons/delete_x.png +0 -0
  368. data/public/images/cms/buttons/delete_x_disabled.png +0 -0
  369. data/public/images/cms/buttons/delete_x_h.png +0 -0
  370. data/public/images/cms/buttons/sm_button.gif +0 -0
  371. data/public/images/cms/buttons/sm_button_2.gif +0 -0
  372. data/public/images/cms/buttons/sm_button_2_h.gif +0 -0
  373. data/public/images/cms/buttons/sm_button_h.gif +0 -0
  374. data/public/images/cms/containers/add.gif +0 -0
  375. data/public/images/cms/containers/alpha.png +0 -0
  376. data/public/images/cms/containers/beta.png +0 -0
  377. data/public/images/cms/containers/delete.gif +0 -0
  378. data/public/images/cms/containers/down.gif +0 -0
  379. data/public/images/cms/containers/edit.gif +0 -0
  380. data/public/images/cms/containers/up.gif +0 -0
  381. data/public/images/cms/containers/view.gif +0 -0
  382. data/public/images/cms/content_bg.gif +0 -0
  383. data/public/images/cms/dashboard/bottom_cap.png +0 -0
  384. data/public/images/cms/dashboard/bottom_cap_content.png +0 -0
  385. data/public/images/cms/dashboard/header_bg.gif +0 -0
  386. data/public/images/cms/dashboard/header_left_bg.gif +0 -0
  387. data/public/images/cms/dashboard/table_header_bg.gif +0 -0
  388. data/public/images/cms/dashboard/top_cap.png +0 -0
  389. data/public/images/cms/dashed.gif +0 -0
  390. data/public/images/cms/datepicker/clear.gif +0 -0
  391. data/public/images/cms/datepicker/close.gif +0 -0
  392. data/public/images/cms/dk_button_l.gif +0 -0
  393. data/public/images/cms/dk_button_r.gif +0 -0
  394. data/public/images/cms/dot.png +0 -0
  395. data/public/images/cms/draft_status.gif +0 -0
  396. data/public/images/cms/gray_long_bg.gif +0 -0
  397. data/public/images/cms/icons/actions/add.png +0 -0
  398. data/public/images/cms/icons/actions/config.png +0 -0
  399. data/public/images/cms/icons/actions/connect.png +0 -0
  400. data/public/images/cms/icons/actions/delete.png +0 -0
  401. data/public/images/cms/icons/actions/down.png +0 -0
  402. data/public/images/cms/icons/actions/edit.png +0 -0
  403. data/public/images/cms/icons/actions/folder.png +0 -0
  404. data/public/images/cms/icons/actions/folder_add.png +0 -0
  405. data/public/images/cms/icons/actions/folder_delete.png +0 -0
  406. data/public/images/cms/icons/actions/folder_edit.png +0 -0
  407. data/public/images/cms/icons/actions/folder_move.png +0 -0
  408. data/public/images/cms/icons/actions/folder_open.png +0 -0
  409. data/public/images/cms/icons/actions/history.png +0 -0
  410. data/public/images/cms/icons/actions/home.png +0 -0
  411. data/public/images/cms/icons/actions/left.png +0 -0
  412. data/public/images/cms/icons/actions/link.png +0 -0
  413. data/public/images/cms/icons/actions/page.png +0 -0
  414. data/public/images/cms/icons/actions/page_add.png +0 -0
  415. data/public/images/cms/icons/actions/page_edit.png +0 -0
  416. data/public/images/cms/icons/actions/page_move.png +0 -0
  417. data/public/images/cms/icons/actions/redo.png +0 -0
  418. data/public/images/cms/icons/actions/refresh.png +0 -0
  419. data/public/images/cms/icons/actions/right.png +0 -0
  420. data/public/images/cms/icons/actions/root_folder.png +0 -0
  421. data/public/images/cms/icons/actions/root_link.png +0 -0
  422. data/public/images/cms/icons/actions/root_page.png +0 -0
  423. data/public/images/cms/icons/actions/undo.png +0 -0
  424. data/public/images/cms/icons/actions/up.png +0 -0
  425. data/public/images/cms/icons/actions/view.png +0 -0
  426. data/public/images/cms/icons/file_types/doc.png +0 -0
  427. data/public/images/cms/icons/file_types/file.png +0 -0
  428. data/public/images/cms/icons/file_types/gif.png +0 -0
  429. data/public/images/cms/icons/file_types/htm.png +0 -0
  430. data/public/images/cms/icons/file_types/pdf.png +0 -0
  431. data/public/images/cms/icons/file_types/ppt.png +0 -0
  432. data/public/images/cms/icons/file_types/swf.png +0 -0
  433. data/public/images/cms/icons/file_types/txt.png +0 -0
  434. data/public/images/cms/icons/file_types/xls.png +0 -0
  435. data/public/images/cms/icons/file_types/xml.png +0 -0
  436. data/public/images/cms/icons/file_types/zip.png +0 -0
  437. data/public/images/cms/icons/status/archived.gif +0 -0
  438. data/public/images/cms/icons/status/draft.gif +0 -0
  439. data/public/images/cms/icons/status/hidden.gif +0 -0
  440. data/public/images/cms/icons/status/locked.gif +0 -0
  441. data/public/images/cms/icons/status/published.gif +0 -0
  442. data/public/images/cms/icons/status/unlocked.gif +0 -0
  443. data/public/images/cms/icons/user.png +0 -0
  444. data/public/images/cms/login_bg.jpg +0 -0
  445. data/public/images/cms/login_bottom.jpg +0 -0
  446. data/public/images/cms/login_top.gif +0 -0
  447. data/public/images/cms/lt_button_bg.gif +0 -0
  448. data/public/images/cms/lt_button_l.gif +0 -0
  449. data/public/images/cms/lt_button_r.gif +0 -0
  450. data/public/images/cms/menu/block_cap_h.gif +0 -0
  451. data/public/images/cms/menu/bottom_cap.png +0 -0
  452. data/public/images/cms/menu/bottom_cap_menu.png +0 -0
  453. data/public/images/cms/menu/bottom_cap_menu_first.png +0 -0
  454. data/public/images/cms/menu/menu_header_first_bg.gif +0 -0
  455. data/public/images/cms/menu/selected_block_cap.gif +0 -0
  456. data/public/images/cms/menu/top_cap.png +0 -0
  457. data/public/images/cms/menu/top_cap_menu_header.png +0 -0
  458. data/public/images/cms/menu.png +0 -0
  459. data/public/images/cms/menu_h.gif +0 -0
  460. data/public/images/cms/menu_header.png +0 -0
  461. data/public/images/cms/menu_open.png +0 -0
  462. data/public/images/cms/menu_open_bg.gif +0 -0
  463. data/public/images/cms/nav/on_bg.gif +0 -0
  464. data/public/images/cms/nav.png +0 -0
  465. data/public/images/cms/nav_admin.gif +0 -0
  466. data/public/images/cms/nav_admin_h.gif +0 -0
  467. data/public/images/cms/nav_admin_on.gif +0 -0
  468. data/public/images/cms/nav_cap.png +0 -0
  469. data/public/images/cms/nav_cap_h.gif +0 -0
  470. data/public/images/cms/nav_content_library.gif +0 -0
  471. data/public/images/cms/nav_content_library_h.gif +0 -0
  472. data/public/images/cms/nav_content_library_on.gif +0 -0
  473. data/public/images/cms/nav_dash.gif +0 -0
  474. data/public/images/cms/nav_dash_h.gif +0 -0
  475. data/public/images/cms/nav_dash_on.gif +0 -0
  476. data/public/images/cms/nav_h.gif +0 -0
  477. data/public/images/cms/nav_sitemap.gif +0 -0
  478. data/public/images/cms/nav_sitemap_h.gif +0 -0
  479. data/public/images/cms/nav_sitemap_on.gif +0 -0
  480. data/public/images/cms/page_toolbar/page_toolbar_bg.gif +0 -0
  481. data/public/images/cms/page_toolbar/page_toolbar_inset_bg.gif +0 -0
  482. data/public/images/cms/page_toolbar/page_toolbar_inset_draft_bg.gif +0 -0
  483. data/public/images/cms/page_toolbar/page_toolbar_inset_draft_l.gif +0 -0
  484. data/public/images/cms/page_toolbar/page_toolbar_inset_draft_r.gif +0 -0
  485. data/public/images/cms/page_toolbar/page_toolbar_inset_l.gif +0 -0
  486. data/public/images/cms/page_toolbar/page_toolbar_inset_published_bg.gif +0 -0
  487. data/public/images/cms/page_toolbar/page_toolbar_inset_published_l.gif +0 -0
  488. data/public/images/cms/page_toolbar/page_toolbar_inset_published_r.gif +0 -0
  489. data/public/images/cms/page_toolbar/page_toolbar_inset_r.gif +0 -0
  490. data/public/images/cms/page_toolbar/page_toolbar_l.gif +0 -0
  491. data/public/images/cms/page_toolbar/page_toolbar_r.gif +0 -0
  492. data/public/images/cms/page_toolbar/status_draft_bg.gif +0 -0
  493. data/public/images/cms/page_toolbar/status_draft_l.gif +0 -0
  494. data/public/images/cms/page_toolbar/status_l.gif +0 -0
  495. data/public/images/cms/page_toolbar/status_published_bg.gif +0 -0
  496. data/public/images/cms/page_toolbar/status_published_l.gif +0 -0
  497. data/public/images/cms/page_toolbar/visual_editor_bg.gif +0 -0
  498. data/public/images/cms/page_toolbar/visual_editor_end.gif +0 -0
  499. data/public/images/cms/page_toolbar/visual_editor_r.gif +0 -0
  500. data/public/images/cms/page_toolbar/visual_editor_state_bg.gif +0 -0
  501. data/public/images/cms/pages/add_connectable.gif +0 -0
  502. data/public/images/cms/pages/connect_connectable.gif +0 -0
  503. data/public/images/cms/pages/container_border.gif +0 -0
  504. data/public/images/cms/pages/container_border_l.gif +0 -0
  505. data/public/images/cms/pages/container_border_r.gif +0 -0
  506. data/public/images/cms/pages/delete_connectable.gif +0 -0
  507. data/public/images/cms/pages/down_connectable.gif +0 -0
  508. data/public/images/cms/pages/down_connectable_disabled.gif +0 -0
  509. data/public/images/cms/pages/edit_connectable.gif +0 -0
  510. data/public/images/cms/pages/edit_connectable_2.gif +0 -0
  511. data/public/images/cms/pages/show_connectable.gif +0 -0
  512. data/public/images/cms/pages/up_connectable.gif +0 -0
  513. data/public/images/cms/pages/up_connectable_disabled.gif +0 -0
  514. data/public/images/cms/pagination/first.gif +0 -0
  515. data/public/images/cms/pagination/first_h.gif +0 -0
  516. data/public/images/cms/pagination/input.gif +0 -0
  517. data/public/images/cms/pagination/last.gif +0 -0
  518. data/public/images/cms/pagination/last_h.gif +0 -0
  519. data/public/images/cms/pagination/next.gif +0 -0
  520. data/public/images/cms/pagination/next_h.gif +0 -0
  521. data/public/images/cms/pagination/previous.gif +0 -0
  522. data/public/images/cms/pagination/previous_h.gif +0 -0
  523. data/public/images/cms/published_status.gif +0 -0
  524. data/public/images/cms/search.png +0 -0
  525. data/public/images/cms/search_submit.gif +0 -0
  526. data/public/images/cms/search_submit_h.gif +0 -0
  527. data/public/images/cms/searchbox_gradient.gif +0 -0
  528. data/public/images/cms/select_bg.gif +0 -0
  529. data/public/images/cms/select_bg_2.gif +0 -0
  530. data/public/images/cms/sitemap/bottom_cap.png +0 -0
  531. data/public/images/cms/sitemap/buffer_caps.png +0 -0
  532. data/public/images/cms/sitemap/contract.png +0 -0
  533. data/public/images/cms/sitemap/corners.gif +0 -0
  534. data/public/images/cms/sitemap/corners_hover.gif +0 -0
  535. data/public/images/cms/sitemap/divider.gif +0 -0
  536. data/public/images/cms/sitemap/expand.png +0 -0
  537. data/public/images/cms/sitemap/gradient.gif +0 -0
  538. data/public/images/cms/sitemap/gray_contract.png +0 -0
  539. data/public/images/cms/sitemap/gray_expand.png +0 -0
  540. data/public/images/cms/sitemap/no_contents.png +0 -0
  541. data/public/images/cms/sitemap/site_root_cap.png +0 -0
  542. data/public/images/cms/sitemap/tooltip.gif +0 -0
  543. data/public/images/cms/sitemap/top_cap_content.png +0 -0
  544. data/public/images/cms/solid.gif +0 -0
  545. data/public/images/cms/table/bl.gif +0 -0
  546. data/public/images/cms/table/br.gif +0 -0
  547. data/public/images/cms/table/divider.gif +0 -0
  548. data/public/images/cms/table/td_cap_first_h.gif +0 -0
  549. data/public/images/cms/table/td_cap_first_s.gif +0 -0
  550. data/public/images/cms/table/td_cap_last_h.gif +0 -0
  551. data/public/images/cms/table/td_cap_last_s.gif +0 -0
  552. data/public/images/cms/table/td_last_bg.gif +0 -0
  553. data/public/images/cms/table/th_bg.gif +0 -0
  554. data/public/images/cms/table/th_divider.gif +0 -0
  555. data/public/images/cms/table/th_last_bg.gif +0 -0
  556. data/public/images/cms/table/tl.gif +0 -0
  557. data/public/images/cms/table/tr.gif +0 -0
  558. data/public/images/cms/table/tr_bg.gif +0 -0
  559. data/public/images/cms/thickbox/loadingAnimation.gif +0 -0
  560. data/public/images/cms/thickbox/macFFBgHack.png +0 -0
  561. data/public/images/cms/toolbar_bg.png +0 -0
  562. data/public/images/cms/top_cap.png +0 -0
  563. data/public/images/cms/top_cap_content.png +0 -0
  564. data/public/images/cms/top_cap_menu_header.png +0 -0
  565. data/public/images/cms/user_search_submit.gif +0 -0
  566. data/public/images/cms/usercontrols_bg.png +0 -0
  567. data/public/images/cms/usercontrols_bg_cap.png +0 -0
  568. data/public/images/rails.png +0 -0
  569. data/public/javascripts/application.js +2 -0
  570. data/public/javascripts/cms/application.js +148 -0
  571. data/public/javascripts/cms/editor.js +56 -0
  572. data/public/javascripts/cms/sitemap.js +426 -0
  573. data/public/javascripts/controls.js +963 -0
  574. data/public/javascripts/dragdrop.js +973 -0
  575. data/public/javascripts/effects.js +1128 -0
  576. data/public/javascripts/jquery-ui.js +591 -0
  577. data/public/javascripts/jquery.contextMenu.js +211 -0
  578. data/public/javascripts/jquery.cookie.js +96 -0
  579. data/public/javascripts/jquery.dimensions.js +119 -0
  580. data/public/javascripts/jquery.js +11 -0
  581. data/public/javascripts/jquery.selectbox-0.5.js +209 -0
  582. data/public/javascripts/jquery.taglist.js +136 -0
  583. data/public/javascripts/jquery.thickbox.js +10 -0
  584. data/public/javascripts/prototype.js +4320 -0
  585. data/public/robots.txt +5 -0
  586. data/public/site/customconfig.js +1 -0
  587. data/public/stylesheets/cms/administration.css +91 -0
  588. data/public/stylesheets/cms/application.css +166 -0
  589. data/public/stylesheets/cms/block.css +26 -0
  590. data/public/stylesheets/cms/buttons.css +120 -0
  591. data/public/stylesheets/cms/content_library.css +139 -0
  592. data/public/stylesheets/cms/content_types.css +4 -0
  593. data/public/stylesheets/cms/dashboard.css +118 -0
  594. data/public/stylesheets/cms/data_table.css +156 -0
  595. data/public/stylesheets/cms/date_picker.css +73 -0
  596. data/public/stylesheets/cms/form_layout.css +283 -0
  597. data/public/stylesheets/cms/jquery.contextMenu.css +61 -0
  598. data/public/stylesheets/cms/login.css +78 -0
  599. data/public/stylesheets/cms/menu.css +116 -0
  600. data/public/stylesheets/cms/nav.css +99 -0
  601. data/public/stylesheets/cms/page_toolbar.css +135 -0
  602. data/public/stylesheets/cms/reset.css +46 -0
  603. data/public/stylesheets/cms/selectbox.css +56 -0
  604. data/public/stylesheets/cms/sitemap.css +390 -0
  605. data/public/stylesheets/cms/taglist.css +18 -0
  606. data/public/stylesheets/cms/thickbox.css +163 -0
  607. data/rails/init.rb +3 -0
  608. data/script/about +4 -0
  609. data/script/console +3 -0
  610. data/script/dbconsole +3 -0
  611. data/script/destroy +3 -0
  612. data/script/generate +3 -0
  613. data/script/performance/benchmarker +3 -0
  614. data/script/performance/profiler +3 -0
  615. data/script/plugin +3 -0
  616. data/script/runner +3 -0
  617. data/script/server +3 -0
  618. data/test/performance/browsing_test.rb +9 -0
  619. data/test/test_helper.rb +39 -0
  620. data/test/unit/feed_test.rb +72 -0
  621. data/test/unit/portlets/feed_portlet_test.rb +9 -0
  622. metadata +686 -0
@@ -0,0 +1,87 @@
1
+ ////////////////////////////////////////////////////
2
+ // controlWindow object
3
+ ////////////////////////////////////////////////////
4
+ function controlWindow( controlForm ) {
5
+ // private properties
6
+ this._form = controlForm;
7
+
8
+ // public properties
9
+ this.windowType = "controlWindow";
10
+ // this.noSuggestionSelection = "- No suggestions -"; // by FredCK
11
+ this.noSuggestionSelection = FCKLang.DlgSpellNoSuggestions ;
12
+ // set up the properties for elements of the given control form
13
+ this.suggestionList = this._form.sugg;
14
+ this.evaluatedText = this._form.misword;
15
+ this.replacementText = this._form.txtsugg;
16
+ this.undoButton = this._form.btnUndo;
17
+
18
+ // public methods
19
+ this.addSuggestion = addSuggestion;
20
+ this.clearSuggestions = clearSuggestions;
21
+ this.selectDefaultSuggestion = selectDefaultSuggestion;
22
+ this.resetForm = resetForm;
23
+ this.setSuggestedText = setSuggestedText;
24
+ this.enableUndo = enableUndo;
25
+ this.disableUndo = disableUndo;
26
+ }
27
+
28
+ function resetForm() {
29
+ if( this._form ) {
30
+ this._form.reset();
31
+ }
32
+ }
33
+
34
+ function setSuggestedText() {
35
+ var slct = this.suggestionList;
36
+ var txt = this.replacementText;
37
+ var str = "";
38
+ if( (slct.options[0].text) && slct.options[0].text != this.noSuggestionSelection ) {
39
+ str = slct.options[slct.selectedIndex].text;
40
+ }
41
+ txt.value = str;
42
+ }
43
+
44
+ function selectDefaultSuggestion() {
45
+ var slct = this.suggestionList;
46
+ var txt = this.replacementText;
47
+ if( slct.options.length == 0 ) {
48
+ this.addSuggestion( this.noSuggestionSelection );
49
+ } else {
50
+ slct.options[0].selected = true;
51
+ }
52
+ this.setSuggestedText();
53
+ }
54
+
55
+ function addSuggestion( sugg_text ) {
56
+ var slct = this.suggestionList;
57
+ if( sugg_text ) {
58
+ var i = slct.options.length;
59
+ var newOption = new Option( sugg_text, 'sugg_text'+i );
60
+ slct.options[i] = newOption;
61
+ }
62
+ }
63
+
64
+ function clearSuggestions() {
65
+ var slct = this.suggestionList;
66
+ for( var j = slct.length - 1; j > -1; j-- ) {
67
+ if( slct.options[j] ) {
68
+ slct.options[j] = null;
69
+ }
70
+ }
71
+ }
72
+
73
+ function enableUndo() {
74
+ if( this.undoButton ) {
75
+ if( this.undoButton.disabled == true ) {
76
+ this.undoButton.disabled = false;
77
+ }
78
+ }
79
+ }
80
+
81
+ function disableUndo() {
82
+ if( this.undoButton ) {
83
+ if( this.undoButton.disabled == false ) {
84
+ this.undoButton.disabled = true;
85
+ }
86
+ }
87
+ }
@@ -0,0 +1,153 @@
1
+ <html>
2
+ <head>
3
+ <link rel="stylesheet" type="text/css" href="spellerStyle.css" />
4
+ <script type="text/javascript" src="controlWindow.js"></script>
5
+ <script type="text/javascript">
6
+ var spellerObject;
7
+ var controlWindowObj;
8
+
9
+ if( parent.opener ) {
10
+ spellerObject = parent.opener.speller;
11
+ }
12
+
13
+ function ignore_word() {
14
+ if( spellerObject ) {
15
+ spellerObject.ignoreWord();
16
+ }
17
+ }
18
+
19
+ function ignore_all() {
20
+ if( spellerObject ) {
21
+ spellerObject.ignoreAll();
22
+ }
23
+ }
24
+
25
+ function replace_word() {
26
+ if( spellerObject ) {
27
+ spellerObject.replaceWord();
28
+ }
29
+ }
30
+
31
+ function replace_all() {
32
+ if( spellerObject ) {
33
+ spellerObject.replaceAll();
34
+ }
35
+ }
36
+
37
+ function end_spell() {
38
+ if( spellerObject ) {
39
+ spellerObject.terminateSpell();
40
+ }
41
+ }
42
+
43
+ function undo() {
44
+ if( spellerObject ) {
45
+ spellerObject.undo();
46
+ }
47
+ }
48
+
49
+ function suggText() {
50
+ if( controlWindowObj ) {
51
+ controlWindowObj.setSuggestedText();
52
+ }
53
+ }
54
+
55
+ var FCKLang = window.parent.parent.FCKLang ; // by FredCK
56
+
57
+ function init_spell() {
58
+ // By FredCK (fckLang attributes have been added to the HTML source of this page)
59
+ window.parent.parent.OnSpellerControlsLoad( this ) ;
60
+
61
+ var controlForm = document.spellcheck;
62
+
63
+ // create a new controlWindow object
64
+ controlWindowObj = new controlWindow( controlForm );
65
+
66
+ // call the init_spell() function in the parent frameset
67
+ if( parent.frames.length ) {
68
+ parent.init_spell( controlWindowObj );
69
+ } else {
70
+ alert( 'This page was loaded outside of a frameset. It might not display properly' );
71
+ }
72
+ }
73
+
74
+ </script>
75
+ </head>
76
+ <body class="controlWindowBody" onLoad="init_spell();" style="OVERFLOW: hidden" scroll="no"> <!-- by FredCK -->
77
+ <form name="spellcheck">
78
+ <table border="0" cellpadding="0" cellspacing="0" border="0" align="center">
79
+ <tr>
80
+ <td colspan="3" class="normalLabel"><span fckLang="DlgSpellNotInDic">Not in dictionary:</span></td>
81
+ </tr>
82
+ <tr>
83
+ <td colspan="3"><input class="readonlyInput" type="text" name="misword" readonly /></td>
84
+ </tr>
85
+ <tr>
86
+ <td colspan="3" height="5"></td>
87
+ </tr>
88
+ <tr>
89
+ <td class="normalLabel"><span fckLang="DlgSpellChangeTo">Change to:</span></td>
90
+ </tr>
91
+ <tr valign="top">
92
+ <td>
93
+ <table border="0" cellpadding="0" cellspacing="0" border="0">
94
+ <tr>
95
+ <td class="normalLabel">
96
+ <input class="textDefault" type="text" name="txtsugg" />
97
+ </td>
98
+ </tr>
99
+ <tr>
100
+ <td>
101
+ <select class="suggSlct" name="sugg" size="7" onChange="suggText();" onDblClick="replace_word();">
102
+ <option></option>
103
+ </select>
104
+ </td>
105
+ </tr>
106
+ </table>
107
+ </td>
108
+ <td>&nbsp;&nbsp;</td>
109
+ <td>
110
+ <table border="0" cellpadding="0" cellspacing="0" border="0">
111
+ <tr>
112
+ <td>
113
+ <input class="buttonDefault" type="button" fckLang="DlgSpellBtnIgnore" value="Ignore" onClick="ignore_word();">
114
+ </td>
115
+ <td>&nbsp;&nbsp;</td>
116
+ <td>
117
+ <input class="buttonDefault" type="button" fckLang="DlgSpellBtnIgnoreAll" value="Ignore All" onClick="ignore_all();">
118
+ </td>
119
+ </tr>
120
+ <tr>
121
+ <td colspan="3" height="5"></td>
122
+ </tr>
123
+ <tr>
124
+ <td>
125
+ <input class="buttonDefault" type="button" fckLang="DlgSpellBtnReplace" value="Replace" onClick="replace_word();">
126
+ </td>
127
+ <td>&nbsp;&nbsp;</td>
128
+ <td>
129
+ <input class="buttonDefault" type="button" fckLang="DlgSpellBtnReplaceAll" value="Replace All" onClick="replace_all();">
130
+ </td>
131
+ </tr>
132
+ <tr>
133
+ <td colspan="3" height="5"></td>
134
+ </tr>
135
+ <tr>
136
+ <td>
137
+ <input class="buttonDefault" type="button" name="btnUndo" fckLang="DlgSpellBtnUndo" value="Undo" onClick="undo();"
138
+ disabled>
139
+ </td>
140
+ <td>&nbsp;&nbsp;</td>
141
+ <td>
142
+ <!-- by FredCK
143
+ <input class="buttonDefault" type="button" value="Close" onClick="end_spell();">
144
+ -->
145
+ </td>
146
+ </tr>
147
+ </table>
148
+ </td>
149
+ </tr>
150
+ </table>
151
+ </form>
152
+ </body>
153
+ </html>
@@ -0,0 +1,148 @@
1
+ <cfsetting enablecfoutputonly="true">
2
+ <!---
3
+ This code uses a CF User Defined Function and should work in CF version 5.0
4
+ and up without alteration.
5
+
6
+ Also if you are hosting your site at an ISP, you will have to check with them
7
+ to see if the use of <CFEXECUTE> is allowed. In most cases ISP will not allow
8
+ the use of that tag for security reasons. Clients would be able to access each
9
+ others files in certain cases.
10
+ --->
11
+
12
+ <!--- The following variables values must reflect your installation. --->
13
+ <cfset aspell_dir = "C:\Program Files\Aspell\bin">
14
+ <cfset lang = "en_US">
15
+ <cfset aspell_opts = "-a --lang=#lang# --encoding=utf-8 -H --rem-sgml-check=alt">
16
+ <cfset tempfile_in = GetTempFile(GetTempDirectory(), "spell_")>
17
+ <cfset tempfile_out = GetTempFile(GetTempDirectory(), "spell_")>
18
+ <cfset spellercss = "../spellerStyle.css">
19
+ <cfset word_win_src = "../wordWindow.js">
20
+
21
+ <cfset form.checktext = form["textinputs[]"]>
22
+
23
+ <!--- make no difference between URL and FORM scopes --->
24
+ <cfparam name="url.checktext" default="">
25
+ <cfparam name="form.checktext" default="#url.checktext#">
26
+
27
+ <!--- Takes care of those pesky smart quotes from MS apps, replaces them with regular quotes --->
28
+ <cfset submitted_text = ReplaceList(form.checktext,"%u201C,%u201D","%22,%22")>
29
+
30
+ <!--- submitted_text now is ready for processing --->
31
+
32
+ <!--- use carat on each line to escape possible aspell commands --->
33
+ <cfset text = "">
34
+ <cfset CRLF = Chr(13) & Chr(10)>
35
+
36
+ <cfloop list="#submitted_text#" index="field" delimiters=",">
37
+ <cfset text = text & "%" & CRLF
38
+ & "^A" & CRLF
39
+ & "!" & CRLF>
40
+ <!--- Strip all tags for the text. (by FredCK - #339 / #681) --->
41
+ <cfset field = REReplace(URLDecode(field), "<[^>]+>", " ", "all")>
42
+ <cfloop list="#field#" index="line" delimiters="#CRLF#">
43
+ <cfset text = ListAppend(text, "^" & Trim(JSStringFormat(line)), CRLF)>
44
+ </cfloop>
45
+ </cfloop>
46
+
47
+ <!--- create temp file from the submitted text, this will be passed to aspell to be check for misspelled words --->
48
+ <cffile action="write" file="#tempfile_in#" output="#text#" charset="utf-8">
49
+
50
+ <!--- execute aspell in an UTF-8 console and redirect output to a file. UTF-8 encoding is lost if done differently --->
51
+ <cfexecute name="cmd.exe" arguments='/c type "#tempfile_in#" | "#aspell_dir#\aspell.exe" #aspell_opts# > "#tempfile_out#"' timeout="100"/>
52
+
53
+ <!--- read output file for further processing --->
54
+ <cffile action="read" file="#tempfile_out#" variable="food" charset="utf-8">
55
+
56
+ <!--- remove temp files --->
57
+ <cffile action="delete" file="#tempfile_in#">
58
+ <cffile action="delete" file="#tempfile_out#">
59
+
60
+ <cfset texts = StructNew()>
61
+ <cfset texts.textinputs = "">
62
+ <cfset texts.words = "">
63
+ <cfset texts.abort = "">
64
+
65
+ <!--- Generate Text Inputs --->
66
+ <cfset i = 0>
67
+ <cfloop list="#submitted_text#" index="textinput">
68
+ <cfset texts.textinputs = ListAppend(texts.textinputs, 'textinputs[#i#] = decodeURIComponent("#textinput#");', CRLF)>
69
+ <cfset i = i + 1>
70
+ </cfloop>
71
+
72
+ <!--- Generate Words Lists --->
73
+ <cfset word_cnt = 0>
74
+ <cfset input_cnt = -1>
75
+ <cfloop list="#food#" index="aspell_line" delimiters="#CRLF#">
76
+ <cfset leftChar = Left(aspell_line, 1)>
77
+ <cfif leftChar eq "*">
78
+ <cfset input_cnt = input_cnt + 1>
79
+ <cfset word_cnt = 0>
80
+ <cfset texts.words = ListAppend(texts.words, "words[#input_cnt#] = [];", CRLF)>
81
+ <cfset texts.words = ListAppend(texts.words, "suggs[#input_cnt#] = [];", CRLF)>
82
+ <cfelse>
83
+ <cfif leftChar eq "&" or leftChar eq "##">
84
+ <!--- word that misspelled --->
85
+ <cfset bad_word = Trim(ListGetAt(aspell_line, 2, " "))>
86
+ <cfset bad_word = Replace(bad_word, "'", "\'", "ALL")>
87
+ <!--- sugestions --->
88
+ <cfset sug_list = Trim(ListRest(aspell_line, ":"))>
89
+ <cfset sug_list = ListQualify(Replace(sug_list, "'", "\'", "ALL"), "'")>
90
+ <!--- javascript --->
91
+ <cfset texts.words = ListAppend(texts.words, "words[#input_cnt#][#word_cnt#] = '#bad_word#';", CRLF)>
92
+ <cfset texts.words = ListAppend(texts.words, "suggs[#input_cnt#][#word_cnt#] = [#sug_list#];", CRLF)>
93
+ <cfset word_cnt = word_cnt + 1>
94
+ </cfif>
95
+ </cfif>
96
+ </cfloop>
97
+
98
+ <cfif texts.words eq "">
99
+ <cfset texts.abort = "alert('Spell check complete.\n\nNo misspellings found.'); top.window.close();">
100
+ </cfif>
101
+
102
+ <cfcontent type="text/html; charset=utf-8">
103
+
104
+ <cfoutput><html>
105
+ <head>
106
+ <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
107
+ <link rel="stylesheet" type="text/css" href="#spellercss#" />
108
+ <script language="javascript" src="#word_win_src#"></script>
109
+ <script language="javascript">
110
+ var suggs = new Array();
111
+ var words = new Array();
112
+ var textinputs = new Array();
113
+ var error;
114
+
115
+ #texts.textinputs##CRLF#
116
+ #texts.words#
117
+ #texts.abort#
118
+
119
+ var wordWindowObj = new wordWindow();
120
+ wordWindowObj.originalSpellings = words;
121
+ wordWindowObj.suggestions = suggs;
122
+ wordWindowObj.textInputs = textinputs;
123
+
124
+ function init_spell() {
125
+ // check if any error occured during server-side processing
126
+ if( error ) {
127
+ alert( error );
128
+ } else {
129
+ // call the init_spell() function in the parent frameset
130
+ if (parent.frames.length) {
131
+ parent.init_spell( wordWindowObj );
132
+ } else {
133
+ alert('This page was loaded outside of a frameset. It might not display properly');
134
+ }
135
+ }
136
+ }
137
+ </script>
138
+
139
+ </head>
140
+ <body onLoad="init_spell();">
141
+
142
+ <script type="text/javascript">
143
+ wordWindowObj.writeBody();
144
+ </script>
145
+
146
+ </body>
147
+ </html></cfoutput>
148
+ <cfsetting enablecfoutputonly="false">
@@ -0,0 +1,199 @@
1
+ <?php
2
+ header('Content-type: text/html; charset=utf-8');
3
+
4
+ // The following variables values must reflect your installation needs.
5
+
6
+ $aspell_prog = '"C:\Program Files\Aspell\bin\aspell.exe"'; // by FredCK (for Windows)
7
+ //$aspell_prog = 'aspell'; // by FredCK (for Linux)
8
+
9
+ $lang = 'en_US';
10
+ $aspell_opts = "-a --lang=$lang --encoding=utf-8 -H --rem-sgml-check=alt"; // by FredCK
11
+
12
+ $tempfiledir = "./";
13
+
14
+ $spellercss = '../spellerStyle.css'; // by FredCK
15
+ $word_win_src = '../wordWindow.js'; // by FredCK
16
+
17
+ $textinputs = $_POST['textinputs']; # array
18
+ $input_separator = "A";
19
+
20
+ # set the JavaScript variable to the submitted text.
21
+ # textinputs is an array, each element corresponding to the (url-encoded)
22
+ # value of the text control submitted for spell-checking
23
+ function print_textinputs_var() {
24
+ global $textinputs;
25
+ foreach( $textinputs as $key=>$val ) {
26
+ # $val = str_replace( "'", "%27", $val );
27
+ echo "textinputs[$key] = decodeURIComponent(\"" . $val . "\");\n";
28
+ }
29
+ }
30
+
31
+ # make declarations for the text input index
32
+ function print_textindex_decl( $text_input_idx ) {
33
+ echo "words[$text_input_idx] = [];\n";
34
+ echo "suggs[$text_input_idx] = [];\n";
35
+ }
36
+
37
+ # set an element of the JavaScript 'words' array to a misspelled word
38
+ function print_words_elem( $word, $index, $text_input_idx ) {
39
+ echo "words[$text_input_idx][$index] = '" . escape_quote( $word ) . "';\n";
40
+ }
41
+
42
+
43
+ # set an element of the JavaScript 'suggs' array to a list of suggestions
44
+ function print_suggs_elem( $suggs, $index, $text_input_idx ) {
45
+ echo "suggs[$text_input_idx][$index] = [";
46
+ foreach( $suggs as $key=>$val ) {
47
+ if( $val ) {
48
+ echo "'" . escape_quote( $val ) . "'";
49
+ if ( $key+1 < count( $suggs )) {
50
+ echo ", ";
51
+ }
52
+ }
53
+ }
54
+ echo "];\n";
55
+ }
56
+
57
+ # escape single quote
58
+ function escape_quote( $str ) {
59
+ return preg_replace ( "/'/", "\\'", $str );
60
+ }
61
+
62
+
63
+ # handle a server-side error.
64
+ function error_handler( $err ) {
65
+ echo "error = '" . preg_replace( "/['\\\\]/", "\\\\$0", $err ) . "';\n";
66
+ }
67
+
68
+ ## get the list of misspelled words. Put the results in the javascript words array
69
+ ## for each misspelled word, get suggestions and put in the javascript suggs array
70
+ function print_checker_results() {
71
+
72
+ global $aspell_prog;
73
+ global $aspell_opts;
74
+ global $tempfiledir;
75
+ global $textinputs;
76
+ global $input_separator;
77
+ $aspell_err = "";
78
+ # create temp file
79
+ $tempfile = tempnam( $tempfiledir, 'aspell_data_' );
80
+
81
+ # open temp file, add the submitted text.
82
+ if( $fh = fopen( $tempfile, 'w' )) {
83
+ for( $i = 0; $i < count( $textinputs ); $i++ ) {
84
+ $text = urldecode( $textinputs[$i] );
85
+
86
+ // Strip all tags for the text. (by FredCK - #339 / #681)
87
+ $text = preg_replace( "/<[^>]+>/", " ", $text ) ;
88
+
89
+ $lines = explode( "\n", $text );
90
+ fwrite ( $fh, "%\n" ); # exit terse mode
91
+ fwrite ( $fh, "^$input_separator\n" );
92
+ fwrite ( $fh, "!\n" ); # enter terse mode
93
+ foreach( $lines as $key=>$value ) {
94
+ # use carat on each line to escape possible aspell commands
95
+ fwrite( $fh, "^$value\n" );
96
+ }
97
+ }
98
+ fclose( $fh );
99
+
100
+ # exec aspell command - redirect STDERR to STDOUT
101
+ $cmd = "$aspell_prog $aspell_opts < $tempfile 2>&1";
102
+ if( $aspellret = shell_exec( $cmd )) {
103
+ $linesout = explode( "\n", $aspellret );
104
+ $index = 0;
105
+ $text_input_index = -1;
106
+ # parse each line of aspell return
107
+ foreach( $linesout as $key=>$val ) {
108
+ $chardesc = substr( $val, 0, 1 );
109
+ # if '&', then not in dictionary but has suggestions
110
+ # if '#', then not in dictionary and no suggestions
111
+ # if '*', then it is a delimiter between text inputs
112
+ # if '@' then version info
113
+ if( $chardesc == '&' || $chardesc == '#' ) {
114
+ $line = explode( " ", $val, 5 );
115
+ print_words_elem( $line[1], $index, $text_input_index );
116
+ if( isset( $line[4] )) {
117
+ $suggs = explode( ", ", $line[4] );
118
+ } else {
119
+ $suggs = array();
120
+ }
121
+ print_suggs_elem( $suggs, $index, $text_input_index );
122
+ $index++;
123
+ } elseif( $chardesc == '*' ) {
124
+ $text_input_index++;
125
+ print_textindex_decl( $text_input_index );
126
+ $index = 0;
127
+ } elseif( $chardesc != '@' && $chardesc != "" ) {
128
+ # assume this is error output
129
+ $aspell_err .= $val;
130
+ }
131
+ }
132
+ if( $aspell_err ) {
133
+ $aspell_err = "Error executing `$cmd`\\n$aspell_err";
134
+ error_handler( $aspell_err );
135
+ }
136
+ } else {
137
+ error_handler( "System error: Aspell program execution failed (`$cmd`)" );
138
+ }
139
+ } else {
140
+ error_handler( "System error: Could not open file '$tempfile' for writing" );
141
+ }
142
+
143
+ # close temp file, delete file
144
+ unlink( $tempfile );
145
+ }
146
+
147
+
148
+ ?>
149
+ <html>
150
+ <head>
151
+ <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
152
+ <link rel="stylesheet" type="text/css" href="<?php echo $spellercss ?>" />
153
+ <script language="javascript" src="<?php echo $word_win_src ?>"></script>
154
+ <script language="javascript">
155
+ var suggs = new Array();
156
+ var words = new Array();
157
+ var textinputs = new Array();
158
+ var error;
159
+ <?php
160
+
161
+ print_textinputs_var();
162
+
163
+ print_checker_results();
164
+
165
+ ?>
166
+
167
+ var wordWindowObj = new wordWindow();
168
+ wordWindowObj.originalSpellings = words;
169
+ wordWindowObj.suggestions = suggs;
170
+ wordWindowObj.textInputs = textinputs;
171
+
172
+ function init_spell() {
173
+ // check if any error occured during server-side processing
174
+ if( error ) {
175
+ alert( error );
176
+ } else {
177
+ // call the init_spell() function in the parent frameset
178
+ if (parent.frames.length) {
179
+ parent.init_spell( wordWindowObj );
180
+ } else {
181
+ alert('This page was loaded outside of a frameset. It might not display properly');
182
+ }
183
+ }
184
+ }
185
+
186
+
187
+
188
+ </script>
189
+
190
+ </head>
191
+ <!-- <body onLoad="init_spell();"> by FredCK -->
192
+ <body onLoad="init_spell();" bgcolor="#ffffff">
193
+
194
+ <script type="text/javascript">
195
+ wordWindowObj.writeBody();
196
+ </script>
197
+
198
+ </body>
199
+ </html>