typo 5.3 → 5.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (1662) hide show
  1. data/CHANGELOG +30 -627
  2. data/app/controllers/accounts_controller.rb +28 -8
  3. data/app/controllers/admin/base_controller.rb +0 -2
  4. data/app/controllers/admin/blacklist_controller.rb +1 -1
  5. data/app/controllers/admin/categories_controller.rb +1 -1
  6. data/app/controllers/admin/content_controller.rb +40 -20
  7. data/app/controllers/admin/dashboard_controller.rb +2 -0
  8. data/app/controllers/admin/feedback_controller.rb +5 -4
  9. data/app/controllers/admin/pages_controller.rb +1 -3
  10. data/app/controllers/admin/previews_controller.rb +10 -0
  11. data/app/controllers/admin/profiles_controller.rb +9 -27
  12. data/app/controllers/admin/resources_controller.rb +1 -4
  13. data/app/controllers/admin/settings_controller.rb +11 -5
  14. data/app/controllers/admin/tags_controller.rb +1 -1
  15. data/app/controllers/admin/themes_controller.rb +2 -0
  16. data/app/controllers/admin/users_controller.rb +6 -15
  17. data/app/controllers/application_controller.rb +76 -0
  18. data/app/controllers/articles_controller.rb +4 -8
  19. data/app/controllers/authors_controller.rb +21 -0
  20. data/app/controllers/backend_controller.rb +0 -1
  21. data/app/controllers/content_controller.rb +1 -5
  22. data/app/controllers/feedback_controller.rb +0 -1
  23. data/app/controllers/grouping_controller.rb +29 -7
  24. data/app/controllers/previews_controller.rb +10 -0
  25. data/app/controllers/redirect_controller.rb +3 -1
  26. data/app/controllers/theme_controller.rb +0 -4
  27. data/app/controllers/xml_controller.rb +7 -5
  28. data/app/helpers/admin/base_helper.rb +19 -13
  29. data/app/helpers/admin/users_helper.rb +12 -0
  30. data/app/helpers/application_helper.rb +20 -58
  31. data/app/helpers/articles_helper.rb +2 -2
  32. data/app/helpers/authors_helper.rb +5 -0
  33. data/app/models/article.rb +14 -28
  34. data/app/models/blog.rb +6 -38
  35. data/app/models/category.rb +2 -6
  36. data/app/models/content.rb +24 -18
  37. data/app/models/page.rb +0 -2
  38. data/app/models/page_cache.rb +4 -7
  39. data/app/models/sidebar.rb +6 -6
  40. data/app/models/text_filter.rb +1 -6
  41. data/app/models/theme.rb +7 -2
  42. data/app/models/trackback.rb +1 -5
  43. data/app/models/user.rb +13 -3
  44. data/app/views/accounts/confirm.html.erb +16 -0
  45. data/app/views/accounts/login.html.erb +30 -7
  46. data/app/views/accounts/signup.html.erb +16 -31
  47. data/app/views/admin/blacklist/_blacklist_patterns.html.erb +2 -1
  48. data/app/views/admin/blacklist/_form.html.erb +1 -1
  49. data/app/views/admin/blacklist/destroy.html.erb +7 -7
  50. data/app/views/admin/categories/_categories.html.erb +0 -4
  51. data/app/views/admin/categories/_form.html.erb +18 -20
  52. data/app/views/admin/categories/new.html.erb +5 -8
  53. data/app/views/admin/content/_article_list.html.erb +1 -5
  54. data/app/views/admin/content/_drafts.html.erb +4 -4
  55. data/app/views/admin/content/_form.html.erb +97 -87
  56. data/app/views/admin/content/_simple_editor.html.erb +4 -4
  57. data/app/views/admin/content/_visual_editor.html.erb +6 -5
  58. data/app/views/admin/content/index.html.erb +3 -5
  59. data/app/views/admin/content/new.html.erb +1 -1
  60. data/app/views/admin/dashboard/_comments.html.erb +2 -3
  61. data/app/views/admin/dashboard/_inbound.html.erb +2 -5
  62. data/app/views/admin/dashboard/_popular.html.erb +1 -1
  63. data/app/views/admin/dashboard/_posts.html.erb +1 -2
  64. data/app/views/admin/dashboard/_sysinfo.html.erb +4 -6
  65. data/app/views/admin/dashboard/_typo_dev.html.erb +4 -4
  66. data/app/views/admin/dashboard/_welcome.html.erb +3 -3
  67. data/app/views/admin/dashboard/index.html.erb +14 -8
  68. data/app/views/admin/feedback/_button.html.erb +6 -6
  69. data/app/views/admin/feedback/_form.html.erb +29 -18
  70. data/app/views/admin/feedback/article.html.erb +1 -1
  71. data/app/views/admin/feedback/index.html.erb +18 -10
  72. data/app/views/admin/pages/_form.html.erb +65 -47
  73. data/app/views/admin/pages/_pages.html.erb +1 -3
  74. data/app/views/admin/pages/_visual_editor.html.erb +1 -1
  75. data/app/views/admin/profiles/index.html.erb +6 -0
  76. data/app/views/admin/resources/_resources.html.erb +3 -6
  77. data/app/views/admin/resources/index.html.erb +14 -9
  78. data/app/views/admin/settings/_submit.html.erb +2 -2
  79. data/app/views/admin/settings/feedback.html.erb +96 -90
  80. data/app/views/admin/settings/index.html.erb +78 -46
  81. data/app/views/admin/settings/seo.html.erb +72 -63
  82. data/app/views/admin/settings/write.html.erb +21 -29
  83. data/app/views/admin/sidebar/index.html.erb +2 -2
  84. data/app/views/admin/tags/index.html.erb +18 -9
  85. data/app/views/admin/themes/catalogue.html.erb +6 -14
  86. data/app/views/admin/themes/index.html.erb +6 -12
  87. data/app/views/admin/users/_form.html.erb +181 -63
  88. data/app/views/admin/users/edit.html.erb +2 -5
  89. data/app/views/admin/users/index.html.erb +24 -29
  90. data/app/views/admin/users/new.html.erb +1 -5
  91. data/app/views/articles/_article.html.erb +15 -1
  92. data/app/views/articles/_atom_feed.atom.builder +1 -1
  93. data/app/views/articles/_rss20_feed.rss.builder +4 -2
  94. data/app/views/articles/read.html.erb +3 -3
  95. data/app/views/articles/search.html.erb +1 -1
  96. data/app/views/authors/show.html.erb +37 -0
  97. data/app/views/layouts/accounts.html.erb +3 -4
  98. data/app/views/layouts/administration.html.erb +29 -32
  99. data/app/views/shared/_search.html.erb +10 -0
  100. data/app/views/xml/_atom10_item_article.atom.builder +1 -3
  101. data/bin/typo +4 -0
  102. data/config/boot.rb +3 -2
  103. data/config/environment.rb +32 -109
  104. data/config/environments/cucumber.rb +23 -0
  105. data/config/environments/development.rb +1 -1
  106. data/config/environments/test.rb +5 -0
  107. data/config/initializers/access_rules.rb +20 -23
  108. data/config/locales/nl.rb +103 -0
  109. data/config/routes.rb +10 -4
  110. data/db/migrate/001_initial_schema.rb +4 -0
  111. data/db/migrate/057_add_categorization_model.rb +12 -5
  112. data/db/migrate/060_cleanup_contents_table.rb +9 -1
  113. data/db/migrate/067_remove_blog_ids.rb +9 -1
  114. data/db/migrate/075_move_editor_to_user.rb +1 -11
  115. data/db/migrate/078_add_textfilter_to_users.rb +1 -5
  116. data/db/migrate/079_move_editor_as_string.rb +1 -5
  117. data/db/migrate/080_add_state_to_user.rb +1 -5
  118. data/db/migrate/082_add_users_options.rb +35 -0
  119. data/db/migrate/083_add_users_display_perms.rb +19 -0
  120. data/db/migrate/084_move_users_to_profiles.rb +19 -0
  121. data/db/migrate/085_add_article_parent_draft.rb +9 -0
  122. data/db/migrate/086_add_user_last_connection.rb +9 -0
  123. data/db/schema.rb +18 -2
  124. data/doc/test_themes.rb +50 -0
  125. data/lang/fr_FR.rb +593 -538
  126. data/lang/he_IL.rb +2 -2
  127. data/lang/ja_JP.rb +449 -295
  128. data/lang/nl_NL.rb +657 -0
  129. data/lang/zh_TW.rb +597 -0
  130. data/lib/stateful.rb +1 -1
  131. data/lib/tasks/cucumber.rake +20 -0
  132. data/lib/tasks/release.rake +9 -5
  133. data/lib/tasks/rspec.rake +69 -44
  134. data/lib/tasks/sweep_cache.rake +0 -1
  135. data/lib/typo_version.rb +1 -1
  136. data/public/images/admin/blue_block_bottom_left.jpg +0 -0
  137. data/public/images/admin/blue_block_bottom_right.jpg +0 -0
  138. data/public/images/admin/blue_block_top_left.jpg +0 -0
  139. data/public/images/admin/blue_block_top_right.jpg +0 -0
  140. data/public/images/admin/editor_active_top_left.jpg +0 -0
  141. data/public/images/admin/editor_active_top_right.jpg +0 -0
  142. data/public/images/admin/editor_bottom_left.jpg +0 -0
  143. data/public/images/admin/editor_bottom_right.jpg +0 -0
  144. data/public/images/admin/input_text_left.jpg +0 -0
  145. data/public/images/admin/input_text_right.jpg +0 -0
  146. data/public/images/admin/input_text_small_left.jpg +0 -0
  147. data/public/images/admin/input_text_small_right.jpg +0 -0
  148. data/public/images/admin/publisher_bottom.jpg +0 -0
  149. data/public/images/admin/publisher_top.jpg +0 -0
  150. data/public/images/close.gif +0 -0
  151. data/public/images/loading.gif +0 -0
  152. data/public/images/nextlabel.gif +0 -0
  153. data/public/images/prevlabel.gif +0 -0
  154. data/public/javascripts/administration.js +1 -10
  155. data/public/javascripts/builder.js +136 -0
  156. data/public/javascripts/ckcustom.js +27 -0
  157. data/public/javascripts/ckeditor/.htaccess +24 -0
  158. data/public/javascripts/ckeditor/CHANGES.html +254 -0
  159. data/public/javascripts/ckeditor/INSTALL.html +92 -0
  160. data/public/javascripts/ckeditor/LICENSE.html +1334 -0
  161. data/public/javascripts/ckeditor/ckeditor.js +108 -0
  162. data/public/javascripts/ckeditor/ckeditor.pack +199 -0
  163. data/public/javascripts/ckeditor/ckeditor_basic.js +8 -0
  164. data/public/javascripts/ckeditor/ckeditor_basic_source.js +20 -0
  165. data/public/javascripts/ckeditor/ckeditor_source.js +25 -0
  166. data/public/javascripts/ckeditor/config.bak +11 -0
  167. data/public/javascripts/ckeditor/config.js +27 -0
  168. data/public/javascripts/ckeditor/contents.css +35 -0
  169. data/public/javascripts/{fckeditor/editor → ckeditor}/images/spacer.gif +0 -0
  170. data/public/javascripts/ckeditor/lang/_languages.js +6 -0
  171. data/public/javascripts/ckeditor/lang/_translationstatus.txt +59 -0
  172. data/public/javascripts/ckeditor/lang/af.js +6 -0
  173. data/public/javascripts/ckeditor/lang/ar.js +6 -0
  174. data/public/javascripts/ckeditor/lang/bg.js +6 -0
  175. data/public/javascripts/ckeditor/lang/bn.js +6 -0
  176. data/public/javascripts/ckeditor/lang/bs.js +6 -0
  177. data/public/javascripts/ckeditor/lang/ca.js +6 -0
  178. data/public/javascripts/ckeditor/lang/cs.js +6 -0
  179. data/public/javascripts/ckeditor/lang/da.js +6 -0
  180. data/public/javascripts/ckeditor/lang/de.js +6 -0
  181. data/public/javascripts/ckeditor/lang/el.js +6 -0
  182. data/public/javascripts/ckeditor/lang/en-au.js +6 -0
  183. data/public/javascripts/ckeditor/lang/en-ca.js +6 -0
  184. data/public/javascripts/ckeditor/lang/en-uk.js +6 -0
  185. data/public/javascripts/ckeditor/lang/en.js +6 -0
  186. data/public/javascripts/ckeditor/lang/eo.js +6 -0
  187. data/public/javascripts/ckeditor/lang/es.js +6 -0
  188. data/public/javascripts/ckeditor/lang/et.js +6 -0
  189. data/public/javascripts/ckeditor/lang/eu.js +6 -0
  190. data/public/javascripts/ckeditor/lang/fa.js +6 -0
  191. data/public/javascripts/ckeditor/lang/fi.js +6 -0
  192. data/public/javascripts/ckeditor/lang/fo.js +6 -0
  193. data/public/javascripts/ckeditor/lang/fr-ca.js +6 -0
  194. data/public/javascripts/ckeditor/lang/fr.js +6 -0
  195. data/public/javascripts/ckeditor/lang/gl.js +6 -0
  196. data/public/javascripts/ckeditor/lang/gu.js +6 -0
  197. data/public/javascripts/ckeditor/lang/he.js +6 -0
  198. data/public/javascripts/ckeditor/lang/hi.js +6 -0
  199. data/public/javascripts/ckeditor/lang/hr.js +6 -0
  200. data/public/javascripts/ckeditor/lang/hu.js +6 -0
  201. data/public/javascripts/ckeditor/lang/is.js +6 -0
  202. data/public/javascripts/ckeditor/lang/it.js +6 -0
  203. data/public/javascripts/ckeditor/lang/ja.js +6 -0
  204. data/public/javascripts/ckeditor/lang/km.js +6 -0
  205. data/public/javascripts/ckeditor/lang/ko.js +6 -0
  206. data/public/javascripts/ckeditor/lang/lt.js +6 -0
  207. data/public/javascripts/ckeditor/lang/lv.js +6 -0
  208. data/public/javascripts/ckeditor/lang/mn.js +6 -0
  209. data/public/javascripts/ckeditor/lang/ms.js +6 -0
  210. data/public/javascripts/ckeditor/lang/nb.js +6 -0
  211. data/public/javascripts/ckeditor/lang/nl.js +6 -0
  212. data/public/javascripts/ckeditor/lang/no.js +6 -0
  213. data/public/javascripts/ckeditor/lang/pl.js +6 -0
  214. data/public/javascripts/ckeditor/lang/pt-br.js +6 -0
  215. data/public/javascripts/ckeditor/lang/pt.js +6 -0
  216. data/public/javascripts/ckeditor/lang/ro.js +6 -0
  217. data/public/javascripts/ckeditor/lang/ru.js +6 -0
  218. data/public/javascripts/ckeditor/lang/sk.js +6 -0
  219. data/public/javascripts/ckeditor/lang/sl.js +6 -0
  220. data/public/javascripts/ckeditor/lang/sr-latn.js +6 -0
  221. data/public/javascripts/ckeditor/lang/sr.js +6 -0
  222. data/public/javascripts/ckeditor/lang/sv.js +6 -0
  223. data/public/javascripts/ckeditor/lang/th.js +6 -0
  224. data/public/javascripts/ckeditor/lang/tr.js +6 -0
  225. data/public/javascripts/ckeditor/lang/uk.js +6 -0
  226. data/public/javascripts/ckeditor/lang/vi.js +6 -0
  227. data/public/javascripts/ckeditor/lang/zh-cn.js +6 -0
  228. data/public/javascripts/ckeditor/lang/zh.js +6 -0
  229. data/public/javascripts/ckeditor/plugins/about/dialogs/about.js +6 -0
  230. data/public/javascripts/ckeditor/plugins/about/dialogs/logo_ckeditor.png +0 -0
  231. data/public/javascripts/ckeditor/plugins/about/plugin.js +6 -0
  232. data/public/javascripts/ckeditor/plugins/basicstyles/plugin.js +6 -0
  233. data/public/javascripts/ckeditor/plugins/blockquote/plugin.js +7 -0
  234. data/public/javascripts/ckeditor/plugins/button/plugin.js +7 -0
  235. data/public/javascripts/ckeditor/plugins/clipboard/dialogs/paste.js +7 -0
  236. data/public/javascripts/ckeditor/plugins/clipboard/plugin.js +6 -0
  237. data/public/javascripts/ckeditor/plugins/colorbutton/plugin.js +7 -0
  238. data/public/javascripts/ckeditor/plugins/colordialog/dialogs/colordialog.js +6 -0
  239. data/public/javascripts/ckeditor/plugins/colordialog/plugin.js +6 -0
  240. data/public/javascripts/ckeditor/plugins/contextmenu/plugin.js +6 -0
  241. data/public/javascripts/ckeditor/plugins/dialog/dialogDefinition.js +4 -0
  242. data/public/javascripts/ckeditor/plugins/dialog/plugin.js +17 -0
  243. data/public/javascripts/ckeditor/plugins/dialogui/plugin.js +11 -0
  244. data/public/javascripts/ckeditor/plugins/domiterator/plugin.js +7 -0
  245. data/public/javascripts/ckeditor/plugins/editingblock/plugin.js +6 -0
  246. data/public/javascripts/ckeditor/plugins/elementspath/plugin.js +6 -0
  247. data/public/javascripts/ckeditor/plugins/enterkey/plugin.js +7 -0
  248. data/public/javascripts/ckeditor/plugins/entities/plugin.js +6 -0
  249. data/public/javascripts/ckeditor/plugins/fakeobjects/plugin.js +6 -0
  250. data/public/javascripts/ckeditor/plugins/filebrowser/plugin.js +7 -0
  251. data/public/javascripts/ckeditor/plugins/find/dialogs/find.js +9 -0
  252. data/public/javascripts/ckeditor/plugins/find/plugin.js +6 -0
  253. data/public/javascripts/ckeditor/plugins/flash/dialogs/flash.js +9 -0
  254. data/public/javascripts/ckeditor/plugins/flash/images/placeholder.png +0 -0
  255. data/public/javascripts/ckeditor/plugins/flash/plugin.js +6 -0
  256. data/public/javascripts/ckeditor/plugins/floatpanel/plugin.js +7 -0
  257. data/public/javascripts/ckeditor/plugins/font/plugin.js +6 -0
  258. data/public/javascripts/ckeditor/plugins/format/plugin.js +6 -0
  259. data/public/javascripts/ckeditor/plugins/forms/dialogs/button.js +6 -0
  260. data/public/javascripts/ckeditor/plugins/forms/dialogs/checkbox.js +6 -0
  261. data/public/javascripts/ckeditor/plugins/forms/dialogs/form.js +6 -0
  262. data/public/javascripts/ckeditor/plugins/forms/dialogs/hiddenfield.js +6 -0
  263. data/public/javascripts/ckeditor/plugins/forms/dialogs/radio.js +6 -0
  264. data/public/javascripts/ckeditor/plugins/forms/dialogs/select.js +9 -0
  265. data/public/javascripts/ckeditor/plugins/forms/dialogs/textarea.js +6 -0
  266. data/public/javascripts/ckeditor/plugins/forms/dialogs/textfield.js +6 -0
  267. data/public/javascripts/ckeditor/plugins/forms/plugin.js +7 -0
  268. data/public/javascripts/ckeditor/plugins/horizontalrule/plugin.js +6 -0
  269. data/public/javascripts/ckeditor/plugins/htmldataprocessor/plugin.js +7 -0
  270. data/public/javascripts/ckeditor/plugins/htmlwriter/plugin.js +6 -0
  271. data/public/javascripts/ckeditor/plugins/iframedialog/plugin.js +6 -0
  272. data/public/javascripts/ckeditor/plugins/image/dialogs/image.js +12 -0
  273. data/public/javascripts/ckeditor/plugins/image/plugin.js +6 -0
  274. data/public/javascripts/ckeditor/plugins/indent/plugin.js +7 -0
  275. data/public/javascripts/ckeditor/plugins/justify/plugin.js +6 -0
  276. data/public/javascripts/ckeditor/plugins/keystrokes/plugin.js +6 -0
  277. data/public/javascripts/ckeditor/plugins/link/dialogs/anchor.js +6 -0
  278. data/public/javascripts/ckeditor/plugins/link/dialogs/link.js +11 -0
  279. data/public/javascripts/{fckeditor/editor → ckeditor/plugins/link}/images/anchor.gif +0 -0
  280. data/public/javascripts/ckeditor/plugins/link/plugin.js +6 -0
  281. data/public/javascripts/ckeditor/plugins/list/plugin.js +9 -0
  282. data/public/javascripts/ckeditor/plugins/listblock/plugin.js +7 -0
  283. data/public/javascripts/ckeditor/plugins/maximize/plugin.js +7 -0
  284. data/public/javascripts/ckeditor/plugins/menu/plugin.js +7 -0
  285. data/public/javascripts/ckeditor/plugins/menubutton/plugin.js +6 -0
  286. data/public/javascripts/ckeditor/plugins/newpage/plugin.js +6 -0
  287. data/public/javascripts/{fckeditor/editor/css/images/fck_pagebreak.gif → ckeditor/plugins/pagebreak/images/pagebreak.gif} +0 -0
  288. data/public/javascripts/ckeditor/plugins/pagebreak/plugin.js +6 -0
  289. data/public/javascripts/ckeditor/plugins/panel/plugin.js +7 -0
  290. data/public/javascripts/ckeditor/plugins/panelbutton/plugin.js +6 -0
  291. data/public/javascripts/ckeditor/plugins/pastefromword/dialogs/pastefromword.js +8 -0
  292. data/public/javascripts/ckeditor/plugins/pastefromword/plugin.js +6 -0
  293. data/public/javascripts/ckeditor/plugins/pastetext/dialogs/pastetext.js +6 -0
  294. data/public/javascripts/ckeditor/plugins/pastetext/plugin.js +6 -0
  295. data/public/javascripts/ckeditor/plugins/popup/plugin.js +6 -0
  296. data/public/javascripts/ckeditor/plugins/preview/plugin.js +6 -0
  297. data/public/javascripts/ckeditor/plugins/print/plugin.js +6 -0
  298. data/public/javascripts/ckeditor/plugins/removeformat/plugin.js +6 -0
  299. data/public/javascripts/ckeditor/plugins/resize/plugin.js +6 -0
  300. data/public/javascripts/ckeditor/plugins/richcombo/plugin.js +7 -0
  301. data/public/javascripts/ckeditor/plugins/save/plugin.js +6 -0
  302. data/public/javascripts/ckeditor/plugins/scayt/dialogs/options.js +8 -0
  303. data/public/javascripts/ckeditor/plugins/scayt/dialogs/toolbar.css +6 -0
  304. data/public/javascripts/ckeditor/plugins/scayt/plugin.js +8 -0
  305. data/public/javascripts/ckeditor/plugins/selection/plugin.js +9 -0
  306. data/public/javascripts/{fckeditor/editor/css → ckeditor/plugins/showblocks}/images/block_address.png +0 -0
  307. data/public/javascripts/{fckeditor/editor/css → ckeditor/plugins/showblocks}/images/block_blockquote.png +0 -0
  308. data/public/javascripts/{fckeditor/editor/css → ckeditor/plugins/showblocks}/images/block_div.png +0 -0
  309. data/public/javascripts/{fckeditor/editor/css → ckeditor/plugins/showblocks}/images/block_h1.png +0 -0
  310. data/public/javascripts/{fckeditor/editor/css → ckeditor/plugins/showblocks}/images/block_h2.png +0 -0
  311. data/public/javascripts/{fckeditor/editor/css → ckeditor/plugins/showblocks}/images/block_h3.png +0 -0
  312. data/public/javascripts/{fckeditor/editor/css → ckeditor/plugins/showblocks}/images/block_h4.png +0 -0
  313. data/public/javascripts/{fckeditor/editor/css → ckeditor/plugins/showblocks}/images/block_h5.png +0 -0
  314. data/public/javascripts/{fckeditor/editor/css → ckeditor/plugins/showblocks}/images/block_h6.png +0 -0
  315. data/public/javascripts/{fckeditor/editor/css → ckeditor/plugins/showblocks}/images/block_p.png +0 -0
  316. data/public/javascripts/{fckeditor/editor/css → ckeditor/plugins/showblocks}/images/block_pre.png +0 -0
  317. data/public/javascripts/ckeditor/plugins/showblocks/plugin.js +6 -0
  318. data/public/javascripts/ckeditor/plugins/smiley/dialogs/smiley.js +7 -0
  319. data/public/javascripts/ckeditor/plugins/smiley/images/angel_smile.gif +0 -0
  320. data/public/javascripts/ckeditor/plugins/smiley/images/angry_smile.gif +0 -0
  321. data/public/javascripts/ckeditor/plugins/smiley/images/broken_heart.gif +0 -0
  322. data/public/javascripts/ckeditor/plugins/smiley/images/confused_smile.gif +0 -0
  323. data/public/javascripts/ckeditor/plugins/smiley/images/cry_smile.gif +0 -0
  324. data/public/javascripts/ckeditor/plugins/smiley/images/devil_smile.gif +0 -0
  325. data/public/javascripts/ckeditor/plugins/smiley/images/embaressed_smile.gif +0 -0
  326. data/public/javascripts/ckeditor/plugins/smiley/images/envelope.gif +0 -0
  327. data/public/javascripts/ckeditor/plugins/smiley/images/heart.gif +0 -0
  328. data/public/javascripts/ckeditor/plugins/smiley/images/kiss.gif +0 -0
  329. data/public/javascripts/ckeditor/plugins/smiley/images/lightbulb.gif +0 -0
  330. data/public/javascripts/ckeditor/plugins/smiley/images/omg_smile.gif +0 -0
  331. data/public/javascripts/ckeditor/plugins/smiley/images/regular_smile.gif +0 -0
  332. data/public/javascripts/ckeditor/plugins/smiley/images/sad_smile.gif +0 -0
  333. data/public/javascripts/ckeditor/plugins/smiley/images/shades_smile.gif +0 -0
  334. data/public/javascripts/ckeditor/plugins/smiley/images/teeth_smile.gif +0 -0
  335. data/public/javascripts/ckeditor/plugins/smiley/images/thumbs_down.gif +0 -0
  336. data/public/javascripts/ckeditor/plugins/smiley/images/thumbs_up.gif +0 -0
  337. data/public/javascripts/ckeditor/plugins/smiley/images/tounge_smile.gif +0 -0
  338. data/public/javascripts/ckeditor/plugins/smiley/images/whatchutalkingabout_smile.gif +0 -0
  339. data/public/javascripts/ckeditor/plugins/smiley/images/wink_smile.gif +0 -0
  340. data/public/javascripts/ckeditor/plugins/smiley/plugin.js +6 -0
  341. data/public/javascripts/ckeditor/plugins/sourcearea/plugin.js +6 -0
  342. data/public/javascripts/ckeditor/plugins/specialchar/dialogs/specialchar.js +7 -0
  343. data/public/javascripts/ckeditor/plugins/specialchar/plugin.js +6 -0
  344. data/public/javascripts/ckeditor/plugins/styles/plugin.js +10 -0
  345. data/public/javascripts/ckeditor/plugins/stylescombo/plugin.js +7 -0
  346. data/public/javascripts/ckeditor/plugins/stylescombo/styles/default.js +6 -0
  347. data/public/javascripts/ckeditor/plugins/tab/plugin.js +6 -0
  348. data/public/javascripts/ckeditor/plugins/table/dialogs/table.js +8 -0
  349. data/public/javascripts/ckeditor/plugins/table/plugin.js +6 -0
  350. data/public/javascripts/ckeditor/plugins/tabletools/dialogs/tableCell.js +7 -0
  351. data/public/javascripts/ckeditor/plugins/tabletools/plugin.js +9 -0
  352. data/public/javascripts/ckeditor/plugins/templates/dialogs/templates.js +6 -0
  353. data/public/javascripts/ckeditor/plugins/templates/plugin.js +6 -0
  354. data/public/javascripts/ckeditor/plugins/templates/templates/default.js +6 -0
  355. data/public/javascripts/{fckeditor/editor/dialog/fck_template → ckeditor/plugins/templates/templates}/images/template1.gif +0 -0
  356. data/public/javascripts/{fckeditor/editor/dialog/fck_template → ckeditor/plugins/templates/templates}/images/template2.gif +0 -0
  357. data/public/javascripts/{fckeditor/editor/dialog/fck_template → ckeditor/plugins/templates/templates}/images/template3.gif +0 -0
  358. data/public/javascripts/ckeditor/plugins/toolbar/plugin.js +7 -0
  359. data/public/javascripts/ckeditor/plugins/uicolor/dialogs/uicolor.js +7 -0
  360. data/public/javascripts/ckeditor/plugins/uicolor/lang/en.js +6 -0
  361. data/public/javascripts/ckeditor/plugins/uicolor/plugin.js +6 -0
  362. data/public/javascripts/ckeditor/plugins/uicolor/uicolor.gif +0 -0
  363. data/public/javascripts/ckeditor/plugins/uicolor/yui/assets/hue_bg.png +0 -0
  364. data/public/javascripts/ckeditor/plugins/uicolor/yui/assets/hue_thumb.png +0 -0
  365. data/public/javascripts/ckeditor/plugins/uicolor/yui/assets/picker_mask.png +0 -0
  366. data/public/javascripts/ckeditor/plugins/uicolor/yui/assets/picker_thumb.png +0 -0
  367. data/public/javascripts/ckeditor/plugins/uicolor/yui/assets/yui.css +6 -0
  368. data/public/javascripts/ckeditor/plugins/uicolor/yui/yui.js +76 -0
  369. data/public/javascripts/ckeditor/plugins/undo/plugin.js +7 -0
  370. data/public/javascripts/ckeditor/plugins/wsc/dialogs/ciframe.html +49 -0
  371. data/public/javascripts/ckeditor/plugins/wsc/dialogs/tmpFrameset.html +52 -0
  372. data/public/javascripts/ckeditor/plugins/wsc/dialogs/wsc.css +6 -0
  373. data/public/javascripts/ckeditor/plugins/wsc/dialogs/wsc.js +7 -0
  374. data/public/javascripts/ckeditor/plugins/wsc/plugin.js +6 -0
  375. data/public/javascripts/ckeditor/plugins/wysiwygarea/plugin.js +8 -0
  376. data/public/javascripts/ckeditor/skins/kama/dialog.css +9 -0
  377. data/public/javascripts/ckeditor/skins/kama/editor.css +12 -0
  378. data/public/javascripts/ckeditor/skins/kama/icons.png +0 -0
  379. data/public/javascripts/ckeditor/skins/kama/images/dialog_sides.gif +0 -0
  380. data/public/javascripts/ckeditor/skins/kama/images/dialog_sides.png +0 -0
  381. data/public/javascripts/ckeditor/skins/kama/images/dialog_sides_rtl.png +0 -0
  382. data/public/javascripts/ckeditor/skins/kama/images/mini.gif +0 -0
  383. data/public/javascripts/ckeditor/skins/kama/images/noimage.png +0 -0
  384. data/public/javascripts/ckeditor/skins/kama/images/sprites.png +0 -0
  385. data/public/javascripts/ckeditor/skins/kama/images/sprites_ie6.png +0 -0
  386. data/public/javascripts/{fckeditor/editor/skins/silver/images/toolbar.start.gif → ckeditor/skins/kama/images/toolbar_start.gif} +0 -0
  387. data/public/javascripts/ckeditor/skins/kama/skin.js +7 -0
  388. data/public/javascripts/ckeditor/skins/kama/templates.css +6 -0
  389. data/public/javascripts/ckeditor/skins/office2003/dialog.css +8 -0
  390. data/public/javascripts/ckeditor/skins/office2003/editor.css +13 -0
  391. data/public/javascripts/ckeditor/skins/office2003/icons.png +0 -0
  392. data/public/javascripts/ckeditor/skins/office2003/images/dialog_sides.gif +0 -0
  393. data/public/javascripts/ckeditor/skins/office2003/images/dialog_sides.png +0 -0
  394. data/public/javascripts/ckeditor/skins/office2003/images/dialog_sides_rtl.png +0 -0
  395. data/public/javascripts/ckeditor/skins/office2003/images/mini.gif +0 -0
  396. data/public/javascripts/ckeditor/skins/office2003/images/noimage.png +0 -0
  397. data/public/javascripts/ckeditor/skins/office2003/images/sprites.png +0 -0
  398. data/public/javascripts/ckeditor/skins/office2003/images/sprites_ie6.png +0 -0
  399. data/public/javascripts/ckeditor/skins/office2003/skin.js +6 -0
  400. data/public/javascripts/ckeditor/skins/office2003/templates.css +6 -0
  401. data/public/javascripts/ckeditor/skins/v2/dialog.css +8 -0
  402. data/public/javascripts/ckeditor/skins/v2/editor.css +12 -0
  403. data/public/javascripts/ckeditor/skins/v2/icons.png +0 -0
  404. data/public/javascripts/ckeditor/skins/v2/images/dialog_sides.gif +0 -0
  405. data/public/javascripts/ckeditor/skins/v2/images/dialog_sides.png +0 -0
  406. data/public/javascripts/ckeditor/skins/v2/images/dialog_sides_rtl.png +0 -0
  407. data/public/javascripts/ckeditor/skins/v2/images/mini.gif +0 -0
  408. data/public/javascripts/ckeditor/skins/v2/images/noimage.png +0 -0
  409. data/public/javascripts/ckeditor/skins/v2/images/sprites.png +0 -0
  410. data/public/javascripts/ckeditor/skins/v2/images/sprites_ie6.png +0 -0
  411. data/public/javascripts/ckeditor/skins/v2/images/toolbar_start.gif +0 -0
  412. data/public/javascripts/ckeditor/skins/v2/skin.js +6 -0
  413. data/public/javascripts/ckeditor/skins/v2/templates.css +6 -0
  414. data/public/javascripts/ckeditor/themes/default/theme.js +7 -0
  415. data/public/javascripts/controls.js +72 -72
  416. data/public/javascripts/dragdrop.js +165 -164
  417. data/public/javascripts/effects.js +173 -165
  418. data/public/javascripts/lang/nl_NL.js +21 -0
  419. data/public/javascripts/lang/zh_TW.js +17 -0
  420. data/public/javascripts/lightbox.js +470 -175
  421. data/public/stylesheets/administration.css +404 -656
  422. data/public/stylesheets/border-radius-ie8.htc +34 -0
  423. data/public/stylesheets/lightbox.css +21 -56
  424. data/public/stylesheets/user-styles.css +4 -2
  425. data/script/autospec +1 -0
  426. data/script/spec +9 -3
  427. data/script/spec_server +5 -112
  428. data/spec/controllers/accounts_controller_spec.rb +30 -16
  429. data/spec/controllers/admin/blacklist_controller_spec.rb +7 -12
  430. data/spec/controllers/admin/cache_controller_spec.rb +0 -5
  431. data/spec/controllers/admin/categories_controller_spec.rb +11 -16
  432. data/spec/controllers/admin/content_controller_spec.rb +14 -19
  433. data/spec/controllers/admin/feedback_controller_spec.rb +12 -1
  434. data/spec/controllers/admin/pages_controller_spec.rb +20 -17
  435. data/spec/controllers/admin/profiles_controller_spec.rb +17 -8
  436. data/spec/controllers/admin/resources_controller_spec.rb +3 -14
  437. data/spec/controllers/admin/settings_controller_spec.rb +0 -5
  438. data/spec/controllers/admin/tags_controller_spec.rb +1 -7
  439. data/spec/controllers/admin/textfilters_controller_spec.rb +0 -5
  440. data/spec/controllers/admin/themes_controller_spec.rb +3 -3
  441. data/spec/controllers/admin/users_controller_spec.rb +59 -41
  442. data/spec/controllers/application_controller_spec.rb +18 -0
  443. data/spec/controllers/articles_controller_spec.rb +88 -39
  444. data/spec/controllers/authors_controller_spec.rb +42 -0
  445. data/spec/controllers/backend_controller_spec.rb +30 -35
  446. data/spec/controllers/categories_controller_spec.rb +20 -22
  447. data/spec/controllers/comments_controller_spec.rb +3 -3
  448. data/spec/controllers/previews_controller_spec.rb +28 -0
  449. data/spec/controllers/redirect_controller_spec.rb +36 -35
  450. data/spec/controllers/tags_controller_spec.rb +15 -10
  451. data/spec/controllers/textfilter_controller_spec.rb +11 -72
  452. data/spec/controllers/theme_controller_spec.rb +8 -12
  453. data/spec/controllers/xml_controller_spec.rb +59 -101
  454. data/spec/factories.rb +25 -0
  455. data/spec/models/article_closing_spec.rb +4 -4
  456. data/spec/models/article_spec.rb +119 -30
  457. data/spec/models/blacklist_pattern_spec.rb +1 -1
  458. data/spec/models/blog_spec.rb +0 -1
  459. data/spec/models/comment_spec.rb +0 -4
  460. data/spec/models/configuration_spec.rb +1 -1
  461. data/spec/models/content_state/feedback_states_spec.rb +4 -4
  462. data/spec/models/notification_spec.rb +2 -2
  463. data/spec/models/ping_pinger_spec.rb +3 -3
  464. data/spec/models/ping_spec.rb +34 -47
  465. data/spec/models/route_cache_spec.rb +2 -2
  466. data/spec/models/sidebar_spec.rb +2 -2
  467. data/spec/models/theme_spec.rb +4 -4
  468. data/spec/models/trigger_spec.rb +1 -0
  469. data/spec/models/user_spec.rb +92 -39
  470. data/spec/rcov.opts +2 -0
  471. data/spec/spec_helper.rb +92 -19
  472. data/spec/views/articles/index_spec.rb +2 -2
  473. data/spec/views/articles/read_spec.rb +16 -0
  474. data/spec/views/comments/html_sanitization_spec.rb +16 -0
  475. data/test/fixtures/contents.yml +28 -11
  476. data/test/fixtures/feedback.yml +14 -0
  477. data/test/fixtures/profiles.yml +1 -0
  478. data/test/fixtures/users.yml +9 -1
  479. data/test/test_helper.rb +2 -151
  480. data/themes/dirtylicious/layouts/default.html.erb +1 -1
  481. data/themes/dirtylicious/views/articles/_article.html.erb +14 -10
  482. data/themes/dirtylicious/views/articles/_comment_form.html.erb +1 -1
  483. data/themes/dirtylicious/views/articles/read.html.erb +4 -4
  484. data/themes/scribbish/layouts/default.html.erb +1 -1
  485. data/themes/scribbish/views/articles/_article.html.erb +13 -9
  486. data/themes/scribbish/views/articles/_comment_form.html.erb +1 -1
  487. data/themes/scribbish/views/articles/read.html.erb +4 -4
  488. data/themes/standard_issue/layouts/default.html.erb +1 -1
  489. data/themes/standard_issue/views/articles/_article.html.erb +13 -9
  490. data/themes/standard_issue/views/articles/_comment_form.html.erb +1 -1
  491. data/themes/standard_issue/views/articles/read.html.erb +4 -4
  492. data/themes/true-blue-3/README +3 -0
  493. data/themes/true-blue-3/about.markdown +3 -0
  494. data/themes/true-blue-3/helpers/theme_helper.rb +85 -0
  495. data/themes/true-blue-3/images/background.gif +0 -0
  496. data/themes/true-blue-3/images/bg_input.jpg +0 -0
  497. data/themes/true-blue-3/images/bullet.jpg +0 -0
  498. data/themes/true-blue-3/images/comment.gif +0 -0
  499. data/themes/true-blue-3/images/comment.jpg +0 -0
  500. data/themes/true-blue-3/images/comment_bottom.gif +0 -0
  501. data/themes/true-blue-3/images/comment_fdv.gif +0 -0
  502. data/themes/true-blue-3/images/find.png +0 -0
  503. data/themes/true-blue-3/images/fleche1.png +0 -0
  504. data/themes/true-blue-3/images/fleche2.png +0 -0
  505. data/themes/true-blue-3/images/frederic-de-villamil.jpg +0 -0
  506. data/themes/true-blue-3/images/rss.png +0 -0
  507. data/themes/true-blue-3/images/searchform.png +0 -0
  508. data/themes/true-blue-3/images/textarea_bg.jpg +0 -0
  509. data/themes/true-blue-3/images/twitter.jpg +0 -0
  510. data/themes/true-blue-3/images/twitter.png +0 -0
  511. data/themes/true-blue-3/layouts/default.html.erb +52 -0
  512. data/themes/true-blue-3/preview.png +0 -0
  513. data/themes/true-blue-3/psd/true-blue-3.psd +0 -0
  514. data/themes/true-blue-3/psd/true-blue-3_article.psd +0 -0
  515. data/themes/true-blue-3/stylesheets/style.css +555 -0
  516. data/themes/true-blue-3/views/articles/_article.html.erb +21 -0
  517. data/themes/true-blue-3/views/articles/_comment.html.erb +14 -0
  518. data/themes/true-blue-3/views/articles/_comment_form.html.erb +23 -0
  519. data/themes/true-blue-3/views/articles/_comment_list.html.erb +8 -0
  520. data/themes/true-blue-3/views/articles/_trackback.html.erb +9 -0
  521. data/themes/true-blue-3/views/articles/comment_preview.html.erb +10 -0
  522. data/themes/true-blue-3/views/articles/index.html.erb +5 -0
  523. data/themes/true-blue-3/views/articles/read.html.erb +38 -0
  524. data/themes/true-blue-3/views/articles/search.html.erb +29 -0
  525. data/themes/true-blue-3/views/articles/view_page.html.erb +4 -0
  526. data/themes/true-blue-3/views/categories/_article.html.erb +22 -0
  527. data/themes/true-blue-3/views/categories/index.html.erb +13 -0
  528. data/themes/true-blue-3/views/categories/show.html.erb +7 -0
  529. data/themes/true-blue-3/views/tags/_article.html.erb +22 -0
  530. data/themes/true-blue-3/views/tags/show.html.erb +6 -0
  531. data/themes/typographic/layouts/default.html.erb +1 -1
  532. data/themes/typographic/views/articles/_article.html.erb +13 -9
  533. data/themes/typographic/views/articles/_comment_form.html.erb +1 -1
  534. data/themes/typographic/views/articles/_comment_list.html.erb +1 -1
  535. data/themes/typographic/views/articles/read.html.erb +4 -4
  536. data/vendor/flickr/flickr.rb +3 -3
  537. data/vendor/plugins/archives_sidebar/views/content.rhtml +1 -1
  538. data/vendor/plugins/authors_sidebar/Rakefile +22 -0
  539. data/vendor/plugins/authors_sidebar/init.rb +4 -0
  540. data/vendor/plugins/authors_sidebar/lib/authors_sidebar.rb +10 -0
  541. data/vendor/plugins/authors_sidebar/test/authors_sidebar_test.rb +8 -0
  542. data/vendor/plugins/authors_sidebar/views/content.rhtml +11 -0
  543. data/vendor/plugins/category_sidebar/views/content.rhtml +2 -2
  544. data/vendor/plugins/easy-ckeditor/CHANGELOG +15 -0
  545. data/vendor/plugins/easy-ckeditor/LICENSE +16 -0
  546. data/vendor/plugins/easy-ckeditor/README.textile +164 -0
  547. data/vendor/plugins/easy-ckeditor/Rakefile +72 -0
  548. data/vendor/plugins/easy-ckeditor/app/controllers/ckeditor_controller.rb +225 -0
  549. data/vendor/plugins/easy-ckeditor/app/helpers/ckeditor_helper.rb +2 -0
  550. data/vendor/plugins/easy-ckeditor/init.rb +33 -0
  551. data/vendor/plugins/easy-ckeditor/install.rb +12 -0
  552. data/vendor/plugins/easy-ckeditor/lib/ckeditor.rb +113 -0
  553. data/vendor/plugins/easy-ckeditor/lib/ckeditor_file_utils.rb +108 -0
  554. data/vendor/plugins/easy-ckeditor/lib/ckeditor_version.rb +9 -0
  555. data/vendor/plugins/easy-ckeditor/public/javascripts/ckcustom.js +16 -0
  556. data/vendor/plugins/easy-ckeditor/public/javascripts/ckeditor/.htaccess +24 -0
  557. data/vendor/plugins/easy-ckeditor/public/javascripts/ckeditor/CHANGES.html +254 -0
  558. data/vendor/plugins/easy-ckeditor/public/javascripts/ckeditor/INSTALL.html +92 -0
  559. data/vendor/plugins/easy-ckeditor/public/javascripts/ckeditor/LICENSE.html +1334 -0
  560. data/vendor/plugins/easy-ckeditor/public/javascripts/ckeditor/ckeditor.js +108 -0
  561. data/vendor/plugins/easy-ckeditor/public/javascripts/ckeditor/ckeditor.pack +199 -0
  562. data/vendor/plugins/easy-ckeditor/public/javascripts/ckeditor/ckeditor_basic.js +8 -0
  563. data/vendor/plugins/easy-ckeditor/public/javascripts/ckeditor/ckeditor_basic_source.js +20 -0
  564. data/vendor/plugins/easy-ckeditor/public/javascripts/ckeditor/ckeditor_source.js +25 -0
  565. data/vendor/plugins/easy-ckeditor/public/javascripts/ckeditor/config.js +11 -0
  566. data/vendor/plugins/easy-ckeditor/public/javascripts/ckeditor/contents.css +35 -0
  567. data/{public/javascripts/fckeditor/editor/skins/silver/images/toolbar.end.gif → vendor/plugins/easy-ckeditor/public/javascripts/ckeditor/images/spacer.gif} +0 -0
  568. data/vendor/plugins/easy-ckeditor/public/javascripts/ckeditor/lang/_languages.js +6 -0
  569. data/vendor/plugins/easy-ckeditor/public/javascripts/ckeditor/lang/_translationstatus.txt +59 -0
  570. data/vendor/plugins/easy-ckeditor/public/javascripts/ckeditor/lang/af.js +6 -0
  571. data/vendor/plugins/easy-ckeditor/public/javascripts/ckeditor/lang/ar.js +6 -0
  572. data/vendor/plugins/easy-ckeditor/public/javascripts/ckeditor/lang/bg.js +6 -0
  573. data/vendor/plugins/easy-ckeditor/public/javascripts/ckeditor/lang/bn.js +6 -0
  574. data/vendor/plugins/easy-ckeditor/public/javascripts/ckeditor/lang/bs.js +6 -0
  575. data/vendor/plugins/easy-ckeditor/public/javascripts/ckeditor/lang/ca.js +6 -0
  576. data/vendor/plugins/easy-ckeditor/public/javascripts/ckeditor/lang/cs.js +6 -0
  577. data/vendor/plugins/easy-ckeditor/public/javascripts/ckeditor/lang/da.js +6 -0
  578. data/vendor/plugins/easy-ckeditor/public/javascripts/ckeditor/lang/de.js +6 -0
  579. data/vendor/plugins/easy-ckeditor/public/javascripts/ckeditor/lang/el.js +6 -0
  580. data/vendor/plugins/easy-ckeditor/public/javascripts/ckeditor/lang/en-au.js +6 -0
  581. data/vendor/plugins/easy-ckeditor/public/javascripts/ckeditor/lang/en-ca.js +6 -0
  582. data/vendor/plugins/easy-ckeditor/public/javascripts/ckeditor/lang/en-uk.js +6 -0
  583. data/vendor/plugins/easy-ckeditor/public/javascripts/ckeditor/lang/en.js +6 -0
  584. data/vendor/plugins/easy-ckeditor/public/javascripts/ckeditor/lang/eo.js +6 -0
  585. data/vendor/plugins/easy-ckeditor/public/javascripts/ckeditor/lang/es.js +6 -0
  586. data/vendor/plugins/easy-ckeditor/public/javascripts/ckeditor/lang/et.js +6 -0
  587. data/vendor/plugins/easy-ckeditor/public/javascripts/ckeditor/lang/eu.js +6 -0
  588. data/vendor/plugins/easy-ckeditor/public/javascripts/ckeditor/lang/fa.js +6 -0
  589. data/vendor/plugins/easy-ckeditor/public/javascripts/ckeditor/lang/fi.js +6 -0
  590. data/vendor/plugins/easy-ckeditor/public/javascripts/ckeditor/lang/fo.js +6 -0
  591. data/vendor/plugins/easy-ckeditor/public/javascripts/ckeditor/lang/fr-ca.js +6 -0
  592. data/vendor/plugins/easy-ckeditor/public/javascripts/ckeditor/lang/fr.js +6 -0
  593. data/vendor/plugins/easy-ckeditor/public/javascripts/ckeditor/lang/gl.js +6 -0
  594. data/vendor/plugins/easy-ckeditor/public/javascripts/ckeditor/lang/gu.js +6 -0
  595. data/vendor/plugins/easy-ckeditor/public/javascripts/ckeditor/lang/he.js +6 -0
  596. data/vendor/plugins/easy-ckeditor/public/javascripts/ckeditor/lang/hi.js +6 -0
  597. data/vendor/plugins/easy-ckeditor/public/javascripts/ckeditor/lang/hr.js +6 -0
  598. data/vendor/plugins/easy-ckeditor/public/javascripts/ckeditor/lang/hu.js +6 -0
  599. data/vendor/plugins/easy-ckeditor/public/javascripts/ckeditor/lang/is.js +6 -0
  600. data/vendor/plugins/easy-ckeditor/public/javascripts/ckeditor/lang/it.js +6 -0
  601. data/vendor/plugins/easy-ckeditor/public/javascripts/ckeditor/lang/ja.js +6 -0
  602. data/vendor/plugins/easy-ckeditor/public/javascripts/ckeditor/lang/km.js +6 -0
  603. data/vendor/plugins/easy-ckeditor/public/javascripts/ckeditor/lang/ko.js +6 -0
  604. data/vendor/plugins/easy-ckeditor/public/javascripts/ckeditor/lang/lt.js +6 -0
  605. data/vendor/plugins/easy-ckeditor/public/javascripts/ckeditor/lang/lv.js +6 -0
  606. data/vendor/plugins/easy-ckeditor/public/javascripts/ckeditor/lang/mn.js +6 -0
  607. data/vendor/plugins/easy-ckeditor/public/javascripts/ckeditor/lang/ms.js +6 -0
  608. data/vendor/plugins/easy-ckeditor/public/javascripts/ckeditor/lang/nb.js +6 -0
  609. data/vendor/plugins/easy-ckeditor/public/javascripts/ckeditor/lang/nl.js +6 -0
  610. data/vendor/plugins/easy-ckeditor/public/javascripts/ckeditor/lang/no.js +6 -0
  611. data/vendor/plugins/easy-ckeditor/public/javascripts/ckeditor/lang/pl.js +6 -0
  612. data/vendor/plugins/easy-ckeditor/public/javascripts/ckeditor/lang/pt-br.js +6 -0
  613. data/vendor/plugins/easy-ckeditor/public/javascripts/ckeditor/lang/pt.js +6 -0
  614. data/vendor/plugins/easy-ckeditor/public/javascripts/ckeditor/lang/ro.js +6 -0
  615. data/vendor/plugins/easy-ckeditor/public/javascripts/ckeditor/lang/ru.js +6 -0
  616. data/vendor/plugins/easy-ckeditor/public/javascripts/ckeditor/lang/sk.js +6 -0
  617. data/vendor/plugins/easy-ckeditor/public/javascripts/ckeditor/lang/sl.js +6 -0
  618. data/vendor/plugins/easy-ckeditor/public/javascripts/ckeditor/lang/sr-latn.js +6 -0
  619. data/vendor/plugins/easy-ckeditor/public/javascripts/ckeditor/lang/sr.js +6 -0
  620. data/vendor/plugins/easy-ckeditor/public/javascripts/ckeditor/lang/sv.js +6 -0
  621. data/vendor/plugins/easy-ckeditor/public/javascripts/ckeditor/lang/th.js +6 -0
  622. data/vendor/plugins/easy-ckeditor/public/javascripts/ckeditor/lang/tr.js +6 -0
  623. data/vendor/plugins/easy-ckeditor/public/javascripts/ckeditor/lang/uk.js +6 -0
  624. data/vendor/plugins/easy-ckeditor/public/javascripts/ckeditor/lang/vi.js +6 -0
  625. data/vendor/plugins/easy-ckeditor/public/javascripts/ckeditor/lang/zh-cn.js +6 -0
  626. data/vendor/plugins/easy-ckeditor/public/javascripts/ckeditor/lang/zh.js +6 -0
  627. data/vendor/plugins/easy-ckeditor/public/javascripts/ckeditor/plugins/about/dialogs/about.js +6 -0
  628. data/vendor/plugins/easy-ckeditor/public/javascripts/ckeditor/plugins/about/dialogs/logo_ckeditor.png +0 -0
  629. data/vendor/plugins/easy-ckeditor/public/javascripts/ckeditor/plugins/about/plugin.js +6 -0
  630. data/vendor/plugins/easy-ckeditor/public/javascripts/ckeditor/plugins/basicstyles/plugin.js +6 -0
  631. data/vendor/plugins/easy-ckeditor/public/javascripts/ckeditor/plugins/blockquote/plugin.js +7 -0
  632. data/vendor/plugins/easy-ckeditor/public/javascripts/ckeditor/plugins/button/plugin.js +7 -0
  633. data/vendor/plugins/easy-ckeditor/public/javascripts/ckeditor/plugins/clipboard/dialogs/paste.js +7 -0
  634. data/vendor/plugins/easy-ckeditor/public/javascripts/ckeditor/plugins/clipboard/plugin.js +6 -0
  635. data/vendor/plugins/easy-ckeditor/public/javascripts/ckeditor/plugins/colorbutton/plugin.js +7 -0
  636. data/vendor/plugins/easy-ckeditor/public/javascripts/ckeditor/plugins/contextmenu/plugin.js +6 -0
  637. data/vendor/plugins/easy-ckeditor/public/javascripts/ckeditor/plugins/dialog/dialogDefinition.js +4 -0
  638. data/vendor/plugins/easy-ckeditor/public/javascripts/ckeditor/plugins/dialog/plugin.js +17 -0
  639. data/vendor/plugins/easy-ckeditor/public/javascripts/ckeditor/plugins/dialogui/plugin.js +11 -0
  640. data/vendor/plugins/easy-ckeditor/public/javascripts/ckeditor/plugins/domiterator/plugin.js +7 -0
  641. data/vendor/plugins/easy-ckeditor/public/javascripts/ckeditor/plugins/editingblock/plugin.js +6 -0
  642. data/vendor/plugins/easy-ckeditor/public/javascripts/ckeditor/plugins/elementspath/plugin.js +6 -0
  643. data/vendor/plugins/easy-ckeditor/public/javascripts/ckeditor/plugins/enterkey/plugin.js +7 -0
  644. data/vendor/plugins/easy-ckeditor/public/javascripts/ckeditor/plugins/entities/plugin.js +6 -0
  645. data/vendor/plugins/easy-ckeditor/public/javascripts/ckeditor/plugins/fakeobjects/plugin.js +6 -0
  646. data/vendor/plugins/easy-ckeditor/public/javascripts/ckeditor/plugins/filebrowser/plugin.js +7 -0
  647. data/vendor/plugins/easy-ckeditor/public/javascripts/ckeditor/plugins/find/dialogs/find.js +9 -0
  648. data/vendor/plugins/easy-ckeditor/public/javascripts/ckeditor/plugins/find/plugin.js +6 -0
  649. data/vendor/plugins/easy-ckeditor/public/javascripts/ckeditor/plugins/flash/dialogs/flash.js +9 -0
  650. data/vendor/plugins/easy-ckeditor/public/javascripts/ckeditor/plugins/flash/images/placeholder.png +0 -0
  651. data/vendor/plugins/easy-ckeditor/public/javascripts/ckeditor/plugins/flash/plugin.js +6 -0
  652. data/vendor/plugins/easy-ckeditor/public/javascripts/ckeditor/plugins/floatpanel/plugin.js +7 -0
  653. data/vendor/plugins/easy-ckeditor/public/javascripts/ckeditor/plugins/font/plugin.js +6 -0
  654. data/vendor/plugins/easy-ckeditor/public/javascripts/ckeditor/plugins/format/plugin.js +6 -0
  655. data/vendor/plugins/easy-ckeditor/public/javascripts/ckeditor/plugins/forms/dialogs/button.js +6 -0
  656. data/vendor/plugins/easy-ckeditor/public/javascripts/ckeditor/plugins/forms/dialogs/checkbox.js +6 -0
  657. data/vendor/plugins/easy-ckeditor/public/javascripts/ckeditor/plugins/forms/dialogs/form.js +6 -0
  658. data/vendor/plugins/easy-ckeditor/public/javascripts/ckeditor/plugins/forms/dialogs/hiddenfield.js +6 -0
  659. data/vendor/plugins/easy-ckeditor/public/javascripts/ckeditor/plugins/forms/dialogs/radio.js +6 -0
  660. data/vendor/plugins/easy-ckeditor/public/javascripts/ckeditor/plugins/forms/dialogs/select.js +9 -0
  661. data/vendor/plugins/easy-ckeditor/public/javascripts/ckeditor/plugins/forms/dialogs/textarea.js +6 -0
  662. data/vendor/plugins/easy-ckeditor/public/javascripts/ckeditor/plugins/forms/dialogs/textfield.js +6 -0
  663. data/vendor/plugins/easy-ckeditor/public/javascripts/ckeditor/plugins/forms/plugin.js +7 -0
  664. data/vendor/plugins/easy-ckeditor/public/javascripts/ckeditor/plugins/horizontalrule/plugin.js +6 -0
  665. data/vendor/plugins/easy-ckeditor/public/javascripts/ckeditor/plugins/htmldataprocessor/plugin.js +7 -0
  666. data/vendor/plugins/easy-ckeditor/public/javascripts/ckeditor/plugins/htmlwriter/plugin.js +6 -0
  667. data/vendor/plugins/easy-ckeditor/public/javascripts/ckeditor/plugins/iframedialog/plugin.js +6 -0
  668. data/vendor/plugins/easy-ckeditor/public/javascripts/ckeditor/plugins/image/dialogs/image.js +12 -0
  669. data/vendor/plugins/easy-ckeditor/public/javascripts/ckeditor/plugins/image/plugin.js +6 -0
  670. data/vendor/plugins/easy-ckeditor/public/javascripts/ckeditor/plugins/indent/plugin.js +7 -0
  671. data/vendor/plugins/easy-ckeditor/public/javascripts/ckeditor/plugins/justify/plugin.js +6 -0
  672. data/vendor/plugins/easy-ckeditor/public/javascripts/ckeditor/plugins/keystrokes/plugin.js +6 -0
  673. data/vendor/plugins/easy-ckeditor/public/javascripts/ckeditor/plugins/link/dialogs/anchor.js +6 -0
  674. data/vendor/plugins/easy-ckeditor/public/javascripts/ckeditor/plugins/link/dialogs/link.js +11 -0
  675. data/{public/javascripts/fckeditor/editor/css/images/fck_anchor.gif → vendor/plugins/easy-ckeditor/public/javascripts/ckeditor/plugins/link/images/anchor.gif} +0 -0
  676. data/vendor/plugins/easy-ckeditor/public/javascripts/ckeditor/plugins/link/plugin.js +6 -0
  677. data/vendor/plugins/easy-ckeditor/public/javascripts/ckeditor/plugins/list/plugin.js +9 -0
  678. data/vendor/plugins/easy-ckeditor/public/javascripts/ckeditor/plugins/listblock/plugin.js +7 -0
  679. data/vendor/plugins/easy-ckeditor/public/javascripts/ckeditor/plugins/maximize/plugin.js +7 -0
  680. data/vendor/plugins/easy-ckeditor/public/javascripts/ckeditor/plugins/menu/plugin.js +7 -0
  681. data/vendor/plugins/easy-ckeditor/public/javascripts/ckeditor/plugins/menubutton/plugin.js +6 -0
  682. data/vendor/plugins/easy-ckeditor/public/javascripts/ckeditor/plugins/newpage/plugin.js +6 -0
  683. data/vendor/plugins/easy-ckeditor/public/javascripts/ckeditor/plugins/pagebreak/images/pagebreak.gif +0 -0
  684. data/vendor/plugins/easy-ckeditor/public/javascripts/ckeditor/plugins/pagebreak/plugin.js +6 -0
  685. data/vendor/plugins/easy-ckeditor/public/javascripts/ckeditor/plugins/panel/plugin.js +7 -0
  686. data/vendor/plugins/easy-ckeditor/public/javascripts/ckeditor/plugins/panelbutton/plugin.js +6 -0
  687. data/vendor/plugins/easy-ckeditor/public/javascripts/ckeditor/plugins/pastefromword/dialogs/pastefromword.js +8 -0
  688. data/vendor/plugins/easy-ckeditor/public/javascripts/ckeditor/plugins/pastefromword/plugin.js +6 -0
  689. data/vendor/plugins/easy-ckeditor/public/javascripts/ckeditor/plugins/pastetext/dialogs/pastetext.js +6 -0
  690. data/vendor/plugins/easy-ckeditor/public/javascripts/ckeditor/plugins/pastetext/plugin.js +6 -0
  691. data/vendor/plugins/easy-ckeditor/public/javascripts/ckeditor/plugins/popup/plugin.js +6 -0
  692. data/vendor/plugins/easy-ckeditor/public/javascripts/ckeditor/plugins/preview/plugin.js +6 -0
  693. data/vendor/plugins/easy-ckeditor/public/javascripts/ckeditor/plugins/print/plugin.js +6 -0
  694. data/vendor/plugins/easy-ckeditor/public/javascripts/ckeditor/plugins/removeformat/plugin.js +6 -0
  695. data/vendor/plugins/easy-ckeditor/public/javascripts/ckeditor/plugins/resize/plugin.js +6 -0
  696. data/vendor/plugins/easy-ckeditor/public/javascripts/ckeditor/plugins/richcombo/plugin.js +7 -0
  697. data/vendor/plugins/easy-ckeditor/public/javascripts/ckeditor/plugins/save/plugin.js +6 -0
  698. data/vendor/plugins/easy-ckeditor/public/javascripts/ckeditor/plugins/scayt/dialogs/options.js +8 -0
  699. data/vendor/plugins/easy-ckeditor/public/javascripts/ckeditor/plugins/scayt/dialogs/toolbar.css +6 -0
  700. data/vendor/plugins/easy-ckeditor/public/javascripts/ckeditor/plugins/scayt/plugin.js +8 -0
  701. data/vendor/plugins/easy-ckeditor/public/javascripts/ckeditor/plugins/selection/plugin.js +9 -0
  702. data/vendor/plugins/easy-ckeditor/public/javascripts/ckeditor/plugins/showblocks/images/block_address.png +0 -0
  703. data/vendor/plugins/easy-ckeditor/public/javascripts/ckeditor/plugins/showblocks/images/block_blockquote.png +0 -0
  704. data/vendor/plugins/easy-ckeditor/public/javascripts/ckeditor/plugins/showblocks/images/block_div.png +0 -0
  705. data/vendor/plugins/easy-ckeditor/public/javascripts/ckeditor/plugins/showblocks/images/block_h1.png +0 -0
  706. data/vendor/plugins/easy-ckeditor/public/javascripts/ckeditor/plugins/showblocks/images/block_h2.png +0 -0
  707. data/vendor/plugins/easy-ckeditor/public/javascripts/ckeditor/plugins/showblocks/images/block_h3.png +0 -0
  708. data/vendor/plugins/easy-ckeditor/public/javascripts/ckeditor/plugins/showblocks/images/block_h4.png +0 -0
  709. data/vendor/plugins/easy-ckeditor/public/javascripts/ckeditor/plugins/showblocks/images/block_h5.png +0 -0
  710. data/vendor/plugins/easy-ckeditor/public/javascripts/ckeditor/plugins/showblocks/images/block_h6.png +0 -0
  711. data/vendor/plugins/easy-ckeditor/public/javascripts/ckeditor/plugins/showblocks/images/block_p.png +0 -0
  712. data/vendor/plugins/easy-ckeditor/public/javascripts/ckeditor/plugins/showblocks/images/block_pre.png +0 -0
  713. data/vendor/plugins/easy-ckeditor/public/javascripts/ckeditor/plugins/showblocks/plugin.js +6 -0
  714. data/vendor/plugins/easy-ckeditor/public/javascripts/ckeditor/plugins/smiley/dialogs/smiley.js +7 -0
  715. data/vendor/plugins/easy-ckeditor/public/javascripts/ckeditor/plugins/smiley/images/angel_smile.gif +0 -0
  716. data/vendor/plugins/easy-ckeditor/public/javascripts/ckeditor/plugins/smiley/images/angry_smile.gif +0 -0
  717. data/vendor/plugins/easy-ckeditor/public/javascripts/ckeditor/plugins/smiley/images/broken_heart.gif +0 -0
  718. data/vendor/plugins/easy-ckeditor/public/javascripts/ckeditor/plugins/smiley/images/confused_smile.gif +0 -0
  719. data/vendor/plugins/easy-ckeditor/public/javascripts/ckeditor/plugins/smiley/images/cry_smile.gif +0 -0
  720. data/vendor/plugins/easy-ckeditor/public/javascripts/ckeditor/plugins/smiley/images/devil_smile.gif +0 -0
  721. data/vendor/plugins/easy-ckeditor/public/javascripts/ckeditor/plugins/smiley/images/embaressed_smile.gif +0 -0
  722. data/vendor/plugins/easy-ckeditor/public/javascripts/ckeditor/plugins/smiley/images/envelope.gif +0 -0
  723. data/vendor/plugins/easy-ckeditor/public/javascripts/ckeditor/plugins/smiley/images/heart.gif +0 -0
  724. data/vendor/plugins/easy-ckeditor/public/javascripts/ckeditor/plugins/smiley/images/kiss.gif +0 -0
  725. data/vendor/plugins/easy-ckeditor/public/javascripts/ckeditor/plugins/smiley/images/lightbulb.gif +0 -0
  726. data/vendor/plugins/easy-ckeditor/public/javascripts/ckeditor/plugins/smiley/images/omg_smile.gif +0 -0
  727. data/vendor/plugins/easy-ckeditor/public/javascripts/ckeditor/plugins/smiley/images/regular_smile.gif +0 -0
  728. data/vendor/plugins/easy-ckeditor/public/javascripts/ckeditor/plugins/smiley/images/sad_smile.gif +0 -0
  729. data/vendor/plugins/easy-ckeditor/public/javascripts/ckeditor/plugins/smiley/images/shades_smile.gif +0 -0
  730. data/vendor/plugins/easy-ckeditor/public/javascripts/ckeditor/plugins/smiley/images/teeth_smile.gif +0 -0
  731. data/vendor/plugins/easy-ckeditor/public/javascripts/ckeditor/plugins/smiley/images/thumbs_down.gif +0 -0
  732. data/vendor/plugins/easy-ckeditor/public/javascripts/ckeditor/plugins/smiley/images/thumbs_up.gif +0 -0
  733. data/vendor/plugins/easy-ckeditor/public/javascripts/ckeditor/plugins/smiley/images/tounge_smile.gif +0 -0
  734. data/vendor/plugins/easy-ckeditor/public/javascripts/ckeditor/plugins/smiley/images/whatchutalkingabout_smile.gif +0 -0
  735. data/vendor/plugins/easy-ckeditor/public/javascripts/ckeditor/plugins/smiley/images/wink_smile.gif +0 -0
  736. data/vendor/plugins/easy-ckeditor/public/javascripts/ckeditor/plugins/smiley/plugin.js +6 -0
  737. data/vendor/plugins/easy-ckeditor/public/javascripts/ckeditor/plugins/sourcearea/plugin.js +6 -0
  738. data/vendor/plugins/easy-ckeditor/public/javascripts/ckeditor/plugins/specialchar/dialogs/specialchar.js +7 -0
  739. data/vendor/plugins/easy-ckeditor/public/javascripts/ckeditor/plugins/specialchar/plugin.js +6 -0
  740. data/vendor/plugins/easy-ckeditor/public/javascripts/ckeditor/plugins/styles/plugin.js +10 -0
  741. data/vendor/plugins/easy-ckeditor/public/javascripts/ckeditor/plugins/stylescombo/plugin.js +7 -0
  742. data/vendor/plugins/easy-ckeditor/public/javascripts/ckeditor/plugins/stylescombo/styles/default.js +6 -0
  743. data/vendor/plugins/easy-ckeditor/public/javascripts/ckeditor/plugins/tab/plugin.js +6 -0
  744. data/vendor/plugins/easy-ckeditor/public/javascripts/ckeditor/plugins/table/dialogs/table.js +8 -0
  745. data/vendor/plugins/easy-ckeditor/public/javascripts/ckeditor/plugins/table/plugin.js +6 -0
  746. data/vendor/plugins/easy-ckeditor/public/javascripts/ckeditor/plugins/tabletools/dialogs/tableCell.js +7 -0
  747. data/vendor/plugins/easy-ckeditor/public/javascripts/ckeditor/plugins/tabletools/plugin.js +9 -0
  748. data/vendor/plugins/easy-ckeditor/public/javascripts/ckeditor/plugins/templates/dialogs/templates.js +6 -0
  749. data/vendor/plugins/easy-ckeditor/public/javascripts/ckeditor/plugins/templates/plugin.js +6 -0
  750. data/vendor/plugins/easy-ckeditor/public/javascripts/ckeditor/plugins/templates/templates/default.js +6 -0
  751. data/vendor/plugins/easy-ckeditor/public/javascripts/ckeditor/plugins/templates/templates/images/template1.gif +0 -0
  752. data/vendor/plugins/easy-ckeditor/public/javascripts/ckeditor/plugins/templates/templates/images/template2.gif +0 -0
  753. data/vendor/plugins/easy-ckeditor/public/javascripts/ckeditor/plugins/templates/templates/images/template3.gif +0 -0
  754. data/vendor/plugins/easy-ckeditor/public/javascripts/ckeditor/plugins/toolbar/plugin.js +7 -0
  755. data/vendor/plugins/easy-ckeditor/public/javascripts/ckeditor/plugins/uicolor/dialogs/uicolor.js +7 -0
  756. data/vendor/plugins/easy-ckeditor/public/javascripts/ckeditor/plugins/uicolor/lang/en.js +6 -0
  757. data/vendor/plugins/easy-ckeditor/public/javascripts/ckeditor/plugins/uicolor/plugin.js +6 -0
  758. data/vendor/plugins/easy-ckeditor/public/javascripts/ckeditor/plugins/uicolor/uicolor.gif +0 -0
  759. data/vendor/plugins/easy-ckeditor/public/javascripts/ckeditor/plugins/uicolor/yui/assets/hue_bg.png +0 -0
  760. data/vendor/plugins/easy-ckeditor/public/javascripts/ckeditor/plugins/uicolor/yui/assets/hue_thumb.png +0 -0
  761. data/vendor/plugins/easy-ckeditor/public/javascripts/ckeditor/plugins/uicolor/yui/assets/picker_mask.png +0 -0
  762. data/vendor/plugins/easy-ckeditor/public/javascripts/ckeditor/plugins/uicolor/yui/assets/picker_thumb.png +0 -0
  763. data/vendor/plugins/easy-ckeditor/public/javascripts/ckeditor/plugins/uicolor/yui/assets/yui.css +6 -0
  764. data/vendor/plugins/easy-ckeditor/public/javascripts/ckeditor/plugins/uicolor/yui/yui.js +76 -0
  765. data/vendor/plugins/easy-ckeditor/public/javascripts/ckeditor/plugins/undo/plugin.js +7 -0
  766. data/vendor/plugins/easy-ckeditor/public/javascripts/ckeditor/plugins/wsc/dialogs/ciframe.html +49 -0
  767. data/vendor/plugins/easy-ckeditor/public/javascripts/ckeditor/plugins/wsc/dialogs/tmpFrameset.html +52 -0
  768. data/vendor/plugins/easy-ckeditor/public/javascripts/ckeditor/plugins/wsc/dialogs/wsc.css +6 -0
  769. data/vendor/plugins/easy-ckeditor/public/javascripts/ckeditor/plugins/wsc/dialogs/wsc.js +7 -0
  770. data/vendor/plugins/easy-ckeditor/public/javascripts/ckeditor/plugins/wsc/plugin.js +6 -0
  771. data/vendor/plugins/easy-ckeditor/public/javascripts/ckeditor/plugins/wysiwygarea/plugin.js +8 -0
  772. data/vendor/plugins/easy-ckeditor/public/javascripts/ckeditor/skins/kama/dialog.css +9 -0
  773. data/vendor/plugins/easy-ckeditor/public/javascripts/ckeditor/skins/kama/editor.css +12 -0
  774. data/vendor/plugins/easy-ckeditor/public/javascripts/ckeditor/skins/kama/icons.png +0 -0
  775. data/vendor/plugins/easy-ckeditor/public/javascripts/ckeditor/skins/kama/images/dialog_sides.gif +0 -0
  776. data/vendor/plugins/easy-ckeditor/public/javascripts/ckeditor/skins/kama/images/dialog_sides.png +0 -0
  777. data/vendor/plugins/easy-ckeditor/public/javascripts/ckeditor/skins/kama/images/dialog_sides_rtl.png +0 -0
  778. data/vendor/plugins/easy-ckeditor/public/javascripts/ckeditor/skins/kama/images/mini.gif +0 -0
  779. data/vendor/plugins/easy-ckeditor/public/javascripts/ckeditor/skins/kama/images/noimage.png +0 -0
  780. data/vendor/plugins/easy-ckeditor/public/javascripts/ckeditor/skins/kama/images/sprites.png +0 -0
  781. data/vendor/plugins/easy-ckeditor/public/javascripts/ckeditor/skins/kama/images/sprites_ie6.png +0 -0
  782. data/vendor/plugins/easy-ckeditor/public/javascripts/ckeditor/skins/kama/images/toolbar_start.gif +0 -0
  783. data/vendor/plugins/easy-ckeditor/public/javascripts/ckeditor/skins/kama/skin.js +7 -0
  784. data/vendor/plugins/easy-ckeditor/public/javascripts/ckeditor/skins/kama/templates.css +6 -0
  785. data/vendor/plugins/easy-ckeditor/public/javascripts/ckeditor/skins/office2003/dialog.css +8 -0
  786. data/vendor/plugins/easy-ckeditor/public/javascripts/ckeditor/skins/office2003/editor.css +13 -0
  787. data/vendor/plugins/easy-ckeditor/public/javascripts/ckeditor/skins/office2003/icons.png +0 -0
  788. data/vendor/plugins/easy-ckeditor/public/javascripts/ckeditor/skins/office2003/images/dialog_sides.gif +0 -0
  789. data/vendor/plugins/easy-ckeditor/public/javascripts/ckeditor/skins/office2003/images/dialog_sides.png +0 -0
  790. data/vendor/plugins/easy-ckeditor/public/javascripts/ckeditor/skins/office2003/images/dialog_sides_rtl.png +0 -0
  791. data/vendor/plugins/easy-ckeditor/public/javascripts/ckeditor/skins/office2003/images/mini.gif +0 -0
  792. data/vendor/plugins/easy-ckeditor/public/javascripts/ckeditor/skins/office2003/images/noimage.png +0 -0
  793. data/vendor/plugins/easy-ckeditor/public/javascripts/ckeditor/skins/office2003/images/sprites.png +0 -0
  794. data/vendor/plugins/easy-ckeditor/public/javascripts/ckeditor/skins/office2003/images/sprites_ie6.png +0 -0
  795. data/vendor/plugins/easy-ckeditor/public/javascripts/ckeditor/skins/office2003/skin.js +6 -0
  796. data/vendor/plugins/easy-ckeditor/public/javascripts/ckeditor/skins/office2003/templates.css +6 -0
  797. data/vendor/plugins/easy-ckeditor/public/javascripts/ckeditor/skins/v2/dialog.css +8 -0
  798. data/vendor/plugins/easy-ckeditor/public/javascripts/ckeditor/skins/v2/editor.css +12 -0
  799. data/vendor/plugins/easy-ckeditor/public/javascripts/ckeditor/skins/v2/icons.png +0 -0
  800. data/vendor/plugins/easy-ckeditor/public/javascripts/ckeditor/skins/v2/images/dialog_sides.gif +0 -0
  801. data/vendor/plugins/easy-ckeditor/public/javascripts/ckeditor/skins/v2/images/dialog_sides.png +0 -0
  802. data/vendor/plugins/easy-ckeditor/public/javascripts/ckeditor/skins/v2/images/dialog_sides_rtl.png +0 -0
  803. data/vendor/plugins/easy-ckeditor/public/javascripts/ckeditor/skins/v2/images/mini.gif +0 -0
  804. data/vendor/plugins/easy-ckeditor/public/javascripts/ckeditor/skins/v2/images/noimage.png +0 -0
  805. data/vendor/plugins/easy-ckeditor/public/javascripts/ckeditor/skins/v2/images/sprites.png +0 -0
  806. data/vendor/plugins/easy-ckeditor/public/javascripts/ckeditor/skins/v2/images/sprites_ie6.png +0 -0
  807. data/vendor/plugins/easy-ckeditor/public/javascripts/ckeditor/skins/v2/images/toolbar_start.gif +0 -0
  808. data/vendor/plugins/easy-ckeditor/public/javascripts/ckeditor/skins/v2/skin.js +6 -0
  809. data/vendor/plugins/easy-ckeditor/public/javascripts/ckeditor/skins/v2/templates.css +6 -0
  810. data/vendor/plugins/easy-ckeditor/public/javascripts/ckeditor/themes/default/theme.js +7 -0
  811. data/vendor/plugins/easy-ckeditor/tasks/ckeditor_tasks.rake +108 -0
  812. data/vendor/plugins/easy-ckeditor/uninstall.rb +8 -0
  813. data/vendor/plugins/livesearch_sidebar/views/content.rhtml +1 -1
  814. data/vendor/plugins/page_sidebar/lib/page_sidebar.rb +1 -1
  815. data/vendor/plugins/typo_converter/Rakefile +7 -8
  816. data/vendor/plugins/typo_converter/db/wp25_schema.rb +152 -0
  817. data/vendor/plugins/typo_converter/lib/converters/base.rb +41 -2
  818. data/vendor/plugins/typo_converter/lib/converters/wp25.rb +59 -4
  819. data/vendor/plugins/typo_converter/lib/converters/wp25/comment.rb +1 -0
  820. data/vendor/plugins/typo_converter/lib/converters/wp25/option.rb +11 -0
  821. data/vendor/plugins/typo_converter/spec/converters/wp25_spec.rb +192 -0
  822. data/vendor/plugins/typo_converter/spec/factories/wp25_factories.rb +77 -0
  823. data/vendor/plugins/typo_converter/spec/spec_helper.rb +19 -0
  824. data/vendor/plugins/typo_converter/spec/typo_converter_spec.rb +2 -0
  825. data/vendor/plugins/typo_converter/tasks/typo_converters_tasks.rake +1 -4
  826. data/vendor/plugins/typo_textfilter_code/init.rb +7 -2
  827. data/vendor/plugins/typo_textfilter_code/lib/typo_textfilter_code.rb +2 -0
  828. data/vendor/plugins/typo_textfilter_lightbox/lib/typo_textfilter_lightbox.rb +4 -2
  829. data/vendor/plugins/typo_textfilter_textile/lib/typo_textfilter_textile.rb +1 -1
  830. data/vendor/plugins/xml_sidebar/lib/xml_sidebar.rb +3 -0
  831. data/vendor/plugins/xml_sidebar/views/content.rhtml +15 -1
  832. metadata +684 -1280
  833. data/app/controllers/application.rb +0 -90
  834. data/app/models/simple_cache.rb +0 -37
  835. data/app/views/admin/resources/new.html.erb +0 -16
  836. data/app/views/admin/settings/read.html.erb +0 -35
  837. data/app/views/admin/tags/_tags.html.erb +0 -18
  838. data/app/views/shared/_loginform.html.erb +0 -20
  839. data/config/initializers/active_record_hacks.rb +0 -17
  840. data/config/initializers/benchmark_hacks.rb +0 -9
  841. data/doc/typo-5.3-release-notes.txt +0 -105
  842. data/lib/memory_profiler.rb +0 -60
  843. data/lib/typo_deprecated.rb +0 -30
  844. data/lib/xmlrpc_fix.rb +0 -13
  845. data/public/javascripts/fckcustom.js +0 -28
  846. data/public/javascripts/fckeditor/editor/_source/classes/fckcontextmenu.js +0 -214
  847. data/public/javascripts/fckeditor/editor/_source/classes/fckdataprocessor.js +0 -119
  848. data/public/javascripts/fckeditor/editor/_source/classes/fckdocumentfragment_gecko.js +0 -46
  849. data/public/javascripts/fckeditor/editor/_source/classes/fckdocumentfragment_ie.js +0 -58
  850. data/public/javascripts/fckeditor/editor/_source/classes/fckdomrange.js +0 -918
  851. data/public/javascripts/fckeditor/editor/_source/classes/fckdomrange_gecko.js +0 -104
  852. data/public/javascripts/fckeditor/editor/_source/classes/fckdomrange_ie.js +0 -199
  853. data/public/javascripts/fckeditor/editor/_source/classes/fckdomrangeiterator.js +0 -327
  854. data/public/javascripts/fckeditor/editor/_source/classes/fckeditingarea.js +0 -362
  855. data/public/javascripts/fckeditor/editor/_source/classes/fckelementpath.js +0 -89
  856. data/public/javascripts/fckeditor/editor/_source/classes/fckenterkey.js +0 -667
  857. data/public/javascripts/fckeditor/editor/_source/classes/fckevents.js +0 -71
  858. data/public/javascripts/fckeditor/editor/_source/classes/fckhtmliterator.js +0 -142
  859. data/public/javascripts/fckeditor/editor/_source/classes/fckicon.js +0 -103
  860. data/public/javascripts/fckeditor/editor/_source/classes/fckiecleanup.js +0 -68
  861. data/public/javascripts/fckeditor/editor/_source/classes/fckimagepreloader.js +0 -64
  862. data/public/javascripts/fckeditor/editor/_source/classes/fckkeystrokehandler.js +0 -141
  863. data/public/javascripts/fckeditor/editor/_source/classes/fckmenublock.js +0 -153
  864. data/public/javascripts/fckeditor/editor/_source/classes/fckmenublockpanel.js +0 -54
  865. data/public/javascripts/fckeditor/editor/_source/classes/fckmenuitem.js +0 -161
  866. data/public/javascripts/fckeditor/editor/_source/classes/fckpanel.js +0 -385
  867. data/public/javascripts/fckeditor/editor/_source/classes/fckplugin.js +0 -56
  868. data/public/javascripts/fckeditor/editor/_source/classes/fckspecialcombo.js +0 -376
  869. data/public/javascripts/fckeditor/editor/_source/classes/fckstyle.js +0 -1443
  870. data/public/javascripts/fckeditor/editor/_source/classes/fcktoolbar.js +0 -103
  871. data/public/javascripts/fckeditor/editor/_source/classes/fcktoolbarbreak_gecko.js +0 -36
  872. data/public/javascripts/fckeditor/editor/_source/classes/fcktoolbarbreak_ie.js +0 -38
  873. data/public/javascripts/fckeditor/editor/_source/classes/fcktoolbarbutton.js +0 -81
  874. data/public/javascripts/fckeditor/editor/_source/classes/fcktoolbarbuttonui.js +0 -198
  875. data/public/javascripts/fckeditor/editor/_source/classes/fcktoolbarfontformatcombo.js +0 -139
  876. data/public/javascripts/fckeditor/editor/_source/classes/fcktoolbarfontscombo.js +0 -98
  877. data/public/javascripts/fckeditor/editor/_source/classes/fcktoolbarfontsizecombo.js +0 -76
  878. data/public/javascripts/fckeditor/editor/_source/classes/fcktoolbarpanelbutton.js +0 -103
  879. data/public/javascripts/fckeditor/editor/_source/classes/fcktoolbarspecialcombo.js +0 -146
  880. data/public/javascripts/fckeditor/editor/_source/classes/fcktoolbarstylecombo.js +0 -200
  881. data/public/javascripts/fckeditor/editor/_source/classes/fckw3crange.js +0 -451
  882. data/public/javascripts/fckeditor/editor/_source/classes/fckxml.js +0 -108
  883. data/public/javascripts/fckeditor/editor/_source/classes/fckxml_gecko.js +0 -102
  884. data/public/javascripts/fckeditor/editor/_source/classes/fckxml_ie.js +0 -88
  885. data/public/javascripts/fckeditor/editor/_source/commandclasses/fck_othercommands.js +0 -518
  886. data/public/javascripts/fckeditor/editor/_source/commandclasses/fckblockquotecommand.js +0 -250
  887. data/public/javascripts/fckeditor/editor/_source/commandclasses/fckcorestylecommand.js +0 -61
  888. data/public/javascripts/fckeditor/editor/_source/commandclasses/fckfitwindow.js +0 -180
  889. data/public/javascripts/fckeditor/editor/_source/commandclasses/fckindentcommands.js +0 -282
  890. data/public/javascripts/fckeditor/editor/_source/commandclasses/fckjustifycommands.js +0 -173
  891. data/public/javascripts/fckeditor/editor/_source/commandclasses/fcklistcommands.js +0 -382
  892. data/public/javascripts/fckeditor/editor/_source/commandclasses/fcknamedcommand.js +0 -39
  893. data/public/javascripts/fckeditor/editor/_source/commandclasses/fckpasteplaintextcommand.js +0 -40
  894. data/public/javascripts/fckeditor/editor/_source/commandclasses/fckpastewordcommand.js +0 -40
  895. data/public/javascripts/fckeditor/editor/_source/commandclasses/fckremoveformatcommand.js +0 -45
  896. data/public/javascripts/fckeditor/editor/_source/commandclasses/fckshowblocks.js +0 -74
  897. data/public/javascripts/fckeditor/editor/_source/commandclasses/fckspellcheckcommand_gecko.js +0 -41
  898. data/public/javascripts/fckeditor/editor/_source/commandclasses/fckspellcheckcommand_ie.js +0 -69
  899. data/public/javascripts/fckeditor/editor/_source/commandclasses/fckstylecommand.js +0 -60
  900. data/public/javascripts/fckeditor/editor/_source/commandclasses/fcktablecommand.js +0 -106
  901. data/public/javascripts/fckeditor/editor/_source/commandclasses/fcktextcolorcommand.js +0 -201
  902. data/public/javascripts/fckeditor/editor/_source/fckconstants.js +0 -56
  903. data/public/javascripts/fckeditor/editor/_source/fckeditorapi.js +0 -176
  904. data/public/javascripts/fckeditor/editor/_source/fckjscoreextensions.js +0 -166
  905. data/public/javascripts/fckeditor/editor/_source/fckscriptloader.js +0 -122
  906. data/public/javascripts/fckeditor/editor/_source/internals/fck.js +0 -1175
  907. data/public/javascripts/fckeditor/editor/_source/internals/fck_contextmenu.js +0 -325
  908. data/public/javascripts/fckeditor/editor/_source/internals/fck_gecko.js +0 -456
  909. data/public/javascripts/fckeditor/editor/_source/internals/fck_ie.js +0 -453
  910. data/public/javascripts/fckeditor/editor/_source/internals/fckbrowserinfo.js +0 -61
  911. data/public/javascripts/fckeditor/editor/_source/internals/fckcodeformatter.js +0 -100
  912. data/public/javascripts/fckeditor/editor/_source/internals/fckcommands.js +0 -167
  913. data/public/javascripts/fckeditor/editor/_source/internals/fckconfig.js +0 -238
  914. data/public/javascripts/fckeditor/editor/_source/internals/fckdebug.js +0 -56
  915. data/public/javascripts/fckeditor/editor/_source/internals/fckdialog.js +0 -234
  916. data/public/javascripts/fckeditor/editor/_source/internals/fckdialog_gecko.js +0 -103
  917. data/public/javascripts/fckeditor/editor/_source/internals/fckdialog_ie.js +0 -48
  918. data/public/javascripts/fckeditor/editor/_source/internals/fckdocumentprocessor.js +0 -249
  919. data/public/javascripts/fckeditor/editor/_source/internals/fckdomtools.js +0 -1024
  920. data/public/javascripts/fckeditor/editor/_source/internals/fcklanguagemanager.js +0 -163
  921. data/public/javascripts/fckeditor/editor/_source/internals/fcklisthandler.js +0 -152
  922. data/public/javascripts/fckeditor/editor/_source/internals/fcklistslib.js +0 -63
  923. data/public/javascripts/fckeditor/editor/_source/internals/fckplugins.js +0 -46
  924. data/public/javascripts/fckeditor/editor/_source/internals/fckregexlib.js +0 -99
  925. data/public/javascripts/fckeditor/editor/_source/internals/fckselection.js +0 -42
  926. data/public/javascripts/fckeditor/editor/_source/internals/fckselection_gecko.js +0 -220
  927. data/public/javascripts/fckeditor/editor/_source/internals/fckselection_ie.js +0 -275
  928. data/public/javascripts/fckeditor/editor/_source/internals/fckstyles.js +0 -381
  929. data/public/javascripts/fckeditor/editor/_source/internals/fcktablehandler.js +0 -858
  930. data/public/javascripts/fckeditor/editor/_source/internals/fcktablehandler_gecko.js +0 -56
  931. data/public/javascripts/fckeditor/editor/_source/internals/fcktablehandler_ie.js +0 -64
  932. data/public/javascripts/fckeditor/editor/_source/internals/fcktoolbaritems.js +0 -123
  933. data/public/javascripts/fckeditor/editor/_source/internals/fcktoolbarset.js +0 -399
  934. data/public/javascripts/fckeditor/editor/_source/internals/fcktools.js +0 -740
  935. data/public/javascripts/fckeditor/editor/_source/internals/fcktools_gecko.js +0 -282
  936. data/public/javascripts/fckeditor/editor/_source/internals/fcktools_ie.js +0 -233
  937. data/public/javascripts/fckeditor/editor/_source/internals/fckundo.js +0 -223
  938. data/public/javascripts/fckeditor/editor/_source/internals/fckurlparams.js +0 -39
  939. data/public/javascripts/fckeditor/editor/_source/internals/fckxhtml.js +0 -515
  940. data/public/javascripts/fckeditor/editor/_source/internals/fckxhtml_gecko.js +0 -101
  941. data/public/javascripts/fckeditor/editor/_source/internals/fckxhtml_ie.js +0 -203
  942. data/public/javascripts/fckeditor/editor/_source/internals/fckxhtmlentities.js +0 -354
  943. data/public/javascripts/fckeditor/editor/css/behaviors/disablehandles.htc +0 -15
  944. data/public/javascripts/fckeditor/editor/css/behaviors/showtableborders.htc +0 -36
  945. data/public/javascripts/fckeditor/editor/css/fck_editorarea.css +0 -92
  946. data/public/javascripts/fckeditor/editor/css/fck_internal.css +0 -199
  947. data/public/javascripts/fckeditor/editor/css/fck_showtableborders_gecko.css +0 -49
  948. data/public/javascripts/fckeditor/editor/css/images/fck_flashlogo.gif +0 -0
  949. data/public/javascripts/fckeditor/editor/css/images/fck_hiddenfield.gif +0 -0
  950. data/public/javascripts/fckeditor/editor/css/images/fck_plugin.gif +0 -0
  951. data/public/javascripts/fckeditor/editor/dialog/common/fck_dialog_common.css +0 -85
  952. data/public/javascripts/fckeditor/editor/dialog/common/fck_dialog_common.js +0 -338
  953. data/public/javascripts/fckeditor/editor/dialog/common/images/locked.gif +0 -0
  954. data/public/javascripts/fckeditor/editor/dialog/common/images/reset.gif +0 -0
  955. data/public/javascripts/fckeditor/editor/dialog/common/images/unlocked.gif +0 -0
  956. data/public/javascripts/fckeditor/editor/dialog/fck_about.html +0 -161
  957. data/public/javascripts/fckeditor/editor/dialog/fck_about/logo_fckeditor.gif +0 -0
  958. data/public/javascripts/fckeditor/editor/dialog/fck_about/logo_fredck.gif +0 -0
  959. data/public/javascripts/fckeditor/editor/dialog/fck_about/sponsors/spellchecker_net.gif +0 -0
  960. data/public/javascripts/fckeditor/editor/dialog/fck_anchor.html +0 -212
  961. data/public/javascripts/fckeditor/editor/dialog/fck_button.html +0 -104
  962. data/public/javascripts/fckeditor/editor/dialog/fck_checkbox.html +0 -104
  963. data/public/javascripts/fckeditor/editor/dialog/fck_colorselector.html +0 -172
  964. data/public/javascripts/fckeditor/editor/dialog/fck_docprops.html +0 -600
  965. data/public/javascripts/fckeditor/editor/dialog/fck_docprops/fck_document_preview.html +0 -113
  966. data/public/javascripts/fckeditor/editor/dialog/fck_find.html +0 -173
  967. data/public/javascripts/fckeditor/editor/dialog/fck_flash.html +0 -152
  968. data/public/javascripts/fckeditor/editor/dialog/fck_flash/fck_flash.js +0 -292
  969. data/public/javascripts/fckeditor/editor/dialog/fck_flash/fck_flash_preview.html +0 -50
  970. data/public/javascripts/fckeditor/editor/dialog/fck_form.html +0 -109
  971. data/public/javascripts/fckeditor/editor/dialog/fck_hiddenfield.html +0 -115
  972. data/public/javascripts/fckeditor/editor/dialog/fck_image.html +0 -258
  973. data/public/javascripts/fckeditor/editor/dialog/fck_image/fck_image.js +0 -504
  974. data/public/javascripts/fckeditor/editor/dialog/fck_image/fck_image_preview.html +0 -72
  975. data/public/javascripts/fckeditor/editor/dialog/fck_link.html +0 -293
  976. data/public/javascripts/fckeditor/editor/dialog/fck_link/fck_link.js +0 -736
  977. data/public/javascripts/fckeditor/editor/dialog/fck_listprop.html +0 -120
  978. data/public/javascripts/fckeditor/editor/dialog/fck_paste.html +0 -339
  979. data/public/javascripts/fckeditor/editor/dialog/fck_radiobutton.html +0 -104
  980. data/public/javascripts/fckeditor/editor/dialog/fck_replace.html +0 -530
  981. data/public/javascripts/fckeditor/editor/dialog/fck_select.html +0 -180
  982. data/public/javascripts/fckeditor/editor/dialog/fck_select/fck_select.js +0 -194
  983. data/public/javascripts/fckeditor/editor/dialog/fck_smiley.html +0 -111
  984. data/public/javascripts/fckeditor/editor/dialog/fck_source.html +0 -68
  985. data/public/javascripts/fckeditor/editor/dialog/fck_specialchar.html +0 -121
  986. data/public/javascripts/fckeditor/editor/dialog/fck_spellerpages.html +0 -65
  987. data/public/javascripts/fckeditor/editor/dialog/fck_spellerpages/spellerpages/blank.html +0 -0
  988. data/public/javascripts/fckeditor/editor/dialog/fck_spellerpages/spellerpages/controlWindow.js +0 -87
  989. data/public/javascripts/fckeditor/editor/dialog/fck_spellerpages/spellerpages/controls.html +0 -153
  990. data/public/javascripts/fckeditor/editor/dialog/fck_spellerpages/spellerpages/server-scripts/spellchecker.cfm +0 -148
  991. data/public/javascripts/fckeditor/editor/dialog/fck_spellerpages/spellerpages/server-scripts/spellchecker.php +0 -199
  992. data/public/javascripts/fckeditor/editor/dialog/fck_spellerpages/spellerpages/server-scripts/spellchecker.pl +0 -181
  993. data/public/javascripts/fckeditor/editor/dialog/fck_spellerpages/spellerpages/spellChecker.js +0 -461
  994. data/public/javascripts/fckeditor/editor/dialog/fck_spellerpages/spellerpages/spellchecker.html +0 -71
  995. data/public/javascripts/fckeditor/editor/dialog/fck_spellerpages/spellerpages/spellerStyle.css +0 -49
  996. data/public/javascripts/fckeditor/editor/dialog/fck_spellerpages/spellerpages/wordWindow.js +0 -272
  997. data/public/javascripts/fckeditor/editor/dialog/fck_table.html +0 -298
  998. data/public/javascripts/fckeditor/editor/dialog/fck_tablecell.html +0 -257
  999. data/public/javascripts/fckeditor/editor/dialog/fck_template.html +0 -242
  1000. data/public/javascripts/fckeditor/editor/dialog/fck_textarea.html +0 -94
  1001. data/public/javascripts/fckeditor/editor/dialog/fck_textfield.html +0 -136
  1002. data/public/javascripts/fckeditor/editor/dtd/fck_dtd_test.html +0 -41
  1003. data/public/javascripts/fckeditor/editor/dtd/fck_xhtml10strict.js +0 -116
  1004. data/public/javascripts/fckeditor/editor/dtd/fck_xhtml10transitional.js +0 -140
  1005. data/public/javascripts/fckeditor/editor/fckdebug.html +0 -153
  1006. data/public/javascripts/fckeditor/editor/fckdialog.html +0 -783
  1007. data/public/javascripts/fckeditor/editor/fckeditor.html +0 -278
  1008. data/public/javascripts/fckeditor/editor/fckeditor.original.html +0 -385
  1009. data/public/javascripts/fckeditor/editor/filemanager/browser/default/browser.css +0 -89
  1010. data/public/javascripts/fckeditor/editor/filemanager/browser/default/browser.html +0 -198
  1011. data/public/javascripts/fckeditor/editor/filemanager/browser/default/frmactualfolder.html +0 -99
  1012. data/public/javascripts/fckeditor/editor/filemanager/browser/default/frmcreatefolder.html +0 -113
  1013. data/public/javascripts/fckeditor/editor/filemanager/browser/default/frmfolders.html +0 -197
  1014. data/public/javascripts/fckeditor/editor/filemanager/browser/default/frmresourceslist.html +0 -168
  1015. data/public/javascripts/fckeditor/editor/filemanager/browser/default/frmresourcetype.html +0 -65
  1016. data/public/javascripts/fckeditor/editor/filemanager/browser/default/frmupload.html +0 -115
  1017. data/public/javascripts/fckeditor/editor/filemanager/browser/default/images/ButtonArrow.gif +0 -0
  1018. data/public/javascripts/fckeditor/editor/filemanager/browser/default/images/Folder.gif +0 -0
  1019. data/public/javascripts/fckeditor/editor/filemanager/browser/default/images/Folder32.gif +0 -0
  1020. data/public/javascripts/fckeditor/editor/filemanager/browser/default/images/FolderOpened.gif +0 -0
  1021. data/public/javascripts/fckeditor/editor/filemanager/browser/default/images/FolderOpened32.gif +0 -0
  1022. data/public/javascripts/fckeditor/editor/filemanager/browser/default/images/FolderUp.gif +0 -0
  1023. data/public/javascripts/fckeditor/editor/filemanager/browser/default/images/icons/32/ai.gif +0 -0
  1024. data/public/javascripts/fckeditor/editor/filemanager/browser/default/images/icons/32/avi.gif +0 -0
  1025. data/public/javascripts/fckeditor/editor/filemanager/browser/default/images/icons/32/bmp.gif +0 -0
  1026. data/public/javascripts/fckeditor/editor/filemanager/browser/default/images/icons/32/cs.gif +0 -0
  1027. data/public/javascripts/fckeditor/editor/filemanager/browser/default/images/icons/32/default.icon.gif +0 -0
  1028. data/public/javascripts/fckeditor/editor/filemanager/browser/default/images/icons/32/dll.gif +0 -0
  1029. data/public/javascripts/fckeditor/editor/filemanager/browser/default/images/icons/32/doc.gif +0 -0
  1030. data/public/javascripts/fckeditor/editor/filemanager/browser/default/images/icons/32/exe.gif +0 -0
  1031. data/public/javascripts/fckeditor/editor/filemanager/browser/default/images/icons/32/fla.gif +0 -0
  1032. data/public/javascripts/fckeditor/editor/filemanager/browser/default/images/icons/32/gif.gif +0 -0
  1033. data/public/javascripts/fckeditor/editor/filemanager/browser/default/images/icons/32/htm.gif +0 -0
  1034. data/public/javascripts/fckeditor/editor/filemanager/browser/default/images/icons/32/html.gif +0 -0
  1035. data/public/javascripts/fckeditor/editor/filemanager/browser/default/images/icons/32/jpg.gif +0 -0
  1036. data/public/javascripts/fckeditor/editor/filemanager/browser/default/images/icons/32/js.gif +0 -0
  1037. data/public/javascripts/fckeditor/editor/filemanager/browser/default/images/icons/32/mdb.gif +0 -0
  1038. data/public/javascripts/fckeditor/editor/filemanager/browser/default/images/icons/32/mp3.gif +0 -0
  1039. data/public/javascripts/fckeditor/editor/filemanager/browser/default/images/icons/32/pdf.gif +0 -0
  1040. data/public/javascripts/fckeditor/editor/filemanager/browser/default/images/icons/32/png.gif +0 -0
  1041. data/public/javascripts/fckeditor/editor/filemanager/browser/default/images/icons/32/ppt.gif +0 -0
  1042. data/public/javascripts/fckeditor/editor/filemanager/browser/default/images/icons/32/rdp.gif +0 -0
  1043. data/public/javascripts/fckeditor/editor/filemanager/browser/default/images/icons/32/swf.gif +0 -0
  1044. data/public/javascripts/fckeditor/editor/filemanager/browser/default/images/icons/32/swt.gif +0 -0
  1045. data/public/javascripts/fckeditor/editor/filemanager/browser/default/images/icons/32/txt.gif +0 -0
  1046. data/public/javascripts/fckeditor/editor/filemanager/browser/default/images/icons/32/vsd.gif +0 -0
  1047. data/public/javascripts/fckeditor/editor/filemanager/browser/default/images/icons/32/xls.gif +0 -0
  1048. data/public/javascripts/fckeditor/editor/filemanager/browser/default/images/icons/32/xml.gif +0 -0
  1049. data/public/javascripts/fckeditor/editor/filemanager/browser/default/images/icons/32/zip.gif +0 -0
  1050. data/public/javascripts/fckeditor/editor/filemanager/browser/default/images/icons/ai.gif +0 -0
  1051. data/public/javascripts/fckeditor/editor/filemanager/browser/default/images/icons/avi.gif +0 -0
  1052. data/public/javascripts/fckeditor/editor/filemanager/browser/default/images/icons/bmp.gif +0 -0
  1053. data/public/javascripts/fckeditor/editor/filemanager/browser/default/images/icons/cs.gif +0 -0
  1054. data/public/javascripts/fckeditor/editor/filemanager/browser/default/images/icons/default.icon.gif +0 -0
  1055. data/public/javascripts/fckeditor/editor/filemanager/browser/default/images/icons/dll.gif +0 -0
  1056. data/public/javascripts/fckeditor/editor/filemanager/browser/default/images/icons/doc.gif +0 -0
  1057. data/public/javascripts/fckeditor/editor/filemanager/browser/default/images/icons/exe.gif +0 -0
  1058. data/public/javascripts/fckeditor/editor/filemanager/browser/default/images/icons/fla.gif +0 -0
  1059. data/public/javascripts/fckeditor/editor/filemanager/browser/default/images/icons/gif.gif +0 -0
  1060. data/public/javascripts/fckeditor/editor/filemanager/browser/default/images/icons/htm.gif +0 -0
  1061. data/public/javascripts/fckeditor/editor/filemanager/browser/default/images/icons/html.gif +0 -0
  1062. data/public/javascripts/fckeditor/editor/filemanager/browser/default/images/icons/jpg.gif +0 -0
  1063. data/public/javascripts/fckeditor/editor/filemanager/browser/default/images/icons/js.gif +0 -0
  1064. data/public/javascripts/fckeditor/editor/filemanager/browser/default/images/icons/mdb.gif +0 -0
  1065. data/public/javascripts/fckeditor/editor/filemanager/browser/default/images/icons/mp3.gif +0 -0
  1066. data/public/javascripts/fckeditor/editor/filemanager/browser/default/images/icons/pdf.gif +0 -0
  1067. data/public/javascripts/fckeditor/editor/filemanager/browser/default/images/icons/png.gif +0 -0
  1068. data/public/javascripts/fckeditor/editor/filemanager/browser/default/images/icons/ppt.gif +0 -0
  1069. data/public/javascripts/fckeditor/editor/filemanager/browser/default/images/icons/rdp.gif +0 -0
  1070. data/public/javascripts/fckeditor/editor/filemanager/browser/default/images/icons/swf.gif +0 -0
  1071. data/public/javascripts/fckeditor/editor/filemanager/browser/default/images/icons/swt.gif +0 -0
  1072. data/public/javascripts/fckeditor/editor/filemanager/browser/default/images/icons/txt.gif +0 -0
  1073. data/public/javascripts/fckeditor/editor/filemanager/browser/default/images/icons/vsd.gif +0 -0
  1074. data/public/javascripts/fckeditor/editor/filemanager/browser/default/images/icons/xls.gif +0 -0
  1075. data/public/javascripts/fckeditor/editor/filemanager/browser/default/images/icons/xml.gif +0 -0
  1076. data/public/javascripts/fckeditor/editor/filemanager/browser/default/images/icons/zip.gif +0 -0
  1077. data/public/javascripts/fckeditor/editor/filemanager/browser/default/images/spacer.gif +0 -0
  1078. data/public/javascripts/fckeditor/editor/filemanager/browser/default/js/common.js +0 -87
  1079. data/public/javascripts/fckeditor/editor/filemanager/browser/default/js/fckxml.js +0 -129
  1080. data/public/javascripts/fckeditor/editor/filemanager/connectors/aspx/connector.aspx +0 -32
  1081. data/public/javascripts/fckeditor/editor/filemanager/connectors/aspx/upload.aspx +0 -32
  1082. data/public/javascripts/fckeditor/editor/filemanager/connectors/perl/basexml.pl +0 -63
  1083. data/public/javascripts/fckeditor/editor/filemanager/connectors/perl/commands.pl +0 -214
  1084. data/public/javascripts/fckeditor/editor/filemanager/connectors/perl/connector.cgi +0 -136
  1085. data/public/javascripts/fckeditor/editor/filemanager/connectors/perl/io.pl +0 -141
  1086. data/public/javascripts/fckeditor/editor/filemanager/connectors/perl/upload.cgi +0 -117
  1087. data/public/javascripts/fckeditor/editor/filemanager/connectors/perl/upload_fck.pl +0 -686
  1088. data/public/javascripts/fckeditor/editor/filemanager/connectors/perl/util.pl +0 -68
  1089. data/public/javascripts/fckeditor/editor/filemanager/connectors/py/config.py +0 -146
  1090. data/public/javascripts/fckeditor/editor/filemanager/connectors/py/connector.py +0 -118
  1091. data/public/javascripts/fckeditor/editor/filemanager/connectors/py/fckcommands.py +0 -198
  1092. data/public/javascripts/fckeditor/editor/filemanager/connectors/py/fckconnector.py +0 -90
  1093. data/public/javascripts/fckeditor/editor/filemanager/connectors/py/fckoutput.py +0 -142
  1094. data/public/javascripts/fckeditor/editor/filemanager/connectors/py/fckutil.py +0 -126
  1095. data/public/javascripts/fckeditor/editor/filemanager/connectors/py/htaccess.txt +0 -23
  1096. data/public/javascripts/fckeditor/editor/filemanager/connectors/py/upload.py +0 -88
  1097. data/public/javascripts/fckeditor/editor/filemanager/connectors/py/wsgi.py +0 -58
  1098. data/public/javascripts/fckeditor/editor/filemanager/connectors/py/zope.py +0 -188
  1099. data/public/javascripts/fckeditor/editor/filemanager/connectors/test.html +0 -210
  1100. data/public/javascripts/fckeditor/editor/filemanager/connectors/uploadtest.html +0 -192
  1101. data/public/javascripts/fckeditor/editor/images/arrow_ltr.gif +0 -0
  1102. data/public/javascripts/fckeditor/editor/images/arrow_rtl.gif +0 -0
  1103. data/public/javascripts/fckeditor/editor/images/smiley/msn/angel_smile.gif +0 -0
  1104. data/public/javascripts/fckeditor/editor/images/smiley/msn/angry_smile.gif +0 -0
  1105. data/public/javascripts/fckeditor/editor/images/smiley/msn/broken_heart.gif +0 -0
  1106. data/public/javascripts/fckeditor/editor/images/smiley/msn/cake.gif +0 -0
  1107. data/public/javascripts/fckeditor/editor/images/smiley/msn/confused_smile.gif +0 -0
  1108. data/public/javascripts/fckeditor/editor/images/smiley/msn/cry_smile.gif +0 -0
  1109. data/public/javascripts/fckeditor/editor/images/smiley/msn/devil_smile.gif +0 -0
  1110. data/public/javascripts/fckeditor/editor/images/smiley/msn/embaressed_smile.gif +0 -0
  1111. data/public/javascripts/fckeditor/editor/images/smiley/msn/envelope.gif +0 -0
  1112. data/public/javascripts/fckeditor/editor/images/smiley/msn/heart.gif +0 -0
  1113. data/public/javascripts/fckeditor/editor/images/smiley/msn/kiss.gif +0 -0
  1114. data/public/javascripts/fckeditor/editor/images/smiley/msn/lightbulb.gif +0 -0
  1115. data/public/javascripts/fckeditor/editor/images/smiley/msn/omg_smile.gif +0 -0
  1116. data/public/javascripts/fckeditor/editor/images/smiley/msn/regular_smile.gif +0 -0
  1117. data/public/javascripts/fckeditor/editor/images/smiley/msn/sad_smile.gif +0 -0
  1118. data/public/javascripts/fckeditor/editor/images/smiley/msn/shades_smile.gif +0 -0
  1119. data/public/javascripts/fckeditor/editor/images/smiley/msn/teeth_smile.gif +0 -0
  1120. data/public/javascripts/fckeditor/editor/images/smiley/msn/thumbs_down.gif +0 -0
  1121. data/public/javascripts/fckeditor/editor/images/smiley/msn/thumbs_up.gif +0 -0
  1122. data/public/javascripts/fckeditor/editor/images/smiley/msn/tounge_smile.gif +0 -0
  1123. data/public/javascripts/fckeditor/editor/images/smiley/msn/whatchutalkingabout_smile.gif +0 -0
  1124. data/public/javascripts/fckeditor/editor/images/smiley/msn/wink_smile.gif +0 -0
  1125. data/public/javascripts/fckeditor/editor/js/fckadobeair.js +0 -176
  1126. data/public/javascripts/fckeditor/editor/js/fckeditorcode_gecko.js +0 -108
  1127. data/public/javascripts/fckeditor/editor/js/fckeditorcode_ie.js +0 -109
  1128. data/public/javascripts/fckeditor/editor/lang/_translationstatus.txt +0 -77
  1129. data/public/javascripts/fckeditor/editor/lang/af.js +0 -515
  1130. data/public/javascripts/fckeditor/editor/lang/ar.js +0 -515
  1131. data/public/javascripts/fckeditor/editor/lang/bg.js +0 -515
  1132. data/public/javascripts/fckeditor/editor/lang/bn.js +0 -515
  1133. data/public/javascripts/fckeditor/editor/lang/bs.js +0 -515
  1134. data/public/javascripts/fckeditor/editor/lang/ca.js +0 -515
  1135. data/public/javascripts/fckeditor/editor/lang/cs.js +0 -515
  1136. data/public/javascripts/fckeditor/editor/lang/da.js +0 -515
  1137. data/public/javascripts/fckeditor/editor/lang/de.js +0 -515
  1138. data/public/javascripts/fckeditor/editor/lang/el.js +0 -515
  1139. data/public/javascripts/fckeditor/editor/lang/en-au.js +0 -515
  1140. data/public/javascripts/fckeditor/editor/lang/en-ca.js +0 -515
  1141. data/public/javascripts/fckeditor/editor/lang/en-uk.js +0 -515
  1142. data/public/javascripts/fckeditor/editor/lang/en.js +0 -515
  1143. data/public/javascripts/fckeditor/editor/lang/eo.js +0 -515
  1144. data/public/javascripts/fckeditor/editor/lang/es.js +0 -515
  1145. data/public/javascripts/fckeditor/editor/lang/et.js +0 -515
  1146. data/public/javascripts/fckeditor/editor/lang/eu.js +0 -516
  1147. data/public/javascripts/fckeditor/editor/lang/fa.js +0 -515
  1148. data/public/javascripts/fckeditor/editor/lang/fi.js +0 -515
  1149. data/public/javascripts/fckeditor/editor/lang/fo.js +0 -515
  1150. data/public/javascripts/fckeditor/editor/lang/fr-ca.js +0 -515
  1151. data/public/javascripts/fckeditor/editor/lang/fr.js +0 -515
  1152. data/public/javascripts/fckeditor/editor/lang/gl.js +0 -515
  1153. data/public/javascripts/fckeditor/editor/lang/he.js +0 -515
  1154. data/public/javascripts/fckeditor/editor/lang/hi.js +0 -515
  1155. data/public/javascripts/fckeditor/editor/lang/hr.js +0 -515
  1156. data/public/javascripts/fckeditor/editor/lang/hu.js +0 -515
  1157. data/public/javascripts/fckeditor/editor/lang/it.js +0 -515
  1158. data/public/javascripts/fckeditor/editor/lang/ja.js +0 -515
  1159. data/public/javascripts/fckeditor/editor/lang/km.js +0 -515
  1160. data/public/javascripts/fckeditor/editor/lang/ko.js +0 -515
  1161. data/public/javascripts/fckeditor/editor/lang/lt.js +0 -515
  1162. data/public/javascripts/fckeditor/editor/lang/lv.js +0 -515
  1163. data/public/javascripts/fckeditor/editor/lang/mn.js +0 -515
  1164. data/public/javascripts/fckeditor/editor/lang/ms.js +0 -515
  1165. data/public/javascripts/fckeditor/editor/lang/nb.js +0 -515
  1166. data/public/javascripts/fckeditor/editor/lang/nl.js +0 -515
  1167. data/public/javascripts/fckeditor/editor/lang/no.js +0 -515
  1168. data/public/javascripts/fckeditor/editor/lang/pl.js +0 -515
  1169. data/public/javascripts/fckeditor/editor/lang/pt-br.js +0 -515
  1170. data/public/javascripts/fckeditor/editor/lang/pt.js +0 -515
  1171. data/public/javascripts/fckeditor/editor/lang/ro.js +0 -515
  1172. data/public/javascripts/fckeditor/editor/lang/ru.js +0 -515
  1173. data/public/javascripts/fckeditor/editor/lang/sk.js +0 -515
  1174. data/public/javascripts/fckeditor/editor/lang/sl.js +0 -515
  1175. data/public/javascripts/fckeditor/editor/lang/sr-latn.js +0 -515
  1176. data/public/javascripts/fckeditor/editor/lang/sr.js +0 -515
  1177. data/public/javascripts/fckeditor/editor/lang/sv.js +0 -515
  1178. data/public/javascripts/fckeditor/editor/lang/th.js +0 -515
  1179. data/public/javascripts/fckeditor/editor/lang/tr.js +0 -515
  1180. data/public/javascripts/fckeditor/editor/lang/uk.js +0 -515
  1181. data/public/javascripts/fckeditor/editor/lang/vi.js +0 -515
  1182. data/public/javascripts/fckeditor/editor/lang/zh-cn.js +0 -515
  1183. data/public/javascripts/fckeditor/editor/lang/zh.js +0 -515
  1184. data/public/javascripts/fckeditor/editor/plugins/autogrow/fckplugin.js +0 -99
  1185. data/public/javascripts/fckeditor/editor/plugins/bbcode/_sample/sample.config.js +0 -26
  1186. data/public/javascripts/fckeditor/editor/plugins/bbcode/_sample/sample.html +0 -67
  1187. data/public/javascripts/fckeditor/editor/plugins/bbcode/fckplugin.js +0 -123
  1188. data/public/javascripts/fckeditor/editor/plugins/dragresizetable/fckplugin.js +0 -527
  1189. data/public/javascripts/fckeditor/editor/plugins/placeholder/fck_placeholder.html +0 -105
  1190. data/public/javascripts/fckeditor/editor/plugins/placeholder/fckplugin.js +0 -187
  1191. data/public/javascripts/fckeditor/editor/plugins/placeholder/lang/de.js +0 -27
  1192. data/public/javascripts/fckeditor/editor/plugins/placeholder/lang/en.js +0 -27
  1193. data/public/javascripts/fckeditor/editor/plugins/placeholder/lang/es.js +0 -27
  1194. data/public/javascripts/fckeditor/editor/plugins/placeholder/lang/fr.js +0 -27
  1195. data/public/javascripts/fckeditor/editor/plugins/placeholder/lang/it.js +0 -27
  1196. data/public/javascripts/fckeditor/editor/plugins/placeholder/lang/pl.js +0 -27
  1197. data/public/javascripts/fckeditor/editor/plugins/placeholder/placeholder.gif +0 -0
  1198. data/public/javascripts/fckeditor/editor/plugins/simplecommands/fckplugin.js +0 -29
  1199. data/public/javascripts/fckeditor/editor/plugins/tablecommands/fckplugin.js +0 -33
  1200. data/public/javascripts/fckeditor/editor/skins/_fckviewstrips.html +0 -121
  1201. data/public/javascripts/fckeditor/editor/skins/silver/fck_dialog.css +0 -402
  1202. data/public/javascripts/fckeditor/editor/skins/silver/fck_editor.css +0 -473
  1203. data/public/javascripts/fckeditor/editor/skins/silver/fck_strip.gif +0 -0
  1204. data/public/javascripts/fckeditor/editor/skins/silver/images/toolbar.arrowright.gif +0 -0
  1205. data/public/javascripts/fckeditor/editor/skins/silver/images/toolbar.buttonarrow.gif +0 -0
  1206. data/public/javascripts/fckeditor/editor/skins/silver/images/toolbar.buttonbg.gif +0 -0
  1207. data/public/javascripts/fckeditor/editor/skins/silver/images/toolbar.collapse.gif +0 -0
  1208. data/public/javascripts/fckeditor/editor/skins/silver/images/toolbar.expand.gif +0 -0
  1209. data/public/javascripts/fckeditor/editor/skins/silver/images/toolbar.separator.gif +0 -0
  1210. data/public/javascripts/fckeditor/fckconfig.js +0 -316
  1211. data/public/javascripts/fckeditor/fckeditor.js +0 -303
  1212. data/public/javascripts/fckeditor/fckeditor.py +0 -160
  1213. data/public/javascripts/fckeditor/fckpackager.xml +0 -262
  1214. data/public/javascripts/fckeditor/fckstyles.xml +0 -111
  1215. data/public/javascripts/fckeditor/fcktemplates.xml +0 -103
  1216. data/public/javascripts/fckeditor/license.txt +0 -1246
  1217. data/public/sources/javascripts/administration.js +0 -12
  1218. data/public/sources/javascripts/application.js +0 -2
  1219. data/public/sources/javascripts/codecollapse.js +0 -8
  1220. data/public/sources/javascripts/controls.js +0 -963
  1221. data/public/sources/javascripts/cookies.js +0 -60
  1222. data/public/sources/javascripts/dragdrop.js +0 -972
  1223. data/public/sources/javascripts/effects.js +0 -1120
  1224. data/public/sources/javascripts/fckcustom.js +0 -28
  1225. data/public/sources/javascripts/lang/default.js +0 -21
  1226. data/public/sources/javascripts/lang/en_US.js +0 -21
  1227. data/public/sources/javascripts/lang/fr_FR.js +0 -21
  1228. data/public/sources/javascripts/lightbox.js +0 -202
  1229. data/public/sources/javascripts/prototype.js +0 -4320
  1230. data/public/sources/javascripts/quicktags.js +0 -511
  1231. data/public/sources/javascripts/scriptaculous.js +0 -58
  1232. data/public/sources/javascripts/slider.js +0 -258
  1233. data/public/sources/javascripts/typo.js +0 -136
  1234. data/public/sources/stylesheets/administration.css +0 -955
  1235. data/public/sources/stylesheets/administration_rtl.css +0 -1026
  1236. data/public/sources/stylesheets/codecollapse.css +0 -3
  1237. data/public/sources/stylesheets/coderay.css +0 -126
  1238. data/public/sources/stylesheets/lightbox.css +0 -62
  1239. data/public/sources/stylesheets/rss.css +0 -54
  1240. data/public/sources/stylesheets/textmate/dawn.css +0 -209
  1241. data/public/sources/stylesheets/textmate/iplastic.css +0 -142
  1242. data/public/sources/stylesheets/textmate/space_cadet.css +0 -99
  1243. data/public/sources/stylesheets/textmate/textmate.css +0 -48
  1244. data/public/sources/stylesheets/textmate/twilight.css +0 -227
  1245. data/public/sources/stylesheets/user-styles.css +0 -22
  1246. data/spec/controllers/admin/article_preview_spec.rb +0 -20
  1247. data/spec/models/typo_deprecated_spec.rb +0 -18
  1248. data/vendor/actionwebservice/CHANGELOG +0 -320
  1249. data/vendor/actionwebservice/MIT-LICENSE +0 -21
  1250. data/vendor/actionwebservice/README +0 -381
  1251. data/vendor/actionwebservice/Rakefile +0 -173
  1252. data/vendor/actionwebservice/TODO +0 -32
  1253. data/vendor/actionwebservice/examples/googlesearch/README +0 -143
  1254. data/vendor/actionwebservice/examples/googlesearch/autoloading/google_search_api.rb +0 -50
  1255. data/vendor/actionwebservice/examples/googlesearch/autoloading/google_search_controller.rb +0 -57
  1256. data/vendor/actionwebservice/examples/googlesearch/delegated/google_search_service.rb +0 -108
  1257. data/vendor/actionwebservice/examples/googlesearch/delegated/search_controller.rb +0 -7
  1258. data/vendor/actionwebservice/examples/googlesearch/direct/google_search_api.rb +0 -50
  1259. data/vendor/actionwebservice/examples/googlesearch/direct/search_controller.rb +0 -58
  1260. data/vendor/actionwebservice/examples/metaWeblog/README +0 -17
  1261. data/vendor/actionwebservice/examples/metaWeblog/apis/blogger_api.rb +0 -60
  1262. data/vendor/actionwebservice/examples/metaWeblog/apis/blogger_service.rb +0 -34
  1263. data/vendor/actionwebservice/examples/metaWeblog/apis/meta_weblog_api.rb +0 -67
  1264. data/vendor/actionwebservice/examples/metaWeblog/apis/meta_weblog_service.rb +0 -48
  1265. data/vendor/actionwebservice/examples/metaWeblog/controllers/xmlrpc_controller.rb +0 -16
  1266. data/vendor/actionwebservice/generators/web_service/USAGE +0 -28
  1267. data/vendor/actionwebservice/generators/web_service/templates/api_definition.rb +0 -5
  1268. data/vendor/actionwebservice/generators/web_service/templates/controller.rb +0 -8
  1269. data/vendor/actionwebservice/generators/web_service/templates/functional_test.rb +0 -19
  1270. data/vendor/actionwebservice/generators/web_service/web_service_generator.rb +0 -29
  1271. data/vendor/actionwebservice/lib/action_web_service.rb +0 -66
  1272. data/vendor/actionwebservice/lib/action_web_service/api.rb +0 -297
  1273. data/vendor/actionwebservice/lib/action_web_service/base.rb +0 -38
  1274. data/vendor/actionwebservice/lib/action_web_service/casting.rb +0 -144
  1275. data/vendor/actionwebservice/lib/action_web_service/client.rb +0 -3
  1276. data/vendor/actionwebservice/lib/action_web_service/client/base.rb +0 -28
  1277. data/vendor/actionwebservice/lib/action_web_service/client/soap_client.rb +0 -113
  1278. data/vendor/actionwebservice/lib/action_web_service/client/xmlrpc_client.rb +0 -58
  1279. data/vendor/actionwebservice/lib/action_web_service/container.rb +0 -3
  1280. data/vendor/actionwebservice/lib/action_web_service/container/action_controller_container.rb +0 -93
  1281. data/vendor/actionwebservice/lib/action_web_service/container/delegated_container.rb +0 -86
  1282. data/vendor/actionwebservice/lib/action_web_service/container/direct_container.rb +0 -69
  1283. data/vendor/actionwebservice/lib/action_web_service/dispatcher.rb +0 -2
  1284. data/vendor/actionwebservice/lib/action_web_service/dispatcher/abstract.rb +0 -207
  1285. data/vendor/actionwebservice/lib/action_web_service/dispatcher/action_controller_dispatcher.rb +0 -379
  1286. data/vendor/actionwebservice/lib/action_web_service/invocation.rb +0 -202
  1287. data/vendor/actionwebservice/lib/action_web_service/protocol.rb +0 -4
  1288. data/vendor/actionwebservice/lib/action_web_service/protocol/abstract.rb +0 -112
  1289. data/vendor/actionwebservice/lib/action_web_service/protocol/discovery.rb +0 -37
  1290. data/vendor/actionwebservice/lib/action_web_service/protocol/soap_protocol.rb +0 -176
  1291. data/vendor/actionwebservice/lib/action_web_service/protocol/soap_protocol/marshaler.rb +0 -242
  1292. data/vendor/actionwebservice/lib/action_web_service/protocol/xmlrpc_protocol.rb +0 -122
  1293. data/vendor/actionwebservice/lib/action_web_service/scaffolding.rb +0 -281
  1294. data/vendor/actionwebservice/lib/action_web_service/struct.rb +0 -64
  1295. data/vendor/actionwebservice/lib/action_web_service/support/class_inheritable_options.rb +0 -26
  1296. data/vendor/actionwebservice/lib/action_web_service/support/signature_types.rb +0 -226
  1297. data/vendor/actionwebservice/lib/action_web_service/templates/scaffolds/layout.html.erb +0 -65
  1298. data/vendor/actionwebservice/lib/action_web_service/templates/scaffolds/methods.html.erb +0 -6
  1299. data/vendor/actionwebservice/lib/action_web_service/templates/scaffolds/parameters.html.erb +0 -29
  1300. data/vendor/actionwebservice/lib/action_web_service/templates/scaffolds/result.html.erb +0 -30
  1301. data/vendor/actionwebservice/lib/action_web_service/test_invoke.rb +0 -110
  1302. data/vendor/actionwebservice/lib/action_web_service/version.rb +0 -9
  1303. data/vendor/actionwebservice/lib/actionwebservice.rb +0 -1
  1304. data/vendor/actionwebservice/setup.rb +0 -1379
  1305. data/vendor/actionwebservice/test/abstract_client.rb +0 -183
  1306. data/vendor/actionwebservice/test/abstract_dispatcher.rb +0 -547
  1307. data/vendor/actionwebservice/test/abstract_unit.rb +0 -33
  1308. data/vendor/actionwebservice/test/api_test.rb +0 -102
  1309. data/vendor/actionwebservice/test/apis/auto_load_api.rb +0 -3
  1310. data/vendor/actionwebservice/test/apis/broken_auto_load_api.rb +0 -2
  1311. data/vendor/actionwebservice/test/base_test.rb +0 -42
  1312. data/vendor/actionwebservice/test/casting_test.rb +0 -86
  1313. data/vendor/actionwebservice/test/client_soap_test.rb +0 -155
  1314. data/vendor/actionwebservice/test/client_xmlrpc_test.rb +0 -153
  1315. data/vendor/actionwebservice/test/container_test.rb +0 -73
  1316. data/vendor/actionwebservice/test/dispatcher_action_controller_soap_test.rb +0 -137
  1317. data/vendor/actionwebservice/test/dispatcher_action_controller_xmlrpc_test.rb +0 -59
  1318. data/vendor/actionwebservice/test/fixtures/db_definitions/mysql.sql +0 -8
  1319. data/vendor/actionwebservice/test/fixtures/users.yml +0 -12
  1320. data/vendor/actionwebservice/test/gencov +0 -3
  1321. data/vendor/actionwebservice/test/invocation_test.rb +0 -185
  1322. data/vendor/actionwebservice/test/run +0 -6
  1323. data/vendor/actionwebservice/test/scaffolded_controller_test.rb +0 -146
  1324. data/vendor/actionwebservice/test/struct_test.rb +0 -52
  1325. data/vendor/actionwebservice/test/test_invoke_test.rb +0 -112
  1326. data/vendor/bluecloth/CHANGES +0 -366
  1327. data/vendor/bluecloth/LICENSE +0 -340
  1328. data/vendor/bluecloth/README +0 -99
  1329. data/vendor/bluecloth/bin/bluecloth +0 -83
  1330. data/vendor/bluecloth/install.rb +0 -150
  1331. data/vendor/bluecloth/lib/bluecloth.rb +0 -1144
  1332. data/vendor/bluecloth/test.rb +0 -117
  1333. data/vendor/bluecloth/tests/00_Class.tests.rb +0 -71
  1334. data/vendor/bluecloth/tests/05_Markdown.tests.rb +0 -1527
  1335. data/vendor/bluecloth/tests/10_Bug.tests.rb +0 -57
  1336. data/vendor/bluecloth/tests/15_Contrib.tests.rb +0 -132
  1337. data/vendor/bluecloth/tests/bctestcase.rb +0 -274
  1338. data/vendor/bluecloth/tests/data/antsugar.txt +0 -34
  1339. data/vendor/bluecloth/tests/data/ml-announce.txt +0 -17
  1340. data/vendor/bluecloth/tests/data/re-overflow.txt +0 -67
  1341. data/vendor/bluecloth/tests/data/re-overflow2.txt +0 -281
  1342. data/vendor/bluecloth/utils.rb +0 -553
  1343. data/vendor/cached_model/History.txt +0 -30
  1344. data/vendor/cached_model/LICENSE.txt +0 -30
  1345. data/vendor/cached_model/Manifest.txt +0 -7
  1346. data/vendor/cached_model/README.txt +0 -96
  1347. data/vendor/cached_model/Rakefile +0 -25
  1348. data/vendor/cached_model/lib/cached_model.rb +0 -287
  1349. data/vendor/cached_model/test/test_cached_model.rb +0 -593
  1350. data/vendor/gems/calendar_date_select-1.15/.specification +0 -56
  1351. data/vendor/gems/calendar_date_select-1.15/History.txt +0 -237
  1352. data/vendor/gems/calendar_date_select-1.15/MIT-LICENSE +0 -20
  1353. data/vendor/gems/calendar_date_select-1.15/Manifest.txt +0 -42
  1354. data/vendor/gems/calendar_date_select-1.15/Rakefile +0 -31
  1355. data/vendor/gems/calendar_date_select-1.15/Readme.txt +0 -16
  1356. data/vendor/gems/calendar_date_select-1.15/init.rb +0 -1
  1357. data/vendor/gems/calendar_date_select-1.15/js_test/functional/cds_test.html +0 -334
  1358. data/vendor/gems/calendar_date_select-1.15/js_test/prototype.js +0 -4184
  1359. data/vendor/gems/calendar_date_select-1.15/js_test/test.css +0 -40
  1360. data/vendor/gems/calendar_date_select-1.15/js_test/unit/cds_helper_methods.html +0 -46
  1361. data/vendor/gems/calendar_date_select-1.15/js_test/unittest.js +0 -564
  1362. data/vendor/gems/calendar_date_select-1.15/lib/calendar_date_select.rb +0 -33
  1363. data/vendor/gems/calendar_date_select-1.15/lib/calendar_date_select/calendar_date_select.rb +0 -116
  1364. data/vendor/gems/calendar_date_select-1.15/lib/calendar_date_select/form_helpers.rb +0 -225
  1365. data/vendor/gems/calendar_date_select-1.15/lib/calendar_date_select/includes_helper.rb +0 -29
  1366. data/vendor/gems/calendar_date_select-1.15/public/blank_iframe.html +0 -2
  1367. data/vendor/gems/calendar_date_select-1.15/public/images/calendar_date_select/calendar.gif +0 -0
  1368. data/vendor/gems/calendar_date_select-1.15/public/javascripts/calendar_date_select/calendar_date_select.js +0 -443
  1369. data/vendor/gems/calendar_date_select-1.15/public/javascripts/calendar_date_select/format_american.js +0 -34
  1370. data/vendor/gems/calendar_date_select-1.15/public/javascripts/calendar_date_select/format_db.js +0 -27
  1371. data/vendor/gems/calendar_date_select-1.15/public/javascripts/calendar_date_select/format_euro_24hr.js +0 -7
  1372. data/vendor/gems/calendar_date_select-1.15/public/javascripts/calendar_date_select/format_euro_24hr_ymd.js +0 -7
  1373. data/vendor/gems/calendar_date_select-1.15/public/javascripts/calendar_date_select/format_finnish.js +0 -32
  1374. data/vendor/gems/calendar_date_select-1.15/public/javascripts/calendar_date_select/format_hyphen_ampm.js +0 -37
  1375. data/vendor/gems/calendar_date_select-1.15/public/javascripts/calendar_date_select/format_iso_date.js +0 -46
  1376. data/vendor/gems/calendar_date_select-1.15/public/javascripts/calendar_date_select/format_italian.js +0 -24
  1377. data/vendor/gems/calendar_date_select-1.15/public/javascripts/calendar_date_select/locale/de.js +0 -11
  1378. data/vendor/gems/calendar_date_select-1.15/public/javascripts/calendar_date_select/locale/fi.js +0 -10
  1379. data/vendor/gems/calendar_date_select-1.15/public/javascripts/calendar_date_select/locale/fr.js +0 -10
  1380. data/vendor/gems/calendar_date_select-1.15/public/javascripts/calendar_date_select/locale/pl.js +0 -10
  1381. data/vendor/gems/calendar_date_select-1.15/public/javascripts/calendar_date_select/locale/pt.js +0 -11
  1382. data/vendor/gems/calendar_date_select-1.15/public/javascripts/calendar_date_select/locale/ru.js +0 -10
  1383. data/vendor/gems/calendar_date_select-1.15/public/stylesheets/calendar_date_select/blue.css +0 -130
  1384. data/vendor/gems/calendar_date_select-1.15/public/stylesheets/calendar_date_select/default.css +0 -135
  1385. data/vendor/gems/calendar_date_select-1.15/public/stylesheets/calendar_date_select/plain.css +0 -128
  1386. data/vendor/gems/calendar_date_select-1.15/public/stylesheets/calendar_date_select/red.css +0 -135
  1387. data/vendor/gems/calendar_date_select-1.15/public/stylesheets/calendar_date_select/silver.css +0 -133
  1388. data/vendor/gems/calendar_date_select-1.15/spec/calendar_date_select/calendar_date_select_spec.rb +0 -14
  1389. data/vendor/gems/calendar_date_select-1.15/spec/calendar_date_select/form_helpers_spec.rb +0 -166
  1390. data/vendor/gems/calendar_date_select-1.15/spec/spec_helper.rb +0 -26
  1391. data/vendor/gems/coderay-0.8.260/.specification +0 -115
  1392. data/vendor/gems/coderay-0.8.260/FOLDERS +0 -53
  1393. data/vendor/gems/coderay-0.8.260/LICENSE +0 -504
  1394. data/vendor/gems/coderay-0.8.260/README +0 -128
  1395. data/vendor/gems/coderay-0.8.260/bin/coderay +0 -82
  1396. data/vendor/gems/coderay-0.8.260/bin/coderay_stylesheet +0 -4
  1397. data/vendor/gems/coderay-0.8.260/lib/coderay.rb +0 -321
  1398. data/vendor/gems/coderay-0.8.260/lib/coderay/duo.rb +0 -87
  1399. data/vendor/gems/coderay-0.8.260/lib/coderay/encoder.rb +0 -182
  1400. data/vendor/gems/coderay-0.8.260/lib/coderay/encoders/_map.rb +0 -9
  1401. data/vendor/gems/coderay-0.8.260/lib/coderay/encoders/count.rb +0 -21
  1402. data/vendor/gems/coderay-0.8.260/lib/coderay/encoders/debug.rb +0 -49
  1403. data/vendor/gems/coderay-0.8.260/lib/coderay/encoders/div.rb +0 -20
  1404. data/vendor/gems/coderay-0.8.260/lib/coderay/encoders/html.rb +0 -287
  1405. data/vendor/gems/coderay-0.8.260/lib/coderay/encoders/html/css.rb +0 -70
  1406. data/vendor/gems/coderay-0.8.260/lib/coderay/encoders/html/numerization.rb +0 -124
  1407. data/vendor/gems/coderay-0.8.260/lib/coderay/encoders/html/output.rb +0 -197
  1408. data/vendor/gems/coderay-0.8.260/lib/coderay/encoders/null.rb +0 -26
  1409. data/vendor/gems/coderay-0.8.260/lib/coderay/encoders/page.rb +0 -21
  1410. data/vendor/gems/coderay-0.8.260/lib/coderay/encoders/span.rb +0 -20
  1411. data/vendor/gems/coderay-0.8.260/lib/coderay/encoders/statistic.rb +0 -77
  1412. data/vendor/gems/coderay-0.8.260/lib/coderay/encoders/text.rb +0 -32
  1413. data/vendor/gems/coderay-0.8.260/lib/coderay/encoders/tokens.rb +0 -44
  1414. data/vendor/gems/coderay-0.8.260/lib/coderay/encoders/xml.rb +0 -70
  1415. data/vendor/gems/coderay-0.8.260/lib/coderay/encoders/yaml.rb +0 -22
  1416. data/vendor/gems/coderay-0.8.260/lib/coderay/for_redcloth.rb +0 -72
  1417. data/vendor/gems/coderay-0.8.260/lib/coderay/helpers/file_type.rb +0 -211
  1418. data/vendor/gems/coderay-0.8.260/lib/coderay/helpers/gzip_simple.rb +0 -123
  1419. data/vendor/gems/coderay-0.8.260/lib/coderay/helpers/plugin.rb +0 -333
  1420. data/vendor/gems/coderay-0.8.260/lib/coderay/helpers/word_list.rb +0 -123
  1421. data/vendor/gems/coderay-0.8.260/lib/coderay/scanner.rb +0 -255
  1422. data/vendor/gems/coderay-0.8.260/lib/coderay/scanners/_map.rb +0 -15
  1423. data/vendor/gems/coderay-0.8.260/lib/coderay/scanners/c.rb +0 -165
  1424. data/vendor/gems/coderay-0.8.260/lib/coderay/scanners/css.rb +0 -181
  1425. data/vendor/gems/coderay-0.8.260/lib/coderay/scanners/debug.rb +0 -61
  1426. data/vendor/gems/coderay-0.8.260/lib/coderay/scanners/delphi.rb +0 -150
  1427. data/vendor/gems/coderay-0.8.260/lib/coderay/scanners/diff.rb +0 -104
  1428. data/vendor/gems/coderay-0.8.260/lib/coderay/scanners/html.rb +0 -177
  1429. data/vendor/gems/coderay-0.8.260/lib/coderay/scanners/java.rb +0 -179
  1430. data/vendor/gems/coderay-0.8.260/lib/coderay/scanners/java/builtin_types.rb +0 -419
  1431. data/vendor/gems/coderay-0.8.260/lib/coderay/scanners/java_script.rb +0 -187
  1432. data/vendor/gems/coderay-0.8.260/lib/coderay/scanners/json.rb +0 -106
  1433. data/vendor/gems/coderay-0.8.260/lib/coderay/scanners/nitro_xhtml.rb +0 -134
  1434. data/vendor/gems/coderay-0.8.260/lib/coderay/scanners/plaintext.rb +0 -18
  1435. data/vendor/gems/coderay-0.8.260/lib/coderay/scanners/rhtml.rb +0 -73
  1436. data/vendor/gems/coderay-0.8.260/lib/coderay/scanners/ruby.rb +0 -381
  1437. data/vendor/gems/coderay-0.8.260/lib/coderay/scanners/ruby/patterns.rb +0 -226
  1438. data/vendor/gems/coderay-0.8.260/lib/coderay/scanners/scheme.rb +0 -142
  1439. data/vendor/gems/coderay-0.8.260/lib/coderay/scanners/sql.Keith.rb +0 -143
  1440. data/vendor/gems/coderay-0.8.260/lib/coderay/scanners/sql.rb +0 -154
  1441. data/vendor/gems/coderay-0.8.260/lib/coderay/scanners/xml.rb +0 -19
  1442. data/vendor/gems/coderay-0.8.260/lib/coderay/style.rb +0 -20
  1443. data/vendor/gems/coderay-0.8.260/lib/coderay/styles/_map.rb +0 -7
  1444. data/vendor/gems/coderay-0.8.260/lib/coderay/styles/cycnus.rb +0 -146
  1445. data/vendor/gems/coderay-0.8.260/lib/coderay/styles/murphy.rb +0 -132
  1446. data/vendor/gems/coderay-0.8.260/lib/coderay/token_classes.rb +0 -82
  1447. data/vendor/gems/coderay-0.8.260/lib/coderay/tokens.rb +0 -387
  1448. data/vendor/gems/coderay-0.8.260/lib/term/ansicolor.rb +0 -220
  1449. data/vendor/gems/htmlentities-4.0.0/.specification +0 -68
  1450. data/vendor/gems/htmlentities-4.0.0/COPYING.txt +0 -21
  1451. data/vendor/gems/htmlentities-4.0.0/History.txt +0 -47
  1452. data/vendor/gems/htmlentities-4.0.0/README.txt +0 -44
  1453. data/vendor/gems/htmlentities-4.0.0/lib/htmlentities.rb +0 -165
  1454. data/vendor/gems/htmlentities-4.0.0/lib/htmlentities/html4.rb +0 -257
  1455. data/vendor/gems/htmlentities-4.0.0/lib/htmlentities/legacy.rb +0 -27
  1456. data/vendor/gems/htmlentities-4.0.0/lib/htmlentities/string.rb +0 -26
  1457. data/vendor/gems/htmlentities-4.0.0/lib/htmlentities/xhtml1.rb +0 -258
  1458. data/vendor/gems/htmlentities-4.0.0/test/entities_test.rb +0 -206
  1459. data/vendor/gems/htmlentities-4.0.0/test/html4_test.rb +0 -24
  1460. data/vendor/gems/htmlentities-4.0.0/test/legacy_test.rb +0 -34
  1461. data/vendor/gems/htmlentities-4.0.0/test/roundtrip_test.rb +0 -94
  1462. data/vendor/gems/htmlentities-4.0.0/test/string_test.rb +0 -24
  1463. data/vendor/gems/htmlentities-4.0.0/test/test_all.rb +0 -3
  1464. data/vendor/gems/htmlentities-4.0.0/test/xhtml1_test.rb +0 -23
  1465. data/vendor/gems/json-1.1.3/.require_paths +0 -4
  1466. data/vendor/gems/json-1.1.3/.specification +0 -58
  1467. data/vendor/gems/json-1.1.3/CHANGES +0 -93
  1468. data/vendor/gems/json-1.1.3/GPL +0 -340
  1469. data/vendor/gems/json-1.1.3/README +0 -78
  1470. data/vendor/gems/json-1.1.3/RUBY +0 -58
  1471. data/vendor/gems/json-1.1.3/Rakefile +0 -309
  1472. data/vendor/gems/json-1.1.3/TODO +0 -1
  1473. data/vendor/gems/json-1.1.3/VERSION +0 -1
  1474. data/vendor/gems/json-1.1.3/benchmarks/benchmark.txt +0 -133
  1475. data/vendor/gems/json-1.1.3/benchmarks/benchmark_generator.rb +0 -48
  1476. data/vendor/gems/json-1.1.3/benchmarks/benchmark_parser.rb +0 -26
  1477. data/vendor/gems/json-1.1.3/benchmarks/benchmark_rails.rb +0 -26
  1478. data/vendor/gems/json-1.1.3/bin/edit_json.rb +0 -10
  1479. data/vendor/gems/json-1.1.3/bin/prettify_json.rb +0 -76
  1480. data/vendor/gems/json-1.1.3/data/example.json +0 -1
  1481. data/vendor/gems/json-1.1.3/data/index.html +0 -38
  1482. data/vendor/gems/json-1.1.3/data/prototype.js +0 -4184
  1483. data/vendor/gems/json-1.1.3/ext/json/ext/generator.bundle +0 -0
  1484. data/vendor/gems/json-1.1.3/ext/json/ext/generator/Makefile +0 -149
  1485. data/vendor/gems/json-1.1.3/ext/json/ext/generator/extconf.rb +0 -9
  1486. data/vendor/gems/json-1.1.3/ext/json/ext/generator/generator.bundle +0 -0
  1487. data/vendor/gems/json-1.1.3/ext/json/ext/generator/generator.c +0 -875
  1488. data/vendor/gems/json-1.1.3/ext/json/ext/generator/generator.o +0 -0
  1489. data/vendor/gems/json-1.1.3/ext/json/ext/generator/unicode.c +0 -182
  1490. data/vendor/gems/json-1.1.3/ext/json/ext/generator/unicode.h +0 -53
  1491. data/vendor/gems/json-1.1.3/ext/json/ext/generator/unicode.o +0 -0
  1492. data/vendor/gems/json-1.1.3/ext/json/ext/parser.bundle +0 -0
  1493. data/vendor/gems/json-1.1.3/ext/json/ext/parser/Makefile +0 -149
  1494. data/vendor/gems/json-1.1.3/ext/json/ext/parser/extconf.rb +0 -9
  1495. data/vendor/gems/json-1.1.3/ext/json/ext/parser/parser.bundle +0 -0
  1496. data/vendor/gems/json-1.1.3/ext/json/ext/parser/parser.c +0 -1758
  1497. data/vendor/gems/json-1.1.3/ext/json/ext/parser/parser.o +0 -0
  1498. data/vendor/gems/json-1.1.3/ext/json/ext/parser/parser.rl +0 -638
  1499. data/vendor/gems/json-1.1.3/ext/json/ext/parser/unicode.c +0 -154
  1500. data/vendor/gems/json-1.1.3/ext/json/ext/parser/unicode.h +0 -58
  1501. data/vendor/gems/json-1.1.3/ext/json/ext/parser/unicode.o +0 -0
  1502. data/vendor/gems/json-1.1.3/install.rb +0 -26
  1503. data/vendor/gems/json-1.1.3/lib/json.rb +0 -235
  1504. data/vendor/gems/json-1.1.3/lib/json/Array.xpm +0 -21
  1505. data/vendor/gems/json-1.1.3/lib/json/FalseClass.xpm +0 -21
  1506. data/vendor/gems/json-1.1.3/lib/json/Hash.xpm +0 -21
  1507. data/vendor/gems/json-1.1.3/lib/json/Key.xpm +0 -73
  1508. data/vendor/gems/json-1.1.3/lib/json/NilClass.xpm +0 -21
  1509. data/vendor/gems/json-1.1.3/lib/json/Numeric.xpm +0 -28
  1510. data/vendor/gems/json-1.1.3/lib/json/String.xpm +0 -96
  1511. data/vendor/gems/json-1.1.3/lib/json/TrueClass.xpm +0 -21
  1512. data/vendor/gems/json-1.1.3/lib/json/add/core.rb +0 -135
  1513. data/vendor/gems/json-1.1.3/lib/json/add/rails.rb +0 -58
  1514. data/vendor/gems/json-1.1.3/lib/json/common.rb +0 -354
  1515. data/vendor/gems/json-1.1.3/lib/json/editor.rb +0 -1362
  1516. data/vendor/gems/json-1.1.3/lib/json/ext.rb +0 -13
  1517. data/vendor/gems/json-1.1.3/lib/json/json.xpm +0 -1499
  1518. data/vendor/gems/json-1.1.3/lib/json/pure.rb +0 -75
  1519. data/vendor/gems/json-1.1.3/lib/json/pure/generator.rb +0 -394
  1520. data/vendor/gems/json-1.1.3/lib/json/pure/parser.rb +0 -259
  1521. data/vendor/gems/json-1.1.3/lib/json/version.rb +0 -9
  1522. data/vendor/gems/json-1.1.3/tests/fixtures/fail1.json +0 -1
  1523. data/vendor/gems/json-1.1.3/tests/fixtures/fail10.json +0 -1
  1524. data/vendor/gems/json-1.1.3/tests/fixtures/fail11.json +0 -1
  1525. data/vendor/gems/json-1.1.3/tests/fixtures/fail12.json +0 -1
  1526. data/vendor/gems/json-1.1.3/tests/fixtures/fail13.json +0 -1
  1527. data/vendor/gems/json-1.1.3/tests/fixtures/fail14.json +0 -1
  1528. data/vendor/gems/json-1.1.3/tests/fixtures/fail18.json +0 -1
  1529. data/vendor/gems/json-1.1.3/tests/fixtures/fail19.json +0 -1
  1530. data/vendor/gems/json-1.1.3/tests/fixtures/fail2.json +0 -1
  1531. data/vendor/gems/json-1.1.3/tests/fixtures/fail20.json +0 -1
  1532. data/vendor/gems/json-1.1.3/tests/fixtures/fail21.json +0 -1
  1533. data/vendor/gems/json-1.1.3/tests/fixtures/fail22.json +0 -1
  1534. data/vendor/gems/json-1.1.3/tests/fixtures/fail23.json +0 -1
  1535. data/vendor/gems/json-1.1.3/tests/fixtures/fail24.json +0 -1
  1536. data/vendor/gems/json-1.1.3/tests/fixtures/fail25.json +0 -1
  1537. data/vendor/gems/json-1.1.3/tests/fixtures/fail27.json +0 -2
  1538. data/vendor/gems/json-1.1.3/tests/fixtures/fail28.json +0 -2
  1539. data/vendor/gems/json-1.1.3/tests/fixtures/fail3.json +0 -1
  1540. data/vendor/gems/json-1.1.3/tests/fixtures/fail4.json +0 -1
  1541. data/vendor/gems/json-1.1.3/tests/fixtures/fail5.json +0 -1
  1542. data/vendor/gems/json-1.1.3/tests/fixtures/fail6.json +0 -1
  1543. data/vendor/gems/json-1.1.3/tests/fixtures/fail7.json +0 -1
  1544. data/vendor/gems/json-1.1.3/tests/fixtures/fail8.json +0 -1
  1545. data/vendor/gems/json-1.1.3/tests/fixtures/fail9.json +0 -1
  1546. data/vendor/gems/json-1.1.3/tests/fixtures/pass1.json +0 -56
  1547. data/vendor/gems/json-1.1.3/tests/fixtures/pass15.json +0 -1
  1548. data/vendor/gems/json-1.1.3/tests/fixtures/pass16.json +0 -1
  1549. data/vendor/gems/json-1.1.3/tests/fixtures/pass17.json +0 -1
  1550. data/vendor/gems/json-1.1.3/tests/fixtures/pass2.json +0 -1
  1551. data/vendor/gems/json-1.1.3/tests/fixtures/pass26.json +0 -1
  1552. data/vendor/gems/json-1.1.3/tests/fixtures/pass3.json +0 -6
  1553. data/vendor/gems/json-1.1.3/tests/runner.rb +0 -25
  1554. data/vendor/gems/json-1.1.3/tests/test_json.rb +0 -293
  1555. data/vendor/gems/json-1.1.3/tests/test_json_addition.rb +0 -161
  1556. data/vendor/gems/json-1.1.3/tests/test_json_fixtures.rb +0 -30
  1557. data/vendor/gems/json-1.1.3/tests/test_json_generate.rb +0 -100
  1558. data/vendor/gems/json-1.1.3/tests/test_json_rails.rb +0 -118
  1559. data/vendor/gems/json-1.1.3/tests/test_json_unicode.rb +0 -61
  1560. data/vendor/gems/json-1.1.3/tools/fuzz.rb +0 -140
  1561. data/vendor/gems/json-1.1.3/tools/server.rb +0 -62
  1562. data/vendor/memcache-client/History.txt +0 -25
  1563. data/vendor/memcache-client/LICENSE.txt +0 -30
  1564. data/vendor/memcache-client/Manifest.txt +0 -8
  1565. data/vendor/memcache-client/README.txt +0 -46
  1566. data/vendor/memcache-client/Rakefile +0 -23
  1567. data/vendor/memcache-client/lib/memcache.rb +0 -490
  1568. data/vendor/memcache-client/lib/memcache_util.rb +0 -71
  1569. data/vendor/memcache-client/test/test_mem_cache.rb +0 -284
  1570. data/vendor/plugins/datestamped_resources/README +0 -4
  1571. data/vendor/plugins/datestamped_resources/Rakefile +0 -22
  1572. data/vendor/plugins/datestamped_resources/init.rb +0 -2
  1573. data/vendor/plugins/datestamped_resources/install.rb +0 -1
  1574. data/vendor/plugins/datestamped_resources/lib/datestamped_resources.rb +0 -203
  1575. data/vendor/plugins/datestamped_resources/tasks/datestamped_resources_tasks.rake +0 -4
  1576. data/vendor/plugins/datestamped_resources/test/datestamped_resources_test.rb +0 -8
  1577. data/vendor/plugins/datestamped_resources/uninstall.rb +0 -1
  1578. data/vendor/plugins/fckeditor/CHANGELOG +0 -3
  1579. data/vendor/plugins/fckeditor/README +0 -118
  1580. data/vendor/plugins/fckeditor/app/controllers/fckeditor_controller.rb +0 -159
  1581. data/vendor/plugins/fckeditor/app/helpers/fckeditor_helper.rb +0 -2
  1582. data/vendor/plugins/fckeditor/app/views/fckeditor/spell_check.rhtml +0 -52
  1583. data/vendor/plugins/fckeditor/init.rb +0 -35
  1584. data/vendor/plugins/fckeditor/install.rb +0 -12
  1585. data/vendor/plugins/fckeditor/lib/fckeditor.rb +0 -101
  1586. data/vendor/plugins/fckeditor/lib/fckeditor_file_utils.rb +0 -81
  1587. data/vendor/plugins/fckeditor/lib/fckeditor_spell_check.rb +0 -43
  1588. data/vendor/plugins/fckeditor/lib/fckeditor_version.rb +0 -9
  1589. data/vendor/plugins/fckeditor/tasks/fckeditor_tasks.rake +0 -97
  1590. data/vendor/plugins/fckeditor/test/fckeditor_test.rb +0 -8
  1591. data/vendor/plugins/will_paginate/CHANGELOG.rdoc +0 -110
  1592. data/vendor/plugins/will_paginate/LICENSE +0 -18
  1593. data/vendor/plugins/will_paginate/README.rdoc +0 -107
  1594. data/vendor/plugins/will_paginate/Rakefile +0 -62
  1595. data/vendor/plugins/will_paginate/examples/apple-circle.gif +0 -0
  1596. data/vendor/plugins/will_paginate/examples/index.haml +0 -69
  1597. data/vendor/plugins/will_paginate/examples/index.html +0 -92
  1598. data/vendor/plugins/will_paginate/examples/pagination.css +0 -90
  1599. data/vendor/plugins/will_paginate/examples/pagination.sass +0 -91
  1600. data/vendor/plugins/will_paginate/init.rb +0 -1
  1601. data/vendor/plugins/will_paginate/lib/will_paginate.rb +0 -82
  1602. data/vendor/plugins/will_paginate/lib/will_paginate/array.rb +0 -16
  1603. data/vendor/plugins/will_paginate/lib/will_paginate/collection.rb +0 -146
  1604. data/vendor/plugins/will_paginate/lib/will_paginate/core_ext.rb +0 -32
  1605. data/vendor/plugins/will_paginate/lib/will_paginate/finder.rb +0 -260
  1606. data/vendor/plugins/will_paginate/lib/will_paginate/named_scope.rb +0 -170
  1607. data/vendor/plugins/will_paginate/lib/will_paginate/named_scope_patch.rb +0 -37
  1608. data/vendor/plugins/will_paginate/lib/will_paginate/version.rb +0 -9
  1609. data/vendor/plugins/will_paginate/lib/will_paginate/view_helpers.rb +0 -383
  1610. data/vendor/plugins/will_paginate/test/boot.rb +0 -21
  1611. data/vendor/plugins/will_paginate/test/collection_test.rb +0 -143
  1612. data/vendor/plugins/will_paginate/test/console +0 -8
  1613. data/vendor/plugins/will_paginate/test/database.yml +0 -22
  1614. data/vendor/plugins/will_paginate/test/finder_test.rb +0 -476
  1615. data/vendor/plugins/will_paginate/test/fixtures/admin.rb +0 -3
  1616. data/vendor/plugins/will_paginate/test/fixtures/developer.rb +0 -14
  1617. data/vendor/plugins/will_paginate/test/fixtures/developers_projects.yml +0 -13
  1618. data/vendor/plugins/will_paginate/test/fixtures/project.rb +0 -15
  1619. data/vendor/plugins/will_paginate/test/fixtures/projects.yml +0 -6
  1620. data/vendor/plugins/will_paginate/test/fixtures/replies.yml +0 -29
  1621. data/vendor/plugins/will_paginate/test/fixtures/reply.rb +0 -7
  1622. data/vendor/plugins/will_paginate/test/fixtures/schema.rb +0 -38
  1623. data/vendor/plugins/will_paginate/test/fixtures/topic.rb +0 -10
  1624. data/vendor/plugins/will_paginate/test/fixtures/topics.yml +0 -30
  1625. data/vendor/plugins/will_paginate/test/fixtures/user.rb +0 -2
  1626. data/vendor/plugins/will_paginate/test/fixtures/users.yml +0 -35
  1627. data/vendor/plugins/will_paginate/test/helper.rb +0 -37
  1628. data/vendor/plugins/will_paginate/test/lib/activerecord_test_case.rb +0 -36
  1629. data/vendor/plugins/will_paginate/test/lib/activerecord_test_connector.rb +0 -73
  1630. data/vendor/plugins/will_paginate/test/lib/load_fixtures.rb +0 -11
  1631. data/vendor/plugins/will_paginate/test/lib/view_test_process.rb +0 -165
  1632. data/vendor/plugins/will_paginate/test/tasks.rake +0 -59
  1633. data/vendor/plugins/will_paginate/test/view_test.rb +0 -363
  1634. data/vendor/plugins/will_paginate/will_paginate.gemspec +0 -22
  1635. data/vendor/redcloth/RedCloth.gemspec +0 -52
  1636. data/vendor/redcloth/bin/redcloth +0 -3
  1637. data/vendor/redcloth/doc/CHANGELOG +0 -160
  1638. data/vendor/redcloth/doc/COPYING +0 -25
  1639. data/vendor/redcloth/doc/README +0 -106
  1640. data/vendor/redcloth/doc/REFERENCE +0 -216
  1641. data/vendor/redcloth/doc/make.rb +0 -359
  1642. data/vendor/redcloth/install.rb +0 -1032
  1643. data/vendor/redcloth/lib/redcloth.rb +0 -1130
  1644. data/vendor/redcloth/run-tests.rb +0 -28
  1645. data/vendor/redcloth/setup.rb +0 -1376
  1646. data/vendor/redcloth/tests/code.yml +0 -105
  1647. data/vendor/redcloth/tests/hard_breaks.yml +0 -26
  1648. data/vendor/redcloth/tests/images.yml +0 -171
  1649. data/vendor/redcloth/tests/instiki.yml +0 -39
  1650. data/vendor/redcloth/tests/links.yml +0 -155
  1651. data/vendor/redcloth/tests/lists.yml +0 -77
  1652. data/vendor/redcloth/tests/markdown.yml +0 -218
  1653. data/vendor/redcloth/tests/poignant.yml +0 -64
  1654. data/vendor/redcloth/tests/table.yml +0 -198
  1655. data/vendor/redcloth/tests/textism.yml +0 -406
  1656. data/vendor/sparklines/README.txt +0 -47
  1657. data/vendor/sparklines/USAGE +0 -14
  1658. data/vendor/sparklines/lib/sparklines.rb +0 -435
  1659. data/vendor/sparklines/samples/sparklinestest.rb +0 -26
  1660. data/vendor/sparklines/sparklines_generator.rb +0 -9
  1661. data/vendor/sparklines/templates/sparklines_controller.rb +0 -30
  1662. data/vendor/sparklines/templates/sparklines_helper.rb +0 -30
@@ -0,0 +1,6 @@
1
+ /*
2
+ Copyright (c) 2003-2009, CKSource - Frederico Knabben. All rights reserved.
3
+ For licensing, see LICENSE.html or http://ckeditor.com/license
4
+ */
5
+
6
+ CKEDITOR.lang.vi={dir:'ltr',editorTitle:'Trình biên tập trực quan, %1',source:'Mã HTML',newPage:'Trang mới',save:'Lưu',preview:'Xem trước',cut:'Cắt',copy:'Sao chép',paste:'Dán',print:'In',underline:'Gạch chân',bold:'Đậm',italic:'Nghiêng',selectAll:'Chọn Tất cả',removeFormat:'Xoá Định dạng',strike:'Gạch xuyên ngang',subscript:'Chỉ số dưới',superscript:'Chỉ số trên',horizontalrule:'Chèn Đường phân cách ngang',pagebreak:'Chèn Ngắt trang',unlink:'Xoá Liên kết',undo:'Khôi phục thao tác',redo:'Làm lại thao tác',common:{browseServer:'Duyệt trên máy chủ',url:'URL',protocol:'Giao thức',upload:'Tải lên',uploadSubmit:'Tải lên Máy chủ',image:'Hình ảnh',flash:'Flash',form:'Biểu mẫu',checkbox:'Nút kiểm',radio:'Nút chọn',textField:'Trường văn bản',textarea:'Vùng văn bản',hiddenField:'Trường ẩn',button:'Nút',select:'Ô chọn',imageButton:'Nút hình ảnh',notSet:'<không thiết lập>',id:'Định danh',name:'Tên',langDir:'Đường dẫn Ngôn ngữ',langDirLtr:'Trái sang Phải (LTR)',langDirRtl:'Phải sang Trái (RTL)',langCode:'Mã Ngôn ngữ',longDescr:'Mô tả URL',cssClass:'Lớp Stylesheet',advisoryTitle:'Advisory Title',cssStyle:'Mẫu',ok:'Đồng ý',cancel:'Bỏ qua',generalTab:'Chung',advancedTab:'Mở rộng',validateNumberFailed:'Giá trị này không phải là số.',confirmNewPage:'Mọi thay đổi không được không được lưu lại của nội dung này sẽ bị mất. Bạn có chắc chắn muốn tải một trang mới?',confirmCancel:'Một vài tùy chọn đã bị thay đổi. Bạn có chắc chắn muốn đóng hộp thoại?',unavailable:'%1<span class="cke_accessibility">, không có</span>'},specialChar:{toolbar:'Chèn Ký tự đặc biệt',title:'Hãy chọn Ký tự đặc biệt'},link:{toolbar:'Chèn/Sửa Liên kết',menu:'Sửa Liên kết',title:'Liên kết',info:'Thông tin Liên kết',target:'Đích',upload:'Tải lên',advanced:'Mở rộng',type:'Kiểu Liên kết',toAnchor:'Neo trong trang này',toEmail:'Thư điện tử',target:'Đích',targetNotSet:'<không thiết lập>',targetFrame:'<khung>',targetPopup:'<cửa sổ popup>',targetNew:'Cửa sổ mới (_blank)',targetTop:'Cửa sổ trên cùng(_top)',targetSelf:'Cùng cửa sổ (_self)',targetParent:'Cửa sổ cha (_parent)',targetFrameName:'Tên Khung đích',targetPopupName:'Tên Cửa sổ Popup',popupFeatures:'Đặc điểm của Cửa sổ Popup',popupResizable:'Có thể thay đổi kích cỡ',popupStatusBar:'Thanh trạng thái',popupLocationBar:'Thanh vị trí',popupToolbar:'Thanh công cụ',popupMenuBar:'Thanh Menu',popupFullScreen:'Toàn màn hình (IE)',popupScrollBars:'Thanh cuộn',popupDependent:'Phụ thuộc (Netscape)',popupWidth:'Rộng',popupLeft:'Vị trí Trái',popupHeight:'Cao',popupTop:'Vị trí Trên',id:'Định danh',langDir:'Đường dẫn Ngôn ngữ',langDirNotSet:'<không thiết lập>',langDirLTR:'Trái sang Phải (LTR)',langDirRTL:'Phải sang Trái (RTL)',acccessKey:'Phím Hỗ trợ truy cập',name:'Tên',langCode:'Đường dẫn Ngôn ngữ',tabIndex:'Chỉ số của Tab',advisoryTitle:'Advisory Title',advisoryContentType:'Advisory Content Type',cssClasses:'Lớp Stylesheet',charset:'Bảng mã của tài nguyên được liên kết đến',styles:'Mẫu',selectAnchor:'Chọn một Neo',anchorName:'Theo Tên Neo',anchorId:'Theo Định danh Thành phần',emailAddress:'Thư điện tử',emailSubject:'Tiêu đề Thông điệp',emailBody:'Nội dung Thông điệp',noAnchors:'(Không có Neo nào trong tài liệu)',noUrl:'Hãy đưa vào Liên kết URL',noEmail:'Hãy đưa vào địa chỉ thư điện tử'},anchor:{toolbar:'Chèn/Sửa Neo',menu:'Thuộc tính Neo',title:'Thuộc tính Neo',name:'Tên của Neo',errorName:'Hãy nhập vào tên của Neo'},findAndReplace:{title:'Tìm kiếm và Thay Thế',find:'Tìm kiếm',replace:'Thay thế',findWhat:'Tìm chuỗi:',replaceWith:'Thay bằng:',notFoundMsg:'Không tìm thấy chuỗi cần tìm.',matchCase:'Phân biệt chữ hoa/thường',matchWord:'Giống toàn bộ từ',matchCyclic:'Giống một phần',replaceAll:'Thay thế Tất cả',replaceSuccessMsg:'%1 vị trí đã được thay thế.'},table:{toolbar:'Bảng',title:'Thuộc tính bảng',menu:'Thuộc tính bảng',deleteTable:'Xóa Bảng',rows:'Hàng',columns:'Cột',border:'Cỡ Đường viền',align:'Canh lề',alignNotSet:'<Chưa thiết lập>',alignLeft:'Trái',alignCenter:'Giữa',alignRight:'Phải',width:'Rộng',widthPx:'điểm (px)',widthPc:'%',height:'Cao',cellSpace:'Khoảng cách Ô',cellPad:'Đệm Ô',caption:'Đầu đề',summary:'Tóm lược',headers:'Đầu đề',headersNone:'Không có',headersColumn:'Cột Đầu tiên',headersRow:'Hàng Đầu tiên',headersBoth:'Cả hai',invalidRows:'Số lượng hàng phải là một số lớn hơn 0.',invalidCols:'Số lượng cột phải là một số lớn hơn 0.',invalidBorder:'Kích cỡ của đường biên phải là một số nguyên.',invalidWidth:'Chiều rộng của Bảng phải là một số nguyên.',invalidHeight:'Chiều cao của Bảng phải là một số nguyên.',invalidCellSpacing:'Khoảng cách giữa các ô phải là một số nguyên.',invalidCellPadding:'Đệm giữa các ô phải là một số nguyên.',cell:{menu:'Ô',insertBefore:'Chèn Ô Phía trước',insertAfter:'Chèn Ô Phía sau',deleteCell:'Xoá Ô',merge:'Kết hợp Ô',mergeRight:'Kết hợp Sang phải',mergeDown:'Kết hợp Xuống dưới',splitHorizontal:'Tách ngang Ô',splitVertical:'Tách dọc Ô',title:'Thuộc tính của Ô',cellType:'Kiểu của Ô',rowSpan:'Kết hợp hàng',colSpan:'Kết hợp cột',wordWrap:'Word Wrap',hAlign:'Canh lề ngang',vAlign:'Canh lề dọc',alignTop:'Trên cùng',alignMiddle:'Chính giữa',alignBottom:'Dưới cùng',alignBaseline:'Đường cơ sở',bgColor:'Màu nền',borderColor:'Màu viền',data:'Dữ liệu',header:'Đầu đề',yes:'Có',no:'Không',invalidWidth:'Chiều rộng của Ô phải là một số nguyên.',invalidHeight:'Chiều cao của Ô phải là một số nguyên.',invalidRowSpan:'Số hàng kết hợp phải là một số nguyên.',invalidColSpan:'Số cột kết hợp phải là một số nguyên.'},row:{menu:'Hàng',insertBefore:'Chèn Hàng Phía trước',insertAfter:'Chèn Hàng Phía sau',deleteRow:'Xoá Hàng'},column:{menu:'Cột',insertBefore:'Chèn Cột Phía trước',insertAfter:'Chèn Cột Phía sau',deleteColumn:'Xoá Cột'}},button:{title:'Thuộc tính Nút',text:'Chuỗi hiển thị (Giá trị)',type:'Kiểu',typeBtn:'Nút Bấm',typeSbm:'Nút Gửi',typeRst:'Nút Nhập lại'},checkboxAndRadio:{checkboxTitle:'Thuộc tính Nút kiểm',radioTitle:'Thuộc tính Nút chọn',value:'Giá trị',selected:'Được chọn'},form:{title:'Thuộc tính Biểu mẫu',menu:'Thuộc tính Biểu mẫu',action:'Hành động',method:'Phương thức',encoding:'Bảng mã',target:'Đích',targetNotSet:'<không thiết lập>',targetNew:'Cửa sổ mới (_blank)',targetTop:'Cửa sổ trên cùng(_top)',targetSelf:'Cùng cửa sổ (_self)',targetParent:'Cửa sổ cha (_parent)'},select:{title:'Thuộc tính Ô chọn',selectInfo:'Thông tin',opAvail:'Các tùy chọn có thể sử dụng',value:'Giá trị',size:'Kích cỡ',lines:'dòng',chkMulti:'Cho phép chọn nhiều',opText:'Văn bản',opValue:'Giá trị',btnAdd:'Thêm',btnModify:'Thay đổi',btnUp:'Lên',btnDown:'Xuống',btnSetValue:'Giá trị được chọn',btnDelete:'Xoá'},textarea:{title:'Thuộc tính Vùng văn bản',cols:'Cột',rows:'Hàng'},textfield:{title:'Thuộc tính Trường văn bản',name:'Tên',value:'Giá trị',charWidth:'Rộng',maxChars:'Số Ký tự tối đa',type:'Kiểu',typeText:'Ký tự',typePass:'Mật khẩu'},hidden:{title:'Thuộc tính Trường ẩn',name:'Tên',value:'Giá trị'},image:{title:'Thuộc tính Hình ảnh',titleButton:'Thuộc tính Nút hình ảnh',menu:'Thuộc tính Hình ảnh',infoTab:'Thông tin Hình ảnh',btnUpload:'Tải lên Máy chủ',url:'URL',upload:'Tải lên',alt:'Chú thích Hình ảnh',width:'Rộng',height:'Cao',lockRatio:'Giữ nguyên tỷ lệ',resetSize:'Kích thước gốc',border:'Đường viền',hSpace:'HSpace',vSpace:'VSpace',align:'Vị trí',alignLeft:'Trái',alignAbsBottom:'Dưới tuyệt đối',alignAbsMiddle:'Giữa tuyệt đối',alignBaseline:'Đường cơ sở',alignBottom:'Dưới',alignMiddle:'Giữa',alignRight:'Phải',alignTextTop:'Phía trên chữ',alignTop:'Trên',preview:'Xem trước',alertUrl:'Hãy đưa vào URL của hình ảnh',linkTab:'Liên kết',button2Img:'Bạn có muốn chuyển nút bấm bằng hình ảnh được chọn thành hình ảnh?',img2Button:'Bạn có muốn chuyển đổi hình ảnh được chọn thành nút bấm bằng hình ảnh?'},flash:{properties:'Thuộc tính Flash',propertiesTab:'Thuộc tính',title:'Thuộc tính Flash',chkPlay:'Tự động chạy',chkLoop:'Lặp',chkMenu:'Cho phép bật Menu của Flash',chkFull:'Cho phép Toàn màn hình',scale:'Tỷ lệ',scaleAll:'Hiển thị tất cả',scaleNoBorder:'Không đường viền',scaleFit:'Vừa vặn',access:'Truy cập Mã',accessAlways:'Luôn luôn',accessSameDomain:'Cùng tên miền',accessNever:'Không bao giờ',align:'Vị trí',alignLeft:'Trái',alignAbsBottom:'Dưới tuyệt đối',alignAbsMiddle:'Giữa tuyệt đối',alignBaseline:'Đường cơ sở',alignBottom:'Dưới',alignMiddle:'Giữa',alignRight:'Phải',alignTextTop:'Phía trên chữ',alignTop:'Trên',quality:'Chất lượng',qualityBest:'TỐt nhất',qualityHigh:'Cao',qualityAutoHigh:'Cao Tự động',qualityMedium:'Trung bình',qualityAutoLow:'Thấp Tự động',qualityLow:'Thấp',windowModeWindow:'Cửa sổ',windowModeOpaque:'Mờ đục',windowModeTransparent:'Trong suốt',windowMode:'Chế độ Cửa sổ',flashvars:'Các biến số dành cho Flash',bgcolor:'Màu nền',width:'Rộng',height:'Cao',hSpace:'HSpace',vSpace:'VSpace',validateSrc:'Hãy đưa vào Liên kết URL',validateWidth:'Chiều rộng phải là số nguyên.',validateHeight:'Chiều cao phải là số nguyên.',validateHSpace:'HSpace phải là số nguyên.',validateVSpace:'VSpace phải là số nguyên.'},spellCheck:{toolbar:'Kiểm tra Chính tả',title:'Kiểm tra Chính tả',notAvailable:'Xin lỗi, dịch vụ này hiện tại không có.',errorLoading:'Lỗi khi đang nạp dịch vụ ứng dụng: %s.',notInDic:'Không có trong từ điển',changeTo:'Chuyển thành',btnIgnore:'Bỏ qua',btnIgnoreAll:'Bỏ qua Tất cả',btnReplace:'Thay thế',btnReplaceAll:'Thay thế Tất cả',btnUndo:'Phục hồi lại',noSuggestions:'- Không đưa ra gợi ý về từ -',progress:'Đang tiến hành kiểm tra chính tả...',noMispell:'Hoàn tất kiểm tra chính tả: Không có lỗi chính tả',noChanges:'Hoàn tất kiểm tra chính tả: Không có từ nào được thay đổi',oneChange:'Hoàn tất kiểm tra chính tả: Một từ đã được thay đổi',manyChanges:'Hoàn tất kiểm tra chính tả: %1 từ đã được thay đổi',ieSpellDownload:'Chức năng kiểm tra chính tả chưa được cài đặt. Bạn có muốn tải về ngay bây giờ?'},smiley:{toolbar:'Hình biểu lộ cảm xúc (mặt cười)',title:'Chèn Hình biểu lộ cảm xúc (mặt cười)'},elementsPath:{eleTitle:'%1 thành phần'},numberedlist:'Danh sách có thứ tự',bulletedlist:'Danh sách không thứ tự',indent:'Dịch vào trong',outdent:'Dịch ra ngoài',justify:{left:'Canh trái',center:'Canh giữa',right:'Canh phải',block:'Canh đều'},blockquote:'Khối Trích dẫn',clipboard:{title:'Dán',cutError:'Các thiết lập bảo mật của trình duyệt không cho phép trình biên tập tự động thực thi lệnh cắt. Hãy sử dụng bàn phím cho lệnh này (Ctrl+X).',copyError:'Các thiết lập bảo mật của trình duyệt không cho phép trình biên tập tự động thực thi lệnh sao chép. Hãy sử dụng bàn phím cho lệnh này (Ctrl+C).',pasteMsg:'Hãy dán nội dung vào trong khung bên dưới, sử dụng tổ hợp phím (<STRONG>Ctrl+V</STRONG>) và nhấn vào nút <STRONG>Đồng ý</STRONG>.',securityMsg:'Do thiết lập bảo mật của trình duyệt nên trình biên tập không thể truy cập trực tiếp vào nội dung đã sao chép. Bạn cần phải dán lại nội dung vào cửa sổ này.'},pastefromword:{toolbar:'Dán với định dạng Word',title:'Dán với định dạng Word',advice:'Hãy dán nội dung vào trong khung bên dưới, sử dụng tổ hợp phím (<STRONG>Ctrl+V</STRONG>) và nhấn vào nút <STRONG>Đồng ý</STRONG>.',ignoreFontFace:'Chấp nhận các định dạng phông',removeStyle:'Gỡ bỏ các định dạng Styles'},pasteText:{button:'Dán theo định dạng văn bản thuần',title:'Dán theo định dạng văn bản thuần'},templates:{button:'Mẫu dựng sẵn',title:'Nội dung Mẫu dựng sẵn',insertOption:'Thay thế nội dung hiện tại',selectPromptMsg:'Hãy chọn Mẫu dựng sẵn để mở trong trình biên tập<br>(nội dung hiện tại sẽ bị mất):',emptyListMsg:'(Không có Mẫu dựng sẵn nào được định nghĩa)'},showBlocks:'Hiển thị các Khối',stylesCombo:{label:'Kiểu',voiceLabel:'Kiểu',panelVoiceLabel:'Chọn một kiểu',panelTitle1:'Kiểu Khối',panelTitle2:'Kiểu Trực tiếp',panelTitle3:'Kiểu Đối tượng'},format:{label:'Định dạng',voiceLabel:'Định dạng',panelTitle:'Định dạng',panelVoiceLabel:'Chọn định dạng đoạn văn bản',tag_p:'Normal',tag_pre:'Formatted',tag_address:'Address',tag_h1:'Heading 1',tag_h2:'Heading 2',tag_h3:'Heading 3',tag_h4:'Heading 4',tag_h5:'Heading 5',tag_h6:'Heading 6',tag_div:'Normal (DIV)'},font:{label:'Phông',voiceLabel:'Phông',panelTitle:'Phông',panelVoiceLabel:'Chọn phông'},fontSize:{label:'Cỡ chữ',voiceLabel:'Kích cỡ phông',panelTitle:'Cỡ chữ',panelVoiceLabel:'Chọn kích cỡ phông'},colorButton:{textColorTitle:'Màu chữ',bgColorTitle:'Màu nền',auto:'Tự động',more:'Màu khác...'},colors:{'000':'Black',800000:'Maroon','8B4513':'Saddle Brown','2F4F4F':'Dark Slate Gray','008080':'Teal','000080':'Navy','4B0082':'Indigo',696969:'Dim Gray',B22222:'Fire Brick',A52A2A:'Brown',DAA520:'Golden Rod','006400':'Dark Green','40E0D0':'Turquoise','0000CD':'Medium Blue',800080:'Purple',808080:'Gray',F00:'Red',FF8C00:'Dark Orange',FFD700:'Gold','008000':'Green','0FF':'Cyan','00F':'Blue',EE82EE:'Violet',A9A9A9:'Dark Gray',FFA07A:'Light Salmon',FFA500:'Orange',FFFF00:'Yellow','00FF00':'Lime',AFEEEE:'Pale Turquoise',ADD8E6:'Light Blue',DDA0DD:'Plum',D3D3D3:'Light Grey',FFF0F5:'Lavender Blush',FAEBD7:'Antique White',FFFFE0:'Light Yellow',F0FFF0:'Honeydew',F0FFFF:'Azure',F0F8FF:'Alice Blue',E6E6FA:'Lavender',FFF:'White'},scayt:{title:'Kiểm tra chính tả ngay khi gõ chữ (SCAYT)',enable:'Bật SCAYT',disable:'Tắt SCAYT',about:'Thông tin về SCAYT',toggle:'Bật tắt SCAYT',options:'Tùy chọn',langs:'Ngôn ngữ',moreSuggestions:'Đề xuất thêm',ignore:'Bỏ qua',ignoreAll:'Bỏ qua Tất cả',addWord:'Thêm Từ',emptyDic:'Tên của từ điển không được để trống.',optionsTab:'Tùy chọn',languagesTab:'Ngôn ngữ',dictionariesTab:'Từ điển',aboutTab:'Thông tin'},about:{title:'Thông tin về CKEditor',dlgTitle:'Thông tin về CKEditor',moreInfo:'Vui lòng ghé thăm trang web của chúng tôi để có thông tin về giấy phép:',copy:'Bản quyền &copy; $1. Giữ toàn quyền.'},maximize:'Phóng to tối đa',fakeobjects:{anchor:'Neo',flash:'Hoạt họa Flash',div:'Ngắt Trang',unknown:'Đối tượng không rõ ràng'},resize:'Kéo rê để thay đổi kích cỡ'};
@@ -0,0 +1,6 @@
1
+ /*
2
+ Copyright (c) 2003-2009, CKSource - Frederico Knabben. All rights reserved.
3
+ For licensing, see LICENSE.html or http://ckeditor.com/license
4
+ */
5
+
6
+ CKEDITOR.lang['zh-cn']={dir:'ltr',editorTitle:'富文本编辑器, %1',source:'源码',newPage:'新建',save:'保存',preview:'预览',cut:'剪切',copy:'复制',paste:'粘贴',print:'打印',underline:'下划线',bold:'加粗',italic:'倾斜',selectAll:'全选',removeFormat:'清除格式',strike:'删除线',subscript:'下标',superscript:'上标',horizontalrule:'插入水平线',pagebreak:'插入分页符',unlink:'取消超链接',undo:'撤消',redo:'重做',common:{browseServer:'浏览服务器',url:'源文件',protocol:'协议',upload:'上传',uploadSubmit:'发送到服务器上',image:'图象',flash:'Flash',form:'表单',checkbox:'复选框',radio:'单选按钮',textField:'单行文本',textarea:'多行文本',hiddenField:'隐藏域',button:'按钮',select:'列表/菜单',imageButton:'图像域',notSet:'<没有设置>',id:'ID',name:'名称',langDir:'语言方向',langDirLtr:'从左到右 (LTR)',langDirRtl:'从右到左 (RTL)',langCode:'语言代码',longDescr:'详细说明地址',cssClass:'样式类名称',advisoryTitle:'标题',cssStyle:'行内样式',ok:'确定',cancel:'取消',generalTab:'常规',advancedTab:'高级',validateNumberFailed:'需要输入数字格式',confirmNewPage:'当前文档内容未保存,是否确认新建文档?',confirmCancel:'部分选项尚未保存,是否确认关闭对话框?',unavailable:'%1<span class="cke_accessibility">, 不可用</span>'},specialChar:{toolbar:'插入特殊符号',title:'选择特殊符号'},link:{toolbar:'插入/编辑超链接',menu:'编辑超链接',title:'超链接',info:'超链接信息',target:'目标',upload:'上传',advanced:'高级',type:'超链接类型',toAnchor:'页内锚点链接',toEmail:'电子邮件',target:'目标',targetNotSet:'<没有设置>',targetFrame:'<框架>',targetPopup:'<弹出窗口>',targetNew:'新窗口 (_blank)',targetTop:'整页 (_top)',targetSelf:'本窗口 (_self)',targetParent:'父窗口 (_parent)',targetFrameName:'目标框架名称',targetPopupName:'弹出窗口名称',popupFeatures:'弹出窗口属性',popupResizable:'可缩放',popupStatusBar:'状态栏',popupLocationBar:'地址栏',popupToolbar:'工具栏',popupMenuBar:'菜单栏',popupFullScreen:'全屏 (IE)',popupScrollBars:'滚动条',popupDependent:'依附 (NS)',popupWidth:'宽',popupLeft:'左',popupHeight:'高',popupTop:'右',id:'ID',langDir:'语言方向',langDirNotSet:'<没有设置>',langDirLTR:'从左到右 (LTR)',langDirRTL:'从右到左 (RTL)',acccessKey:'访问键',name:'名称',langCode:'语言方向',tabIndex:'Tab 键次序',advisoryTitle:'标题',advisoryContentType:'内容类型',cssClasses:'样式类名称',charset:'字符编码',styles:'行内样式',selectAnchor:'选择一个锚点',anchorName:'按锚点名称',anchorId:'按锚点 ID',emailAddress:'地址',emailSubject:'主题',emailBody:'内容',noAnchors:'(此文档没有可用的锚点)',noUrl:'请输入超链接地址',noEmail:'请输入电子邮件地址'},anchor:{toolbar:'插入/编辑锚点链接',menu:'锚点链接属性',title:'锚点链接属性',name:'锚点名称',errorName:'请输入锚点名称'},findAndReplace:{title:'查找和替换',find:'查找',replace:'替换',findWhat:'查找:',replaceWith:'替换:',notFoundMsg:'指定文本没有找到',matchCase:'区分大小写',matchWord:'全字匹配',matchCyclic:'循环匹配',replaceAll:'全部替换',replaceSuccessMsg:'共完成 %1 处替换.'},table:{toolbar:'表格',title:'表格属性',menu:'表格属性',deleteTable:'删除表格',rows:'行数',columns:'列数',border:'边框',align:'对齐',alignNotSet:'<没有设置>',alignLeft:'左对齐',alignCenter:'居中',alignRight:'右对齐',width:'宽度',widthPx:'像素',widthPc:'百分比',height:'高度',cellSpace:'间距',cellPad:'边距',caption:'标题',summary:'摘要',headers:'标题单元格',headersNone:'无',headersColumn:'第一列',headersRow:'第一行',headersBoth:'第一列和第一行',invalidRows:'指定的列数必须大于零',invalidCols:'指定的行数必须大于零',invalidBorder:'边框粗细必须为数字格式',invalidWidth:'表格宽度必须为数字格式',invalidHeight:'表格高度必须为数字格式',invalidCellSpacing:'单元格间距必须为数字格式',invalidCellPadding:'单元格填充必须为数字格式',cell:{menu:'单元格',insertBefore:'在左侧插入单元格',insertAfter:'在右侧插入单元格',deleteCell:'删除单元格',merge:'合并单元格',mergeRight:'向右合并单元格',mergeDown:'向下合并单元格',splitHorizontal:'水平拆分单元格',splitVertical:'垂直拆分单元格',title:'单元格属性',cellType:'单元格类型',rowSpan:'行跨度',colSpan:'列跨度',wordWrap:'自动换行',hAlign:'水平对齐',vAlign:'垂直对齐',alignTop:'顶对齐',alignMiddle:'中对齐',alignBottom:'底对齐',alignBaseline:'基线对齐',bgColor:'背景颜色',borderColor:'边框颜色',data:'数据',header:'表头',yes:'是',no:'否',invalidWidth:'单元格宽度必须为数字格式',invalidHeight:'单元格高度必须为数字格式',invalidRowSpan:'行跨度必须为整数格式',invalidColSpan:'列跨度必须为整数格式'},row:{menu:'行',insertBefore:'在上方插入行',insertAfter:'在下方插入行',deleteRow:'删除行'},column:{menu:'列',insertBefore:'在左侧插入列',insertAfter:'在右侧插入列',deleteColumn:'删除列'}},button:{title:'按钮属性',text:'标签(值)',type:'类型',typeBtn:'按钮',typeSbm:'提交',typeRst:'重设'},checkboxAndRadio:{checkboxTitle:'复选框属性',radioTitle:'单选按钮属性',value:'选定值',selected:'已勾选'},form:{title:'表单属性',menu:'表单属性',action:'动作',method:'方法',encoding:'表单编码',target:'目标',targetNotSet:'<没有设置>',targetNew:'新窗口 (_blank)',targetTop:'整页 (_top)',targetSelf:'本窗口 (_self)',targetParent:'父窗口 (_parent)'},select:{title:'菜单/列表属性',selectInfo:'信息',opAvail:'列表值',value:'值',size:'高度',lines:'行',chkMulti:'允许多选',opText:'标签',opValue:'选定',btnAdd:'新增',btnModify:'修改',btnUp:'上移',btnDown:'下移',btnSetValue:'设为初始化时选定',btnDelete:'删除'},textarea:{title:'多行文本属性',cols:'字符宽度',rows:'行数'},textfield:{title:'单行文本属性',name:'名称',value:'初始值',charWidth:'字符宽度',maxChars:'最多字符数',type:'类型',typeText:'文本',typePass:'密码'},hidden:{title:'隐藏域属性',name:'名称',value:'初始值'},image:{title:'图象属性',titleButton:'图像域属性',menu:'图象属性',infoTab:'图象',btnUpload:'发送到服务器上',url:'源文件',upload:'上传',alt:'替换文本',width:'宽度',height:'高度',lockRatio:'锁定比例',resetSize:'恢复尺寸',border:'边框大小',hSpace:'水平间距',vSpace:'垂直间距',align:'对齐方式',alignLeft:'左对齐',alignAbsBottom:'绝对底边',alignAbsMiddle:'绝对居中',alignBaseline:'基线',alignBottom:'底边',alignMiddle:'居中',alignRight:'右对齐',alignTextTop:'文本上方',alignTop:'顶端',preview:'预览',alertUrl:'请输入图象地址',linkTab:'链接',button2Img:'确定要把当前按钮改变为图像吗?',img2Button:'确定要把当前图像改变为按钮吗?'},flash:{properties:'Flash 属性',propertiesTab:'属性',title:'标题',chkPlay:'自动播放',chkLoop:'循环',chkMenu:'启用 Flash 菜单',chkFull:'启用全屏',scale:'缩放',scaleAll:'全部显示',scaleNoBorder:'无边框',scaleFit:'严格匹配',access:'允许脚本访问',accessAlways:'总是',accessSameDomain:'同域',accessNever:'从不',align:'对齐方式',alignLeft:'左对齐',alignAbsBottom:'绝对底边',alignAbsMiddle:'绝对居中',alignBaseline:'基线',alignBottom:'底边',alignMiddle:'居中',alignRight:'右对齐',alignTextTop:'文本上方',alignTop:'顶端',quality:'质量',qualityBest:'最好',qualityHigh:'高',qualityAutoHigh:'高(自动)',qualityMedium:'中(自动)',qualityAutoLow:'低(自动)',qualityLow:'低',windowModeWindow:'窗体',windowModeOpaque:'不透明',windowModeTransparent:'透明',windowMode:'窗体模式',flashvars:'Flash变量',bgcolor:'背景颜色',width:'宽度',height:'高度',hSpace:'水平间距',vSpace:'垂直间距',validateSrc:'请输入超链接地址',validateWidth:'宽度必须为数字格式',validateHeight:'高度必须为数字格式',validateHSpace:'水平间距必须为数字格式',validateVSpace:'垂直间距必须为数字格式'},spellCheck:{toolbar:'拼写检查',title:'拼写检查',notAvailable:'抱歉,服务目前暂不可用',errorLoading:'无法联系该应用的主机: %s.',notInDic:'没有在字典里',changeTo:'更改为',btnIgnore:'忽略',btnIgnoreAll:'全部忽略',btnReplace:'替换',btnReplaceAll:'全部替换',btnUndo:'撤消',noSuggestions:'- 没有建议 -',progress:'正在进行拼写检查...',noMispell:'拼写检查完成:没有发现拼写错误',noChanges:'拼写检查完成:没有更改任何单词',oneChange:'拼写检查完成:更改了一个单词',manyChanges:'拼写检查完成:更改了 %1 个单词',ieSpellDownload:'拼写检查插件还没安装,你是否想现在就下载?'},smiley:{toolbar:'表情符',title:'插入表情图标'},elementsPath:{eleTitle:'%1 元素'},numberedlist:'编号列表',bulletedlist:'项目列表',indent:'增加缩进量',outdent:'减少缩进量',justify:{left:'左对齐',center:'居中对齐',right:'右对齐',block:'两端对齐'},blockquote:'块引用',clipboard:{title:'粘贴',cutError:'您的浏览器安全设置不允许编辑器自动执行剪切操作,请使用键盘快捷键(Ctrl+X)来完成',copyError:'您的浏览器安全设置不允许编辑器自动执行复制操作,请使用键盘快捷键(Ctrl+C)来完成',pasteMsg:'请使用键盘快捷键(<STRONG>Ctrl+V</STRONG>)把内容粘贴到下面的方框里,再按 <STRONG>确定</STRONG>',securityMsg:'因为你的浏览器的安全设置原因,本编辑器不能直接访问你的剪贴板内容,你需要在本窗口重新粘贴一次'},pastefromword:{toolbar:'从 MS Word 粘贴',title:'从 MS Word 粘贴',advice:'请使用键盘快捷键(<STRONG>Ctrl+V</STRONG>)把内容粘贴到下面的方框里,再按 <STRONG>确定</STRONG>',ignoreFontFace:'忽略 Font 标签',removeStyle:'清理 CSS 样式'},pasteText:{button:'粘贴为无格式文本',title:'粘贴为无格式文本'},templates:{button:'模板',title:'内容模板',insertOption:'替换当前内容',selectPromptMsg:'请选择编辑器内容模板:',emptyListMsg:'(没有模板)'},showBlocks:'显示区块',stylesCombo:{label:'样式',voiceLabel:'样式',panelVoiceLabel:'选择样式',panelTitle1:'块级元素样式',panelTitle2:'内联元素样式',panelTitle3:'对象元素样式'},format:{label:'格式',voiceLabel:'格式',panelTitle:'格式',panelVoiceLabel:'选择格式',tag_p:'普通',tag_pre:'已编排格式',tag_address:'地址',tag_h1:'标题 1',tag_h2:'标题 2',tag_h3:'标题 3',tag_h4:'标题 4',tag_h5:'标题 5',tag_h6:'标题 6',tag_div:'段落(DIV)'},font:{label:'字体',voiceLabel:'字体',panelTitle:'字体',panelVoiceLabel:'选择字体'},fontSize:{label:'大小',voiceLabel:'文字大小',panelTitle:'大小',panelVoiceLabel:'选择文字大小'},colorButton:{textColorTitle:'文本颜色',bgColorTitle:'背景颜色',auto:'自动',more:'其它颜色...'},colors:{'000':'Black',800000:'Maroon','8B4513':'Saddle Brown','2F4F4F':'Dark Slate Gray','008080':'Teal','000080':'Navy','4B0082':'Indigo',696969:'Dim Gray',B22222:'Fire Brick',A52A2A:'Brown',DAA520:'Golden Rod','006400':'Dark Green','40E0D0':'Turquoise','0000CD':'Medium Blue',800080:'Purple',808080:'Gray',F00:'Red',FF8C00:'Dark Orange',FFD700:'Gold','008000':'Green','0FF':'Cyan','00F':'Blue',EE82EE:'Violet',A9A9A9:'Dark Gray',FFA07A:'Light Salmon',FFA500:'Orange',FFFF00:'Yellow','00FF00':'Lime',AFEEEE:'Pale Turquoise',ADD8E6:'Light Blue',DDA0DD:'Plum',D3D3D3:'Light Grey',FFF0F5:'Lavender Blush',FAEBD7:'Antique White',FFFFE0:'Light Yellow',F0FFF0:'Honeydew',F0FFFF:'Azure',F0F8FF:'Alice Blue',E6E6FA:'Lavender',FFF:'White'},scayt:{title:'即时拼写检查',enable:'启用即时拼写检查',disable:'禁用即时拼写检查',about:'关于即时拼写检查',toggle:'暂停/启用即时拼写检查',options:'选项',langs:'语言',moreSuggestions:'更多拼写建议',ignore:'忽略',ignoreAll:'全部忽略',addWord:'添加单词',emptyDic:'字典名不应为空.',optionsTab:'选项',languagesTab:'语言',dictionariesTab:'字典',aboutTab:'关于'},about:{title:'关于CKEditor',dlgTitle:'关于CKEditor',moreInfo:'访问我们的网站以获取更多关于协议的信息',copy:'Copyright &copy; $1. All rights reserved.'},maximize:'全屏',fakeobjects:{anchor:'锚点',flash:'Flash',div:'分页',unknown:'位置对象'},resize:'拖拽以改变尺寸'};
@@ -0,0 +1,6 @@
1
+ /*
2
+ Copyright (c) 2003-2009, CKSource - Frederico Knabben. All rights reserved.
3
+ For licensing, see LICENSE.html or http://ckeditor.com/license
4
+ */
5
+
6
+ CKEDITOR.lang.zh={dir:'ltr',editorTitle:'文書處理器, %1',source:'原始碼',newPage:'開新檔案',save:'儲存',preview:'預覽',cut:'剪下',copy:'複製',paste:'貼上',print:'列印',underline:'底線',bold:'粗體',italic:'斜體',selectAll:'全選',removeFormat:'清除格式',strike:'刪除線',subscript:'下標',superscript:'上標',horizontalrule:'插入水平線',pagebreak:'插入分頁符號',unlink:'移除超連結',undo:'復原',redo:'重複',common:{browseServer:'瀏覽伺服器端',url:'URL',protocol:'通訊協定',upload:'上傳',uploadSubmit:'上傳至伺服器',image:'影像',flash:'Flash',form:'表單',checkbox:'核取方塊',radio:'選項按鈕',textField:'文字方塊',textarea:'文字區域',hiddenField:'隱藏欄位',button:'按鈕',select:'清單/選單',imageButton:'影像按鈕',notSet:'<尚未設定>',id:'ID',name:'名稱',langDir:'語言方向',langDirLtr:'由左而右 (LTR)',langDirRtl:'由右而左 (RTL)',langCode:'語言代碼',longDescr:'詳細 URL',cssClass:'樣式表類別',advisoryTitle:'標題',cssStyle:'樣式',ok:'確定',cancel:'取消',generalTab:'一般',advancedTab:'進階',validateNumberFailed:'需要輸入數字格式',confirmNewPage:'現存的修改尚未儲存,要開新檔案?',confirmCancel:'部份選項尚未儲存,要關閉對話盒?',unavailable:'%1<span class="cke_accessibility">, 已關閉</span>'},specialChar:{toolbar:'插入特殊符號',title:'請選擇特殊符號'},link:{toolbar:'插入/編輯超連結',menu:'編輯超連結',title:'超連結',info:'超連結資訊',target:'目標',upload:'上傳',advanced:'進階',type:'超連接類型',toAnchor:'本頁錨點',toEmail:'電子郵件',target:'目標',targetNotSet:'<尚未設定>',targetFrame:'<框架>',targetPopup:'<快顯視窗>',targetNew:'新視窗 (_blank)',targetTop:'最上層視窗 (_top)',targetSelf:'本視窗 (_self)',targetParent:'父視窗 (_parent)',targetFrameName:'目標框架名稱',targetPopupName:'快顯視窗名稱',popupFeatures:'快顯視窗屬性',popupResizable:'可縮放',popupStatusBar:'狀態列',popupLocationBar:'網址列',popupToolbar:'工具列',popupMenuBar:'選單列',popupFullScreen:'全螢幕 (IE)',popupScrollBars:'捲軸',popupDependent:'從屬 (NS)',popupWidth:'寬',popupLeft:'左',popupHeight:'高',popupTop:'右',id:'ID',langDir:'語言方向',langDirNotSet:'<尚未設定>',langDirLTR:'由左而右 (LTR)',langDirRTL:'由右而左 (RTL)',acccessKey:'存取鍵',name:'名稱',langCode:'語言方向',tabIndex:'定位順序',advisoryTitle:'標題',advisoryContentType:'內容類型',cssClasses:'樣式表類別',charset:'連結資源之編碼',styles:'樣式',selectAnchor:'請選擇錨點',anchorName:'依錨點名稱',anchorId:'依元件 ID',emailAddress:'電子郵件',emailSubject:'郵件主旨',emailBody:'郵件內容',noAnchors:'(本文件尚無可用之錨點)',noUrl:'請輸入欲連結的 URL',noEmail:'請輸入電子郵件位址'},anchor:{toolbar:'插入/編輯錨點',menu:'錨點屬性',title:'錨點屬性',name:'錨點名稱',errorName:'請輸入錨點名稱'},findAndReplace:{title:'尋找與取代',find:'尋找',replace:'取代',findWhat:'尋找:',replaceWith:'取代:',notFoundMsg:'未找到指定的文字。',matchCase:'大小寫須相符',matchWord:'全字相符',matchCyclic:'循環搜索',replaceAll:'全部取代',replaceSuccessMsg:'共完成 %1 次取代'},table:{toolbar:'表格',title:'表格屬性',menu:'表格屬性',deleteTable:'刪除表格',rows:'列數',columns:'欄數',border:'邊框',align:'對齊',alignNotSet:'<未設定>',alignLeft:'靠左對齊',alignCenter:'置中',alignRight:'靠右對齊',width:'寬度',widthPx:'像素',widthPc:'百分比',height:'高度',cellSpace:'間距',cellPad:'內距',caption:'標題',summary:'摘要',headers:'標題',headersNone:'無標題',headersColumn:'第一欄',headersRow:'第一列',headersBoth:'第一欄和第一列',invalidRows:'必須有一或更多的列',invalidCols:'必須有一或更多的欄',invalidBorder:'邊框大小必須為數字格式',invalidWidth:'表格寬度必須為數字格式',invalidHeight:'表格高度必須為數字格式',invalidCellSpacing:'儲存格間距必須為數字格式',invalidCellPadding:'儲存格內距必須為數字格式',cell:{menu:'儲存格',insertBefore:'向左插入儲存格',insertAfter:'向右插入儲存格',deleteCell:'刪除儲存格',merge:'合併儲存格',mergeRight:'向右合併儲存格',mergeDown:'向下合併儲存格',splitHorizontal:'橫向分割儲存格',splitVertical:'縱向分割儲存格',title:'儲存格屬性',cellType:'儲存格類別',rowSpan:'儲存格列數',colSpan:'儲存格欄數',wordWrap:'自動換行',hAlign:'水平對齊',vAlign:'垂直對齊',alignTop:'向上對齊',alignMiddle:'置中對齊',alignBottom:'向下對齊',alignBaseline:'基線對齊',bgColor:'背景顏色',borderColor:'邊框顏色',data:'數據',header:'標題',yes:'是',no:'否',invalidWidth:'儲存格寬度必須為數字格式',invalidHeight:'儲存格高度必須為數字格式',invalidRowSpan:'儲存格列數必須為整數格式',invalidColSpan:'儲存格欄數度必須為整數格式'},row:{menu:'列',insertBefore:'向上插入列',insertAfter:'向下插入列',deleteRow:'刪除列'},column:{menu:'欄',insertBefore:'向左插入欄',insertAfter:'向右插入欄',deleteColumn:'刪除欄'}},button:{title:'按鈕屬性',text:'顯示文字 (值)',type:'類型',typeBtn:'按鈕 (Button)',typeSbm:'送出 (Submit)',typeRst:'重設 (Reset)'},checkboxAndRadio:{checkboxTitle:'核取方塊屬性',radioTitle:'選項按鈕屬性',value:'選取值',selected:'已選取'},form:{title:'表單屬性',menu:'表單屬性',action:'動作',method:'方法',encoding:'表單編碼',target:'目標',targetNotSet:'<尚未設定>',targetNew:'新視窗 (_blank)',targetTop:'最上層視窗 (_top)',targetSelf:'本視窗 (_self)',targetParent:'父視窗 (_parent)'},select:{title:'清單/選單屬性',selectInfo:'資訊',opAvail:'可用選項',value:'值',size:'大小',lines:'行',chkMulti:'可多選',opText:'顯示文字',opValue:'選取值',btnAdd:'新增',btnModify:'修改',btnUp:'上移',btnDown:'下移',btnSetValue:'設為預設值',btnDelete:'刪除'},textarea:{title:'文字區域屬性',cols:'字元寬度',rows:'列數'},textfield:{title:'文字方塊屬性',name:'名稱',value:'值',charWidth:'字元寬度',maxChars:'最多字元數',type:'類型',typeText:'文字',typePass:'密碼'},hidden:{title:'隱藏欄位屬性',name:'名稱',value:'值'},image:{title:'影像屬性',titleButton:'影像按鈕屬性',menu:'影像屬性',infoTab:'影像資訊',btnUpload:'上傳至伺服器',url:'URL',upload:'上傳',alt:'替代文字',width:'寬度',height:'高度',lockRatio:'等比例',resetSize:'重設為原大小',border:'邊框',hSpace:'水平距離',vSpace:'垂直距離',align:'對齊',alignLeft:'靠左對齊',alignAbsBottom:'絕對下方',alignAbsMiddle:'絕對中間',alignBaseline:'基準線',alignBottom:'靠下對齊',alignMiddle:'置中對齊',alignRight:'靠右對齊',alignTextTop:'文字上方',alignTop:'靠上對齊',preview:'預覽',alertUrl:'請輸入影像 URL',linkTab:'超連結',button2Img:'要把影像按鈕改成影像嗎?',img2Button:'要把影像改成影像按鈕嗎?'},flash:{properties:'Flash 屬性',propertiesTab:'屬性',title:'Flash 屬性',chkPlay:'自動播放',chkLoop:'重複',chkMenu:'開啟選單',chkFull:'啟動全螢幕顯示',scale:'縮放',scaleAll:'全部顯示',scaleNoBorder:'無邊框',scaleFit:'精確符合',access:'允許腳本訪問',accessAlways:'永遠',accessSameDomain:'相同域名',accessNever:'永不',align:'對齊',alignLeft:'靠左對齊',alignAbsBottom:'絕對下方',alignAbsMiddle:'絕對中間',alignBaseline:'基準線',alignBottom:'靠下對齊',alignMiddle:'置中對齊',alignRight:'靠右對齊',alignTextTop:'文字上方',alignTop:'靠上對齊',quality:'質素',qualityBest:'最好',qualityHigh:'高',qualityAutoHigh:'高(自動)',qualityMedium:'中(自動)',qualityAutoLow:'低(自動)',qualityLow:'低',windowModeWindow:'視窗',windowModeOpaque:'不透明',windowModeTransparent:'透明',windowMode:'視窗模式',flashvars:'Flash 變數',bgcolor:'背景顏色',width:'寬度',height:'高度',hSpace:'水平距離',vSpace:'垂直距離',validateSrc:'請輸入欲連結的 URL',validateWidth:'寬度必須為數字格式',validateHeight:'高度必須為數字格式',validateHSpace:'水平間距必須為數字格式',validateVSpace:'垂直間距必須為數字格式'},spellCheck:{toolbar:'拼字檢查',title:'拼字檢查',notAvailable:'抱歉,服務目前暫不可用',errorLoading:'無法聯系侍服器: %s.',notInDic:'不在字典中',changeTo:'更改為',btnIgnore:'忽略',btnIgnoreAll:'全部忽略',btnReplace:'取代',btnReplaceAll:'全部取代',btnUndo:'復原',noSuggestions:'- 無建議值 -',progress:'進行拼字檢查中…',noMispell:'拼字檢查完成:未發現拼字錯誤',noChanges:'拼字檢查完成:未更改任何單字',oneChange:'拼字檢查完成:更改了 1 個單字',manyChanges:'拼字檢查完成:更改了 %1 個單字',ieSpellDownload:'尚未安裝拼字檢查元件。您是否想要現在下載?'},smiley:{toolbar:'表情符號',title:'插入表情符號'},elementsPath:{eleTitle:'%1 元素'},numberedlist:'編號清單',bulletedlist:'項目清單',indent:'增加縮排',outdent:'減少縮排',justify:{left:'靠左對齊',center:'置中',right:'靠右對齊',block:'左右對齊'},blockquote:'引用文字',clipboard:{title:'貼上',cutError:'瀏覽器的安全性設定不允許編輯器自動執行剪下動作。請使用快捷鍵 (Ctrl+X) 剪下。',copyError:'瀏覽器的安全性設定不允許編輯器自動執行複製動作。請使用快捷鍵 (Ctrl+C) 複製。',pasteMsg:'請使用快捷鍵 (<strong>Ctrl+V</strong>) 貼到下方區域中並按下 <strong>確定</strong>',securityMsg:'因為瀏覽器的安全性設定,本編輯器無法直接存取您的剪貼簿資料,請您自行在本視窗進行貼上動作。'},pastefromword:{toolbar:'自 Word 貼上',title:'自 Word 貼上',advice:'請使用快捷鍵 (<strong>Ctrl+V</strong>) 貼到下方區域中並按下 <strong>確定</strong>',ignoreFontFace:'移除字型設定',removeStyle:'移除樣式設定'},pasteText:{button:'貼為純文字格式',title:'貼為純文字格式'},templates:{button:'樣版',title:'內容樣版',insertOption:'取代原有內容',selectPromptMsg:'請選擇欲開啟的樣版<br> (原有的內容將會被清除):',emptyListMsg:'(無樣版)'},showBlocks:'顯示區塊',stylesCombo:{label:'樣式',voiceLabel:'樣式',panelVoiceLabel:'選擇樣式',panelTitle1:'塊級元素樣式',panelTitle2:'內聯元素樣式',panelTitle3:'物件元素樣式'},format:{label:'格式',voiceLabel:'格式',panelTitle:'格式',panelVoiceLabel:'選擇段落格式',tag_p:'一般',tag_pre:'已格式化',tag_address:'位址',tag_h1:'標題 1',tag_h2:'標題 2',tag_h3:'標題 3',tag_h4:'標題 4',tag_h5:'標題 5',tag_h6:'標題 6',tag_div:'一般 (DIV)'},font:{label:'字體',voiceLabel:'字體',panelTitle:'字體',panelVoiceLabel:'選擇字體'},fontSize:{label:'大小',voiceLabel:'文字大小',panelTitle:'大小',panelVoiceLabel:'選擇文字大小'},colorButton:{textColorTitle:'文字顏色',bgColorTitle:'背景顏色',auto:'自動',more:'更多顏色…'},colors:{'000':'Black',800000:'Maroon','8B4513':'Saddle Brown','2F4F4F':'Dark Slate Gray','008080':'Teal','000080':'Navy','4B0082':'Indigo',696969:'Dim Gray',B22222:'Fire Brick',A52A2A:'Brown',DAA520:'Golden Rod','006400':'Dark Green','40E0D0':'Turquoise','0000CD':'Medium Blue',800080:'Purple',808080:'Gray',F00:'Red',FF8C00:'Dark Orange',FFD700:'Gold','008000':'Green','0FF':'Cyan','00F':'Blue',EE82EE:'Violet',A9A9A9:'Dark Gray',FFA07A:'Light Salmon',FFA500:'Orange',FFFF00:'Yellow','00FF00':'Lime',AFEEEE:'Pale Turquoise',ADD8E6:'Light Blue',DDA0DD:'Plum',D3D3D3:'Light Grey',FFF0F5:'Lavender Blush',FAEBD7:'Antique White',FFFFE0:'Light Yellow',F0FFF0:'Honeydew',F0FFFF:'Azure',F0F8FF:'Alice Blue',E6E6FA:'Lavender',FFF:'White'},scayt:{title:'即時拼寫檢查',enable:'啟用即時拼寫檢查',disable:'關閉即時拼寫檢查',about:'關於即時拼寫檢查',toggle:'啟用/關閉即時拼寫檢查',options:'選項',langs:'語言',moreSuggestions:'更多拼寫建議',ignore:'忽略',ignoreAll:'全部忽略',addWord:'添加單詞',emptyDic:'字典名不應為空.',optionsTab:'選項',languagesTab:'語言',dictionariesTab:'字典',aboutTab:'關於'},about:{title:'關於 CKEditor',dlgTitle:'關於 CKEditor',moreInfo:'訪問我們的網站以獲取更多關於協議的信息',copy:'Copyright &copy; $1. All rights reserved.'},maximize:'最大化',fakeobjects:{anchor:'錨點',flash:'Flash 動畫',div:'分頁',unknown:'不明物件'},resize:'拖拽改變大小'};
@@ -0,0 +1,6 @@
1
+ /*
2
+ Copyright (c) 2003-2009, CKSource - Frederico Knabben. All rights reserved.
3
+ For licensing, see LICENSE.html or http://ckeditor.com/license
4
+ */
5
+
6
+ CKEDITOR.dialog.add('about',function(a){var b=a.lang.about;return{title:CKEDITOR.env.ie?b.dlgTitle:b.title,minWidth:390,minHeight:230,contents:[{id:'tab1',label:'',title:'',expand:true,padding:0,elements:[{type:'html',html:'<style type="text/css">.cke_about_container{color:#000 !important;padding:10px 10px 0;margin-top:5px}.cke_about_container p{margin: 0 0 10px;}.cke_about_container .cke_about_logo{height:81px;background-color:#fff;background-image:url('+CKEDITOR.plugins.get('about').path+'dialogs/logo_ckeditor.png);'+'background-position:center; '+'background-repeat:no-repeat;'+'margin-bottom:10px;'+'}'+'.cke_about_container a'+'{'+'cursor:pointer !important;'+'color:blue !important;'+'text-decoration:underline !important;'+'}'+'</style>'+'<div class="cke_about_container">'+'<div class="cke_about_logo"></div>'+'<p>'+'CKEditor '+CKEDITOR.version+' (revision '+CKEDITOR.revision+')<br>'+'<a href="http://ckeditor.com/">http://ckeditor.com</a>'+'</p>'+'<p>'+b.moreInfo+'<br>'+'<a href="http://ckeditor.com/license">http://ckeditor.com/license</a>'+'</p>'+'<p>'+b.copy.replace('$1','<a href="http://cksource.com/">CKSource</a> - Frederico Knabben')+'</p>'+'</div>'}]}],buttons:[CKEDITOR.dialog.cancelButton]};});
@@ -0,0 +1,6 @@
1
+ /*
2
+ Copyright (c) 2003-2009, CKSource - Frederico Knabben. All rights reserved.
3
+ For licensing, see LICENSE.html or http://ckeditor.com/license
4
+ */
5
+
6
+ CKEDITOR.plugins.add('about',{init:function(a){var b=a.addCommand('about',new CKEDITOR.dialogCommand('about'));b.modes={wysiwyg:1,source:1};b.canUndo=false;a.ui.addButton('About',{label:a.lang.about.title,command:'about'});CKEDITOR.dialog.add('about',this.path+'dialogs/about.js');}});
@@ -0,0 +1,6 @@
1
+ /*
2
+ Copyright (c) 2003-2009, CKSource - Frederico Knabben. All rights reserved.
3
+ For licensing, see LICENSE.html or http://ckeditor.com/license
4
+ */
5
+
6
+ CKEDITOR.plugins.add('basicstyles',{requires:['styles','button'],init:function(a){var b=function(e,f,g,h){var i=new CKEDITOR.style(h);a.attachStyleStateChange(i,function(j){a.getCommand(g).setState(j);});a.addCommand(g,new CKEDITOR.styleCommand(i));a.ui.addButton(e,{label:f,command:g});},c=a.config,d=a.lang;b('Bold',d.bold,'bold',c.coreStyles_bold);b('Italic',d.italic,'italic',c.coreStyles_italic);b('Underline',d.underline,'underline',c.coreStyles_underline);b('Strike',d.strike,'strike',c.coreStyles_strike);b('Subscript',d.subscript,'subscript',c.coreStyles_subscript);b('Superscript',d.superscript,'superscript',c.coreStyles_superscript);}});CKEDITOR.config.coreStyles_bold={element:'strong',overrides:'b'};CKEDITOR.config.coreStyles_italic={element:'em',overrides:'i'};CKEDITOR.config.coreStyles_underline={element:'u'};CKEDITOR.config.coreStyles_strike={element:'strike'};CKEDITOR.config.coreStyles_subscript={element:'sub'};CKEDITOR.config.coreStyles_superscript={element:'sup'};
@@ -0,0 +1,7 @@
1
+ /*
2
+ Copyright (c) 2003-2009, CKSource - Frederico Knabben. All rights reserved.
3
+ For licensing, see LICENSE.html or http://ckeditor.com/license
4
+ */
5
+
6
+ (function(){function a(e,f){var g=f.block||f.blockLimit;if(!g||g.getName()=='body')return CKEDITOR.TRISTATE_OFF;if(g.getAscendant('blockquote',true))return CKEDITOR.TRISTATE_ON;return CKEDITOR.TRISTATE_OFF;};function b(e){var f=e.editor,g=f.getCommand('blockquote');g.state=a(f,e.data.path);g.fire('state');};function c(e){for(var f=0,g=e.getChildCount(),h;f<g&&(h=e.getChild(f));f++)if(h.type==CKEDITOR.NODE_ELEMENT&&h.isBlockBoundary())return false;return true;};var d={exec:function(e){var f=e.getCommand('blockquote').state,g=e.getSelection(),h=g&&g.getRanges()[0];if(!h)return;var i=g.createBookmarks();if(CKEDITOR.env.ie){var j=i[0].startNode,k=i[0].endNode,l;if(j&&j.getParent().getName()=='blockquote'){l=j;while(l=l.getNext())if(l.type==CKEDITOR.NODE_ELEMENT&&l.isBlockBoundary()){j.move(l,true);break;}}if(k&&k.getParent().getName()=='blockquote'){l=k;while(l=l.getPrevious())if(l.type==CKEDITOR.NODE_ELEMENT&&l.isBlockBoundary()){k.move(l);break;}}}var m=h.createIterator(),n;if(f==CKEDITOR.TRISTATE_OFF){var o=[];while(n=m.getNextParagraph())o.push(n);if(o.length<1){var p=e.document.createElement(e.config.enterMode==CKEDITOR.ENTER_P?'p':'div'),q=i.shift();h.insertNode(p);p.append(new CKEDITOR.dom.text('',e.document));h.moveToBookmark(q);h.selectNodeContents(p);h.collapse(true);q=h.createBookmark();o.push(p);i.unshift(q);}var r=o[0].getParent(),s=[];for(var t=0;t<o.length;t++){n=o[t];r=r.getCommonAncestor(n.getParent());}var u={table:1,tbody:1,tr:1,ol:1,ul:1};while(u[r.getName()])r=r.getParent();var v=null;while(o.length>0){n=o.shift();while(!n.getParent().equals(r))n=n.getParent();if(!n.equals(v))s.push(n);v=n;}while(s.length>0){n=s.shift();if(n.getName()=='blockquote'){var w=new CKEDITOR.dom.documentFragment(e.document);while(n.getFirst()){w.append(n.getFirst().remove());o.push(w.getLast());}w.replace(n);}else o.push(n);}var x=e.document.createElement('blockquote');x.insertBefore(o[0]);while(o.length>0){n=o.shift();x.append(n);}}else if(f==CKEDITOR.TRISTATE_ON){var y=[],z={};while(n=m.getNextParagraph()){var A=null,B=null;while(n.getParent()){if(n.getParent().getName()=='blockquote'){A=n.getParent();B=n;break;}n=n.getParent();}if(A&&B&&!B.getCustomData('blockquote_moveout')){y.push(B);CKEDITOR.dom.element.setMarker(z,B,'blockquote_moveout',true);}}CKEDITOR.dom.element.clearAllMarkers(z);var C=[],D=[];z={};while(y.length>0){var E=y.shift();x=E.getParent();if(!E.getPrevious())E.remove().insertBefore(x);else if(!E.getNext())E.remove().insertAfter(x);else{E.breakParent(E.getParent());
7
+ D.push(E.getNext());}if(!x.getCustomData('blockquote_processed')){D.push(x);CKEDITOR.dom.element.setMarker(z,x,'blockquote_processed',true);}C.push(E);}CKEDITOR.dom.element.clearAllMarkers(z);for(t=D.length-1;t>=0;t--){x=D[t];if(c(x))x.remove();}if(e.config.enterMode==CKEDITOR.ENTER_BR){var F=true;while(C.length){E=C.shift();if(E.getName()=='div'){w=new CKEDITOR.dom.documentFragment(e.document);var G=F&&E.getPrevious()&&!(E.getPrevious().type==CKEDITOR.NODE_ELEMENT&&E.getPrevious().isBlockBoundary());if(G)w.append(e.document.createElement('br'));var H=E.getNext()&&!(E.getNext().type==CKEDITOR.NODE_ELEMENT&&E.getNext().isBlockBoundary());while(E.getFirst())E.getFirst().remove().appendTo(w);if(H)w.append(e.document.createElement('br'));w.replace(E);F=false;}}}}g.selectBookmarks(i);e.focus();}};CKEDITOR.plugins.add('blockquote',{init:function(e){e.addCommand('blockquote',d);e.ui.addButton('Blockquote',{label:e.lang.blockquote,command:'blockquote'});e.on('selectionChange',b);},requires:['domiterator']});})();
@@ -0,0 +1,7 @@
1
+ /*
2
+ Copyright (c) 2003-2009, CKSource - Frederico Knabben. All rights reserved.
3
+ For licensing, see LICENSE.html or http://ckeditor.com/license
4
+ */
5
+
6
+ CKEDITOR.plugins.add('button',{beforeInit:function(a){a.ui.addHandler(CKEDITOR.UI_BUTTON,CKEDITOR.ui.button.handler);}});CKEDITOR.UI_BUTTON=1;CKEDITOR.ui.button=function(a){CKEDITOR.tools.extend(this,a,{title:a.label,className:a.className||a.command&&'cke_button_'+a.command||'',click:a.click||(function(b){b.execCommand(a.command);})});this._={};};CKEDITOR.ui.button.handler={create:function(a){return new CKEDITOR.ui.button(a);}};CKEDITOR.ui.button.prototype={canGroup:true,render:function(a,b){var c=CKEDITOR.env,d=this._.id='cke_'+CKEDITOR.tools.getNextNumber();this._.editor=a;var e={id:d,button:this,editor:a,focus:function(){var k=CKEDITOR.document.getById(d);k.focus();},execute:function(){this.button.click(a);}},f=CKEDITOR.tools.addFunction(e.execute,e),g=CKEDITOR.ui.button._.instances.push(e)-1,h='',i=this.command;if(this.modes)a.on('mode',function(){this.setState(this.modes[a.mode]?CKEDITOR.TRISTATE_OFF:CKEDITOR.TRISTATE_DISABLED);},this);else if(i){i=a.getCommand(i);if(i){i.on('state',function(){this.setState(i.state);},this);h+='cke_'+(i.state==CKEDITOR.TRISTATE_ON?'on':i.state==CKEDITOR.TRISTATE_DISABLED?'disabled':'off');}}if(!i)h+='cke_off';if(this.className)h+=' '+this.className;b.push('<span class="cke_button">','<a id="',d,'" class="',h,'" href="javascript:void(\'',(this.title||'').replace("'",''),'\')" title="',this.title,'" tabindex="-1" hidefocus="true"');if(c.opera||c.gecko&&c.mac)b.push(' onkeypress="return false;"');if(c.gecko)b.push(' onblur="this.style.cssText = this.style.cssText;"');b.push(' onkeydown="return CKEDITOR.ui.button._.keydown(',g,', event);" onfocus="return CKEDITOR.ui.button._.focus(',g,', event);" onclick="CKEDITOR.tools.callFunction(',f,', this); return false;"><span class="cke_icon"');if(this.icon){var j=(this.iconOffset||0)*(-16);b.push(' style="background-image:url(',CKEDITOR.getUrl(this.icon),');background-position:0 '+j+'px;"');}b.push('></span><span class="cke_label">',this.label,'</span>');if(this.hasArrow)b.push('<span class="cke_buttonarrow"></span>');b.push('</a>','</span>');if(this.onRender)this.onRender();return e;},setState:function(a){var f=this;if(f._.state==a)return;var b=CKEDITOR.document.getById(f._.id);if(b){b.setState(a);var c=f.title,d=f._.editor.lang.common.unavailable,e=b.getChild(1);if(a==CKEDITOR.TRISTATE_DISABLED)c=d.replace('%1',f.title);e.setHtml(c);}f._.state=a;}};CKEDITOR.ui.button._={instances:[],keydown:function(a,b){var c=CKEDITOR.ui.button._.instances[a];if(c.onkey){b=new CKEDITOR.dom.event(b);
7
+ return c.onkey(c,b.getKeystroke())!==false;}},focus:function(a,b){var c=CKEDITOR.ui.button._.instances[a],d;if(c.onfocus)d=c.onfocus(c,new CKEDITOR.dom.event(b))!==false;if(CKEDITOR.env.gecko&&CKEDITOR.env.version<10900)b.preventBubble();return d;}};CKEDITOR.ui.prototype.addButton=function(a,b){this.add(a,CKEDITOR.UI_BUTTON,b);};
@@ -0,0 +1,7 @@
1
+ /*
2
+ Copyright (c) 2003-2009, CKSource - Frederico Knabben. All rights reserved.
3
+ For licensing, see LICENSE.html or http://ckeditor.com/license
4
+ */
5
+
6
+ CKEDITOR.dialog.add('paste',function(a){var b=CKEDITOR.env.ie&&document.domain!=window.location.hostname;return{title:a.lang.clipboard.title,minWidth:CKEDITOR.env.ie&&CKEDITOR.env.quirks?370:350,minHeight:CKEDITOR.env.quirks?250:245,htmlToLoad:'<!doctype html><script type="text/javascript">window.onload = function(){if ( '+CKEDITOR.env.ie+' ) '+'document.body.contentEditable = "true";'+'else '+'document.designMode = "on";'+'var iframe = new window.parent.CKEDITOR.dom.element( frameElement );'+'var dialog = iframe.getCustomData( "dialog" );'+''+'iframe.getFrameDocument().on( "keydown", function( e )\t\t\t\t\t\t{\t\t\t\t\t\t\tif ( e.data.getKeystroke() == 27 )\t\t\t\t\t\t\t\tdialog.hide();\t\t\t\t\t\t});'+'};'+'</script><style>body { margin: 3px; height: 95%; } </style><body></body>',onShow:function(){var h=this;if(CKEDITOR.env.ie)h.getParentEditor().document.getBody().$.contentEditable='false';h.parts.dialog.$.offsetHeight;var c=h.getContentElement('general','editing_area').getElement(),d=CKEDITOR.dom.element.createFromHtml('<iframe src="javascript:void(0)" frameborder="0" allowtransparency="1"></iframe>'),e=h.getParentEditor().lang;d.setStyles({width:'346px',height:'130px','background-color':'white',border:'1px solid black'});d.setCustomData('dialog',h);var f=e.editorTitle.replace('%1',e.clipboard.title);if(CKEDITOR.env.ie)c.setHtml('<legend style="position:absolute;top:-1000000px;left:-1000000px;">'+CKEDITOR.tools.htmlEncode(f)+'</legend>');else{c.setHtml('');c.setAttributes({role:'region',title:f});d.setAttributes({role:'region',title:' '});}c.append(d);if(CKEDITOR.env.ie)c.setStyle('height',d.$.offsetHeight+2+'px');if(b){CKEDITOR._cke_htmlToLoad=h.definition.htmlToLoad;d.setAttribute('src','javascript:void( (function(){document.open();document.domain="'+document.domain+'";'+'document.write( window.parent.CKEDITOR._cke_htmlToLoad );'+'delete window.parent.CKEDITOR._cke_htmlToLoad;'+'document.close();'+'})() )');}else{var g=d.$.contentWindow.document;g.open();g.write(h.definition.htmlToLoad);g.close();}},onHide:function(){if(CKEDITOR.env.ie)this.getParentEditor().document.getBody().$.contentEditable='true';},onLoad:function(){if((CKEDITOR.env.ie7Compat||CKEDITOR.env.ie6Compat)&&(a.lang.dir=='rtl'))this.parts.contents.setStyle('overflow','hidden');},onOk:function(){var c=this.getContentElement('general','editing_area').getElement(),d=c.getElementsByTag('iframe').getItem(0),e=this.getParentEditor(),f=d.$.contentWindow.document.body.innerHTML;setTimeout(function(){e.insertHtml(f);
7
+ },0);},contents:[{id:'general',label:a.lang.common.generalTab,elements:[{type:'html',id:'securityMsg',html:'<div style="white-space:normal;width:340px;">'+a.lang.clipboard.securityMsg+'</div>'},{type:'html',id:'pasteMsg',html:'<div style="white-space:normal;width:340px;">'+a.lang.clipboard.pasteMsg+'</div>'},{type:'html',id:'editing_area',style:'width: 100%; height: 100%;',html:'<fieldset></fieldset>',focus:function(){var c=this.getElement(),d=c.getElementsByTag('iframe');if(d.count()<1)return;d=d.getItem(0);setTimeout(function(){d.$.contentWindow.focus();},500);}}]}]};});
@@ -0,0 +1,6 @@
1
+ /*
2
+ Copyright (c) 2003-2009, CKSource - Frederico Knabben. All rights reserved.
3
+ For licensing, see LICENSE.html or http://ckeditor.com/license
4
+ */
5
+
6
+ (function(){var a=function(f,g){var h=f.document,i=h.getBody(),j=false,k=function(){j=true;};i.on(g,k);h.$.execCommand(g);i.removeListener(g,k);return j;},b=CKEDITOR.env.ie?function(f,g){return a(f,g);}:function(f,g){try{return f.document.$.execCommand(g);}catch(h){return false;}},c=function(f){this.type=f;this.canUndo=this.type=='cut';};c.prototype={exec:function(f,g){var h=b(f,this.type);if(!h)alert(f.lang.clipboard[this.type+'Error']);return h;}};var d=CKEDITOR.env.ie?{exec:function(f,g){f.focus();if(!f.fire('beforePaste')&&!a(f,'paste'))f.openDialog('paste');}}:{exec:function(f){try{if(!f.fire('beforePaste')&&!f.document.$.execCommand('Paste',false,null))throw 0;}catch(g){f.openDialog('paste');}}},e=function(f){switch(f.data.keyCode){case CKEDITOR.CTRL+86:case CKEDITOR.SHIFT+45:var g=this;g.fire('saveSnapshot');if(g.fire('beforePaste'))f.cancel();setTimeout(function(){g.fire('saveSnapshot');},0);return;case CKEDITOR.CTRL+88:case CKEDITOR.SHIFT+46:g=this;g.fire('saveSnapshot');setTimeout(function(){g.fire('saveSnapshot');},0);}};CKEDITOR.plugins.add('clipboard',{init:function(f){function g(i,j,k,l){var m=f.lang[j];f.addCommand(j,k);f.ui.addButton(i,{label:m,command:j});if(f.addMenuItems)f.addMenuItem(j,{label:m,command:j,group:'clipboard',order:l});};g('Cut','cut',new c('cut'),1);g('Copy','copy',new c('copy'),4);g('Paste','paste',d,8);CKEDITOR.dialog.add('paste',CKEDITOR.getUrl(this.path+'dialogs/paste.js'));f.on('key',e,f);if(f.contextMenu){function h(i){return f.document.$.queryCommandEnabled(i)?CKEDITOR.TRISTATE_OFF:CKEDITOR.TRISTATE_DISABLED;};f.contextMenu.addListener(function(){return{cut:h('Cut'),copy:h('Cut'),paste:CKEDITOR.env.webkit?CKEDITOR.TRISTATE_OFF:h('Paste')};});}}});})();
@@ -0,0 +1,7 @@
1
+ /*
2
+ Copyright (c) 2003-2009, CKSource - Frederico Knabben. All rights reserved.
3
+ For licensing, see LICENSE.html or http://ckeditor.com/license
4
+ */
5
+
6
+ CKEDITOR.plugins.add('colorbutton',{requires:['panelbutton','floatpanel','styles'],init:function(a){var b=a.config,c=a.lang.colorButton,d;if(!CKEDITOR.env.hc){e('TextColor','fore',c.textColorTitle);e('BGColor','back',c.bgColorTitle);}function e(g,h,i){a.ui.add(g,CKEDITOR.UI_PANELBUTTON,{label:i,title:i,className:'cke_button_'+g.toLowerCase(),modes:{wysiwyg:1},panel:{css:[CKEDITOR.getUrl(a.skinPath+'editor.css')]},onBlock:function(j,k){var l=j.addBlock(k);l.autoSize=true;l.element.addClass('cke_colorblock');l.element.setHtml(f(j,h));var m=l.keys;m[39]='next';m[9]='next';m[37]='prev';m[CKEDITOR.SHIFT+9]='prev';m[32]='click';}});};function f(g,h){var i=[],j=b.colorButton_colors.split(','),k=CKEDITOR.tools.addFunction(function(o,p){if(o=='?')return;a.focus();g.hide();var q=new CKEDITOR.style(b['colorButton_'+p+'Style'],o&&{color:o});a.fire('saveSnapshot');if(o)q.apply(a.document);else q.remove(a.document);a.fire('saveSnapshot');});i.push('<a class="cke_colorauto" _cke_focus=1 hidefocus=true title="',c.auto,'" onclick="CKEDITOR.tools.callFunction(',k,",null,'",h,"');return false;\" href=\"javascript:void('",c.auto,'\')"><table cellspacing=0 cellpadding=0 width="100%"><tr><td><span class="cke_colorbox" style="background-color:#000"></span></td><td colspan=7 align=center>',c.auto,'</td></tr></table></a><table cellspacing=0 cellpadding=0 width="100%">');for(var l=0;l<j.length;l++){if(l%8===0)i.push('</tr><tr>');var m=j[l],n=a.lang.colors[m]||m;i.push('<td><a class="cke_colorbox" _cke_focus=1 hidefocus=true title="',n,'" onclick="CKEDITOR.tools.callFunction(',k,",'#",m,"','",h,"'); return false;\" href=\"javascript:void('",n,'\')"><span class="cke_colorbox" style="background-color:#',m,'"></span></a></td>');}if(b.colorButton_enableMore)i.push('</tr><tr><td colspan=8 align=center><a class="cke_colormore" _cke_focus=1 hidefocus=true title="',c.more,'" onclick="CKEDITOR.tools.callFunction(',k,",'?','",h,"');return false;\" href=\"javascript:void('",c.more,"')\">",c.more,'</a></td>');i.push('</tr></table>');return i.join('');};}});CKEDITOR.config.colorButton_enableMore=false;CKEDITOR.config.colorButton_colors='000,800000,8B4513,2F4F4F,008080,000080,4B0082,696969,B22222,A52A2A,DAA520,006400,40E0D0,0000CD,800080,808080,F00,FF8C00,FFD700,008000,0FF,00F,EE82EE,A9A9A9,FFA07A,FFA500,FFFF00,00FF00,AFEEEE,ADD8E6,DDA0DD,D3D3D3,FFF0F5,FAEBD7,FFFFE0,F0FFF0,F0FFFF,F0F8FF,E6E6FA,FFF';CKEDITOR.config.colorButton_foreStyle={element:'span',styles:{color:'#(color)'},overrides:[{element:'font',attributes:{color:null}}]};
7
+ CKEDITOR.config.colorButton_backStyle={element:'span',styles:{'background-color':'#(color)'}};
@@ -0,0 +1,6 @@
1
+ /*
2
+ Copyright (c) 2003-2009, CKSource - Frederico Knabben. All rights reserved.
3
+ For licensing, see LICENSE.html or http://ckeditor.com/license
4
+ */
5
+
6
+ CKEDITOR.plugins.add('contextmenu',{requires:['menu'],beforeInit:function(a){a.contextMenu=new CKEDITOR.plugins.contextMenu(a);a.addCommand('contextMenu',{exec:function(){a.contextMenu.show();}});}});CKEDITOR.plugins.contextMenu=CKEDITOR.tools.createClass({$:function(a){this.id='cke_'+CKEDITOR.tools.getNextNumber();this.editor=a;this._.listeners=[];this._.functionId=CKEDITOR.tools.addFunction(function(b){this._.panel.hide();a.focus();a.execCommand(b);},this);},_:{onMenu:function(a,b,c,d){var e=this._.menu,f=this.editor;if(e){e.hide();e.removeAll();}else{e=this._.menu=new CKEDITOR.menu(f);e.onClick=CKEDITOR.tools.bind(function(o){var p=true;e.hide();if(CKEDITOR.env.ie)e.onEscape();if(o.onClick)o.onClick();else if(o.command)f.execCommand(o.command);p=false;},this);e.onEscape=function(){f.focus();if(CKEDITOR.env.ie)f.getSelection().unlock(true);};}var g=this._.listeners,h=[],i=this.editor.getSelection(),j=i&&i.getStartElement();if(CKEDITOR.env.ie)i.lock();e.onHide=CKEDITOR.tools.bind(function(){e.onHide=null;if(CKEDITOR.env.ie)f.getSelection().unlock();this.onHide&&this.onHide();},this);for(var k=0;k<g.length;k++){var l=g[k](j,i);if(l)for(var m in l){var n=this.editor.getMenuItem(m);if(n){n.state=l[m];e.add(n);}}}e.show(a,b||(f.lang.dir=='rtl'?2:1),c,d);}},proto:{addTarget:function(a){a.on('contextmenu',function(b){var c=b.data;c.preventDefault();var d=c.getTarget().getDocument().getDocumentElement(),e=c.$.clientX,f=c.$.clientY;CKEDITOR.tools.setTimeout(function(){this._.onMenu(d,null,e,f);},0,this);},this);},addListener:function(a){this._.listeners.push(a);},show:function(a,b,c,d){this.editor.focus();this._.onMenu(a||CKEDITOR.document.getDocumentElement(),b,c||0,d||0);}}});
@@ -0,0 +1,4 @@
1
+ /*
2
+ Copyright (c) 2003-2009, CKSource - Frederico Knabben. All rights reserved.
3
+ For licensing, see LICENSE.html or http://ckeditor.com/license
4
+ */
@@ -0,0 +1,17 @@
1
+ /*
2
+ Copyright (c) 2003-2009, CKSource - Frederico Knabben. All rights reserved.
3
+ For licensing, see LICENSE.html or http://ckeditor.com/license
4
+ */
5
+
6
+ CKEDITOR.plugins.add('dialog',{requires:['dialogui']});CKEDITOR.DIALOG_RESIZE_NONE=0;CKEDITOR.DIALOG_RESIZE_WIDTH=1;CKEDITOR.DIALOG_RESIZE_HEIGHT=2;CKEDITOR.DIALOG_RESIZE_BOTH=3;(function(){function a(y){return!!this._.tabs[y][0].$.offsetHeight;};function b(){var C=this;var y=C._.currentTabId,z=C._.tabIdList.length,A=CKEDITOR.tools.indexOf(C._.tabIdList,y)+z;for(var B=A-1;B>A-z;B--)if(a.call(C,C._.tabIdList[B%z]))return C._.tabIdList[B%z];return null;};function c(){var C=this;var y=C._.currentTabId,z=C._.tabIdList.length,A=CKEDITOR.tools.indexOf(C._.tabIdList,y);for(var B=A+1;B<A+z;B++)if(a.call(C,C._.tabIdList[B%z]))return C._.tabIdList[B%z];return null;};var d={};CKEDITOR.dialog=function(y,z){var A=CKEDITOR.dialog._.dialogDefinitions[z];if(!A){console.log('Error: The dialog "'+z+'" is not defined.');return;}A=CKEDITOR.tools.extend(A(y),f);A=CKEDITOR.tools.clone(A);A=new j(this,A);this.definition=A=CKEDITOR.fire('dialogDefinition',{name:z,definition:A},y).definition;var B=CKEDITOR.document,C=y.theme.buildDialog(y);this._={editor:y,element:C.element,name:z,contentSize:{width:0,height:0},size:{width:0,height:0},updateSize:false,contents:{},buttons:{},accessKeyMap:{},tabs:{},tabIdList:[],currentTabId:null,currentTabIndex:null,pageCount:0,lastTab:null,tabBarMode:false,focusList:[],currentFocusIndex:0,hasFocus:false};this.parts=C.parts;this.parts.dialog.setStyles({position:CKEDITOR.env.ie6Compat?'absolute':'fixed',top:0,left:0,visibility:'hidden'});CKEDITOR.event.call(this);if(A.onLoad)this.on('load',A.onLoad);if(A.onShow)this.on('show',A.onShow);if(A.onHide)this.on('hide',A.onHide);if(A.onOk)this.on('ok',function(M){if(A.onOk.call(this,M)===false)M.data.hide=false;});if(A.onCancel)this.on('cancel',function(M){if(A.onCancel.call(this,M)===false)M.data.hide=false;});var D=this,E=function(M){var N=D._.contents,O=false;for(var P in N)for(var Q in N[P]){O=M.call(this,N[P][Q]);if(O)return;}};this.on('ok',function(M){E(function(N){if(N.validate){var O=N.validate(this);if(typeof O=='string'){alert(O);O=false;}if(O===false){if(N.select)N.select();else N.focus();M.data.hide=false;M.stop();return true;}}});},this,null,0);this.on('cancel',function(M){E(function(N){if(N.isChanged()){if(!confirm(y.lang.common.confirmCancel))M.data.hide=false;return true;}});},this,null,0);this.parts.close.on('click',function(M){if(this.fire('cancel',{hide:true}).hide!==false)this.hide();},this);function F(M){var N=D._.focusList,O=M?1:-1;if(N.length<1)return;var P=(D._.currentFocusIndex+O+N.length)%(N.length);
7
+ while(!N[P].isFocusable()){P=(P+O+N.length)%(N.length);if(P==D._.currentFocusIndex)break;}N[P].focus();};function G(M){if(D!=CKEDITOR.dialog._.currentTop)return;var N=M.data.getKeystroke(),O=false;if(N==9||N==CKEDITOR.SHIFT+9){var P=N==CKEDITOR.SHIFT+9;if(D._.tabBarMode){var Q=P?b.call(D):c.call(D);D.selectPage(Q);D._.tabs[Q][0].focus();}else F(!P);O=true;}else if(N==CKEDITOR.ALT+121&&!D._.tabBarMode){D._.tabBarMode=true;D._.tabs[D._.currentTabId][0].focus();O=true;}else if((N==37||N==39)&&(D._.tabBarMode)){Q=N==37?b.call(D):c.call(D);D.selectPage(Q);D._.tabs[Q][0].focus();O=true;}if(O){M.stop();M.data.preventDefault();}};this.on('show',function(){CKEDITOR.document.on('keydown',G,this,null,0);if(CKEDITOR.env.ie6Compat){var M=o.getChild(0).getFrameDocument();M.on('keydown',G,this,null,0);}});this.on('hide',function(){CKEDITOR.document.removeListener('keydown',G);});this.on('iframeAdded',function(M){var N=new CKEDITOR.dom.document(M.data.iframe.$.contentWindow.document);N.on('keydown',G,this,null,0);});this.on('show',function(){var P=this;if(!P._.hasFocus){P._.currentFocusIndex=-1;F(true);if(P._.editor.mode=='wysiwyg'&&CKEDITOR.env.ie){var M=y.document.$.selection,N=M.createRange();if(N)if(N.parentElement&&N.parentElement().ownerDocument==y.document.$||N.item&&N.item(0).ownerDocument==y.document.$){var O=document.body.createTextRange();O.moveToElementText(P.getElement().getFirst().$);O.collapse(true);O.select();}}}},this,null,4294967295);if(CKEDITOR.env.ie6Compat)this.on('load',function(M){var N=this.getElement(),O=N.getFirst();O.remove();O.appendTo(N);},this);l(this);m(this);new CKEDITOR.dom.text(A.title,CKEDITOR.document).appendTo(this.parts.title);for(var H=0;H<A.contents.length;H++)this.addPage(A.contents[H]);var I=/cke_dialog_tab(\s|$|_)/,J=/cke_dialog_tab(\s|$)/;this.parts.tabs.on('click',function(M){var R=this;var N=M.data.getTarget(),O=N,P,Q;if(!(I.test(N.$.className)||N.getName()=='a'))return;P=N.$.id.substr(0,N.$.id.lastIndexOf('_'));R.selectPage(P);if(R._.tabBarMode){R._.tabBarMode=false;R._.currentFocusIndex=-1;F(true);}M.data.preventDefault();},this);var K=[],L=CKEDITOR.dialog._.uiElementBuilders.hbox.build(this,{type:'hbox',className:'cke_dialog_footer_buttons',widths:[],children:A.buttons},K).getChild();this.parts.footer.setHtml(K.join(''));for(H=0;H<L.length;H++)this._.buttons[L[H].id]=L[H];CKEDITOR.skins.load(y,'dialog');};function e(y,z,A){this.element=z;this.focusIndex=A;this.isFocusable=function(){return true;};this.focus=function(){y._.currentFocusIndex=this.focusIndex;
8
+ this.element.focus();};z.on('keydown',function(B){if(B.data.getKeystroke() in {32:1,13:1})this.fire('click');});z.on('focus',function(){this.fire('mouseover');});z.on('blur',function(){this.fire('mouseout');});};CKEDITOR.dialog.prototype={resize:(function(){return function(y,z){var A=this;if(A._.contentSize&&A._.contentSize.width==y&&A._.contentSize.height==z)return;CKEDITOR.dialog.fire('resize',{dialog:A,skin:A._.editor.skinName,width:y,height:z},A._.editor);A._.contentSize={width:y,height:z};A._.updateSize=true;};})(),getSize:function(){var A=this;if(!A._.updateSize)return A._.size;var y=A._.element.getFirst(),z=A._.size={width:y.$.offsetWidth||0,height:y.$.offsetHeight||0};A._.updateSize=!z.width||!z.height;return z;},move:(function(){var y;return function(z,A){var D=this;var B=D._.element.getFirst();if(y===undefined)y=B.getComputedStyle('position')=='fixed';if(y&&D._.position&&D._.position.x==z&&D._.position.y==A)return;D._.position={x:z,y:A};if(!y){var C=CKEDITOR.document.getWindow().getScrollPosition();z+=C.x;A+=C.y;}B.setStyles({left:(z>0?z:0)+('px'),top:(A>0?A:0)+('px')});};})(),getPosition:function(){return CKEDITOR.tools.extend({},this._.position);},show:function(){if(this._.editor.mode=='wysiwyg'&&CKEDITOR.env.ie)this._.editor.getSelection().lock();var y=this._.element,z=this.definition;if(!(y.getParent()&&y.getParent().equals(CKEDITOR.document.getBody())))y.appendTo(CKEDITOR.document.getBody());else return;if(CKEDITOR.env.gecko&&CKEDITOR.env.version<10900){var A=this.parts.dialog;A.setStyle('position','absolute');setTimeout(function(){A.setStyle('position','fixed');},0);}this.resize(z.minWidth,z.minHeight);this.selectPage(this.definition.contents[0].id);this.reset();if(CKEDITOR.dialog._.currentZIndex===null)CKEDITOR.dialog._.currentZIndex=this._.editor.config.baseFloatZIndex;this._.element.getFirst().setStyle('z-index',CKEDITOR.dialog._.currentZIndex+=10);if(CKEDITOR.dialog._.currentTop===null){CKEDITOR.dialog._.currentTop=this;this._.parentDialog=null;p(this._.editor);CKEDITOR.document.on('keydown',s);CKEDITOR.document.on('keyup',t);}else{this._.parentDialog=CKEDITOR.dialog._.currentTop;var B=this._.parentDialog.getElement().getFirst();B.$.style.zIndex-=Math.floor(this._.editor.config.baseFloatZIndex/2);CKEDITOR.dialog._.currentTop=this;}u(this,this,'\x1b',null,function(){this.getButton('cancel')&&this.getButton('cancel').click();});this._.hasFocus=false;CKEDITOR.tools.setTimeout(function(){var C=CKEDITOR.document.getWindow().getViewPaneSize(),D=this.getSize();
9
+ this.move((C.width-z.minWidth)/(2),(C.height-D.height)/(2));this.parts.dialog.setStyle('visibility','');this.fireOnce('load',{});this.fire('show',{});this.foreach(function(E){E.setInitValue&&E.setInitValue();});},100,this);},foreach:function(y){var B=this;for(var z in B._.contents)for(var A in B._.contents[z])y(B._.contents[z][A]);return B;},reset:(function(){var y=function(z){if(z.reset)z.reset();};return function(){this.foreach(y);return this;};})(),setupContent:function(){var y=arguments;this.foreach(function(z){if(z.setup)z.setup.apply(z,y);});},commitContent:function(){var y=arguments;this.foreach(function(z){if(z.commit)z.commit.apply(z,y);});},hide:function(){this.fire('hide',{});var y=this._.element;if(!y.getParent())return;y.remove();this.parts.dialog.setStyle('visibility','hidden');v(this);if(!this._.parentDialog)q();else{var z=this._.parentDialog.getElement().getFirst();z.setStyle('z-index',parseInt(z.$.style.zIndex,10)+Math.floor(this._.editor.config.baseFloatZIndex/2));}CKEDITOR.dialog._.currentTop=this._.parentDialog;if(!this._.parentDialog){CKEDITOR.dialog._.currentZIndex=null;CKEDITOR.document.removeListener('keydown',s);CKEDITOR.document.removeListener('keyup',t);var A=this._.editor;A.focus();if(A.mode=='wysiwyg'&&CKEDITOR.env.ie)A.getSelection().unlock(true);}else CKEDITOR.dialog._.currentZIndex-=10;this.foreach(function(B){B.resetInitValue&&B.resetInitValue();});},addPage:function(y){var I=this;var z=[],A=y.label?' title="'+CKEDITOR.tools.htmlEncode(y.label)+'"':'',B=y.elements,C=CKEDITOR.dialog._.uiElementBuilders.vbox.build(I,{type:'vbox',className:'cke_dialog_page_contents',children:y.elements,expand:!!y.expand,padding:y.padding,style:y.style||'width: 100%; height: 100%;'},z),D=CKEDITOR.dom.element.createFromHtml(z.join('')),E=CKEDITOR.dom.element.createFromHtml(['<a class="cke_dialog_tab"',I._.pageCount>0?' cke_last':'cke_first',A,!!y.hidden?' style="display:none"':'',' id="',y.id+'_',CKEDITOR.tools.getNextNumber(),'" href="javascript:void(0)"',' hidefocus="true">',y.label,'</a>'].join(''));if(I._.pageCount===0)I.parts.dialog.addClass('cke_single_page');else I.parts.dialog.removeClass('cke_single_page');I._.tabs[y.id]=[E,D];I._.tabIdList.push(y.id);I._.pageCount++;I._.lastTab=E;var F=I._.contents[y.id]={},G,H=C.getChild();while(G=H.shift()){F[G.id]=G;if(typeof G.getChild=='function')H.push.apply(H,G.getChild());}D.setAttribute('name',y.id);D.appendTo(I.parts.contents);E.unselectable();I.parts.tabs.append(E);if(y.accessKey){u(I,I,'CTRL+'+y.accessKey,x,w);
10
+ I._.accessKeyMap['CTRL+'+y.accessKey]=y.id;}},selectPage:function(y){var D=this;for(var z in D._.tabs){var A=D._.tabs[z][0],B=D._.tabs[z][1];if(z!=y){A.removeClass('cke_dialog_tab_selected');B.hide();}}var C=D._.tabs[y];C[0].addClass('cke_dialog_tab_selected');C[1].show();D._.currentTabId=y;D._.currentTabIndex=CKEDITOR.tools.indexOf(D._.tabIdList,y);},hidePage:function(y){var z=this._.tabs[y]&&this._.tabs[y][0];if(!z)return;z.hide();},showPage:function(y){var z=this._.tabs[y]&&this._.tabs[y][0];if(!z)return;z.show();},getElement:function(){return this._.element;},getName:function(){return this._.name;},getContentElement:function(y,z){return this._.contents[y][z];},getValueOf:function(y,z){return this.getContentElement(y,z).getValue();},setValueOf:function(y,z,A){return this.getContentElement(y,z).setValue(A);},getButton:function(y){return this._.buttons[y];},click:function(y){return this._.buttons[y].click();},disableButton:function(y){return this._.buttons[y].disable();},enableButton:function(y){return this._.buttons[y].enable();},getPageCount:function(){return this._.pageCount;},getParentEditor:function(){return this._.editor;},getSelectedElement:function(){return this.getParentEditor().getSelection().getSelectedElement();},addFocusable:function(y,z){var B=this;if(typeof z=='undefined'){z=B._.focusList.length;B._.focusList.push(new e(B,y,z));}else{B._.focusList.splice(z,0,new e(B,y,z));for(var A=z+1;A<B._.focusList.length;A++)B._.focusList[A].focusIndex++;}}};CKEDITOR.tools.extend(CKEDITOR.dialog,{add:function(y,z){if(!this._.dialogDefinitions[y]||typeof z=='function')this._.dialogDefinitions[y]=z;},exists:function(y){return!!this._.dialogDefinitions[y];},getCurrent:function(){return CKEDITOR.dialog._.currentTop;},okButton:(function(){var y=function(z,A){A=A||{};return CKEDITOR.tools.extend({id:'ok',type:'button',label:z.lang.common.ok,'class':'cke_dialog_ui_button_ok',onClick:function(B){var C=B.data.dialog;if(C.fire('ok',{hide:true}).hide!==false)C.hide();}},A,true);};y.type='button';y.override=function(z){return CKEDITOR.tools.extend(function(A){return y(A,z);},{type:'button'},true);};return y;})(),cancelButton:(function(){var y=function(z,A){A=A||{};return CKEDITOR.tools.extend({id:'cancel',type:'button',label:z.lang.common.cancel,'class':'cke_dialog_ui_button_cancel',onClick:function(B){var C=B.data.dialog;if(C.fire('cancel',{hide:true}).hide!==false)C.hide();}},A,true);};y.type='button';y.override=function(z){return CKEDITOR.tools.extend(function(A){return y(A,z);
11
+ },{type:'button'},true);};return y;})(),addUIElement:function(y,z){this._.uiElementBuilders[y]=z;}});CKEDITOR.dialog._={uiElementBuilders:{},dialogDefinitions:{},currentTop:null,currentZIndex:null};CKEDITOR.event.implementOn(CKEDITOR.dialog);CKEDITOR.event.implementOn(CKEDITOR.dialog.prototype,true);var f={resizable:CKEDITOR.DIALOG_RESIZE_NONE,minWidth:600,minHeight:400,buttons:[CKEDITOR.dialog.okButton,CKEDITOR.dialog.cancelButton]},g=function(y,z,A){for(var B=0,C;C=y[B];B++){if(C.id==z)return C;if(A&&C[A]){var D=g(C[A],z,A);if(D)return D;}}return null;},h=function(y,z,A,B,C){if(A){for(var D=0,E;E=y[D];D++){if(E.id==A){y.splice(D,0,z);return z;}if(B&&E[B]){var F=h(E[B],z,A,B,true);if(F)return F;}}if(C)return null;}y.push(z);return z;},i=function(y,z,A){for(var B=0,C;C=y[B];B++){if(C.id==z)return y.splice(B,1);if(A&&C[A]){var D=i(C[A],z,A);if(D)return D;}}return null;},j=function(y,z){this.dialog=y;var A=z.contents;for(var B=0,C;C=A[B];B++)A[B]=new k(y,C);CKEDITOR.tools.extend(this,z);};j.prototype={getContents:function(y){return g(this.contents,y);},getButton:function(y){return g(this.buttons,y);},addContents:function(y,z){return h(this.contents,y,z);},addButton:function(y,z){return h(this.buttons,y,z);},removeContents:function(y){i(this.contents,y);},removeButton:function(y){i(this.buttons,y);}};function k(y,z){this._={dialog:y};CKEDITOR.tools.extend(this,z);};k.prototype={get:function(y){return g(this.elements,y,'children');},add:function(y,z){return h(this.elements,y,z,'children');},remove:function(y){i(this.elements,y,'children');}};function l(y){var z=null,A=null,B=y.getElement().getFirst(),C=y.getParentEditor(),D=C.config.dialog_magnetDistance,E=d[C.skinName].margins||[0,0,0,0];function F(H){var I=y.getSize(),J=CKEDITOR.document.getWindow().getViewPaneSize(),K=H.data.$.screenX,L=H.data.$.screenY,M=K-z.x,N=L-z.y,O,P;z={x:K,y:L};A.x+=M;A.y+=N;if(A.x+E[3]<D)O=-E[3];else if(A.x-E[1]>J.width-I.width-D)O=J.width-I.width+E[1];else O=A.x;if(A.y+E[0]<D)P=-E[0];else if(A.y-E[2]>J.height-I.height-D)P=J.height-I.height+E[2];else P=A.y;y.move(O,P);H.data.preventDefault();};function G(H){CKEDITOR.document.removeListener('mousemove',F);CKEDITOR.document.removeListener('mouseup',G);if(CKEDITOR.env.ie6Compat){var I=o.getChild(0).getFrameDocument();I.removeListener('mousemove',F);I.removeListener('mouseup',G);}};y.parts.title.on('mousedown',function(H){y._.updateSize=true;z={x:H.data.$.screenX,y:H.data.$.screenY};CKEDITOR.document.on('mousemove',F);CKEDITOR.document.on('mouseup',G);
12
+ A=y.getPosition();if(CKEDITOR.env.ie6Compat){var I=o.getChild(0).getFrameDocument();I.on('mousemove',F);I.on('mouseup',G);}H.data.preventDefault();},y);};function m(y){var z=y.definition,A=z.minWidth||0,B=z.minHeight||0,C=z.resizable,D=d[y.getParentEditor().skinName].margins||[0,0,0,0];function E(P,Q){P.y+=Q;};function F(P,Q){P.x2+=Q;};function G(P,Q){P.y2+=Q;};function H(P,Q){P.x+=Q;};var I=null,J=null,K=y._.editor.config.magnetDistance,L=['tl','t','tr','l','r','bl','b','br'];function M(P){var Q=P.listenerData.part,R=y.getSize();J=y.getPosition();CKEDITOR.tools.extend(J,{x2:J.x+R.width,y2:J.y+R.height});I={x:P.data.$.screenX,y:P.data.$.screenY};CKEDITOR.document.on('mousemove',N,y,{part:Q});CKEDITOR.document.on('mouseup',O,y,{part:Q});if(CKEDITOR.env.ie6Compat){var S=o.getChild(0).getFrameDocument();S.on('mousemove',N,y,{part:Q});S.on('mouseup',O,y,{part:Q});}P.data.preventDefault();};function N(P){var Q=P.data.$.screenX,R=P.data.$.screenY,S=Q-I.x,T=R-I.y,U=CKEDITOR.document.getWindow().getViewPaneSize(),V=P.listenerData.part;if(V.search('t')!=-1)E(J,T);if(V.search('l')!=-1)H(J,S);if(V.search('b')!=-1)G(J,T);if(V.search('r')!=-1)F(J,S);I={x:Q,y:R};var W,X,Y,Z;if(J.x+D[3]<K)W=-D[3];else if(V.search('l')!=-1&&J.x2-J.x<A+K)W=J.x2-A;else W=J.x;if(J.y+D[0]<K)X=-D[0];else if(V.search('t')!=-1&&J.y2-J.y<B+K)X=J.y2-B;else X=J.y;if(J.x2-D[1]>U.width-K)Y=U.width+D[1];else if(V.search('r')!=-1&&J.x2-J.x<A+K)Y=J.x+A;else Y=J.x2;if(J.y2-D[2]>U.height-K)Z=U.height+D[2];else if(V.search('b')!=-1&&J.y2-J.y<B+K)Z=J.y+B;else Z=J.y2;y.move(W,X);y.resize(Y-W,Z-X);P.data.preventDefault();};function O(P){CKEDITOR.document.removeListener('mouseup',O);CKEDITOR.document.removeListener('mousemove',N);if(CKEDITOR.env.ie6Compat){var Q=o.getChild(0).getFrameDocument();Q.removeListener('mouseup',O);Q.removeListener('mousemove',N);}};};var n,o,p=function(y){var z=CKEDITOR.document.getWindow();if(!o){var A=['<div style="position: ',CKEDITOR.env.ie6Compat?'absolute':'fixed','; z-index: ',y.config.baseFloatZIndex,'; top: 0px; left: 0px; ','background-color: ',y.config.dialog_backgroundCoverColor,'" id="cke_dialog_background_cover">'];if(CKEDITOR.env.ie6Compat){var B=CKEDITOR.env.isCustomDomain();A.push('<iframe hidefocus="true" frameborder="0" id="cke_dialog_background_iframe" src="javascript:');A.push(B?"void((function(){document.open();document.domain='"+document.domain+"';"+'document.close();'+'})())':"''");A.push('" style="position:absolute;left:0;top:0;width:100%;height: 100%;progid:DXImageTransform.Microsoft.Alpha(opacity=0)"></iframe>');
13
+ }A.push('</div>');o=CKEDITOR.dom.element.createFromHtml(A.join(''));}var C=o,D=function(){var G=z.getViewPaneSize();C.setStyles({width:G.width+'px',height:G.height+'px'});},E=function(){var G=z.getScrollPosition(),H=CKEDITOR.dialog._.currentTop;C.setStyles({left:G.x+'px',top:G.y+'px'});do{var I=H.getPosition();H.move(I.x,I.y);}while(H=H._.parentDialog)};n=D;z.on('resize',D);D();if(CKEDITOR.env.ie6Compat){var F=function(){E();arguments.callee.prevScrollHandler.apply(this,arguments);};z.$.setTimeout(function(){F.prevScrollHandler=window.onscroll||(function(){});window.onscroll=F;},0);E();}C.setOpacity(y.config.dialog_backgroundCoverOpacity);C.appendTo(CKEDITOR.document.getBody());},q=function(){if(!o)return;var y=CKEDITOR.document.getWindow();o.remove();y.removeListener('resize',n);if(CKEDITOR.env.ie6Compat)y.$.setTimeout(function(){var z=window.onscroll&&window.onscroll.prevScrollHandler;window.onscroll=z||null;},0);n=null;},r={},s=function(y){var z=y.data.$.ctrlKey||y.data.$.metaKey,A=y.data.$.altKey,B=y.data.$.shiftKey,C=String.fromCharCode(y.data.$.keyCode),D=r[(z?'CTRL+':'')+(A?'ALT+':'')+(B?'SHIFT+':'')+C];if(!D||!D.length)return;D=D[D.length-1];D.keydown&&D.keydown.call(D.uiElement,D.dialog,D.key);y.data.preventDefault();},t=function(y){var z=y.data.$.ctrlKey||y.data.$.metaKey,A=y.data.$.altKey,B=y.data.$.shiftKey,C=String.fromCharCode(y.data.$.keyCode),D=r[(z?'CTRL+':'')+(A?'ALT+':'')+(B?'SHIFT+':'')+C];if(!D||!D.length)return;D=D[D.length-1];D.keyup&&D.keyup.call(D.uiElement,D.dialog,D.key);y.data.preventDefault();},u=function(y,z,A,B,C){var D=r[A]||(r[A]=[]);D.push({uiElement:y,dialog:z,key:A,keyup:C||y.accessKeyUp,keydown:B||y.accessKeyDown});},v=function(y){for(var z in r){var A=r[z];for(var B=A.length-1;B>=0;B--)if(A[B].dialog==y||A[B].uiElement==y)A.splice(B,1);if(A.length===0)delete r[z];}},w=function(y,z){if(y._.accessKeyMap[z])y.selectPage(y._.accessKeyMap[z]);},x=function(y,z){};(function(){CKEDITOR.ui.dialog={uiElement:function(y,z,A,B,C,D,E){if(arguments.length<4)return;var F=(B.call?B(z):B)||('div'),G=['<',F,' '],H=(C&&C.call?C(z):C)||({}),I=(D&&D.call?D(z):D)||({}),J=(E&&E.call?E(y,z):E)||(''),K=this.domId=I.id||CKEDITOR.tools.getNextNumber()+'_uiElement',L=this.id=z.id,M;I.id=K;var N={};if(z.type)N['cke_dialog_ui_'+z.type]=1;if(z.className)N[z.className]=1;var O=I['class']&&I['class'].split?I['class'].split(' '):[];for(M=0;M<O.length;M++)if(O[M])N[O[M]]=1;var P=[];for(M in N)P.push(M);I['class']=P.join(' ');if(z.title)I.title=z.title;var Q=(z.style||'').split(';');
14
+ for(M in H)Q.push(M+':'+H[M]);if(z.hidden)Q.push('display:none');for(M=Q.length-1;M>=0;M--)if(Q[M]==='')Q.splice(M,1);if(Q.length>0)I.style=(I.style?I.style+'; ':'')+(Q.join('; '));for(M in I)G.push(M+'="'+CKEDITOR.tools.htmlEncode(I[M])+'" ');G.push('>',J,'</',F,'>');A.push(G.join(''));(this._||(this._={})).dialog=y;if(typeof z.isChanged=='boolean')this.isChanged=function(){return z.isChanged;};if(typeof z.isChanged=='function')this.isChanged=z.isChanged;CKEDITOR.event.implementOn(this);this.registerEvents(z);if(this.accessKeyUp&&this.accessKeyDown&&z.accessKey)u(this,y,'CTRL+'+z.accessKey);var R=this;y.on('load',function(){if(R.getInputElement())R.getInputElement().on('focus',function(){y._.tabBarMode=false;y._.hasFocus=true;R.fire('focus');},R);});if(this.keyboardFocusable){this.focusIndex=y._.focusList.push(this)-1;this.on('focus',function(){y._.currentFocusIndex=R.focusIndex;});}CKEDITOR.tools.extend(this,z);},hbox:function(y,z,A,B,C){if(arguments.length<4)return;this._||(this._={});var D=this._.children=z,E=C&&C.widths||null,F=C&&C.height||null,G={},H,I=function(){var J=['<tbody><tr class="cke_dialog_ui_hbox">'];for(H=0;H<A.length;H++){var K='cke_dialog_ui_hbox_child',L=[];if(H===0)K='cke_dialog_ui_hbox_first';if(H==A.length-1)K='cke_dialog_ui_hbox_last';J.push('<td class="',K,'" ');if(E){if(E[H])L.push('width:'+CKEDITOR.tools.cssLength(E[H]));}else L.push('width:'+Math.floor(100/A.length)+'%');if(F)L.push('height:'+CKEDITOR.tools.cssLength(F));if(C&&C.padding!=undefined)L.push('padding:'+CKEDITOR.tools.cssLength(C.padding));if(L.length>0)J.push('style="'+L.join('; ')+'" ');J.push('>',A[H],'</td>');}J.push('</tr></tbody>');return J.join('');};CKEDITOR.ui.dialog.uiElement.call(this,y,C||{type:'hbox'},B,'table',G,C&&C.align&&{align:C.align}||null,I);},vbox:function(y,z,A,B,C){if(arguments.length<3)return;this._||(this._={});var D=this._.children=z,E=C&&C.width||null,F=C&&C.heights||null,G=function(){var H=['<table cellspacing="0" border="0" '];H.push('style="');if(C&&C.expand)H.push('height:100%;');H.push('width:'+CKEDITOR.tools.cssLength(E||'100%'),';');H.push('"');H.push('align="',CKEDITOR.tools.htmlEncode(C&&C.align||(y.getParentEditor().lang.dir=='ltr'?'left':'right')),'" ');H.push('><tbody>');for(var I=0;I<A.length;I++){var J=[];H.push('<tr><td ');if(E)J.push('width:'+CKEDITOR.tools.cssLength(E||'100%'));if(F)J.push('height:'+CKEDITOR.tools.cssLength(F[I]));else if(C&&C.expand)J.push('height:'+Math.floor(100/A.length)+'%');if(C&&C.padding!=undefined)J.push('padding:'+CKEDITOR.tools.cssLength(C.padding));
15
+ if(J.length>0)H.push('style="',J.join('; '),'" ');H.push(' class="cke_dialog_ui_vbox_child">',A[I],'</td></tr>');}H.push('</tbody></table>');return H.join('');};CKEDITOR.ui.dialog.uiElement.call(this,y,C||{type:'vbox'},B,'div',null,null,G);}};})();CKEDITOR.ui.dialog.uiElement.prototype={getElement:function(){return CKEDITOR.document.getById(this.domId);},getInputElement:function(){return this.getElement();},getDialog:function(){return this._.dialog;},setValue:function(y){this.getInputElement().setValue(y);this.fire('change',{value:y});return this;},getValue:function(){return this.getInputElement().getValue();},isChanged:function(){return false;},selectParentTab:function(){var B=this;var y=B.getInputElement(),z=y,A;while((z=z.getParent())&&(z.$.className.search('cke_dialog_page_contents')==-1)){}if(!z)return B;A=z.getAttribute('name');if(B._.dialog._.currentTabId!=A)B._.dialog.selectPage(A);return B;},focus:function(){this.selectParentTab().getInputElement().focus();return this;},registerEvents:function(y){var z=/^on([A-Z]\w+)/,A,B=function(D,E,F,G){E.on('load',function(){D.getInputElement().on(F,G,D);});};for(var C in y){if(!(A=C.match(z)))continue;if(this.eventProcessors[C])this.eventProcessors[C].call(this,this._.dialog,y[C]);else B(this,this._.dialog,A[1].toLowerCase(),y[C]);}return this;},eventProcessors:{onLoad:function(y,z){y.on('load',z,this);},onShow:function(y,z){y.on('show',z,this);},onHide:function(y,z){y.on('hide',z,this);}},accessKeyDown:function(y,z){this.focus();},accessKeyUp:function(y,z){},disable:function(){var y=this.getInputElement();y.setAttribute('disabled','true');y.addClass('cke_disabled');},enable:function(){var y=this.getInputElement();y.removeAttribute('disabled');y.removeClass('cke_disabled');},isEnabled:function(){return!this.getInputElement().getAttribute('disabled');},isVisible:function(){return!!this.getInputElement().$.offsetHeight;},isFocusable:function(){if(!this.isEnabled()||!this.isVisible())return false;return true;}};CKEDITOR.ui.dialog.hbox.prototype=CKEDITOR.tools.extend(new CKEDITOR.ui.dialog.uiElement(),{getChild:function(y){var z=this;if(arguments.length<1)return z._.children.concat();if(!y.splice)y=[y];if(y.length<2)return z._.children[y[0]];else return z._.children[y[0]]&&z._.children[y[0]].getChild?z._.children[y[0]].getChild(y.slice(1,y.length)):null;}},true);CKEDITOR.ui.dialog.vbox.prototype=new CKEDITOR.ui.dialog.hbox();(function(){var y={build:function(z,A,B){var C=A.children,D,E=[],F=[];for(var G=0;G<C.length&&(D=C[G]);
16
+ G++){var H=[];E.push(H);F.push(CKEDITOR.dialog._.uiElementBuilders[D.type].build(z,D,H));}return new CKEDITOR.ui.dialog[A.type](z,F,E,B,A);}};CKEDITOR.dialog.addUIElement('hbox',y);CKEDITOR.dialog.addUIElement('vbox',y);})();CKEDITOR.dialogCommand=function(y){this.dialogName=y;};CKEDITOR.dialogCommand.prototype={exec:function(y){y.openDialog(this.dialogName);},canUndo:false};(function(){var y=/^([a]|[^a])+$/,z=/^\d*$/,A=/^\d*(?:\.\d+)?$/;CKEDITOR.VALIDATE_OR=1;CKEDITOR.VALIDATE_AND=2;CKEDITOR.dialog.validate={functions:function(){return function(){var H=this;var B=H&&H.getValue?H.getValue():arguments[0],C=undefined,D=CKEDITOR.VALIDATE_AND,E=[],F;for(F=0;F<arguments.length;F++)if(typeof arguments[F]=='function')E.push(arguments[F]);else break;if(F<arguments.length&&typeof arguments[F]=='string'){C=arguments[F];F++;}if(F<arguments.length&&typeof arguments[F]=='number')D=arguments[F];var G=D==CKEDITOR.VALIDATE_AND?true:false;for(F=0;F<E.length;F++)if(D==CKEDITOR.VALIDATE_AND)G=G&&E[F](B);else G=G||E[F](B);if(!G){if(C!==undefined)alert(C);if(H&&(H.select||H.focus))H.select||H.focus();return false;}return true;};},regex:function(B,C){return function(){var E=this;var D=E&&E.getValue?E.getValue():arguments[0];if(!B.test(D)){if(C!==undefined)alert(C);if(E&&(E.select||E.focus))if(E.select)E.select();else E.focus();return false;}return true;};},notEmpty:function(B){return this.regex(y,B);},integer:function(B){return this.regex(z,B);},number:function(B){return this.regex(A,B);},equals:function(B,C){return this.functions(function(D){return D==B;},C);},notEqual:function(B,C){return this.functions(function(D){return D!=B;},C);}};})();CKEDITOR.skins.add=(function(){var y=CKEDITOR.skins.add;return function(z,A){d[z]={margins:A.margins};return y.apply(this,arguments);};})();})();CKEDITOR.tools.extend(CKEDITOR.editor.prototype,{openDialog:function(a){var b=CKEDITOR.dialog._.dialogDefinitions[a];if(typeof b=='function'){var c=this._.storedDialogs||(this._.storedDialogs={}),d=c[a]||(c[a]=new CKEDITOR.dialog(this,a));d.show();return d;}else if(b=='failed')throw new Error('[CKEDITOR.dialog.openDialog] Dialog "'+a+'" failed when loading definition.');var e=CKEDITOR.document.getBody(),f=e.$.style.cursor,g=this;e.setStyle('cursor','wait');CKEDITOR.scriptLoader.load(CKEDITOR.getUrl(b),function(){if(typeof CKEDITOR.dialog._.dialogDefinitions[a]!='function')CKEDITOR.dialog._.dialogDefinitions[a]='failed';g.openDialog(a);e.setStyle('cursor',f);});return null;}});CKEDITOR.config.dialog_backgroundCoverColor='white';
17
+ CKEDITOR.config.dialog_backgroundCoverOpacity=0.5;CKEDITOR.config.dialog_magnetDistance=20;
@@ -0,0 +1,11 @@
1
+ /*
2
+ Copyright (c) 2003-2009, CKSource - Frederico Knabben. All rights reserved.
3
+ For licensing, see LICENSE.html or http://ckeditor.com/license
4
+ */
5
+
6
+ CKEDITOR.plugins.add('dialogui');(function(){var a=function(h){var k=this;k._||(k._={});k._['default']=k._.initValue=h['default']||'';var i=[k._];for(var j=1;j<arguments.length;j++)i.push(arguments[j]);i.push(true);CKEDITOR.tools.extend.apply(CKEDITOR.tools,i);return k._;},b={build:function(h,i,j){return new CKEDITOR.ui.dialog.textInput(h,i,j);}},c={build:function(h,i,j){return new CKEDITOR.ui.dialog[i.type](h,i,j);}},d={isChanged:function(){return this.getValue()!=this.getInitValue();},reset:function(){this.setValue(this.getInitValue());},setInitValue:function(){this._.initValue=this.getValue();},resetInitValue:function(){this._.initValue=this._['default'];},getInitValue:function(){return this._.initValue;}},e=CKEDITOR.tools.extend({},CKEDITOR.ui.dialog.uiElement.prototype.eventProcessors,{onChange:function(h,i){if(!this._.domOnChangeRegistered){h.on('load',function(){this.getInputElement().on('change',function(){this.fire('change',{value:this.getValue()});},this);},this);this._.domOnChangeRegistered=true;}this.on('change',i);}},true),f=/^on([A-Z]\w+)/,g=function(h){for(var i in h)if(f.test(i)||i=='title'||i=='type')delete h[i];return h;};CKEDITOR.tools.extend(CKEDITOR.ui.dialog,{labeledElement:function(h,i,j,k){if(arguments.length<4)return;var l=a.call(this,i);l.labelId=CKEDITOR.tools.getNextNumber()+'_label';var m=this._.children=[],n=function(){var o=[];if(i.labelLayout!='horizontal')o.push('<div class="cke_dialog_ui_labeled_label" id="',l.labelId,'" >',i.label,'</div>','<div class="cke_dialog_ui_labeled_content">',k(h,i),'</div>');else{var p={type:'hbox',widths:i.widths,padding:0,children:[{type:'html',html:'<span class="cke_dialog_ui_labeled_label" id="'+l.labelId+'">'+CKEDITOR.tools.htmlEncode(i.label)+'</span>'},{type:'html',html:'<span class="cke_dialog_ui_labeled_content">'+k(h,i)+'</span>'}]};CKEDITOR.dialog._.uiElementBuilders.hbox.build(h,p,o);}return o.join('');};CKEDITOR.ui.dialog.uiElement.call(this,h,i,j,'div',null,null,n);},textInput:function(h,i,j){if(arguments.length<3)return;a.call(this,i);var k=this._.inputId=CKEDITOR.tools.getNextNumber()+'_textInput',l={'class':'cke_dialog_ui_input_'+i.type,id:k,type:'text'},m;if(i.validate)this.validate=i.validate;if(i.maxLength)l.maxlength=i.maxLength;if(i.size)l.size=i.size;var n=this,o=false;h.on('load',function(){n.getInputElement().on('keydown',function(q){if(q.data.getKeystroke()==13)o=true;});n.getInputElement().on('keyup',function(q){if(q.data.getKeystroke()==13&&o){h.getButton('ok')&&h.getButton('ok').click();
7
+ o=false;}},null,null,1000);});var p=function(){var q=['<div class="cke_dialog_ui_input_',i.type,'"'];if(i.width)q.push('style="width:'+i.width+'" ');q.push('><input ');for(var r in l)q.push(r+'="'+l[r]+'" ');q.push(' /></div>');return q.join('');};CKEDITOR.ui.dialog.labeledElement.call(this,h,i,j,p);},textarea:function(h,i,j){if(arguments.length<3)return;a.call(this,i);var k=this,l=this._.inputId=CKEDITOR.tools.getNextNumber()+'_textarea',m={};if(i.validate)this.validate=i.validate;m.rows=i.rows||5;m.cols=i.cols||20;var n=function(){var o=['<div class="cke_dialog_ui_input_textarea"><textarea class="cke_dialog_ui_input_textarea" id="',l,'" '];for(var p in m)o.push(p+'="'+CKEDITOR.tools.htmlEncode(m[p])+'" ');o.push('>',CKEDITOR.tools.htmlEncode(k._['default']),'</textarea></div>');return o.join('');};CKEDITOR.ui.dialog.labeledElement.call(this,h,i,j,n);},checkbox:function(h,i,j){if(arguments.length<3)return;var k=a.call(this,i,{'default':!!i['default']});if(i.validate)this.validate=i.validate;var l=function(){var m=CKEDITOR.tools.extend({},i,{id:i.id?i.id+'_checkbox':CKEDITOR.tools.getNextNumber()+'_checkbox'},true),n=[],o={'class':'cke_dialog_ui_checkbox_input',type:'checkbox'};g(m);if(i['default'])o.checked='checked';k.checkbox=new CKEDITOR.ui.dialog.uiElement(h,m,n,'input',null,o);n.push(' <label for="',o.id,'">',CKEDITOR.tools.htmlEncode(i.label),'</label>');return n.join('');};CKEDITOR.ui.dialog.uiElement.call(this,h,i,j,'span',null,null,l);},radio:function(h,i,j){if(arguments.length<3)return;a.call(this,i);if(!this._['default'])this._['default']=this._.initValue=i.items[0][1];if(i.validate)this.validate=i.valdiate;var k=[],l=this,m=function(){var n=[],o=[],p={'class':'cke_dialog_ui_radio_item'},q=i.id?i.id+'_radio':CKEDITOR.tools.getNextNumber()+'_radio';for(var r=0;r<i.items.length;r++){var s=i.items[r],t=s[2]!==undefined?s[2]:s[0],u=s[1]!==undefined?s[1]:s[0],v=CKEDITOR.tools.extend({},i,{id:CKEDITOR.tools.getNextNumber()+'_radio_input',title:null,type:null},true),w=CKEDITOR.tools.extend({},v,{id:null,title:t},true),x={type:'radio','class':'cke_dialog_ui_radio_input',name:q,value:u},y=[];if(l._['default']==u)x.checked='checked';g(v);g(w);k.push(new CKEDITOR.ui.dialog.uiElement(h,v,y,'input',null,x));y.push(' ');new CKEDITOR.ui.dialog.uiElement(h,w,y,'label',null,{'for':x.id},s[0]);n.push(y.join(''));}new CKEDITOR.ui.dialog.hbox(h,[],n,o);return o.join('');};CKEDITOR.ui.dialog.labeledElement.call(this,h,i,j,m);this._.children=k;},button:function(h,i,j){if(!arguments.length)return;
8
+ if(typeof i=='function')i=i(h.getParentEditor());a.call(this,i,{disabled:i.disabled||false});CKEDITOR.event.implementOn(this);var k=this;h.on('load',function(m){var n=this.getElement();(function(){n.on('click',function(o){k.fire('click',{dialog:k.getDialog()});o.data.preventDefault();});})();n.unselectable();},this);var l=CKEDITOR.tools.extend({},i);delete l.style;CKEDITOR.ui.dialog.uiElement.call(this,h,l,j,'a',null,{style:i.style,href:'javascript:void(0)',title:i.label,hidefocus:'true','class':i['class']},'<span class="cke_dialog_ui_button">'+CKEDITOR.tools.htmlEncode(i.label)+'</span>');},select:function(h,i,j){if(arguments.length<3)return;var k=a.call(this,i);if(i.validate)this.validate=i.validate;var l=function(){var m=CKEDITOR.tools.extend({},i,{id:i.id?i.id+'_select':CKEDITOR.tools.getNextNumber()+'_select'},true),n=[],o=[],p={'class':'cke_dialog_ui_input_select'};if(i.size!=undefined)p.size=i.size;if(i.multiple!=undefined)p.multiple=i.multiple;g(m);for(var q=0,r;q<i.items.length&&(r=i.items[q]);q++)o.push('<option value="',CKEDITOR.tools.htmlEncode(r[1]!==undefined?r[1]:r[0]),'" /> ',CKEDITOR.tools.htmlEncode(r[0]));k.select=new CKEDITOR.ui.dialog.uiElement(h,m,n,'select',null,p,o.join(''));return n.join('');};CKEDITOR.ui.dialog.labeledElement.call(this,h,i,j,l);},file:function(h,i,j){if(arguments.length<3)return;if(i['default']===undefined)i['default']='';var k=CKEDITOR.tools.extend(a.call(this,i),{definition:i,buttons:[]});if(i.validate)this.validate=i.validate;var l=function(){k.frameId=CKEDITOR.tools.getNextNumber()+'_fileInput';var m=CKEDITOR.env.ie&&document.domain!=window.location.hostname,n=['<iframe frameborder="0" allowtransparency="0" class="cke_dialog_ui_input_file" id="',k.frameId,'" title="',i.label,'" src="javascript:void('];n.push(m?"(function(){document.open();document.domain='"+document.domain+"';"+'document.close();'+'})()':'0');n.push(')"></iframe>');return n.join('');};h.on('load',function(){var m=CKEDITOR.document.getById(k.frameId),n=m.getParent();n.addClass('cke_dialog_ui_input_file');});CKEDITOR.ui.dialog.labeledElement.call(this,h,i,j,l);},fileButton:function(h,i,j){if(arguments.length<3)return;var k=a.call(this,i),l=this;if(i.validate)this.validate=i.validate;var m=CKEDITOR.tools.extend({},i),n=m.onClick;m.className=(m.className?m.className+' ':'')+('cke_dialog_ui_button');m.onClick=function(o){var p=i['for'];if(!n||n.call(this,o)!==false){h.getContentElement(p[0],p[1]).submit();this.disable();}};h.on('load',function(){h.getContentElement(i['for'][0],i['for'][1])._.buttons.push(l);
9
+ });CKEDITOR.ui.dialog.button.call(this,h,m,j);},html:(function(){var h=/^\s*<[\w:]+\s+([^>]*)?>/,i=/^(\s*<[\w:]+(?:\s+[^>]*)?)((?:.|\r|\n)+)$/,j=/\/$/;return function(k,l,m){if(arguments.length<3)return;var n=[],o,p=l.html,q,r;if(p.charAt(0)!='<')p='<span>'+p+'</span>';if(l.focus){var s=this.focus;this.focus=function(){s.call(this);l.focus.call(this);this.fire('focus');};if(l.isFocusable){var t=this.isFocusable;this.isFocusable=t;}this.keyboardFocusable=true;}CKEDITOR.ui.dialog.uiElement.call(this,k,l,n,'span',null,null,'');o=n.join('');q=o.match(h);r=p.match(i)||['','',''];if(j.test(r[1])){r[1]=r[1].slice(0,-1);r[2]='/'+r[2];}m.push([r[1],' ',q[1]||'',r[2]].join(''));};})()},true);CKEDITOR.ui.dialog.html.prototype=new CKEDITOR.ui.dialog.uiElement();CKEDITOR.ui.dialog.labeledElement.prototype=CKEDITOR.tools.extend(new CKEDITOR.ui.dialog.uiElement(),{setLabel:function(h){var i=CKEDITOR.document.getById(this._.labelId);if(i.getChildCount()<1)new CKEDITOR.dom.text(h,CKEDITOR.document).appendTo(i);else i.getChild(0).$.nodeValue=h;return this;},getLabel:function(){var h=CKEDITOR.document.getById(this._.labelId);if(!h||h.getChildCount()<1)return '';else return h.getChild(0).getText();},eventProcessors:e},true);CKEDITOR.ui.dialog.button.prototype=CKEDITOR.tools.extend(new CKEDITOR.ui.dialog.uiElement(),{click:function(){var h=this;if(!h._.disabled)return h.fire('click',{dialog:h._.dialog});h.getElement().$.blur();return false;},enable:function(){this._.disabled=false;var h=this.getElement();h&&h.removeClass('disabled');},disable:function(){this._.disabled=true;this.getElement().addClass('disabled');},isVisible:function(){return!!this.getElement().$.firstChild.offsetHeight;},isEnabled:function(){return!this._.disabled;},eventProcessors:CKEDITOR.tools.extend({},CKEDITOR.ui.dialog.uiElement.prototype.eventProcessors,{onClick:function(h,i){this.on('click',i);}},true),accessKeyUp:function(){this.click();},accessKeyDown:function(){this.focus();},keyboardFocusable:true},true);CKEDITOR.ui.dialog.textInput.prototype=CKEDITOR.tools.extend(new CKEDITOR.ui.dialog.labeledElement(),{getInputElement:function(){return CKEDITOR.document.getById(this._.inputId);},focus:function(){var h=this.selectParentTab();setTimeout(function(){var i=h.getInputElement();i&&i.$.focus();},0);},select:function(){var h=this.selectParentTab();setTimeout(function(){var i=h.getInputElement();if(i){i.$.focus();i.$.select();}},0);},accessKeyUp:function(){this.select();},setValue:function(h){h=h||'';return CKEDITOR.ui.dialog.uiElement.prototype.setValue.call(this,h);
10
+ },keyboardFocusable:true},d,true);CKEDITOR.ui.dialog.textarea.prototype=new CKEDITOR.ui.dialog.textInput();CKEDITOR.ui.dialog.select.prototype=CKEDITOR.tools.extend(new CKEDITOR.ui.dialog.labeledElement(),{getInputElement:function(){return this._.select.getElement();},add:function(h,i,j){var k=new CKEDITOR.dom.element('option',this.getDialog().getParentEditor().document),l=this.getInputElement().$;k.$.text=h;k.$.value=i===undefined||i===null?h:i;if(j===undefined||j===null){if(CKEDITOR.env.ie)l.add(k.$);else l.add(k.$,null);}else l.add(k.$,j);return this;},remove:function(h){var i=this.getInputElement().$;i.remove(h);return this;},clear:function(){var h=this.getInputElement().$;while(h.length>0)h.remove(0);return this;},keyboardFocusable:true},d,true);CKEDITOR.ui.dialog.checkbox.prototype=CKEDITOR.tools.extend(new CKEDITOR.ui.dialog.uiElement(),{getInputElement:function(){return this._.checkbox.getElement();},setValue:function(h){this.getInputElement().$.checked=h;this.fire('change',{value:h});},getValue:function(){return this.getInputElement().$.checked;},accessKeyUp:function(){this.setValue(!this.getValue());},eventProcessors:{onChange:function(h,i){if(!CKEDITOR.env.ie)return e.onChange.apply(this,arguments);else{h.on('load',function(){var j=this._.checkbox.getElement();j.on('propertychange',function(k){k=k.data.$;if(k.propertyName=='checked')this.fire('change',{value:j.$.checked});},this);},this);this.on('change',i);}return null;}},keyboardFocusable:true},d,true);CKEDITOR.ui.dialog.radio.prototype=CKEDITOR.tools.extend(new CKEDITOR.ui.dialog.uiElement(),{setValue:function(h){var i=this._.children,j;for(var k=0;k<i.length&&(j=i[k]);k++)j.getElement().$.checked=j.getValue()==h;this.fire('change',{value:h});},getValue:function(){var h=this._.children;for(var i=0;i<h.length;i++)if(h[i].getElement().$.checked)return h[i].getValue();return null;},accessKeyUp:function(){var h=this._.children,i;for(i=0;i<h.length;i++)if(h[i].getElement().$.checked){h[i].getElement().focus();return;}h[0].getElement().focus();},eventProcessors:{onChange:function(h,i){if(!CKEDITOR.env.ie)return e.onChange.apply(this,arguments);else{h.on('load',function(){var j=this._.children,k=this;for(var l=0;l<j.length;l++){var m=j[l].getElement();m.on('propertychange',function(n){n=n.data.$;if(n.propertyName=='checked'&&this.$.checked)k.fire('change',{value:this.getAttribute('value')});});}},this);this.on('change',i);}return null;}},keyboardFocusable:true},d,true);CKEDITOR.ui.dialog.file.prototype=CKEDITOR.tools.extend(new CKEDITOR.ui.dialog.labeledElement(),d,{getInputElement:function(){var h=CKEDITOR.document.getById(this._.frameId).getFrameDocument();
11
+ return h.$.forms.length>0?new CKEDITOR.dom.element(h.$.forms[0].elements[0]):this.getElement();},submit:function(){this.getInputElement().getParent().$.submit();return this;},getAction:function(h){return this.getInputElement().getParent().$.action;},reset:function(){var h=CKEDITOR.document.getById(this._.frameId),i=h.getFrameDocument(),j=this._.definition,k=this._.buttons;function l(){i.$.open();if(CKEDITOR.env.isCustomDomain())i.$.domain=document.domain;var m='';if(j.size)m=j.size-(CKEDITOR.env.ie?7:0);i.$.write(['<html><head><title></title></head><body style="margin: 0; overflow: hidden; background: transparent;">','<form enctype="multipart/form-data" method="POST" action="',CKEDITOR.tools.htmlEncode(j.action),'">','<input type="file" name="',CKEDITOR.tools.htmlEncode(j.id||'cke_upload'),'" size="',CKEDITOR.tools.htmlEncode(m>0?m:''),'" />','</form>','</body></html>'].join(''));i.$.close();for(var n=0;n<k.length;n++)k[n].enable();};if(CKEDITOR.env.gecko)setTimeout(l,500);else l();},getValue:function(){return '';},eventProcessors:e,keyboardFocusable:true},true);CKEDITOR.ui.dialog.fileButton.prototype=new CKEDITOR.ui.dialog.button();CKEDITOR.dialog.addUIElement('text',b);CKEDITOR.dialog.addUIElement('password',b);CKEDITOR.dialog.addUIElement('textarea',c);CKEDITOR.dialog.addUIElement('checkbox',c);CKEDITOR.dialog.addUIElement('radio',c);CKEDITOR.dialog.addUIElement('button',c);CKEDITOR.dialog.addUIElement('select',c);CKEDITOR.dialog.addUIElement('file',c);CKEDITOR.dialog.addUIElement('fileButton',c);CKEDITOR.dialog.addUIElement('html',c);})();
@@ -0,0 +1,7 @@
1
+ /*
2
+ Copyright (c) 2003-2009, CKSource - Frederico Knabben. All rights reserved.
3
+ For licensing, see LICENSE.html or http://ckeditor.com/license
4
+ */
5
+
6
+ CKEDITOR.plugins.add('domiterator');(function(){var a=function(c){var d=this;if(arguments.length<1)return;d.range=c;d.forceBrBreak=false;d.enlargeBr=true;d.enforceRealBlocks=false;d._||(d._={});},b=/^[\r\n\t ]+$/;a.prototype={getNextParagraph:function(c){var D=this;var d,e,f,g,h;if(!D._.lastNode){e=D.range.clone();e.enlarge(D.forceBrBreak||!D.enlargeBr?CKEDITOR.ENLARGE_LIST_ITEM_CONTENTS:CKEDITOR.ENLARGE_BLOCK_CONTENTS);var i=new CKEDITOR.dom.walker(e),j=CKEDITOR.dom.walker.bookmark(true,true);i.evaluator=j;D._.nextNode=i.next();i=new CKEDITOR.dom.walker(e);i.evaluator=j;var k=i.previous();D._.lastNode=k.getNextSourceNode(true);if(D._.lastNode&&D._.lastNode.type==CKEDITOR.NODE_TEXT&&!CKEDITOR.tools.trim(D._.lastNode.getText())&&D._.lastNode.getParent().isBlockBoundary()){var l=new CKEDITOR.dom.range(e.document);l.moveToPosition(D._.lastNode,CKEDITOR.POSITION_AFTER_END);if(l.checkEndOfBlock()){var m=new CKEDITOR.dom.elementPath(l.endContainer),n=m.block||m.blockLimit;D._.lastNode=n.getNextSourceNode(true);}}if(!D._.lastNode){D._.lastNode=D._.docEndMarker=e.document.createText('');D._.lastNode.insertAfter(k);}e=null;}var o=D._.nextNode;k=D._.lastNode;D._.nextNode=null;while(o){var p=false,q=o.type!=CKEDITOR.NODE_ELEMENT,r=false;if(!q){var s=o.getName();if(o.isBlockBoundary(D.forceBrBreak&&{br:1})){if(s=='br')q=true;else if(!e&&!o.getChildCount()&&s!='hr'){d=o;f=o.equals(k);break;}if(e){e.setEndAt(o,CKEDITOR.POSITION_BEFORE_START);if(s!='br')D._.nextNode=o;}p=true;}else{if(o.getFirst()){if(!e){e=new CKEDITOR.dom.range(D.range.document);e.setStartAt(o,CKEDITOR.POSITION_BEFORE_START);}o=o.getFirst();continue;}q=true;}}else if(o.type==CKEDITOR.NODE_TEXT)if(b.test(o.getText()))q=false;if(q&&!e){e=new CKEDITOR.dom.range(D.range.document);e.setStartAt(o,CKEDITOR.POSITION_BEFORE_START);}f=(!p||q)&&(o.equals(k));if(e&&!p)while(!o.getNext()&&!f){var t=o.getParent();if(t.isBlockBoundary(D.forceBrBreak&&{br:1})){p=true;f=f||t.equals(k);break;}o=t;q=true;f=o.equals(k);r=true;}if(q)e.setEndAt(o,CKEDITOR.POSITION_AFTER_END);o=o.getNextSourceNode(r,null,k);f=!o;if((p||f)&&(e)){var u=e.getBoundaryNodes(),v=new CKEDITOR.dom.elementPath(e.startContainer),w=new CKEDITOR.dom.elementPath(e.endContainer);if(u.startNode.equals(u.endNode)&&u.startNode.getParent().equals(v.blockLimit)&&u.startNode.type==CKEDITOR.NODE_ELEMENT&&u.startNode.getAttribute('_fck_bookmark')){e=null;D._.nextNode=null;}else break;}if(f)break;}if(!d){if(!e){D._.docEndMarker&&D._.docEndMarker.remove();D._.nextNode=null;
7
+ return null;}v=new CKEDITOR.dom.elementPath(e.startContainer);var x=v.blockLimit,y={div:1,th:1,td:1};d=v.block;if(!d&&!D.enforceRealBlocks&&y[x.getName()]&&e.checkStartOfBlock()&&e.checkEndOfBlock())d=x;else if(!d||D.enforceRealBlocks&&d.getName()=='li'){d=D.range.document.createElement(c||'p');e.extractContents().appendTo(d);d.trim();e.insertNode(d);g=h=true;}else if(d.getName()!='li'){if(!e.checkStartOfBlock()||!e.checkEndOfBlock()){d=d.clone(false);e.extractContents().appendTo(d);d.trim();var z=e.splitBlock();g=!z.wasStartOfBlock;h=!z.wasEndOfBlock;e.insertNode(d);}}else if(!f)D._.nextNode=d.equals(k)?null:e.getBoundaryNodes().endNode.getNextSourceNode(true,null,k);}if(g){var A=d.getPrevious();if(A&&A.type==CKEDITOR.NODE_ELEMENT)if(A.getName()=='br')A.remove();else if(A.getLast()&&A.getLast().$.nodeName.toLowerCase()=='br')A.getLast().remove();}if(h){var B=CKEDITOR.dom.walker.bookmark(false,true),C=d.getLast();if(C&&C.type==CKEDITOR.NODE_ELEMENT&&C.getName()=='br')if(CKEDITOR.env.ie||C.getPrevious(B)||C.getNext(B))C.remove();}if(!D._.nextNode)D._.nextNode=f||d.equals(k)?null:d.getNextSourceNode(true,null,k);return d;}};CKEDITOR.dom.range.prototype.createIterator=function(){return new a(this);};})();
@@ -0,0 +1,6 @@
1
+ /*
2
+ Copyright (c) 2003-2009, CKSource - Frederico Knabben. All rights reserved.
3
+ For licensing, see LICENSE.html or http://ckeditor.com/license
4
+ */
5
+
6
+ (function(){var a=function(c,d){return c._.modes&&c._.modes[d||c.mode];},b;CKEDITOR.plugins.add('editingblock',{init:function(c){if(!c.config.editingBlock)return;c.on('themeSpace',function(d){if(d.data.space=='contents')d.data.html+='<br>';});c.on('themeLoaded',function(){c.fireOnce('editingBlockReady');});c.on('uiReady',function(){c.setMode(c.config.startupMode);});c.on('afterSetData',function(){if(!b){function d(){b=true;a(c).loadData(c.getData());b=false;};if(c.mode)d();else c.on('mode',function(){d();c.removeListener('mode',arguments.callee);});}});c.on('beforeGetData',function(){if(!b&&c.mode){b=true;c.setData(a(c).getData());b=false;}});c.on('getSnapshot',function(d){if(c.mode)d.data=a(c).getSnapshotData();});c.on('loadSnapshot',function(d){if(c.mode)a(c).loadSnapshotData(d.data);});c.on('mode',function(d){d.removeListener();var e=c.container;if(CKEDITOR.env.webkit&&CKEDITOR.env.version<528){var f=c.config.tabIndex||c.element.getAttribute('tabindex')||0;e=e.append(CKEDITOR.dom.element.createFromHtml('<input tabindex="'+f+'"'+' style="position:absolute; left:-10000">'));}e.on('focus',function(){c.focus();});if(c.config.startupFocus)c.focus();setTimeout(function(){c.fireOnce('instanceReady');CKEDITOR.fire('instanceReady',null,c);});});}});CKEDITOR.editor.prototype.mode='';CKEDITOR.editor.prototype.addMode=function(c,d){d.name=c;(this._.modes||(this._.modes={}))[c]=d;};CKEDITOR.editor.prototype.setMode=function(c){var d,e=this.getThemeSpace('contents'),f=this.checkDirty();if(this.mode){if(c==this.mode)return;this.fire('beforeModeUnload');var g=a(this);d=g.getData();g.unload(e);this.mode='';}e.setHtml('');var h=a(this,c);if(!h)throw '[CKEDITOR.editor.setMode] Unknown mode "'+c+'".';if(!f)this.on('mode',function(){this.resetDirty();this.removeListener('mode',arguments.callee);});h.load(e,typeof d!='string'?this.getData():d);};CKEDITOR.editor.prototype.focus=function(){var c=a(this);if(c)c.focus();};})();CKEDITOR.config.startupMode='wysiwyg';CKEDITOR.config.startupFocus=false;CKEDITOR.config.editingBlock=true;
@@ -0,0 +1,6 @@
1
+ /*
2
+ Copyright (c) 2003-2009, CKSource - Frederico Knabben. All rights reserved.
3
+ For licensing, see LICENSE.html or http://ckeditor.com/license
4
+ */
5
+
6
+ (function(){var a={toolbarFocus:{exec:function(c){var d=c._.elementsPath.idBase,e=CKEDITOR.document.getById(d+'0');if(e)e.focus();}}},b='<span class="cke_empty">&nbsp;</span>';CKEDITOR.plugins.add('elementspath',{requires:['selection'],init:function(c){var d='cke_path_'+c.name,e,f=function(){if(!e)e=CKEDITOR.document.getById(d);return e;},g='cke_elementspath_'+CKEDITOR.tools.getNextNumber()+'_';c._.elementsPath={idBase:g};c.on('themeSpace',function(h){if(h.data.space=='bottom')h.data.html+='<div id="'+d+'" class="cke_path">'+b+'</div>';});c.on('selectionChange',function(h){var i=CKEDITOR.env,j=h.data.selection,k=j.getStartElement(),l=[],m=this._.elementsPath.list=[];while(k){var n=m.push(k)-1,o;if(k.getAttribute('_cke_real_element_type'))o=k.getAttribute('_cke_real_element_type');else o=k.getName();var p='';if(i.opera||i.gecko&&i.mac)p+=' onkeypress="return false;"';if(i.gecko)p+=' onblur="this.style.cssText = this.style.cssText;"';l.unshift('<a id="',g,n,'" href="javascript:void(\'',o,'\')" tabindex="-1" title="',c.lang.elementsPath.eleTitle.replace(/%1/,o),'"'+(CKEDITOR.env.gecko&&CKEDITOR.env.version<10900?' onfocus="event.preventBubble();"':'')+' hidefocus="true" '+" onkeydown=\"return CKEDITOR._.elementsPath.keydown('",this.name,"',",n,', event);"'+p," onclick=\"return CKEDITOR._.elementsPath.click('",this.name,"',",n,');">',o,'</a>');if(o=='body')break;k=k.getParent();}f().setHtml(l.join('')+b);});c.on('contentDomUnload',function(){f().setHtml(b);});c.addCommand('elementsPathFocus',a.toolbarFocus);}});})();CKEDITOR._.elementsPath={click:function(a,b){var c=CKEDITOR.instances[a];c.focus();var d=c._.elementsPath.list[b];c.getSelection().selectElement(d);return false;},keydown:function(a,b,c){var d=CKEDITOR.ui.button._.instances[b],e=CKEDITOR.instances[a],f=e._.elementsPath.idBase,g;c=new CKEDITOR.dom.event(c);switch(c.getKeystroke()){case 37:case 9:g=CKEDITOR.document.getById(f+(b+1));if(!g)g=CKEDITOR.document.getById(f+'0');g.focus();return false;case 39:case CKEDITOR.SHIFT+9:g=CKEDITOR.document.getById(f+(b-1));if(!g)g=CKEDITOR.document.getById(f+(e._.elementsPath.list.length-1));g.focus();return false;case 27:e.focus();return false;case 13:case 32:this.click(a,b);return false;}return true;}};
@@ -0,0 +1,7 @@
1
+ /*
2
+ Copyright (c) 2003-2009, CKSource - Frederico Knabben. All rights reserved.
3
+ For licensing, see LICENSE.html or http://ckeditor.com/license
4
+ */
5
+
6
+ (function(){CKEDITOR.plugins.add('enterkey',{requires:['keystrokes','indent'],init:function(h){var i=h.specialKeys;i[13]=d;i[CKEDITOR.SHIFT+13]=c;}});var a,b=/^h[1-6]$/;function c(h){a=1;return d(h,h.config.shiftEnterMode);};function d(h,i){if(h.mode!='wysiwyg')return false;if(!i)i=h.config.enterMode;setTimeout(function(){h.fire('saveSnapshot');if(i==CKEDITOR.ENTER_BR||h.getSelection().getStartElement().hasAscendant('pre',true))f(h,i);else e(h,i);a=0;},0);return true;};function e(h,i,j){j=j||g(h);var k=j.document,l=i==CKEDITOR.ENTER_DIV?'div':'p',m=j.splitBlock(l);if(!m)return;var n=m.previousBlock,o=m.nextBlock,p=m.wasStartOfBlock,q=m.wasEndOfBlock,r;if(o){r=o.getParent();if(r.is('li')){o.breakParent(r);o.move(o.getNext(),true);}}else if(n&&(r=n.getParent())&&(r.is('li'))){n.breakParent(r);j.moveToElementEditStart(n.getNext());n.move(n.getPrevious());}if(!p&&!q){if(o.is('li')&&(r=o.getFirst())&&(r.is&&r.is('ul','ol')))o.insertBefore(k.createText('\xa0'),r);if(o)j.moveToElementEditStart(o);}else{if(p&&q&&n.is('li')){h.execCommand('outdent');return;}var s;if(n){if(!a&&!b.test(n.getName()))s=n.clone();}else if(o)s=o.clone();if(!s)s=k.createElement(l);var t=m.elementPath;if(t)for(var u=0,v=t.elements.length;u<v;u++){var w=t.elements[u];if(w.equals(t.block)||w.equals(t.blockLimit))break;if(CKEDITOR.dtd.$removeEmpty[w.getName()]){w=w.clone();s.moveChildren(w);s.append(w);}}if(!CKEDITOR.env.ie)s.appendBogus();j.insertNode(s);if(CKEDITOR.env.ie&&p&&(!q||!n.getChildCount())){j.moveToElementEditStart(q?n:s);j.select();}j.moveToElementEditStart(p&&!q?o:s);}if(!CKEDITOR.env.ie)if(o){var x=k.createElement('span');x.setHtml('&nbsp;');j.insertNode(x);x.scrollIntoView();j.deleteContents();}else s.scrollIntoView();j.select();};function f(h,i){var j=g(h),k=j.document,l=i==CKEDITOR.ENTER_DIV?'div':'p',m=j.checkEndOfBlock(),n=new CKEDITOR.dom.elementPath(h.getSelection().getStartElement()),o=n.block,p=o&&n.block.getName(),q=false;if(!a&&p=='li'){e(h,i,j);return;}if(!a&&m&&b.test(p)){k.createElement('br').insertAfter(o);if(CKEDITOR.env.gecko)k.createText('').insertAfter(o);j.setStartAt(o.getNext(),CKEDITOR.env.ie?CKEDITOR.POSITION_BEFORE_START:CKEDITOR.POSITION_AFTER_START);}else{var r;q=p=='pre';if(q)r=k.createText(CKEDITOR.env.ie?'\r':'\n');else r=k.createElement('br');j.deleteContents();j.insertNode(r);if(!CKEDITOR.env.ie)k.createText('').insertAfter(r);if(m&&!CKEDITOR.env.ie)r.getParent().appendBogus();if(!CKEDITOR.env.ie)r.getNext().$.nodeValue='';if(CKEDITOR.env.ie)j.setStartAt(r,CKEDITOR.POSITION_AFTER_END);
7
+ else j.setStartAt(r.getNext(),CKEDITOR.POSITION_AFTER_START);if(!CKEDITOR.env.ie){var s=null;if(!CKEDITOR.env.gecko){s=k.createElement('span');s.setHtml('&nbsp;');}else s=k.createElement('br');s.insertBefore(r.getNext());s.scrollIntoView();s.remove();}}j.collapse(true);j.select(q);};function g(h){var i=h.getSelection().getRanges();for(var j=i.length-1;j>0;j--)i[j].deleteContents();return i[0];};})();
@@ -0,0 +1,6 @@
1
+ /*
2
+ Copyright (c) 2003-2009, CKSource - Frederico Knabben. All rights reserved.
3
+ For licensing, see LICENSE.html or http://ckeditor.com/license
4
+ */
5
+
6
+ (function(){var a='nbsp,gt,lt,quot,iexcl,cent,pound,curren,yen,brvbar,sect,uml,copy,ordf,laquo,not,shy,reg,macr,deg,plusmn,sup2,sup3,acute,micro,para,middot,cedil,sup1,ordm,raquo,frac14,frac12,frac34,iquest,times,divide,fnof,bull,hellip,prime,Prime,oline,frasl,weierp,image,real,trade,alefsym,larr,uarr,rarr,darr,harr,crarr,lArr,uArr,rArr,dArr,hArr,forall,part,exist,empty,nabla,isin,notin,ni,prod,sum,minus,lowast,radic,prop,infin,ang,and,or,cap,cup,int,there4,sim,cong,asymp,ne,equiv,le,ge,sub,sup,nsub,sube,supe,oplus,otimes,perp,sdot,lceil,rceil,lfloor,rfloor,lang,rang,loz,spades,clubs,hearts,diams,circ,tilde,ensp,emsp,thinsp,zwnj,zwj,lrm,rlm,ndash,mdash,lsquo,rsquo,sbquo,ldquo,rdquo,bdquo,dagger,Dagger,permil,lsaquo,rsaquo,euro',b='Agrave,Aacute,Acirc,Atilde,Auml,Aring,AElig,Ccedil,Egrave,Eacute,Ecirc,Euml,Igrave,Iacute,Icirc,Iuml,ETH,Ntilde,Ograve,Oacute,Ocirc,Otilde,Ouml,Oslash,Ugrave,Uacute,Ucirc,Uuml,Yacute,THORN,szlig,agrave,aacute,acirc,atilde,auml,aring,aelig,ccedil,egrave,eacute,ecirc,euml,igrave,iacute,icirc,iuml,eth,ntilde,ograve,oacute,ocirc,otilde,ouml,oslash,ugrave,uacute,ucirc,uuml,yacute,thorn,yuml,OElig,oelig,Scaron,scaron,Yuml',c='Alpha,Beta,Gamma,Delta,Epsilon,Zeta,Eta,Theta,Iota,Kappa,Lambda,Mu,Nu,Xi,Omicron,Pi,Rho,Sigma,Tau,Upsilon,Phi,Chi,Psi,Omega,alpha,beta,gamma,delta,epsilon,zeta,eta,theta,iota,kappa,lambda,mu,nu,xi,omicron,pi,rho,sigmaf,sigma,tau,upsilon,phi,chi,psi,omega,thetasym,upsih,piv';function d(e){var f={},g=[],h={nbsp:'\xa0',shy:'­',gt:'>',lt:'<'};e=e.replace(/\b(nbsp|shy|gt|lt|amp)(?:,|$)/g,function(m,n){f[h[n]]='&'+n+';';g.push(h[n]);return '';});e=e.split(',');var i=document.createElement('div'),j;i.innerHTML='&'+e.join(';&')+';';j=i.innerHTML;i=null;for(var k=0;k<j.length;k++){var l=j.charAt(k);f[l]='&'+e[k]+';';g.push(l);}f.regex=g.join('');return f;};CKEDITOR.plugins.add('entities',{afterInit:function(e){var f=e.config;if(!f.entities)return;var g=e.dataProcessor,h=g&&g.htmlFilter;if(h){var i=a;if(f.entities_latin)i+=','+b;if(f.entities_greek)i+=','+c;if(f.entities_additional)i+=','+f.entities_additional;var j=d(i),k='['+j.regex+']';delete j.regex;if(f.entities_processNumerical)k='[^ -~]|'+k;k=new RegExp(k,'g');function l(m){return j[m]||'&#'+m.charCodeAt(0)+';';};h.addRules({text:function(m){return m.replace(k,l);}});}}});})();CKEDITOR.config.entities=true;CKEDITOR.config.entities_latin=true;CKEDITOR.config.entities_greek=true;CKEDITOR.config.entities_processNumerical=false;CKEDITOR.config.entities_additional='#39';
@@ -0,0 +1,6 @@
1
+ /*
2
+ Copyright (c) 2003-2009, CKSource - Frederico Knabben. All rights reserved.
3
+ For licensing, see LICENSE.html or http://ckeditor.com/license
4
+ */
5
+
6
+ (function(){var a={elements:{$:function(b){var c=b.attributes._cke_realelement,d=c&&new CKEDITOR.htmlParser.fragment.fromHtml(decodeURIComponent(c)),e=d&&d.children[0];if(e){var f=b.attributes.style;if(f){var g=/(?:^|\s)width\s*:\s*(\d+)/.exec(f),h=g&&g[1];g=/(?:^|\s)height\s*:\s*(\d+)/.exec(f);var i=g&&g[1];if(h)e.attributes.width=h;if(i)e.attributes.height=i;}}return e;}}};CKEDITOR.plugins.add('fakeobjects',{requires:['htmlwriter'],afterInit:function(b){var c=b.dataProcessor,d=c&&c.htmlFilter;if(d)d.addRules(a);}});})();CKEDITOR.editor.prototype.createFakeElement=function(a,b,c,d){var e=this.lang.fakeobjects,f={'class':b,src:CKEDITOR.getUrl('images/spacer.gif'),_cke_realelement:encodeURIComponent(a.getOuterHtml()),alt:e[c]||e.unknown};if(c)f._cke_real_element_type=c;if(d)f._cke_resizable=d;return this.document.createElement('img',{attributes:f});};CKEDITOR.editor.prototype.createFakeParserElement=function(a,b,c,d){var e=new CKEDITOR.htmlParser.basicWriter();a.writeHtml(e);var f=e.getHtml(),g=this.lang.fakeobjects,h={'class':b,src:CKEDITOR.getUrl('images/spacer.gif'),_cke_realelement:encodeURIComponent(f),alt:g[c]||g.unknown};if(c)h._cke_real_element_type=c;if(d)h._cke_resizable=d;return new CKEDITOR.htmlParser.element('img',h);};CKEDITOR.editor.prototype.restoreRealElement=function(a){var b=decodeURIComponent(a.getAttribute('_cke_realelement'));return CKEDITOR.dom.element.createFromHtml(b,this.document);};
@@ -0,0 +1,7 @@
1
+ /*
2
+ Copyright (c) 2003-2009, CKSource - Frederico Knabben. All rights reserved.
3
+ For licensing, see LICENSE.html or http://ckeditor.com/license
4
+ */
5
+
6
+ (function(){function a(j,k){var l=[];if(!k)return j;else for(var m in k)l.push(m+'='+encodeURIComponent(k[m]));return j+(j.indexOf('?')!=-1?'&':'?')+l.join('&');};function b(j){j+='';var k=j.charAt(0).toUpperCase();return k+j.substr(1);};function c(j){var q=this;var k=q.getDialog(),l=k.getParentEditor();l._.filebrowserSe=q;var m=l.config['filebrowser'+b(k.getName())+'WindowWidth']||l.config.filebrowserWindowWidth||'80%',n=l.config['filebrowser'+b(k.getName())+'WindowHeight']||l.config.filebrowserWindowHeight||'70%',o=q.filebrowser.params||{};o.CKEditor=l.name;o.CKEditorFuncNum=l._.filebrowserFn;if(!o.langCode)o.langCode=l.langCode;var p=a(q.filebrowser.url,o);l.popup(p,m,n);};function d(j){var m=this;var k=m.getDialog(),l=k.getParentEditor();l._.filebrowserSe=m;if(!k.getContentElement(m['for'][0],m['for'][1]).getInputElement().$.value)return false;if(!k.getContentElement(m['for'][0],m['for'][1]).getAction())return false;return true;};function e(j,k,l){var m=l.params||{};m.CKEditor=j.name;m.CKEditorFuncNum=j._.filebrowserFn;if(!m.langCode)m.langCode=j.langCode;k.action=a(l.url,m);k.filebrowser=l;};function f(j,k,l,m){var n,o;for(var p in m){n=m[p];if(n.type=='hbox'||n.type=='vbox')f(j,k,l,n.children);if(!n.filebrowser)continue;if(typeof n.filebrowser=='string'){var q={action:n.type=='fileButton'?'QuickUpload':'Browse',target:n.filebrowser};n.filebrowser=q;}if(n.filebrowser.action=='Browse'){var r=n.filebrowser.url||j.config['filebrowser'+b(k)+'BrowseUrl']||j.config.filebrowserBrowseUrl;if(r){n.onClick=c;n.filebrowser.url=r;n.hidden=false;}}else if(n.filebrowser.action=='QuickUpload'&&n['for']){r=n.filebrowser.url||j.config['filebrowser'+b(k)+'UploadUrl']||j.config.filebrowserUploadUrl;if(r){n.onClick=d;n.filebrowser.url=r;n.hidden=false;e(j,l.getContents(n['for'][0]).get(n['for'][1]),n.filebrowser);}}}};function g(j,k){var l=k.getDialog(),m=k.filebrowser.target||null;j=j.replace(/#/g,'%23');if(m){var n=m.split(':'),o=l.getContentElement(n[0],n[1]);if(o){o.setValue(j);l.selectPage(n[0]);}}};function h(j,k,l){if(l.indexOf(';')!==-1){var m=l.split(';');for(var n=0;n<m.length;n++)if(h(j,k,m[n]))return true;return false;}return j.getContents(k).get(l).filebrowser&&j.getContents(k).get(l).filebrowser.url;};function i(j,k){var o=this;var l=o._.filebrowserSe.getDialog(),m=o._.filebrowserSe['for'],n=o._.filebrowserSe.filebrowser.onSelect;if(m)l.getContentElement(m[0],m[1]).reset();if(n&&n.call(o._.filebrowserSe,j,k)===false)return;if(typeof k=='string'&&k)alert(k);if(j)g(j,o._.filebrowserSe);
7
+ };CKEDITOR.plugins.add('filebrowser',{init:function(j,k){j._.filebrowserFn=CKEDITOR.tools.addFunction(i,j);CKEDITOR.on('dialogDefinition',function(l){for(var m in l.data.definition.contents){f(l.editor,l.data.name,l.data.definition,l.data.definition.contents[m].elements);if(l.data.definition.contents[m].hidden&&l.data.definition.contents[m].filebrowser)l.data.definition.contents[m].hidden=!h(l.data.definition,l.data.definition.contents[m].id,l.data.definition.contents[m].filebrowser);}});}});})();
@@ -0,0 +1,9 @@
1
+ /*
2
+ Copyright (c) 2003-2009, CKSource - Frederico Knabben. All rights reserved.
3
+ For licensing, see LICENSE.html or http://ckeditor.com/license
4
+ */
5
+
6
+ (function(){function a(h){return h.type==CKEDITOR.NODE_TEXT&&h.getLength()>0;};function b(h){var i=CKEDITOR.dtd;return h.isBlockBoundary(CKEDITOR.tools.extend({},i.$empty,i.$nonEditable));};var c=function(){var h=this;return{textNode:h.textNode,offset:h.offset,character:h.textNode?h.textNode.getText().charAt(h.offset):null,hitMatchBoundary:h._.matchBoundary};},d=['find','replace'],e=[['txtFindFind','txtFindReplace'],['txtFindCaseChk','txtReplaceCaseChk'],['txtFindWordChk','txtReplaceWordChk'],['txtFindCyclic','txtReplaceCyclic']];function f(h){var i,j,k,l;i=h==='find'?1:0;j=1-i;var m,n=e.length;for(m=0;m<n;m++){k=this.getContentElement(d[i],e[m][i]);l=this.getContentElement(d[j],e[m][j]);l.setValue(k.getValue());}};var g=function(h,i){var j=new CKEDITOR.style(h.config.find_highlight),k=function(w,x){var y=new CKEDITOR.dom.walker(w);y[x?'guard':'evaluator']=a;y.breakOnFalse=true;this._={matchWord:x,walker:y,matchBoundary:false};};k.prototype={next:function(){return this.move();},back:function(){return this.move(true);},move:function(w){var y=this;var x=y.textNode;if(x===null)return c.call(y);y._.matchBoundary=false;if(x&&w&&y.offset>0){y.offset--;return c.call(y);}else if(x&&y.offset<x.getLength()-1){y.offset++;return c.call(y);}else{x=null;while(!x){x=y._.walker[w?'previous':'next'].call(y._.walker);if(y._.matchWord&&!x||y._.walker._.end)break;if(!x&&b(y._.walker.current))y._.matchBoundary=true;}y.textNode=x;if(x)y.offset=w?x.getLength()-1:0;else y.offset=0;}return c.call(y);}};var l=function(w,x){this._={walker:w,cursors:[],rangeLength:x,highlightRange:null,isMatched:false};};l.prototype={toDomRange:function(){var w=this._.cursors;if(w.length<1)return null;var x=w[0],y=w[w.length-1],z=new CKEDITOR.dom.range(h.document);z.setStart(x.textNode,x.offset);z.setEnd(y.textNode,y.offset+1);return z;},updateFromDomRange:function(w){var z=this;var x,y=new k(w);z._.cursors=[];do{x=y.next();if(x.character)z._.cursors.push(x);}while(x.character)z._.rangeLength=z._.cursors.length;},setMatched:function(){this._.isMatched=true;},clearMatched:function(){this._.isMatched=false;},isMatched:function(){return this._.isMatched;},highlight:function(){var y=this;if(y._.cursors.length<1)return;if(y._.highlightRange)y.removeHighlight();var w=y.toDomRange();j.applyToRange(w);y._.highlightRange=w;var x=w.startContainer;if(x.type!=CKEDITOR.NODE_ELEMENT)x=x.getParent();x.scrollIntoView();y.updateFromDomRange(w);},removeHighlight:function(){var w=this;if(!w._.highlightRange)return;j.removeFromRange(w._.highlightRange);
7
+ w.updateFromDomRange(w._.highlightRange);w._.highlightRange=null;},moveBack:function(){var y=this;var w=y._.walker.back(),x=y._.cursors;if(w.hitMatchBoundary)y._.cursors=x=[];x.unshift(w);if(x.length>y._.rangeLength)x.pop();return w;},moveNext:function(){var y=this;var w=y._.walker.next(),x=y._.cursors;if(w.hitMatchBoundary)y._.cursors=x=[];x.push(w);if(x.length>y._.rangeLength)x.shift();return w;},getEndCharacter:function(){var w=this._.cursors;if(w.length<1)return null;return w[w.length-1].character;},getNextCharacterRange:function(w){var x,y=this._.cursors;if(!(x=y[y.length-1]))return null;return new l(new k(m(x)),w);},getCursors:function(){return this._.cursors;}};function m(w,x){var y=new CKEDITOR.dom.range();y.setStart(w.textNode,x?w.offset:w.offset+1);y.setEndAt(h.document.getBody(),CKEDITOR.POSITION_BEFORE_END);return y;};function n(w){var x=new CKEDITOR.dom.range();x.setStartAt(h.document.getBody(),CKEDITOR.POSITION_AFTER_START);x.setEnd(w.textNode,w.offset);return x;};var o=0,p=1,q=2,r=function(w,x){var y=[-1];if(x)w=w.toLowerCase();for(var z=0;z<w.length;z++){y.push(y[z]+1);while(y[z+1]>0&&w.charAt(z)!=w.charAt(y[z+1]-1))y[z+1]=y[y[z+1]-1]+1;}this._={overlap:y,state:0,ignoreCase:!!x,pattern:w};};r.prototype={feedCharacter:function(w){var x=this;if(x._.ignoreCase)w=w.toLowerCase();for(;;)if(w==x._.pattern.charAt(x._.state)){x._.state++;if(x._.state==x._.pattern.length){x._.state=0;return q;}return p;}else if(!x._.state)return o;else x._.state=x._.overlap[x._.state];return null;},reset:function(){this._.state=0;}};var s=/[.,"'?!;: \u0085\u00a0\u1680\u280e\u2028\u2029\u202f\u205f\u3000]/,t=function(w){if(!w)return true;var x=w.charCodeAt(0);return x>=9&&x<=13||x>=8192&&x<=8202||s.test(w);},u={searchRange:null,matchRange:null,find:function(w,x,y,z,A){var J=this;if(!J.matchRange)J.matchRange=new l(new k(J.searchRange),w.length);else{J.matchRange.removeHighlight();J.matchRange=J.matchRange.getNextCharacterRange(w.length);}var B=new r(w,!x),C=o,D='%';while(D!==null){J.matchRange.moveNext();while(D=J.matchRange.getEndCharacter()){C=B.feedCharacter(D);if(C==q)break;if(J.matchRange.moveNext().hitMatchBoundary)B.reset();}if(C==q){if(y){var E=J.matchRange.getCursors(),F=E[E.length-1],G=E[0],H=new k(n(G),true),I=new k(m(F),true);if(!(t(H.back().character)&&t(I.next().character)))continue;}J.matchRange.setMatched();if(A!==false)J.matchRange.highlight();return true;}}J.matchRange.clearMatched();J.matchRange.removeHighlight();if(z){J.searchRange=v(true);J.matchRange=null;
8
+ }return false;},replaceCounter:0,replace:function(w,x,y,z,A,B,C){var H=this;var D=false;if(H.matchRange&&H.matchRange.isMatched()&&!H.matchRange._.isReplaced){H.matchRange.removeHighlight();var E=H.matchRange.toDomRange(),F=h.document.createText(y);if(!C){var G=h.getSelection();G.selectRanges([E]);h.fire('saveSnapshot');}E.deleteContents();E.insertNode(F);if(!C){G.selectRanges([E]);h.fire('saveSnapshot');}H.matchRange.updateFromDomRange(E);if(!C)H.matchRange.highlight();H.matchRange._.isReplaced=true;H.replaceCounter++;D=true;}else D=H.find(x,z,A,B,!C);return D;}};function v(w){var x,y=h.getSelection(),z=h.document.getBody();if(y&&!w){x=y.getRanges()[0].clone();x.collapse(true);}else{x=new CKEDITOR.dom.range();x.setStartAt(z,CKEDITOR.POSITION_AFTER_START);}x.setEndAt(z,CKEDITOR.POSITION_BEFORE_END);return x;};return{title:h.lang.findAndReplace.title,resizable:CKEDITOR.DIALOG_RESIZE_NONE,minWidth:350,minHeight:165,buttons:[CKEDITOR.dialog.cancelButton],contents:[{id:'find',label:h.lang.findAndReplace.find,title:h.lang.findAndReplace.find,accessKey:'',elements:[{type:'hbox',widths:['230px','90px'],children:[{type:'text',id:'txtFindFind',label:h.lang.findAndReplace.findWhat,isChanged:false,labelLayout:'horizontal',accessKey:'F'},{type:'button',align:'left',style:'width:100%',label:h.lang.findAndReplace.find,onClick:function(){var w=this.getDialog();if(!u.find(w.getValueOf('find','txtFindFind'),w.getValueOf('find','txtFindCaseChk'),w.getValueOf('find','txtFindWordChk'),w.getValueOf('find','txtFindCyclic')))alert(h.lang.findAndReplace.notFoundMsg);}}]},{type:'vbox',padding:0,children:[{type:'checkbox',id:'txtFindCaseChk',isChanged:false,style:'margin-top:28px',label:h.lang.findAndReplace.matchCase},{type:'checkbox',id:'txtFindWordChk',isChanged:false,label:h.lang.findAndReplace.matchWord},{type:'checkbox',id:'txtFindCyclic',isChanged:false,'default':true,label:h.lang.findAndReplace.matchCyclic}]}]},{id:'replace',label:h.lang.findAndReplace.replace,accessKey:'M',elements:[{type:'hbox',widths:['230px','90px'],children:[{type:'text',id:'txtFindReplace',label:h.lang.findAndReplace.findWhat,isChanged:false,labelLayout:'horizontal',accessKey:'F'},{type:'button',align:'left',style:'width:100%',label:h.lang.findAndReplace.replace,onClick:function(){var w=this.getDialog();if(!u.replace(w,w.getValueOf('replace','txtFindReplace'),w.getValueOf('replace','txtReplace'),w.getValueOf('replace','txtReplaceCaseChk'),w.getValueOf('replace','txtReplaceWordChk'),w.getValueOf('replace','txtReplaceCyclic')))alert(h.lang.findAndReplace.notFoundMsg);
9
+ }}]},{type:'hbox',widths:['230px','90px'],children:[{type:'text',id:'txtReplace',label:h.lang.findAndReplace.replaceWith,isChanged:false,labelLayout:'horizontal',accessKey:'R'},{type:'button',align:'left',style:'width:100%',label:h.lang.findAndReplace.replaceAll,isChanged:false,onClick:function(){var w=this.getDialog(),x;u.replaceCounter=0;u.searchRange=v(true);if(u.matchRange){u.matchRange.removeHighlight();u.matchRange=null;}h.fire('saveSnapshot');while(u.replace(w,w.getValueOf('replace','txtFindReplace'),w.getValueOf('replace','txtReplace'),w.getValueOf('replace','txtReplaceCaseChk'),w.getValueOf('replace','txtReplaceWordChk'),false,true)){}if(u.replaceCounter){alert(h.lang.findAndReplace.replaceSuccessMsg.replace(/%1/,u.replaceCounter));h.fire('saveSnapshot');}else alert(h.lang.findAndReplace.notFoundMsg);}}]},{type:'vbox',padding:0,children:[{type:'checkbox',id:'txtReplaceCaseChk',isChanged:false,label:h.lang.findAndReplace.matchCase},{type:'checkbox',id:'txtReplaceWordChk',isChanged:false,label:h.lang.findAndReplace.matchWord},{type:'checkbox',id:'txtReplaceCyclic',isChanged:false,'default':true,label:h.lang.findAndReplace.matchCyclic}]}]}],onLoad:function(){var w=this,x,y,z=false;this.on('hide',function(){z=false;});this.on('show',function(){z=true;});this.selectPage=CKEDITOR.tools.override(this.selectPage,function(A){return function(B){A.call(w,B);var C=w._.tabs[B],D,E,F;E=B==='find'?'txtFindFind':'txtFindReplace';F=B==='find'?'txtFindWordChk':'txtReplaceWordChk';x=w.getContentElement(B,E);y=w.getContentElement(B,F);if(!C.initialized){D=CKEDITOR.document.getById(x._.inputId);C.initialized=true;}if(z)f.call(this,B);};});},onShow:function(){u.searchRange=v();if(i=='replace')this.getContentElement('replace','txtFindReplace').focus();else this.getContentElement('find','txtFindFind').focus();},onHide:function(){if(u.matchRange&&u.matchRange.isMatched()){u.matchRange.removeHighlight();h.focus();h.getSelection().selectRanges([u.matchRange.toDomRange()]);}delete u.matchRange;}};};CKEDITOR.dialog.add('find',function(h){return g(h,'find');});CKEDITOR.dialog.add('replace',function(h){return g(h,'replace');});})();
@@ -0,0 +1,6 @@
1
+ /*
2
+ Copyright (c) 2003-2009, CKSource - Frederico Knabben. All rights reserved.
3
+ For licensing, see LICENSE.html or http://ckeditor.com/license
4
+ */
5
+
6
+ CKEDITOR.plugins.add('find',{init:function(a){var b=CKEDITOR.plugins.find;a.ui.addButton('Find',{label:a.lang.findAndReplace.find,command:'find'});var c=a.addCommand('find',new CKEDITOR.dialogCommand('find'));c.canUndo=false;a.ui.addButton('Replace',{label:a.lang.findAndReplace.replace,command:'replace'});var d=a.addCommand('replace',new CKEDITOR.dialogCommand('replace'));d.canUndo=false;CKEDITOR.dialog.add('find',this.path+'dialogs/find.js');CKEDITOR.dialog.add('replace',this.path+'dialogs/find.js');},requires:['styles']});CKEDITOR.config.find_highlight={element:'span',styles:{'background-color':'#004',color:'#fff'}};
@@ -0,0 +1,9 @@
1
+ /*
2
+ Copyright (c) 2003-2009, CKSource - Frederico Knabben. All rights reserved.
3
+ For licensing, see LICENSE.html or http://ckeditor.com/license
4
+ */
5
+
6
+ (function(){var a=1,b=2,c=4,d={id:[{type:a,name:CKEDITOR.env.ie?'_cke_saved_id':'id'}],classid:[{type:a,name:'classid'}],codebase:[{type:a,name:'codebase'}],pluginspage:[{type:c,name:'pluginspage'}],src:[{type:b,name:'movie'},{type:c,name:'src'}],name:[{type:c,name:'name'}],align:[{type:a,name:'align'}],title:[{type:a,name:'title'},{type:c,name:'title'}],'class':[{type:a,name:'class'},{type:c,name:'class'}],width:[{type:a,name:'width'},{type:c,name:'width'}],height:[{type:a,name:'height'},{type:c,name:'height'}],hSpace:[{type:a,name:'hSpace'},{type:c,name:'hSpace'}],vSpace:[{type:a,name:'vSpace'},{type:c,name:'vSpace'}],style:[{type:a,name:'style'},{type:c,name:'style'}],type:[{type:c,name:'type'}]},e=['play','loop','menu','quality','scale','salign','wmode','bgcolor','base','flashvars','allowScriptAccess','allowFullScreen'];for(var f=0;f<e.length;f++)d[e[f]]=[{type:c,name:e[f]},{type:b,name:e[f]}];e=['allowFullScreen','play','loop','menu'];for(f=0;f<e.length;f++)d[e[f]][0]['default']=d[e[f]][1]['default']=true;function g(i,j,k){var q=this;var l=d[q.id];if(!l)return;var m=q instanceof CKEDITOR.ui.dialog.checkbox;for(var n=0;n<l.length;n++){var o=l[n];switch(o.type){case a:if(!i)continue;if(i.getAttribute(o.name)!==null){var p=i.getAttribute(o.name);if(m)q.setValue(p.toLowerCase()=='true');else q.setValue(p);return;}else if(m)q.setValue(!!o['default']);break;case b:if(!i)continue;if(o.name in k){p=k[o.name];if(m)q.setValue(p.toLowerCase()=='true');else q.setValue(p);return;}else if(m)q.setValue(!!o['default']);break;case c:if(!j)continue;if(j.getAttribute(o.name)){p=j.getAttribute(o.name);if(m)q.setValue(p.toLowerCase()=='true');else q.setValue(p);return;}else if(m)q.setValue(!!o['default']);}}};function h(i,j,k){var s=this;var l=d[s.id];if(!l)return;var m=s.getValue()==='',n=s instanceof CKEDITOR.ui.dialog.checkbox;for(var o=0;o<l.length;o++){var p=l[o];switch(p.type){case a:if(!i)continue;var q=s.getValue();if(m||n&&q===p['default'])i.removeAttribute(p.name);else i.setAttribute(p.name,q);break;case b:if(!i)continue;q=s.getValue();if(m||n&&q===p['default']){if(p.name in k)k[p.name].remove();}else if(p.name in k)k[p.name].setAttribute('value',q);else{var r=CKEDITOR.dom.element.createFromHtml('<cke:param></cke:param>',i.getDocument());r.setAttributes({name:p.name,value:q});if(i.getChildCount()<1)r.appendTo(i);else r.insertBefore(i.getFirst());}break;case c:if(!j)continue;q=s.getValue();if(m||n&&q===p['default'])j.removeAttribute(p.name);else j.setAttribute(p.name,q);
7
+ }}};CKEDITOR.dialog.add('flash',function(i){var j=!i.config.flashEmbedTagOnly,k=i.config.flashAddEmbedTag||i.config.flashEmbedTagOnly,l='<div>'+CKEDITOR.tools.htmlEncode(i.lang.image.preview)+'<br>'+'<div id="FlashPreviewLoader" style="display:none"><div class="loading">&nbsp;</div></div>'+'<div id="FlashPreviewBox"></div></div>';return{title:i.lang.flash.title,minWidth:420,minHeight:310,onShow:function(){var y=this;y.fakeImage=y.objectNode=y.embedNode=null;var m=y.getSelectedElement();if(m&&m.getAttribute('_cke_real_element_type')&&m.getAttribute('_cke_real_element_type')=='flash'){y.fakeImage=m;var n=i.restoreRealElement(m),o=null,p=null,q={};if(n.getName()=='cke:object'){o=n;var r=o.getElementsByTag('embed','cke');if(r.count()>0)p=r.getItem(0);var s=o.getElementsByTag('param','cke');for(var t=0,u=s.count();t<u;t++){var v=s.getItem(t),w=v.getAttribute('name'),x=v.getAttribute('value');q[w]=x;}}else if(n.getName()=='cke:embed')p=n;y.objectNode=o;y.embedNode=p;y.setupContent(o,p,q,m);}},onOk:function(){var v=this;var m=null,n=null,o=null;if(!v.fakeImage){if(j){m=CKEDITOR.dom.element.createFromHtml('<cke:object></cke:object>',i.document);var p={classid:'clsid:d27cdb6e-ae6d-11cf-96b8-444553540000',codebase:'http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0'};m.setAttributes(p);}if(k){n=CKEDITOR.dom.element.createFromHtml('<cke:embed></cke:embed>',i.document);n.setAttributes({type:'application/x-shockwave-flash',pluginspage:'http://www.macromedia.com/go/getflashplayer'});if(m)n.appendTo(m);}}else{m=v.objectNode;n=v.embedNode;}if(m){o={};var q=m.getElementsByTag('param','cke');for(var r=0,s=q.count();r<s;r++)o[q.getItem(r).getAttribute('name')]=q.getItem(r);}var t={};v.commitContent(m,n,o,t);var u=i.createFakeElement(m||n,'cke_flash','flash',true);u.setStyles(t);if(v.fakeImage)u.replace(v.fakeImage);else i.insertElement(u);},onHide:function(){if(this.preview)this.preview.setHtml('');},contents:[{id:'info',label:i.lang.common.generalTab,accessKey:'I',elements:[{type:'vbox',padding:0,children:[{type:'html',html:'<span>'+CKEDITOR.tools.htmlEncode(i.lang.image.url)+'</span>'},{type:'hbox',widths:['280px','110px'],align:'right',children:[{id:'src',type:'text',label:'',validate:CKEDITOR.dialog.validate.notEmpty(i.lang.flash.validateSrc),setup:g,commit:h,onLoad:function(){var m=this.getDialog(),n=function(o){m.preview.setHtml('<embed height="100%" width="100%" src="'+CKEDITOR.tools.htmlEncode(o)+'" type="application/x-shockwave-flash"></embed>');
8
+ };m.preview=m.getContentElement('info','preview').getElement().getChild(3);this.on('change',function(o){if(o.data&&o.data.value)n(o.data.value);});this.getInputElement().on('change',function(o){n(this.getValue());},this);}},{type:'button',id:'browse',filebrowser:'info:src',hidden:true,align:'center',label:i.lang.common.browseServer}]}]},{type:'hbox',widths:['25%','25%','25%','25%','25%'],children:[{type:'text',id:'width',style:'width:95px',label:i.lang.flash.width,validate:CKEDITOR.dialog.validate.integer(i.lang.flash.validateWidth),setup:function(m,n,o,p){g.apply(this,arguments);if(p){var q=parseInt(p.$.style.width,10);if(!isNaN(q))this.setValue(q);}},commit:function(m,n,o,p){h.apply(this,arguments);if(this.getValue())p.width=this.getValue()+'px';}},{type:'text',id:'height',style:'width:95px',label:i.lang.flash.height,validate:CKEDITOR.dialog.validate.integer(i.lang.flash.validateHeight),setup:function(m,n,o,p){g.apply(this,arguments);if(p){var q=parseInt(p.$.style.height,10);if(!isNaN(q))this.setValue(q);}},commit:function(m,n,o,p){h.apply(this,arguments);if(this.getValue())p.height=this.getValue()+'px';}},{type:'text',id:'hSpace',style:'width:95px',label:i.lang.flash.hSpace,validate:CKEDITOR.dialog.validate.integer(i.lang.flash.validateHSpace),setup:g,commit:h},{type:'text',id:'vSpace',style:'width:95px',label:i.lang.flash.vSpace,validate:CKEDITOR.dialog.validate.integer(i.lang.flash.validateVSpace),setup:g,commit:h}]},{type:'vbox',children:[{type:'html',id:'preview',style:'width:95%;',html:l}]}]},{id:'Upload',hidden:true,filebrowser:'uploadButton',label:i.lang.common.upload,elements:[{type:'file',id:'upload',label:i.lang.common.upload,size:38},{type:'fileButton',id:'uploadButton',label:i.lang.common.uploadSubmit,filebrowser:'info:src','for':['Upload','upload']}]},{id:'properties',label:i.lang.flash.propertiesTab,elements:[{type:'hbox',widths:['50%','50%'],children:[{id:'scale',type:'select',label:i.lang.flash.scale,'default':'',style:'width : 100%;',items:[[i.lang.common.notSet,''],[i.lang.flash.scaleAll,'showall'],[i.lang.flash.scaleNoBorder,'noborder'],[i.lang.flash.scaleFit,'exactfit']],setup:g,commit:h},{id:'allowScriptAccess',type:'select',label:i.lang.flash.access,'default':'',style:'width : 100%;',items:[[i.lang.common.notSet,''],[i.lang.flash.accessAlways,'always'],[i.lang.flash.accessSameDomain,'samedomain'],[i.lang.flash.accessNever,'never']],setup:g,commit:h}]},{type:'hbox',widths:['50%','50%'],children:[{id:'wmode',type:'select',label:i.lang.flash.windowMode,'default':'',style:'width : 100%;',items:[[i.lang.common.notSet,''],[i.lang.flash.windowModeWindow,'window'],[i.lang.flash.windowModeOpaque,'opaque'],[i.lang.flash.windowModeTransparent,'transparent']],setup:g,commit:h},{id:'quality',type:'select',label:i.lang.flash.quality,'default':'high',style:'width : 100%;',items:[[i.lang.common.notSet,''],[i.lang.flash.qualityBest,'best'],[i.lang.flash.qualityHigh,'high'],[i.lang.flash.qualityAutoHigh,'autohigh'],[i.lang.flash.qualityMedium,'medium'],[i.lang.flash.qualityAutoLow,'autolow'],[i.lang.flash.qualityLow,'low']],setup:g,commit:h}]},{type:'hbox',widths:['50%','50%'],children:[{id:'align',type:'select',label:i.lang.flash.align,'default':'',style:'width : 100%;',items:[[i.lang.common.notSet,''],[i.lang.image.alignLeft,'left'],[i.lang.image.alignAbsBottom,'absBottom'],[i.lang.image.alignAbsMiddle,'absMiddle'],[i.lang.image.alignBaseline,'baseline'],[i.lang.image.alignBottom,'bottom'],[i.lang.image.alignMiddle,'middle'],[i.lang.image.alignRight,'right'],[i.lang.image.alignTextTop,'textTop'],[i.lang.image.alignTop,'top']],setup:g,commit:h},{type:'html',html:'<div></div>'}]},{type:'vbox',padding:0,children:[{type:'html',html:CKEDITOR.tools.htmlEncode(i.lang.flash.flashvars)},{type:'checkbox',id:'menu',label:i.lang.flash.chkMenu,'default':true,setup:g,commit:h},{type:'checkbox',id:'play',label:i.lang.flash.chkPlay,'default':true,setup:g,commit:h},{type:'checkbox',id:'loop',label:i.lang.flash.chkLoop,'default':true,setup:g,commit:h},{type:'checkbox',id:'allowFullScreen',label:i.lang.flash.chkFull,'default':true,setup:g,commit:h}]}]},{id:'advanced',label:i.lang.common.advancedTab,elements:[{type:'hbox',widths:['45%','55%'],children:[{type:'text',id:'id',label:i.lang.common.id,setup:g,commit:h},{type:'text',id:'title',label:i.lang.common.advisoryTitle,setup:g,commit:h}]},{type:'hbox',widths:['45%','55%'],children:[{type:'text',id:'bgcolor',label:i.lang.flash.bgcolor,setup:g,commit:h},{type:'text',id:'class',label:i.lang.common.cssClass,setup:g,commit:h}]},{type:'text',id:'style',label:i.lang.common.cssStyle,setup:g,commit:h}]}]};
9
+ });})();
@@ -0,0 +1,6 @@
1
+ /*
2
+ Copyright (c) 2003-2009, CKSource - Frederico Knabben. All rights reserved.
3
+ For licensing, see LICENSE.html or http://ckeditor.com/license
4
+ */
5
+
6
+ (function(){var a=/\.swf(?:$|\?)/i,b=/^\d+(?:\.\d+)?$/;function c(f){if(b.test(f))return f+'px';return f;};function d(f){var g=f.attributes;return g.type=='application/x-shockwave-flash'||a.test(g.src||'');};function e(f,g){var h=f.createFakeParserElement(g,'cke_flash','flash',true),i=h.attributes.style||'',j=g.attributes.width,k=g.attributes.height;if(typeof j!='undefined')i=h.attributes.style=i+'width:'+c(j)+';';if(typeof k!='undefined')i=h.attributes.style=i+'height:'+c(k)+';';return h;};CKEDITOR.plugins.add('flash',{init:function(f){f.addCommand('flash',new CKEDITOR.dialogCommand('flash'));f.ui.addButton('Flash',{label:f.lang.common.flash,command:'flash'});CKEDITOR.dialog.add('flash',this.path+'dialogs/flash.js');f.addCss('img.cke_flash{background-image: url('+CKEDITOR.getUrl(this.path+'images/placeholder.png')+');'+'background-position: center center;'+'background-repeat: no-repeat;'+'border: 1px solid #a9a9a9;'+'width: 80px;'+'height: 80px;'+'}');if(f.addMenuItems)f.addMenuItems({flash:{label:f.lang.flash.properties,command:'flash',group:'flash'}});if(f.contextMenu)f.contextMenu.addListener(function(g,h){if(g&&g.is('img')&&g.getAttribute('_cke_real_element_type')=='flash')return{flash:CKEDITOR.TRISTATE_OFF};});},afterInit:function(f){var g=f.dataProcessor,h=g&&g.dataFilter;if(h)h.addRules({elements:{'cke:object':function(i){var j=i.attributes,k=j.classid&&String(j.classid).toLowerCase();if(!k){for(var l=0;l<i.children.length;l++)if(i.children[l].name=='embed'){if(!d(i.children[l]))return null;return e(f,i);}return null;}return e(f,i);},'cke:embed':function(i){if(!d(i))return null;return e(f,i);}}},5);},requires:['fakeobjects']});})();CKEDITOR.tools.extend(CKEDITOR.config,{flashEmbedTagOnly:false,flashAddEmbedTag:true,flashConvertOnEdit:false});
@@ -0,0 +1,7 @@
1
+ /*
2
+ Copyright (c) 2003-2009, CKSource - Frederico Knabben. All rights reserved.
3
+ For licensing, see LICENSE.html or http://ckeditor.com/license
4
+ */
5
+
6
+ CKEDITOR.plugins.add('floatpanel',{requires:['panel']});(function(){var a={},b=false;function c(d,e,f,g,h){var i=e.getUniqueId()+'-'+f.getUniqueId()+'-'+d.skinName+'-'+d.lang.dir+(d.uiColor&&'-'+d.uiColor||'')+(g.css&&'-'+g.css||'')+(h&&'-'+h||''),j=a[i];if(!j){j=a[i]=new CKEDITOR.ui.panel(e,g);j.element=f.append(CKEDITOR.dom.element.createFromHtml(j.renderHtml(d),e));j.element.setStyles({display:'none',position:'absolute'});}return j;};CKEDITOR.ui.floatPanel=CKEDITOR.tools.createClass({$:function(d,e,f,g){f.forceIFrame=true;var h=e.getDocument(),i=c(d,h,e,f,g||0),j=i.element,k=j.getFirst().getFirst();this.element=j;this._={panel:i,parentElement:e,definition:f,document:h,iframe:k,children:[],dir:d.lang.dir};},proto:{addBlock:function(d,e){return this._.panel.addBlock(d,e);},addListBlock:function(d,e){return this._.panel.addListBlock(d,e);},getBlock:function(d){return this._.panel.getBlock(d);},showBlock:function(d,e,f,g,h){var i=this._.panel,j=i.showBlock(d);this.allowBlur(false);b=true;var k=this.element,l=this._.iframe,m=this._.definition,n=e.getDocumentPosition(k.getDocument()),o=this._.dir=='rtl',p=n.x+(g||0),q=n.y+(h||0);if(o&&(f==1||f==4)||!o&&(f==2||f==3))p+=e.$.offsetWidth-1;if(f==3||f==4)q+=e.$.offsetHeight-1;this._.panel._.offsetParentId=e.getId();k.setStyles({top:q+'px',left:'-3000px',visibility:'hidden',opacity:'0',display:''});if(!this._.blurSet){var r=CKEDITOR.env.ie?l:new CKEDITOR.dom.window(l.$.contentWindow);CKEDITOR.event.useCapture=true;r.on('blur',function(s){var v=this;if(CKEDITOR.env.ie&&!v.allowBlur())return;var t=s.data.getTarget(),u=t.getWindow&&t.getWindow();if(u&&u.equals(r))return;if(v.visible&&!v._.activeChild&&!b)v.hide();},this);r.on('focus',function(){this._.focused=true;this.hideChild();this.allowBlur(true);},this);CKEDITOR.event.useCapture=false;this._.blurSet=1;}i.onEscape=CKEDITOR.tools.bind(function(){this.onEscape&&this.onEscape();},this);CKEDITOR.tools.setTimeout(function(){if(o)p-=k.$.offsetWidth;k.setStyles({left:p+'px',visibility:'',opacity:'1'});if(j.autoSize){function s(){var t=k.getFirst(),u=j.element.$.scrollHeight;if(CKEDITOR.env.ie&&CKEDITOR.env.quirks&&u>0)u+=(t.$.offsetHeight||0)-(t.$.clientHeight||0);t.setStyle('height',u+'px');i._.currentBlock.element.setStyle('display','none').removeStyle('display');};if(i.isLoaded)s();else i.onLoad=s;}else k.getFirst().removeStyle('height');CKEDITOR.tools.setTimeout(function(){if(m.voiceLabel)if(CKEDITOR.env.gecko){var t=l.getParent();t.setAttribute('role','region');t.setAttribute('title',m.voiceLabel);
7
+ l.setAttribute('role','region');l.setAttribute('title',' ');}if(CKEDITOR.env.ie&&CKEDITOR.env.quirks)l.focus();else l.$.contentWindow.focus();if(CKEDITOR.env.ie&&!CKEDITOR.env.quirks)this.allowBlur(true);},0,this);},0,this);this.visible=1;if(this.onShow)this.onShow.call(this);b=false;},hide:function(){var d=this;if(d.visible&&(!d.onHide||d.onHide.call(d)!==true)){d.hideChild();d.element.setStyle('display','none');d.visible=0;}},allowBlur:function(d){var e=this._.panel;if(d!=undefined)e.allowBlur=d;return e.allowBlur;},showAsChild:function(d,e,f,g,h,i){if(this._.activeChild==d&&d._.panel._.offsetParentId==f.getId())return;this.hideChild();d.onHide=CKEDITOR.tools.bind(function(){CKEDITOR.tools.setTimeout(function(){if(!this._.focused)this.hide();},0,this);},this);this._.activeChild=d;this._.focused=false;d.showBlock(e,f,g,h,i);if(CKEDITOR.env.ie7Compat||CKEDITOR.env.ie8&&CKEDITOR.env.ie6Compat)setTimeout(function(){d.element.getChild(0).$.style.cssText+='';},100);},hideChild:function(){var d=this._.activeChild;if(d){delete d.onHide;delete this._.activeChild;d.hide();}}}});})();
@@ -0,0 +1,6 @@
1
+ /*
2
+ Copyright (c) 2003-2009, CKSource - Frederico Knabben. All rights reserved.
3
+ For licensing, see LICENSE.html or http://ckeditor.com/license
4
+ */
5
+
6
+ (function(){function a(b,c,d,e,f,g,h){var i=b.config,j=f.split(';'),k=[],l={};for(var m=0;m<j.length;m++){var n={},o=j[m].split('/'),p=j[m]=o[0];n[d]=k[m]=o[1]||p;l[p]=new CKEDITOR.style(h,n);}b.ui.addRichCombo(c,{label:e.label,title:e.panelTitle,voiceLabel:e.voiceLabel,className:'cke_'+(d=='size'?'fontSize':'font'),multiSelect:false,panel:{css:[i.contentsCss,CKEDITOR.getUrl(b.skinPath+'editor.css')],voiceLabel:e.panelVoiceLabel},init:function(){this.startGroup(e.panelTitle);for(var q=0;q<j.length;q++){var r=j[q];this.add(r,'<span style="font-'+d+':'+k[q]+'">'+r+'</span>',r);}},onClick:function(q){b.focus();b.fire('saveSnapshot');var r=l[q];if(this.getValue()==q)r.remove(b.document);else r.apply(b.document);b.fire('saveSnapshot');},onRender:function(){b.on('selectionChange',function(q){var r=this.getValue(),s=q.data.path,t=s.elements;for(var u=0,v;u<t.length;u++){v=t[u];for(var w in l)if(l[w].checkElementRemovable(v,true)){if(w!=r)this.setValue(w);return;}}this.setValue('',g);},this);}});};CKEDITOR.plugins.add('font',{requires:['richcombo','styles'],init:function(b){var c=b.config;a(b,'Font','family',b.lang.font,c.font_names,c.font_defaultLabel,c.font_style);a(b,'FontSize','size',b.lang.fontSize,c.fontSize_sizes,c.fontSize_defaultLabel,c.fontSize_style);}});})();CKEDITOR.config.font_names='Arial/Arial, Helvetica, sans-serif;Comic Sans MS/Comic Sans MS, cursive;Courier New/Courier New, Courier, monospace;Georgia/Georgia, serif;Lucida Sans Unicode/Lucida Sans Unicode, Lucida Grande, sans-serif;Tahoma/Tahoma, Geneva, sans-serif;Times New Roman/Times New Roman, Times, serif;Trebuchet MS/Trebuchet MS, Helvetica, sans-serif;Verdana/Verdana, Geneva, sans-serif';CKEDITOR.config.font_defaultLabel='';CKEDITOR.config.font_style={element:'span',styles:{'font-family':'#(family)'},overrides:[{element:'font',attributes:{face:null}}]};CKEDITOR.config.fontSize_sizes='8/8px;9/9px;10/10px;11/11px;12/12px;14/14px;16/16px;18/18px;20/20px;22/22px;24/24px;26/26px;28/28px;36/36px;48/48px;72/72px';CKEDITOR.config.fontSize_defaultLabel='';CKEDITOR.config.fontSize_style={element:'span',styles:{'font-size':'#(size)'},overrides:[{element:'font',attributes:{size:null}}]};
@@ -0,0 +1,6 @@
1
+ /*
2
+ Copyright (c) 2003-2009, CKSource - Frederico Knabben. All rights reserved.
3
+ For licensing, see LICENSE.html or http://ckeditor.com/license
4
+ */
5
+
6
+ CKEDITOR.plugins.add('format',{requires:['richcombo','styles'],init:function(a){var b=a.config,c=a.lang.format,d=b.format_tags.split(';'),e={};for(var f=0;f<d.length;f++){var g=d[f];e[g]=new CKEDITOR.style(b['format_'+g]);}a.ui.addRichCombo('Format',{label:c.label,title:c.panelTitle,voiceLabel:c.voiceLabel,className:'cke_format',multiSelect:false,panel:{css:[b.contentsCss,CKEDITOR.getUrl(a.skinPath+'editor.css')],voiceLabel:c.panelVoiceLabel},init:function(){this.startGroup(c.panelTitle);for(var h in e){var i=c['tag_'+h];this.add(h,'<'+h+'>'+i+'</'+h+'>',i);}},onClick:function(h){a.focus();a.fire('saveSnapshot');e[h].apply(a.document);a.fire('saveSnapshot');},onRender:function(){a.on('selectionChange',function(h){var i=this.getValue(),j=h.data.path;for(var k in e)if(e[k].checkActive(j)){if(k!=i)this.setValue(k,a.lang.format['tag_'+k]);return;}this.setValue('');},this);}});}});CKEDITOR.config.format_tags='p;h1;h2;h3;h4;h5;h6;pre;address;div';CKEDITOR.config.format_p={element:'p'};CKEDITOR.config.format_div={element:'div'};CKEDITOR.config.format_pre={element:'pre'};CKEDITOR.config.format_address={element:'address'};CKEDITOR.config.format_h1={element:'h1'};CKEDITOR.config.format_h2={element:'h2'};CKEDITOR.config.format_h3={element:'h3'};CKEDITOR.config.format_h4={element:'h4'};CKEDITOR.config.format_h5={element:'h5'};CKEDITOR.config.format_h6={element:'h6'};
@@ -0,0 +1,6 @@
1
+ /*
2
+ Copyright (c) 2003-2009, CKSource - Frederico Knabben. All rights reserved.
3
+ For licensing, see LICENSE.html or http://ckeditor.com/license
4
+ */
5
+
6
+ CKEDITOR.dialog.add('button',function(a){return{title:a.lang.button.title,minWidth:350,minHeight:150,onShow:function(){var d=this;delete d.button;var b=d.getParentEditor().getSelection().getSelectedElement();if(b&&b.getName()=='input'){var c=b.getAttribute('type');if(c=='button'||c=='reset'||c=='submit'){d.button=b;d.setupContent(b);}}},onOk:function(){var b,c=this.button,d=!c;if(d){b=this.getParentEditor();c=b.document.createElement('input');}if(d)b.insertElement(c);this.commitContent({element:c});},contents:[{id:'info',label:a.lang.button.title,title:a.lang.button.title,elements:[{id:'_cke_saved_name',type:'text',label:a.lang.common.name,'default':'',setup:function(b){this.setValue(b.getAttribute('_cke_saved_name')||b.getAttribute('name')||'');},commit:function(b){var c=b.element;if(this.getValue())c.setAttribute('_cke_saved_name',this.getValue());else{c.removeAttribute('_cke_saved_name');c.removeAttribute('name');}}},{id:'value',type:'text',label:a.lang.button.text,accessKey:'V','default':'',setup:function(b){this.setValue(b.getAttribute('value')||'');},commit:function(b){var c=b.element;if(this.getValue())c.setAttribute('value',this.getValue());else c.removeAttribute('value');}},{id:'type',type:'select',label:a.lang.button.type,'default':'button',accessKey:'T',items:[[a.lang.button.typeBtn,'button'],[a.lang.button.typeSbm,'submit'],[a.lang.button.typeRst,'reset']],setup:function(b){this.setValue(b.getAttribute('type')||'');},commit:function(b){var c=b.element;if(CKEDITOR.env.ie){var d=c.getAttribute('type'),e=this.getValue();if(e!=d){var f=CKEDITOR.dom.element.createFromHtml('<input type="'+e+'"></input>',a.document);c.copyAttributes(f,{type:1});f.replace(c);a.getSelection().selectElement(f);b.element=f;}}else c.setAttribute('type',this.getValue());}}]}]};});
@@ -0,0 +1,6 @@
1
+ /*
2
+ Copyright (c) 2003-2009, CKSource - Frederico Knabben. All rights reserved.
3
+ For licensing, see LICENSE.html or http://ckeditor.com/license
4
+ */
5
+
6
+ CKEDITOR.dialog.add('checkbox',function(a){return{title:a.lang.checkboxAndRadio.checkboxTitle,minWidth:350,minHeight:140,onShow:function(){var c=this;delete c.checkbox;var b=c.getParentEditor().getSelection().getSelectedElement();if(b&&b.getAttribute('type')=='checkbox'){c.checkbox=b;c.setupContent(b);}},onOk:function(){var b,c=this.checkbox,d=!c;if(d){b=this.getParentEditor();c=b.document.createElement('input');c.setAttribute('type','checkbox');}if(d)b.insertElement(c);this.commitContent({element:c});},contents:[{id:'info',label:a.lang.checkboxAndRadio.checkboxTitle,title:a.lang.checkboxAndRadio.checkboxTitle,startupFocus:'txtName',elements:[{id:'txtName',type:'text',label:a.lang.common.name,'default':'',accessKey:'N',setup:function(b){this.setValue(b.getAttribute('_cke_saved_name')||b.getAttribute('name')||'');},commit:function(b){var c=b.element;if(this.getValue())c.setAttribute('_cke_saved_name',this.getValue());else{c.removeAttribute('_cke_saved_name');c.removeAttribute('name');}}},{id:'txtValue',type:'text',label:a.lang.checkboxAndRadio.value,'default':'',accessKey:'V',setup:function(b){this.setValue(b.getAttribute('value')||'');},commit:function(b){var c=b.element;if(this.getValue())c.setAttribute('value',this.getValue());else c.removeAttribute('value');}},{id:'cmbSelected',type:'checkbox',label:a.lang.checkboxAndRadio.selected,'default':'',accessKey:'S',value:'checked',setup:function(b){this.setValue(b.getAttribute('checked'));},commit:function(b){var c=b.element;if(CKEDITOR.env.ie){var d=!!c.getAttribute('checked'),e=!!this.getValue();if(d!=e){var f=CKEDITOR.dom.element.createFromHtml('<input type="checkbox"'+(e?' checked="checked"':'')+'></input>',a.document);c.copyAttributes(f,{type:1,checked:1});f.replace(c);a.getSelection().selectElement(f);b.element=f;}}else if(this.getValue())c.setAttribute('checked',this.getValue());else c.removeAttribute('checked');}}]}]};});
@@ -0,0 +1,6 @@
1
+ /*
2
+ Copyright (c) 2003-2009, CKSource - Frederico Knabben. All rights reserved.
3
+ For licensing, see LICENSE.html or http://ckeditor.com/license
4
+ */
5
+
6
+ CKEDITOR.dialog.add('form',function(a){var b={action:1,id:1,method:1,enctype:1,target:1};return{title:a.lang.form.title,minWidth:350,minHeight:200,onShow:function(){var e=this;delete e.form;var c=e.getParentEditor().getSelection().getStartElement(),d=c&&c.getAscendant('form',true);if(d){e.form=d;e.setupContent(d);}},onOk:function(){var c,d=this.form,e=!d;if(e){c=this.getParentEditor();d=c.document.createElement('form');d.append(c.document.createElement('br'));}if(e)c.insertElement(d);this.commitContent(d);},onLoad:function(){function c(e){this.setValue(e.getAttribute(this.id)||'');};function d(e){var f=this;if(f.getValue())e.setAttribute(f.id,f.getValue());else e.removeAttribute(f.id);};this.foreach(function(e){if(b[e.id]){e.setup=c;e.commit=d;}});},contents:[{id:'info',label:a.lang.form.title,title:a.lang.form.title,elements:[{id:'txtName',type:'text',label:a.lang.common.name,'default':'',accessKey:'N',setup:function(c){this.setValue(c.getAttribute('_cke_saved_name')||c.getAttribute('name')||'');},commit:function(c){if(this.getValue())c.setAttribute('_cke_saved_name',this.getValue());else{c.removeAttribute('_cke_saved_name');c.removeAttribute('name');}}},{id:'action',type:'text',label:a.lang.form.action,'default':'',accessKey:'A'},{type:'hbox',widths:['45%','55%'],children:[{id:'id',type:'text',label:a.lang.common.id,'default':'',accessKey:'I'},{id:'enctype',type:'select',label:a.lang.form.encoding,style:'width:100%',accessKey:'E','default':'',items:[[''],['text/plain'],['multipart/form-data'],['application/x-www-form-urlencoded']]}]},{type:'hbox',widths:['45%','55%'],children:[{id:'target',type:'select',label:a.lang.form.target,style:'width:100%',accessKey:'M','default':'',items:[[a.lang.form.targetNotSet,''],[a.lang.form.targetNew,'_blank'],[a.lang.form.targetTop,'_top'],[a.lang.form.targetSelf,'_self'],[a.lang.form.targetParent,'_parent']]},{id:'method',type:'select',label:a.lang.form.method,accessKey:'M','default':'GET',items:[['GET','get'],['POST','post']]}]}]}]};});
@@ -0,0 +1,6 @@
1
+ /*
2
+ Copyright (c) 2003-2009, CKSource - Frederico Knabben. All rights reserved.
3
+ For licensing, see LICENSE.html or http://ckeditor.com/license
4
+ */
5
+
6
+ CKEDITOR.dialog.add('hiddenfield',function(a){return{title:a.lang.hidden.title,minWidth:350,minHeight:110,onShow:function(){var c=this;delete c.hiddenField;var b=c.getParentEditor().getSelection().getSelectedElement();if(b&&b.getName()=='input'&&b.getAttribute('type')=='checkbox'){c.hiddenField=b;c.setupContent(b);}},onOk:function(){var b,c=this.hiddenField,d=!c;if(d){b=this.getParentEditor();c=b.document.createElement('input');c.setAttribute('type','hidden');}if(d)b.insertElement(c);this.commitContent(c);},contents:[{id:'info',label:a.lang.hidden.title,title:a.lang.hidden.title,elements:[{id:'_cke_saved_name',type:'text',label:a.lang.hidden.name,'default':'',accessKey:'N',setup:function(b){this.setValue(b.getAttribute('_cke_saved_name')||b.getAttribute('name')||'');},commit:function(b){if(this.getValue())b.setAttribute('_cke_saved_name',this.getValue());else{b.removeAttribute('_cke_saved_name');b.removeAttribute('name');}}},{id:'value',type:'text',label:a.lang.hidden.value,'default':'',accessKey:'V',setup:function(b){this.setValue(b.getAttribute('value')||'');},commit:function(b){if(this.getValue())b.setAttribute('value',this.getValue());else b.removeAttribute('value');}}]}]};});
@@ -0,0 +1,6 @@
1
+ /*
2
+ Copyright (c) 2003-2009, CKSource - Frederico Knabben. All rights reserved.
3
+ For licensing, see LICENSE.html or http://ckeditor.com/license
4
+ */
5
+
6
+ CKEDITOR.dialog.add('radio',function(a){return{title:a.lang.checkboxAndRadio.radioTitle,minWidth:350,minHeight:140,onShow:function(){var c=this;delete c.radioButton;var b=c.getParentEditor().getSelection().getSelectedElement();if(b&&b.getName()=='input'&&b.getAttribute('type')=='radio'){c.radioButton=b;c.setupContent(b);}},onOk:function(){var b,c=this.radioButton,d=!c;if(d){b=this.getParentEditor();c=b.document.createElement('input');c.setAttribute('type','radio');}if(d)b.insertElement(c);this.commitContent({element:c});},contents:[{id:'info',label:a.lang.checkboxAndRadio.radioTitle,title:a.lang.checkboxAndRadio.radioTitle,elements:[{id:'name',type:'text',label:a.lang.common.name,'default':'',accessKey:'N',setup:function(b){this.setValue(b.getAttribute('_cke_saved_name')||b.getAttribute('name')||'');},commit:function(b){var c=b.element;if(this.getValue())c.setAttribute('_cke_saved_name',this.getValue());else{c.removeAttribute('_cke_saved_name');c.removeAttribute('name');}}},{id:'value',type:'text',label:a.lang.checkboxAndRadio.value,'default':'',accessKey:'V',setup:function(b){this.setValue(b.getAttribute('value')||'');},commit:function(b){var c=b.element;if(this.getValue())c.setAttribute('value',this.getValue());else c.removeAttribute('value');}},{id:'checked',type:'checkbox',label:a.lang.checkboxAndRadio.selected,'default':'',accessKey:'S',value:'checked',setup:function(b){this.setValue(b.getAttribute('checked'));},commit:function(b){var c=b.element;if(!CKEDITOR.env.ie){if(this.getValue())c.setAttribute('checked','checked');else c.removeAttribute('checked');}else{var d=c.getAttribute('checked'),e=!!this.getValue();if(d!=e){var f=CKEDITOR.dom.element.createFromHtml('<input type="radio"'+(e?' checked="checked"':'')+'></input>',a.document);c.copyAttributes(f,{type:1,checked:1});f.replace(c);a.getSelection().selectElement(f);b.element=f;}}}}]}]};});
@@ -0,0 +1,9 @@
1
+ /*
2
+ Copyright (c) 2003-2009, CKSource - Frederico Knabben. All rights reserved.
3
+ For licensing, see LICENSE.html or http://ckeditor.com/license
4
+ */
5
+
6
+ CKEDITOR.dialog.add('select',function(a){function b(k,l,m,n,o){k=j(k);var p;if(n)p=n.createElement('OPTION');else p=document.createElement('OPTION');if(k&&p&&p.getName()=='option'){if(CKEDITOR.env.ie){if(!isNaN(parseInt(o,10)))k.$.options.add(p.$,o);else k.$.options.add(p.$);p.$.innerHTML=l.length>0?l:'';p.$.value=m;}else{if(o!==null&&o<k.getChildCount())k.getChild(o<0?0:o).insertBeforeMe(p);else k.append(p);p.setText(l.length>0?l:'');p.setValue(m);}}else return false;return p;};function c(k){k=j(k);var l=g(k);for(var m=k.getChildren().count()-1;m>=0;m--)if(k.getChild(m).$.selected)k.getChild(m).remove();h(k,l);};function d(k,l,m,n){k=j(k);if(l<0)return false;var o=k.getChild(l);o.setText(m);o.setValue(n);return o;};function e(k){k=j(k);while(k.getChild(0)&&k.getChild(0).remove()){}};function f(k,l,m){k=j(k);var n=g(k);if(n<0)return false;var o=n+l;o=o<0?0:o;o=o>=k.getChildCount()?k.getChildCount()-1:o;if(n==o)return false;var p=k.getChild(n),q=p.getText(),r=p.getValue();p.remove();p=b(k,q,r,!m?null:m,o);h(k,o);return p;};function g(k){k=j(k);return k?k.$.selectedIndex:-1;};function h(k,l){k=j(k);if(l<0)return null;var m=k.getChildren().count();k.$.selectedIndex=l>=m?m-1:l;return k;};function i(k){k=j(k);return k?k.getChildren():false;};function j(k){if(k&&k.domId&&k.getInputElement().$)return k.getInputElement();else if(k&&k.$)return k;return false;};return{title:a.lang.select.title,minWidth:CKEDITOR.env.ie?460:395,minHeight:CKEDITOR.env.ie?320:300,onShow:function(){var n=this;delete n.selectBox;n.setupContent('clear');var k=n.getParentEditor().getSelection().getSelectedElement();if(k&&k.getName()=='select'){n.selectBox=k;n.setupContent(k.getName(),k);var l=i(k);for(var m=0;m<l.count();m++)n.setupContent('option',l.getItem(m));}},onOk:function(){var k=this.getParentEditor(),l=this.selectBox,m=!l;if(m)l=k.document.createElement('select');this.commitContent(l);if(m)k.insertElement(l);},contents:[{id:'info',label:a.lang.select.selectInfo,title:a.lang.select.selectInfo,accessKey:'',elements:[{id:'txtName',type:'text',widths:['25%','75%'],labelLayout:'horizontal',label:a.lang.common.name,'default':'',accessKey:'N',align:'center',style:'width:350px',setup:function(k,l){if(k=='clear')this.setValue('');else if(k=='select')this.setValue(l.getAttribute('_cke_saved_name')||l.getAttribute('name')||'');},commit:function(k){if(this.getValue())k.setAttribute('_cke_saved_name',this.getValue());else{k.removeAttribute('_cke_saved_name');k.removeAttribute('name');}}},{id:'txtValue',type:'text',widths:['25%','75%'],labelLayout:'horizontal',label:a.lang.select.value,style:'width:350px','default':'',className:'cke_disabled',onLoad:function(){this.getInputElement().setAttribute('readOnly',true);
7
+ },setup:function(k,l){if(k=='clear')this.setValue('');else if(k=='option'&&l.getAttribute('selected'))this.setValue(l.$.value);}},{type:'hbox',widths:['175px','170px'],align:'center',children:[{id:'txtSize',type:'text',align:'center',labelLayout:'horizontal',label:a.lang.select.size,'default':'',accessKey:'S',style:'width:175px',validate:function(){var k=CKEDITOR.dialog.validate.integer(a.lang.common.validateNumberFailed);return this.getValue()===''||k.apply(this);},setup:function(k,l){if(k=='select')this.setValue(l.getAttribute('size')||'');},commit:function(k){if(this.getValue())k.setAttribute('size',this.getValue());else k.removeAttribute('size');}},{type:'html',html:'<span>'+CKEDITOR.tools.htmlEncode(a.lang.select.lines)+'</span>'}]},{type:'html',html:'<span>'+CKEDITOR.tools.htmlEncode(a.lang.select.opAvail)+'</span>'},{type:'hbox',widths:['115px','115px','100px'],align:'top',children:[{type:'vbox',children:[{id:'txtOptName',type:'text',label:a.lang.select.opText,style:'width:115px',setup:function(k,l){if(k=='clear')this.setValue('');}},{type:'select',id:'cmbName',label:'',title:'',size:5,style:'width:115px;height:75px',items:[],onChange:function(){var k=this.getDialog(),l=k.getContentElement('info','cmbValue'),m=k.getContentElement('info','txtOptName'),n=k.getContentElement('info','txtOptValue'),o=g(this);h(l,o);m.setValue(this.getValue());n.setValue(l.getValue());},setup:function(k,l){if(k=='clear')e(this);else if(k=='option')b(this,l.getText(),l.getText(),this.getDialog().getParentEditor().document);},commit:function(k){var l=this.getDialog(),m=i(this),n=i(l.getContentElement('info','cmbValue')),o=l.getContentElement('info','txtValue').getValue();e(k);for(var p=0;p<m.count();p++){var q=b(k,m.getItem(p).getValue(),n.getItem(p).getValue(),l.getParentEditor().document);if(n.getItem(p).getValue()==o){q.setAttribute('selected','selected');q.selected=true;}}}}]},{type:'vbox',children:[{id:'txtOptValue',type:'text',label:a.lang.select.opValue,style:'width:115px',setup:function(k,l){if(k=='clear')this.setValue('');}},{type:'select',id:'cmbValue',label:'',size:5,style:'width:115px;height:75px',items:[],onChange:function(){var k=this.getDialog(),l=k.getContentElement('info','cmbName'),m=k.getContentElement('info','txtOptName'),n=k.getContentElement('info','txtOptValue'),o=g(this);h(l,o);m.setValue(l.getValue());n.setValue(this.getValue());},setup:function(k,l){var n=this;if(k=='clear')e(n);else if(k=='option'){var m=l.getValue();b(n,m,m,n.getDialog().getParentEditor().document);
8
+ if(l.getAttribute('selected')=='selected')n.getDialog().getContentElement('info','txtValue').setValue(m);}}}]},{type:'vbox',padding:5,children:[{type:'button',style:'',label:a.lang.select.btnAdd,title:a.lang.select.btnAdd,style:'width:100%;',onClick:function(){var k=this.getDialog(),l=k.getParentEditor(),m=k.getContentElement('info','txtOptName'),n=k.getContentElement('info','txtOptValue'),o=k.getContentElement('info','cmbName'),p=k.getContentElement('info','cmbValue');b(o,m.getValue(),m.getValue(),k.getParentEditor().document);b(p,n.getValue(),n.getValue(),k.getParentEditor().document);m.setValue('');n.setValue('');}},{type:'button',label:a.lang.select.btnModify,title:a.lang.select.btnModify,style:'width:100%;',onClick:function(){var k=this.getDialog(),l=k.getContentElement('info','txtOptName'),m=k.getContentElement('info','txtOptValue'),n=k.getContentElement('info','cmbName'),o=k.getContentElement('info','cmbValue'),p=g(n);if(p>=0){d(n,p,l.getValue(),l.getValue());d(o,p,m.getValue(),m.getValue());}}},{type:'button',style:'width:100%;',label:a.lang.select.btnUp,title:a.lang.select.btnUp,onClick:function(){var k=this.getDialog(),l=k.getContentElement('info','cmbName'),m=k.getContentElement('info','cmbValue');f(l,-1,k.getParentEditor().document);f(m,-1,k.getParentEditor().document);}},{type:'button',style:'width:100%;',label:a.lang.select.btnDown,title:a.lang.select.btnDown,onClick:function(){var k=this.getDialog(),l=k.getContentElement('info','cmbName'),m=k.getContentElement('info','cmbValue');f(l,1,k.getParentEditor().document);f(m,1,k.getParentEditor().document);}}]}]},{type:'hbox',widths:['40%','20%','40%'],children:[{type:'button',label:a.lang.select.btnSetValue,title:a.lang.select.btnSetValue,onClick:function(){var k=this.getDialog(),l=k.getContentElement('info','cmbValue'),m=k.getContentElement('info','txtValue');m.setValue(l.getValue());}},{type:'button',label:a.lang.select.btnDelete,title:a.lang.select.btnDelete,onClick:function(){var k=this.getDialog(),l=k.getContentElement('info','cmbName'),m=k.getContentElement('info','cmbValue'),n=k.getContentElement('info','txtOptName'),o=k.getContentElement('info','txtOptValue');c(l);c(m);n.setValue('');o.setValue('');}},{id:'chkMulti',type:'checkbox',label:a.lang.select.chkMulti,'default':'',accessKey:'M',value:'checked',setup:function(k,l){if(k=='select')this.setValue(l.getAttribute('multiple'));},commit:function(k){if(this.getValue())k.setAttribute('multiple',this.getValue());else k.removeAttribute('multiple');
9
+ }}]}]}]};});
@@ -0,0 +1,6 @@
1
+ /*
2
+ Copyright (c) 2003-2009, CKSource - Frederico Knabben. All rights reserved.
3
+ For licensing, see LICENSE.html or http://ckeditor.com/license
4
+ */
5
+
6
+ CKEDITOR.dialog.add('textarea',function(a){return{title:a.lang.textarea.title,minWidth:350,minHeight:150,onShow:function(){var c=this;delete c.textarea;var b=c.getParentEditor().getSelection().getSelectedElement();if(b&&b.getName()=='textarea'){c.textarea=b;c.setupContent(b);}},onOk:function(){var b,c=this.textarea,d=!c;if(d){b=this.getParentEditor();c=b.document.createElement('textarea');}this.commitContent(c);if(d)b.insertElement(c);},contents:[{id:'info',label:a.lang.textarea.title,title:a.lang.textarea.title,elements:[{id:'_cke_saved_name',type:'text',label:a.lang.common.name,'default':'',accessKey:'N',setup:function(b){this.setValue(b.getAttribute('_cke_saved_name')||b.getAttribute('name')||'');},commit:function(b){if(this.getValue())b.setAttribute('_cke_saved_name',this.getValue());else{b.removeAttribute('_cke_saved_name');b.removeAttribute('name');}}},{id:'cols',type:'text',label:a.lang.textarea.cols,'default':'',accessKey:'C',style:'width:50px',validate:CKEDITOR.dialog.validate.integer(a.lang.common.validateNumberFailed),setup:function(b){var c=b.hasAttribute('cols')&&b.getAttribute('cols');this.setValue(c||'');},commit:function(b){if(this.getValue())b.setAttribute('cols',this.getValue());else b.removeAttribute('cols');}},{id:'rows',type:'text',label:a.lang.textarea.rows,'default':'',accessKey:'R',style:'width:50px',validate:CKEDITOR.dialog.validate.integer(a.lang.common.validateNumberFailed),setup:function(b){var c=b.hasAttribute('rows')&&b.getAttribute('rows');this.setValue(c||'');},commit:function(b){if(this.getValue())b.setAttribute('rows',this.getValue());else b.removeAttribute('rows');}}]}]};});
@@ -0,0 +1,6 @@
1
+ /*
2
+ Copyright (c) 2003-2009, CKSource - Frederico Knabben. All rights reserved.
3
+ For licensing, see LICENSE.html or http://ckeditor.com/license
4
+ */
5
+
6
+ CKEDITOR.dialog.add('textfield',function(a){var b={value:1,size:1,maxLength:1},c={text:1,password:1};return{title:a.lang.textfield.title,minWidth:350,minHeight:150,onShow:function(){var e=this;delete e.textField;var d=e.getParentEditor().getSelection().getSelectedElement();if(d&&d.getName()=='input'&&(c[d.getAttribute('type')]||!d.getAttribute('type'))){e.textField=d;e.setupContent(d);}},onOk:function(){var d,e=this.textField,f=!e;if(f){d=this.getParentEditor();e=d.document.createElement('input');e.setAttribute('type','text');}if(f)d.insertElement(e);this.commitContent({element:e});},onLoad:function(){var d=function(f){var g=f.hasAttribute(this.id)&&f.getAttribute(this.id);this.setValue(g||'');},e=function(f){var g=f.element,h=this.getValue();if(h)g.setAttribute(this.id,h);else g.removeAttribute(this.id);};this.foreach(function(f){if(b[f.id]){f.setup=d;f.commit=e;}});},contents:[{id:'info',label:a.lang.textfield.title,title:a.lang.textfield.title,elements:[{type:'hbox',widths:['50%','50%'],children:[{id:'_cke_saved_name',type:'text',label:a.lang.textfield.name,'default':'',accessKey:'N',setup:function(d){this.setValue(d.getAttribute('_cke_saved_name')||d.getAttribute('name')||'');},commit:function(d){var e=d.element;if(this.getValue())e.setAttribute('_cke_saved_name',this.getValue());else{e.removeAttribute('_cke_saved_name');e.removeAttribute('name');}}},{id:'value',type:'text',label:a.lang.textfield.value,'default':'',accessKey:'V'}]},{type:'hbox',widths:['50%','50%'],children:[{id:'size',type:'text',label:a.lang.textfield.charWidth,'default':'',accessKey:'C',style:'width:50px',validate:CKEDITOR.dialog.validate.integer(a.lang.common.validateNumberFailed)},{id:'maxLength',type:'text',label:a.lang.textfield.maxChars,'default':'',accessKey:'M',style:'width:50px',validate:CKEDITOR.dialog.validate.integer(a.lang.common.validateNumberFailed)}]},{id:'type',type:'select',label:a.lang.textfield.type,'default':'text',accessKey:'M',items:[[a.lang.textfield.typeText,'text'],[a.lang.textfield.typePass,'password']],setup:function(d){this.setValue(d.getAttribute('type'));},commit:function(d){var e=d.element;if(CKEDITOR.env.ie){var f=e.getAttribute('type'),g=this.getValue();if(f!=g){var h=CKEDITOR.dom.element.createFromHtml('<input type="'+g+'"></input>',a.document);e.copyAttributes(h,{type:1});h.replace(e);a.getSelection().selectElement(h);d.element=e;}}else e.setAttribute('type',this.getValue());}}]}]};});
@@ -0,0 +1,7 @@
1
+ /*
2
+ Copyright (c) 2003-2009, CKSource - Frederico Knabben. All rights reserved.
3
+ For licensing, see LICENSE.html or http://ckeditor.com/license
4
+ */
5
+
6
+ CKEDITOR.plugins.add('forms',{init:function(a){var b=a.lang;a.addCss('form{border: 1px dotted #FF0000;padding: 2px;}');var c=function(e,f,g){a.addCommand(f,new CKEDITOR.dialogCommand(f));a.ui.addButton(e,{label:b.common[e.charAt(0).toLowerCase()+e.slice(1)],command:f});CKEDITOR.dialog.add(f,g);},d=this.path+'dialogs/';c('Form','form',d+'form.js');c('Checkbox','checkbox',d+'checkbox.js');c('Radio','radio',d+'radio.js');c('TextField','textfield',d+'textfield.js');c('Textarea','textarea',d+'textarea.js');c('Select','select',d+'select.js');c('Button','button',d+'button.js');c('ImageButton','imagebutton',CKEDITOR.plugins.getPath('image')+'dialogs/image.js');c('HiddenField','hiddenfield',d+'hiddenfield.js');if(a.addMenuItems)a.addMenuItems({form:{label:b.form.menu,command:'form',group:'form'},checkbox:{label:b.checkboxAndRadio.checkboxTitle,command:'checkbox',group:'checkbox'},radio:{label:b.checkboxAndRadio.radioTitle,command:'radio',group:'radio'},textfield:{label:b.textfield.title,command:'textfield',group:'textfield'},hiddenfield:{label:b.hidden.title,command:'hiddenfield',group:'hiddenfield'},imagebutton:{label:b.image.titleButton,command:'imagebutton',group:'imagebutton'},button:{label:b.button.title,command:'button',group:'button'},select:{label:b.select.title,command:'select',group:'select'},textarea:{label:b.textarea.title,command:'textarea',group:'textarea'}});if(a.contextMenu){a.contextMenu.addListener(function(e){if(e&&e.hasAscendant('form'))return{form:CKEDITOR.TRISTATE_OFF};});a.contextMenu.addListener(function(e){if(e){var f=e.getName();if(f=='select')return{select:CKEDITOR.TRISTATE_OFF};if(f=='textarea')return{textarea:CKEDITOR.TRISTATE_OFF};if(f=='input'){var g=e.getAttribute('type');if(g=='text'||g=='password')return{textfield:CKEDITOR.TRISTATE_OFF};if(g=='button'||g=='submit'||g=='reset')return{button:CKEDITOR.TRISTATE_OFF};if(g=='checkbox')return{checkbox:CKEDITOR.TRISTATE_OFF};if(g=='radio')return{radio:CKEDITOR.TRISTATE_OFF};if(g=='image')return{imagebutton:CKEDITOR.TRISTATE_OFF};}if(f=='img'&&e.getAttribute('_cke_real_element_type')=='hiddenfield')return{hiddenfield:CKEDITOR.TRISTATE_OFF};}});}},requires:['image']});if(CKEDITOR.env.ie)CKEDITOR.dom.element.prototype.hasAttribute=function(a){var d=this;var b=d.$.attributes.getNamedItem(a);if(d.getName()=='input')switch(a){case 'class':return d.$.className.length>0;case 'checked':return!!d.$.checked;case 'value':var c=d.getAttribute('type');if(c=='checkbox'||c=='radio')return d.$.value!='on';break;
7
+ default:}return!!(b&&b.specified);};
@@ -0,0 +1,6 @@
1
+ /*
2
+ Copyright (c) 2003-2009, CKSource - Frederico Knabben. All rights reserved.
3
+ For licensing, see LICENSE.html or http://ckeditor.com/license
4
+ */
5
+
6
+ (function(){var a={exec:function(c){c.insertElement(c.document.createElement('hr'));}},b='horizontalrule';CKEDITOR.plugins.add(b,{init:function(c){c.addCommand(b,a);c.ui.addButton('HorizontalRule',{label:c.lang.horizontalrule,command:b});}});})();
@@ -0,0 +1,7 @@
1
+ /*
2
+ Copyright (c) 2003-2009, CKSource - Frederico Knabben. All rights reserved.
3
+ For licensing, see LICENSE.html or http://ckeditor.com/license
4
+ */
5
+
6
+ (function(){var a=/^[\t\r\n ]*(?:&nbsp;|\xa0)$/,b='{cke_protected}';function c(A,B){var C=A.children,D=C[C.length-1];if(D){if((B||!CKEDITOR.env.ie)&&(D.type==CKEDITOR.NODE_ELEMENT&&D.name=='br'))C.pop();if(D.type==CKEDITOR.NODE_TEXT&&a.test(D.value))C.pop();}};function d(A){if(A.children.length<1)return true;var B=A.children[A.children.length-1];return B.type==CKEDITOR.NODE_ELEMENT&&B.name=='br';};function e(A){c(A,true);if(d(A))if(CKEDITOR.env.ie)A.add(new CKEDITOR.htmlParser.text('\xa0'));else A.add(new CKEDITOR.htmlParser.element('br',{}));};function f(A){c(A);if(d(A))A.add(new CKEDITOR.htmlParser.text('\xa0'));};var g=CKEDITOR.dtd,h=CKEDITOR.tools.extend({},g.$block,g.$listItem,g.$tableContent);for(var i in h)if(!('br' in g[i]))delete h[i];delete h.pre;var j={attributeNames:[[/^on/,'_cke_pa_on']]},k={elements:{}};for(i in h)k.elements[i]=e;var l={elementNames:[[/^cke:/,''],[/^\?xml:namespace$/,'']],attributeNames:[[/^_cke_(saved|pa)_/,''],[/^_cke.*/,'']],elements:{$:function(A){var B=A.attributes;if(B){var C=['name','href','src'],D;for(var E=0;E<C.length;E++){D='_cke_saved_'+C[E];D in B&&delete B[C[E]];}}},embed:function(A){var B=A.parent;if(B&&B.name=='object'){var C=B.attributes.width,D=B.attributes.height;C&&(A.attributes.width=C);D&&(A.attributes.height=D);}},param:function(A){A.children=[];A.isEmpty=true;return A;},a:function(A){if(!(A.children.length||A.attributes.name||A.attributes._cke_saved_name))return false;}},attributes:{'class':function(A,B){return CKEDITOR.tools.ltrim(A.replace(/(?:^|\s+)cke_[^\s]*/g,''))||false;}},comment:function(A){if(A.substr(0,b.length)==b)return new CKEDITOR.htmlParser.cdata(decodeURIComponent(A.substr(b.length)));return A;}},m={elements:{}};for(i in h)m.elements[i]=f;if(CKEDITOR.env.ie)l.attributes.style=function(A,B){return A.toLowerCase();};var n=/<(?:a|area|img|input).*?\s((?:href|src|name)\s*=\s*(?:(?:"[^"]*")|(?:'[^']*')|(?:[^ "'>]+)))/gi;function o(A){return A.replace(n,'$& _cke_saved_$1');};var p=/<(style)(?=[ >])[^>]*>[^<]*<\/\1>/gi,q=/<cke:encoded>([^<]*)<\/cke:encoded>/gi,r=/(<\/?)((?:object|embed|param).*?>)/gi,s=/<cke:param(.*?)\/>/gi;function t(A){return '<cke:encoded>'+encodeURIComponent(A)+'</cke:encoded>';};function u(A){return A.replace(p,t);};function v(A){return A.replace(r,'$1cke:$2');};function w(A){return A.replace(s,'<cke:param$1></cke:param>');};function x(A,B){return decodeURIComponent(B);};function y(A){return A.replace(q,x);};function z(A,B){var C=[],D=/<\!--\{cke_temp\}(\d*?)-->/g,E=[/<!--[\s\S]*?-->/g,/<script[\s\S]*?<\/script>/gi,/<noscript[\s\S]*?<\/noscript>/gi].concat(B);
7
+ for(var F=0;F<E.length;F++)A=A.replace(E[F],function(G){G=G.replace(D,function(H,I){return C[I];});return '<!--{cke_temp}'+(C.push(G)-1)+'-->';});A=A.replace(D,function(G,H){return '<!--'+b+encodeURIComponent(C[H]).replace(/--/g,'%2D%2D')+'-->';});return A;};CKEDITOR.plugins.add('htmldataprocessor',{requires:['htmlwriter'],init:function(A){var B=A.dataProcessor=new CKEDITOR.htmlDataProcessor(A);B.writer.forceSimpleAmpersand=A.config.forceSimpleAmpersand;B.dataFilter.addRules(j);B.dataFilter.addRules(k);B.htmlFilter.addRules(l);B.htmlFilter.addRules(m);}});CKEDITOR.htmlDataProcessor=function(A){var B=this;B.editor=A;B.writer=new CKEDITOR.htmlWriter();B.dataFilter=new CKEDITOR.htmlParser.filter();B.htmlFilter=new CKEDITOR.htmlParser.filter();};CKEDITOR.htmlDataProcessor.prototype={toHtml:function(A,B){A=z(A,this.editor.config.protectedSource);A=o(A);if(CKEDITOR.env.ie)A=u(A);A=v(A);A=w(A);var C=document.createElement('div');C.innerHTML='a'+A;A=C.innerHTML.substr(1);if(CKEDITOR.env.ie)A=y(A);var D=CKEDITOR.htmlParser.fragment.fromHtml(A,B),E=new CKEDITOR.htmlParser.basicWriter();D.writeHtml(E,this.dataFilter);return E.getHtml(true);},toDataFormat:function(A,B){var C=this.writer,D=CKEDITOR.htmlParser.fragment.fromHtml(A,B);C.reset();D.writeHtml(C,this.htmlFilter);return C.getHtml(true);}};})();CKEDITOR.config.forceSimpleAmpersand=false;
@@ -0,0 +1,6 @@
1
+ /*
2
+ Copyright (c) 2003-2009, CKSource - Frederico Knabben. All rights reserved.
3
+ For licensing, see LICENSE.html or http://ckeditor.com/license
4
+ */
5
+
6
+ CKEDITOR.plugins.add('htmlwriter');CKEDITOR.htmlWriter=CKEDITOR.tools.createClass({base:CKEDITOR.htmlParser.basicWriter,$:function(){var c=this;c.base();c.indentationChars='\t';c.selfClosingEnd=' />';c.lineBreakChars='\n';c.forceSimpleAmpersand=false;c.sortAttributes=true;c._.indent=false;c._.indentation='';c._.rules={};var a=CKEDITOR.dtd;for(var b in CKEDITOR.tools.extend({},a.$block,a.$listItem,a.$tableContent))c.setRules(b,{indent:true,breakBeforeOpen:true,breakAfterOpen:true,breakBeforeClose:!a[b]['#'],breakAfterClose:true});c.setRules('br',{breakAfterOpen:true});c.setRules('pre',{indent:false});},proto:{openTag:function(a,b){var d=this;var c=d._.rules[a];if(d._.indent)d.indentation();else if(c&&c.breakBeforeOpen){d.lineBreak();d.indentation();}d._.output.push('<',a);},openTagClose:function(a,b){var d=this;var c=d._.rules[a];if(b)d._.output.push(d.selfClosingEnd);else{d._.output.push('>');if(c&&c.indent)d._.indentation+=d.indentationChars;}if(c&&c.breakAfterOpen)d.lineBreak();},attribute:function(a,b){if(this.forceSimpleAmpersand)b=b.replace(/&amp;/,'&');this._.output.push(' ',a,'="',b,'"');},closeTag:function(a){var c=this;var b=c._.rules[a];if(b&&b.indent)c._.indentation=c._.indentation.substr(c.indentationChars.length);if(c._.indent)c.indentation();else if(b&&b.breakBeforeClose){c.lineBreak();c.indentation();}c._.output.push('</',a,'>');if(b&&b.breakAfterClose)c.lineBreak();},text:function(a){if(this._.indent){this.indentation();a=CKEDITOR.tools.ltrim(a);}this._.output.push(a);},comment:function(a){if(this._.indent)this.indentation();this._.output.push('<!--',a,'-->');},lineBreak:function(){var a=this;if(a._.output.length>0)a._.output.push(a.lineBreakChars);a._.indent=true;},indentation:function(){this._.output.push(this._.indentation);this._.indent=false;},setRules:function(a,b){this._.rules[a]=b;}}});
@@ -0,0 +1,6 @@
1
+ /*
2
+ Copyright (c) 2003-2009, CKSource - Frederico Knabben. All rights reserved.
3
+ For licensing, see LICENSE.html or http://ckeditor.com/license
4
+ */
5
+
6
+ CKEDITOR.plugins.add('iframedialog',{requires:['dialog'],onLoad:function(){CKEDITOR.dialog.addIframe=function(a,b,c,d,e,f){var g={type:'iframe',src:c,width:'100%',height:'100%'};if(typeof f=='function')g.onContentLoad=f;var h={title:b,minWidth:d,minHeight:e,contents:[{id:'iframe',label:b,expand:true,elements:[g]}]};return this.add(a,function(){return h;});};(function(){var a=function(b,c,d){if(arguments.length<3)return;var e=this._||(this._={}),f=c.onContentLoad&&CKEDITOR.tools.bind(c.onContentLoad,this),g=CKEDITOR.tools.cssLength(c.width),h=CKEDITOR.tools.cssLength(c.height);e.frameId=CKEDITOR.tools.getNextNumber()+'_iframe';b.on('load',function(){var k=CKEDITOR.document.getById(e.frameId),l=k.getParent();l.setStyles({width:g,height:h});});var i={src:'%2',id:e.frameId,frameborder:0,allowtransparency:true},j=[];if(typeof c.onContentLoad=='function')i.onload='CKEDITOR.tools.callFunction(%1);';CKEDITOR.ui.dialog.uiElement.call(this,b,c,j,'iframe',{width:g,height:h},i,'');d.push('<div style="width:'+g+';height:'+h+';" id="'+this.domId+'"></div>');j=j.join('');b.on('show',function(){var k=CKEDITOR.document.getById(e.frameId),l=k.getParent(),m=CKEDITOR.tools.addFunction(f),n=j.replace('%1',m).replace('%2',CKEDITOR.tools.htmlEncode(c.src));l.setHtml(n);});};a.prototype=new CKEDITOR.ui.dialog.uiElement();CKEDITOR.dialog.addUIElement('iframe',{build:function(b,c,d){return new a(b,c,d);}});})();}});
@@ -0,0 +1,12 @@
1
+ /*
2
+ Copyright (c) 2003-2009, CKSource - Frederico Knabben. All rights reserved.
3
+ For licensing, see LICENSE.html or http://ckeditor.com/license
4
+ */
5
+
6
+ (function(){var a=1,b=2,c=4,d=8,e=/^\s*(\d+)((px)|\%)?\s*$/i,f=/(^\s*(\d+)((px)|\%)?\s*$)|^$/i,g=function(){var m=this.getValue(),n=this.getDialog(),o=m.match(e);if(o){if(o[2]=='%')i(n,false);m=o[1];}if(n.lockRatio){var p=n.originalElement;if(p.getCustomData('isReady')=='true')if(this.id=='txtHeight'){if(m&&m!='0')m=Math.round(p.$.width*(m/p.$.height));if(!isNaN(m))n.setValueOf('info','txtWidth',m);}else{if(m&&m!='0')m=Math.round(p.$.height*(m/p.$.width));if(!isNaN(m))n.setValueOf('info','txtHeight',m);}}h(n);},h=function(m){if(!m.originalElement||!m.preview)return 1;m.commitContent(c,m.preview);return 0;},i=function(m,n){var o=m.originalElement,p=CKEDITOR.document.getById('btnLockSizes');if(o.getCustomData('isReady')=='true'){if(n=='check'){var q=m.getValueOf('info','txtWidth'),r=m.getValueOf('info','txtHeight'),s=o.$.width*1000/o.$.height,t=q*1000/r;m.lockRatio=false;if(!q&&!r)m.lockRatio=true;else if(!isNaN(s)&&!isNaN(t))if(Math.round(s)==Math.round(t))m.lockRatio=true;}else if(n!=undefined)m.lockRatio=n;else m.lockRatio=!m.lockRatio;}else if(n!='check')m.lockRatio=false;if(m.lockRatio)p.removeClass('cke_btn_unlocked');else p.addClass('cke_btn_unlocked');return m.lockRatio;},j=function(m){var n=m.originalElement;if(n.getCustomData('isReady')=='true'){m.setValueOf('info','txtWidth',n.$.width);m.setValueOf('info','txtHeight',n.$.height);}h(m);},k=function(m,n){if(m!=a)return;function o(t,u){var v=t.match(e);if(v){if(v[2]=='%'){v[1]+='%';i(p,false);}return v[1];}return u;};var p=this.getDialog(),q='',r=this.id=='txtWidth'?'width':'height',s=n.getAttribute(r);if(s)q=o(s,q);q=o(n.$.style[r],q);this.setValue(q);},l=function(m,n){var o=function(){var r=this;var q=r.originalElement;q.setCustomData('isReady','true');q.removeListener('load',o);q.removeListener('error',p);q.removeListener('abort',p);CKEDITOR.document.getById('ImagePreviewLoader').setStyle('display','none');if(!r.dontResetSize)j(r);if(r.firstLoad)i(r,'check');r.firstLoad=false;r.dontResetSize=false;},p=function(){var s=this;var q=s.originalElement;q.removeListener('load',o);q.removeListener('error',p);q.removeListener('abort',p);var r=CKEDITOR.getUrl(m.skinPath+'images/noimage.png');if(s.preview)s.preview.setAttribute('src',r);CKEDITOR.document.getById('ImagePreviewLoader').setStyle('display','none');i(s,false);};return{title:n=='image'?m.lang.image.title:m.lang.image.titleButton,minWidth:420,minHeight:310,onShow:function(){var w=this;w.imageElement=false;w.linkElement=false;w.imageEditMode=false;w.linkEditMode=false;
7
+ w.lockRatio=true;w.dontResetSize=false;w.firstLoad=true;w.addLink=false;CKEDITOR.document.getById('ImagePreviewLoader').setStyle('display','none');w.preview=CKEDITOR.document.getById('previewImage');var q=w.getParentEditor(),r=w.getParentEditor().getSelection(),s=r.getSelectedElement(),t=s&&s.getAscendant('a');w.originalElement=q.document.createElement('img');w.originalElement.setAttribute('alt','');w.originalElement.setCustomData('isReady','false');if(t){w.linkElement=t;w.linkEditMode=true;var u=t.getChildren();if(u.count()==1){var v=u.getItem(0).getName();if(v=='img'||v=='input'){w.imageElement=u.getItem(0);if(w.imageElement.getName()=='img')w.imageEditMode='img';else if(w.imageElement.getName()=='input')w.imageEditMode='input';}}if(n=='image')w.setupContent(b,t);}if(s&&s.getName()=='img'&&!s.getAttribute('_cke_protected_html'))w.imageEditMode='img';else if(s&&s.getName()=='input'&&s.getAttribute('type')&&s.getAttribute('type')=='image')w.imageEditMode='input';if(w.imageEditMode||w.imageElement){if(!w.imageElement)w.imageElement=s;w.setupContent(a,w.imageElement);i(w,true);}},onOk:function(){var r=this;if(r.imageEditMode){var q=r.imageEditMode;if(n=='image'&&q=='input'&&confirm(m.lang.image.button2Img)){q='img';r.imageElement=m.document.createElement('img');r.imageElement.setAttribute('alt','');m.insertElement(r.imageElement);}else if(n!='image'&&q=='img'&&confirm(m.lang.image.img2Button)){q='input';r.imageElement=m.document.createElement('input');r.imageElement.setAttributes({type:'image',alt:''});m.insertElement(r.imageElement);}}else{if(n=='image')r.imageElement=m.document.createElement('img');else{r.imageElement=m.document.createElement('input');r.imageElement.setAttribute('type','image');}r.imageElement.setAttribute('alt','');}if(!r.linkEditMode)r.linkElement=m.document.createElement('a');r.commitContent(a,r.imageElement);r.commitContent(b,r.linkElement);if(!r.imageEditMode){if(r.addLink){if(!r.linkEditMode){m.insertElement(r.linkElement);r.linkElement.append(r.imageElement,false);}else m.insertElement(r.imageElement);}else m.insertElement(r.imageElement);}else if(!r.linkEditMode&&r.addLink){m.insertElement(r.linkElement);r.imageElement.appendTo(r.linkElement);}else if(r.linkEditMode&&!r.addLink){m.getSelection().selectElement(r.linkElement);m.insertElement(r.imageElement);}},onLoad:function(){var r=this;if(n!='image')r.hidePage('Link');var q=r._.element.getDocument();r.addFocusable(q.getById('btnResetSize'),5);r.addFocusable(q.getById('btnLockSizes'),5);
8
+ },onHide:function(){var q=this;if(q.preview)q.commitContent(d,q.preview);if(q.originalElement){q.originalElement.removeListener('load',o);q.originalElement.removeListener('error',p);q.originalElement.removeListener('abort',p);q.originalElement.remove();q.originalElement=false;}},contents:[{id:'info',label:m.lang.image.infoTab,accessKey:'I',elements:[{type:'vbox',padding:0,children:[{type:'html',html:'<span>'+CKEDITOR.tools.htmlEncode(m.lang.image.url)+'</span>'},{type:'hbox',widths:['280px','110px'],align:'right',children:[{id:'txtUrl',type:'text',label:'',onChange:function(){var q=this.getDialog(),r=this.getValue();if(r.length>0){q=this.getDialog();var s=q.originalElement;s.setCustomData('isReady','false');var t=CKEDITOR.document.getById('ImagePreviewLoader');if(t)t.setStyle('display','');s.on('load',o,q);s.on('error',p,q);s.on('abort',p,q);s.setAttribute('src',r);q.preview.setAttribute('src',r);h(q);}},setup:function(q,r){if(q==a){var s=r.getAttribute('_cke_saved_src')||r.getAttribute('src'),t=this;this.getDialog().dontResetSize=true;setTimeout(function(){t.setValue(s);t.focus();},0);}},commit:function(q,r){var s=this;if(q==a&&(s.getValue()||s.isChanged())){r.setAttribute('_cke_saved_src',decodeURI(s.getValue()));r.setAttribute('src',decodeURI(s.getValue()));}else if(q==d){r.setAttribute('src','');r.removeAttribute('src');}}},{type:'button',id:'browse',align:'center',label:m.lang.common.browseServer,hidden:true,filebrowser:'info:txtUrl'}]}]},{id:'txtAlt',type:'text',label:m.lang.image.alt,accessKey:'A','default':'',onChange:function(){h(this.getDialog());},setup:function(q,r){if(q==a)this.setValue(r.getAttribute('alt'));},commit:function(q,r){var s=this;if(q==a){if(s.getValue()||s.isChanged())r.setAttribute('alt',s.getValue());}else if(q==c)r.setAttribute('alt',s.getValue());else if(q==d)r.removeAttribute('alt');}},{type:'hbox',widths:['140px','240px'],children:[{type:'vbox',padding:10,children:[{type:'hbox',widths:['70%','30%'],children:[{type:'vbox',padding:1,children:[{type:'text',width:'40px',id:'txtWidth',labelLayout:'horizontal',label:m.lang.image.width,onKeyUp:g,validate:function(){var q=this.getValue().match(f);if(!q)alert(m.lang.common.validateNumberFailed);return!!q;},setup:k,commit:function(q,r){var v=this;if(q==a){var s=v.getValue();if(s)r.setAttribute('width',s);else if(!s&&v.isChanged())r.removeAttribute('width');}else if(q==c){s=v.getValue();var t=s.match(e);if(!t){var u=v.getDialog().originalElement;if(u.getCustomData('isReady')=='true')r.setStyle('width',u.$.width+'px');
9
+ }else r.setStyle('width',s+'px');}else if(q==d){r.setStyle('width','0px');r.removeAttribute('width');r.removeStyle('width');}}},{type:'text',id:'txtHeight',width:'40px',labelLayout:'horizontal',label:m.lang.image.height,onKeyUp:g,validate:function(){var q=this.getValue().match(f);if(!q)alert(m.lang.common.validateNumberFailed);return!!q;},setup:k,commit:function(q,r){var v=this;if(q==a){var s=v.getValue();if(s)r.setAttribute('height',s);else if(!s&&v.isChanged())r.removeAttribute('height');}else if(q==c){s=v.getValue();var t=s.match(e);if(!t){var u=v.getDialog().originalElement;if(u.getCustomData('isReady')=='true')r.setStyle('height',u.$.height+'px');}else r.setStyle('height',s+'px');}else if(q==d){r.setStyle('height','0px');r.removeAttribute('height');r.removeStyle('height');}}}]},{type:'html',style:'margin-top:10px;width:40px;height:40px;',onLoad:function(){var q=CKEDITOR.document.getById('btnResetSize'),r=CKEDITOR.document.getById('btnLockSizes');if(q){q.on('click',function(){j(this);},this.getDialog());q.on('mouseover',function(){this.addClass('cke_btn_over');},q);q.on('mouseout',function(){this.removeClass('cke_btn_over');},q);}if(r){r.on('click',function(){var w=this;var s=i(w),t=w.originalElement,u=w.getValueOf('info','txtWidth');if(t.getCustomData('isReady')=='true'&&u){var v=t.$.height/t.$.width*u;if(!isNaN(v)){w.setValueOf('info','txtHeight',Math.round(v));h(w);}}},this.getDialog());r.on('mouseover',function(){this.addClass('cke_btn_over');},r);r.on('mouseout',function(){this.removeClass('cke_btn_over');},r);}},html:'<div><a href="javascript:void(0)" tabindex="-1" title="'+m.lang.image.lockRatio+'" class="cke_btn_locked" id="btnLockSizes"></a>'+'<a href="javascript:void(0)" tabindex="-1" title="'+m.lang.image.resetSize+'" class="cke_btn_reset" id="btnResetSize"></a>'+'</div>'}]},{type:'vbox',padding:1,children:[{type:'text',id:'txtBorder',width:'60px',labelLayout:'horizontal',label:m.lang.image.border,'default':'',onKeyUp:function(){h(this.getDialog());},validate:function(){var q=CKEDITOR.dialog.validate.integer(m.lang.common.validateNumberFailed);return q.apply(this);},setup:function(q,r){if(q==a)this.setValue(r.getAttribute('border'));},commit:function(q,r){var t=this;if(q==a){if(t.getValue()||t.isChanged())r.setAttribute('border',t.getValue());}else if(q==c){var s=parseInt(t.getValue(),10);s=isNaN(s)?0:s;r.setAttribute('border',s);r.setStyle('border',s+'px solid black');}else if(q==d){r.removeAttribute('border');r.removeStyle('border');}}},{type:'text',id:'txtHSpace',width:'60px',labelLayout:'horizontal',label:m.lang.image.hSpace,'default':'',onKeyUp:function(){h(this.getDialog());
10
+ },validate:function(){var q=CKEDITOR.dialog.validate.integer(m.lang.common.validateNumberFailed);return q.apply(this);},setup:function(q,r){if(q==a){var s=r.getAttribute('hspace');if(s!=-1)this.setValue(s);}},commit:function(q,r){var t=this;if(q==a){if(t.getValue()||t.isChanged())r.setAttribute('hspace',t.getValue());}else if(q==c){var s=parseInt(t.getValue(),10);s=isNaN(s)?0:s;r.setAttribute('hspace',s);r.setStyle('margin-left',s+'px');r.setStyle('margin-right',s+'px');}else if(q==d){r.removeAttribute('hspace');r.removeStyle('margin-left');r.removeStyle('margin-right');}}},{type:'text',id:'txtVSpace',width:'60px',labelLayout:'horizontal',label:m.lang.image.vSpace,'default':'',onKeyUp:function(){h(this.getDialog());},validate:function(){var q=CKEDITOR.dialog.validate.integer(m.lang.common.validateNumberFailed);return q.apply(this);},setup:function(q,r){if(q==a)this.setValue(r.getAttribute('vspace'));},commit:function(q,r){var t=this;if(q==a){if(t.getValue()||t.isChanged())r.setAttribute('vspace',t.getValue());}else if(q==c){var s=parseInt(t.getValue(),10);s=isNaN(s)?0:s;r.setAttribute('vspace',t.getValue());r.setStyle('margin-top',s+'px');r.setStyle('margin-bottom',s+'px');}else if(q==d){r.removeAttribute('vspace');r.removeStyle('margin-top');r.removeStyle('margin-bottom');}}},{id:'cmbAlign',type:'select',labelLayout:'horizontal',widths:['35%','65%'],style:'width:90px',label:m.lang.image.align,'default':'',items:[[m.lang.common.notSet,''],[m.lang.image.alignLeft,'left'],[m.lang.image.alignAbsBottom,'absBottom'],[m.lang.image.alignAbsMiddle,'absMiddle'],[m.lang.image.alignBaseline,'baseline'],[m.lang.image.alignBottom,'bottom'],[m.lang.image.alignMiddle,'middle'],[m.lang.image.alignRight,'right'],[m.lang.image.alignTextTop,'textTop'],[m.lang.image.alignTop,'top']],onChange:function(){h(this.getDialog());},setup:function(q,r){if(q==a)this.setValue(r.getAttribute('align'));},commit:function(q,r){var s=this.getValue();if(q==a){if(s||this.isChanged())r.setAttribute('align',s);}else if(q==c){r.setAttribute('align',this.getValue());if(s=='absMiddle'||s=='middle')r.setStyle('vertical-align','middle');else if(s=='top'||s=='textTop')r.setStyle('vertical-align','top');else r.removeStyle('vertical-align');if(s=='right'||s=='left')r.setStyle('styleFloat',s);else r.removeStyle('styleFloat');}else if(q==d)r.removeAttribute('align');}}]}]},{type:'vbox',height:'250px',children:[{type:'html',style:'width:95%;',html:'<div>'+CKEDITOR.tools.htmlEncode(m.lang.image.preview)+'<br>'+'<div id="ImagePreviewLoader" style="display:none"><div class="loading">&nbsp;</div></div>'+'<div id="ImagePreviewBox">'+'<a href="javascript:void(0)" target="_blank" onclick="return false;" id="previewLink">'+'<img id="previewImage" src="" alt="" /></a>Lorem ipsum dolor sit amet, consectetuer adipiscing elit. '+'Maecenas feugiat consequat diam. Maecenas metus. Vivamus diam purus, cursus a, commodo non, facilisis vitae, '+'nulla. Aenean dictum lacinia tortor. Nunc iaculis, nibh non iaculis aliquam, orci felis euismod neque, sed ornare massa mauris sed velit. Nulla pretium mi et risus. Fusce mi pede, tempor id, cursus ac, ullamcorper nec, enim. Sed tortor. Curabitur molestie. Duis velit augue, condimentum at, ultrices a, luctus ut, orci. Donec pellentesque egestas eros. Integer cursus, augue in cursus faucibus, eros pede bibendum sem, in tempus tellus justo quis ligula. Etiam eget tortor. Vestibulum rutrum, est ut placerat elementum, lectus nisl aliquam velit, tempor aliquam eros nunc nonummy metus. In eros metus, gravida a, gravida sed, lobortis id, turpis. Ut ultrices, ipsum at venenatis fringilla, sem nulla lacinia tellus, eget aliquet turpis mauris non enim. Nam turpis. Suspendisse lacinia. Curabitur ac tortor ut ipsum egestas elementum. Nunc imperdiet gravida mauris.'+'</div>'+'</div>'}]}]}]},{id:'Link',label:m.lang.link.title,padding:0,elements:[{id:'txtUrl',type:'text',label:m.lang.image.url,style:'width: 100%','default':'',setup:function(q,r){if(q==b){var s=r.getAttribute('_cke_saved_href');
11
+ if(!s)s=r.getAttribute('href');this.setValue(s);}},commit:function(q,r){var s=this;if(q==b)if(s.getValue()||s.isChanged()){r.setAttribute('_cke_saved_href',decodeURI(s.getValue()));r.setAttribute('href','javascript:void(0)/*'+CKEDITOR.tools.getNextNumber()+'*/');if(s.getValue()||!m.config.image_removeLinkByEmptyURL)s.getDialog().addLink=true;}}},{type:'button',id:'browse',filebrowser:'Link:txtUrl',style:'float:right',hidden:true,label:m.lang.common.browseServer},{id:'cmbTarget',type:'select',label:m.lang.link.target,'default':'',items:[[m.lang.link.targetNotSet,''],[m.lang.link.targetNew,'_blank'],[m.lang.link.targetTop,'_top'],[m.lang.link.targetSelf,'_self'],[m.lang.link.targetParent,'_parent']],setup:function(q,r){if(q==b)this.setValue(r.getAttribute('target'));},commit:function(q,r){if(q==b)if(this.getValue()||this.isChanged())r.setAttribute('target',this.getValue());}}]},{id:'Upload',hidden:true,filebrowser:'uploadButton',label:m.lang.image.upload,elements:[{type:'file',id:'upload',label:m.lang.image.btnUpload,style:'height:40px',size:38},{type:'fileButton',id:'uploadButton',filebrowser:'info:txtUrl',label:m.lang.image.btnUpload,'for':['Upload','upload']}]},{id:'advanced',label:m.lang.common.advancedTab,elements:[{type:'hbox',widths:['50%','25%','25%'],children:[{type:'text',id:'linkId',label:m.lang.common.id,setup:function(q,r){if(q==a)this.setValue(r.getAttribute('id'));},commit:function(q,r){if(q==a)if(this.getValue()||this.isChanged())r.setAttribute('id',this.getValue());}},{id:'cmbLangDir',type:'select',style:'width : 100px;',label:m.lang.common.langDir,'default':'',items:[[m.lang.common.notSet,''],[m.lang.common.langDirLtr,'ltr'],[m.lang.common.langDirRtl,'rtl']],setup:function(q,r){if(q==a)this.setValue(r.getAttribute('dir'));},commit:function(q,r){if(q==a)if(this.getValue()||this.isChanged())r.setAttribute('dir',this.getValue());}},{type:'text',id:'txtLangCode',label:m.lang.common.langCode,'default':'',setup:function(q,r){if(q==a)this.setValue(r.getAttribute('lang'));},commit:function(q,r){if(q==a)if(this.getValue()||this.isChanged())r.setAttribute('lang',this.getValue());}}]},{type:'text',id:'txtGenLongDescr',label:m.lang.common.longDescr,setup:function(q,r){if(q==a)this.setValue(r.getAttribute('longDesc'));},commit:function(q,r){if(q==a)if(this.getValue()||this.isChanged())r.setAttribute('longDesc',this.getValue());}},{type:'hbox',widths:['50%','50%'],children:[{type:'text',id:'txtGenClass',label:m.lang.common.cssClass,'default':'',setup:function(q,r){if(q==a)this.setValue(r.getAttribute('class'));
12
+ },commit:function(q,r){if(q==a)if(this.getValue()||this.isChanged())r.setAttribute('class',this.getValue());}},{type:'text',id:'txtGenTitle',label:m.lang.common.advisoryTitle,'default':'',onChange:function(){h(this.getDialog());},setup:function(q,r){if(q==a)this.setValue(r.getAttribute('title'));},commit:function(q,r){var s=this;if(q==a){if(s.getValue()||s.isChanged())r.setAttribute('title',s.getValue());}else if(q==c)r.setAttribute('title',s.getValue());else if(q==d)r.removeAttribute('title');}}]},{type:'text',id:'txtdlgGenStyle',label:m.lang.common.cssStyle,'default':'',setup:function(q,r){if(q==a){var s=r.getAttribute('style');if(!s&&r.$.style.cssText)s=r.$.style.cssText;this.setValue(s);var t=r.$.style.height,u=r.$.style.width,v=(t?t:'').match(e),w=(u?u:'').match(e);this.attributesInStyle={height:!!v,width:!!w};}},commit:function(q,r){var u=this;if(q==a&&(u.getValue()||u.isChanged())){r.setAttribute('style',u.getValue());var s=r.getAttribute('height'),t=r.getAttribute('width');if(u.attributesInStyle&&u.attributesInStyle.height)if(s){if(s.match(e)[2]=='%')r.setStyle('height',s+'%');else r.setStyle('height',s+'px');}else r.removeStyle('height');if(u.attributesInStyle&&u.attributesInStyle.width)if(t){if(t.match(e)[2]=='%')r.setStyle('width',t+'%');else r.setStyle('width',t+'px');}else r.removeStyle('width');}}}]}]};};CKEDITOR.dialog.add('image',function(m){return l(m,'image');});CKEDITOR.dialog.add('imagebutton',function(m){return l(m,'imagebutton');});})();
@@ -0,0 +1,6 @@
1
+ /*
2
+ Copyright (c) 2003-2009, CKSource - Frederico Knabben. All rights reserved.
3
+ For licensing, see LICENSE.html or http://ckeditor.com/license
4
+ */
5
+
6
+ CKEDITOR.plugins.add('image',{init:function(a){var b='image';CKEDITOR.dialog.add(b,this.path+'dialogs/image.js');a.addCommand(b,new CKEDITOR.dialogCommand(b));a.ui.addButton('Image',{label:a.lang.common.image,command:b});if(a.addMenuItems)a.addMenuItems({image:{label:a.lang.image.menu,command:'image',group:'image'}});if(a.contextMenu)a.contextMenu.addListener(function(c,d){if(!c||!c.is('img')||c.getAttribute('_cke_realelement'))return null;return{image:CKEDITOR.TRISTATE_OFF};});}});CKEDITOR.config.image_removeLinkByEmptyURL=true;
@@ -0,0 +1,7 @@
1
+ /*
2
+ Copyright (c) 2003-2009, CKSource - Frederico Knabben. All rights reserved.
3
+ For licensing, see LICENSE.html or http://ckeditor.com/license
4
+ */
5
+
6
+ (function(){var a={ol:1,ul:1};function b(g,h){g.getCommand(this.name).setState(h);};function c(g){var r=this;var h=g.data.path.elements,i,j,k=g.editor;for(var l=0;l<h.length;l++){if(h[l].getName()=='li'){j=h[l];continue;}if(a[h[l].getName()]){i=h[l];break;}}if(i)if(r.name=='outdent')return b.call(r,k,CKEDITOR.TRISTATE_OFF);else{while(j&&(j=j.getPrevious(CKEDITOR.dom.walker.whitespaces(true))))if(j.getName&&j.getName()=='li')return b.call(r,k,CKEDITOR.TRISTATE_OFF);return b.call(r,k,CKEDITOR.TRISTATE_DISABLED);}if(!r.useIndentClasses&&r.name=='indent')return b.call(r,k,CKEDITOR.TRISTATE_OFF);var m=g.data.path,n=m.block||m.blockLimit;if(!n)return b.call(r,k,CKEDITOR.TRISTATE_DISABLED);if(r.useIndentClasses){var o=n.$.className.match(r.classNameRegex),p=0;if(o){o=o[1];p=r.indentClassMap[o];}if(r.name=='outdent'&&!p||r.name=='indent'&&p==k.config.indentClasses.length)return b.call(r,k,CKEDITOR.TRISTATE_DISABLED);return b.call(r,k,CKEDITOR.TRISTATE_OFF);}else{var q=parseInt(n.getStyle(r.indentCssProperty),10);if(isNaN(q))q=0;if(q<=0)return b.call(r,k,CKEDITOR.TRISTATE_DISABLED);return b.call(r,k,CKEDITOR.TRISTATE_OFF);}};function d(g,h,i){var j=h.startContainer,k=h.endContainer;while(j&&!j.getParent().equals(i))j=j.getParent();while(k&&!k.getParent().equals(i))k=k.getParent();if(!j||!k)return;var l=j,m=[],n=false;while(!n){if(l.equals(k))n=true;m.push(l);l=l.getNext();}if(m.length<1)return;var o=i.getParents(true);for(var p=0;p<o.length;p++)if(o[p].getName&&a[o[p].getName()]){i=o[p];break;}var q=this.name=='indent'?1:-1,r=m[0],s=m[m.length-1],t={},u=CKEDITOR.plugins.list.listToArray(i,t),v=u[s.getCustomData('listarray_index')].indent;for(p=r.getCustomData('listarray_index');p<=s.getCustomData('listarray_index');p++)u[p].indent+=q;for(p=s.getCustomData('listarray_index')+1;p<u.length&&u[p].indent>v;p++)u[p].indent+=q;var w=CKEDITOR.plugins.list.arrayToList(u,t,null,g.config.enterMode,0);if(this.name=='outdent'){var x;if((x=i.getParent())&&(x.is('li'))){var y=w.listNode.getChildren(),z=[],A=y.count(),B;for(p=A-1;p>=0;p--)if((B=y.getItem(p))&&(B.is&&B.is('li')))z.push(B);}}if(w)w.listNode.replace(i);if(z&&z.length)for(p=0;p<z.length;p++){var C=z[p],D=C;while((D=D.getNext())&&(D.is&&D.getName() in a))C.append(D);C.insertAfter(x);}CKEDITOR.dom.element.clearAllMarkers(t);};function e(g,h){var p=this;var i=h.createIterator(),j=g.config.enterMode;i.enforceRealBlocks=true;i.enlargeBr=j!=CKEDITOR.ENTER_BR;var k;while(k=i.getNextParagraph())if(p.useIndentClasses){var l=k.$.className.match(p.classNameRegex),m=0;
7
+ if(l){l=l[1];m=p.indentClassMap[l];}if(p.name=='outdent')m--;elsem++;m=Math.min(m,g.config.indentClasses.length);m=Math.max(m,0);var n=CKEDITOR.tools.ltrim(k.$.className.replace(p.classNameRegex,''));if(m<1)k.$.className=n;else k.addClass(g.config.indentClasses[m-1]);}else{var o=parseInt(k.getStyle(p.indentCssProperty),10);if(isNaN(o))o=0;o+=(p.name=='indent'?1:-1)*(g.config.indentOffset);o=Math.max(o,0);o=Math.ceil(o/g.config.indentOffset)*g.config.indentOffset;k.setStyle(p.indentCssProperty,o?o+g.config.indentUnit:'');if(k.getAttribute('style')==='')k.removeAttribute('style');}};function f(g,h){var j=this;j.name=h;j.useIndentClasses=g.config.indentClasses&&g.config.indentClasses.length>0;if(j.useIndentClasses){j.classNameRegex=new RegExp('(?:^|\\s+)('+g.config.indentClasses.join('|')+')(?=$|\\s)');j.indentClassMap={};for(var i=0;i<g.config.indentClasses.length;i++)j.indentClassMap[g.config.indentClasses[i]]=i+1;}else j.indentCssProperty=g.config.contentsLangDirection=='ltr'?'margin-left':'margin-right';};f.prototype={exec:function(g){var h=g.getSelection(),i=h&&h.getRanges()[0];if(!h||!i)return;var j=h.createBookmarks(true),k=i.getCommonAncestor();while(k&&!(k.type==CKEDITOR.NODE_ELEMENT&&a[k.getName()]))k=k.getParent();if(k)d.call(this,g,i,k);else e.call(this,g,i);g.focus();g.forceNextSelectionCheck();h.selectBookmarks(j);}};CKEDITOR.plugins.add('indent',{init:function(g){var h=new f(g,'indent'),i=new f(g,'outdent');g.addCommand('indent',h);g.addCommand('outdent',i);g.ui.addButton('Indent',{label:g.lang.indent,command:'indent'});g.ui.addButton('Outdent',{label:g.lang.outdent,command:'outdent'});g.on('selectionChange',CKEDITOR.tools.bind(c,h));g.on('selectionChange',CKEDITOR.tools.bind(c,i));},requires:['domiterator','list']});})();CKEDITOR.tools.extend(CKEDITOR.config,{indentOffset:40,indentUnit:'px',indentClasses:null});
@@ -0,0 +1,6 @@
1
+ /*
2
+ Copyright (c) 2003-2009, CKSource - Frederico Knabben. All rights reserved.
3
+ For licensing, see LICENSE.html or http://ckeditor.com/license
4
+ */
5
+
6
+ (function(){var a=/(-moz-|-webkit-|start|auto)/i;function b(e,f){var g=f.block||f.blockLimit;if(!g||g.getName()=='body')return CKEDITOR.TRISTATE_OFF;var h=g.getComputedStyle('text-align').replace(a,'');if(!h&&this.isDefaultAlign||h==this.value)return CKEDITOR.TRISTATE_ON;return CKEDITOR.TRISTATE_OFF;};function c(e){var f=e.editor.getCommand(this.name);f.state=b.call(this,e.editor,e.data.path);f.fire('state');};function d(e,f,g){var j=this;j.name=f;j.value=g;var h=e.config.contentsLangDirection;j.isDefaultAlign=g=='left'&&h=='ltr'||g=='right'&&h=='rtl';var i=e.config.justifyClasses;if(i){switch(g){case 'left':j.cssClassName=i[0];break;case 'center':j.cssClassName=i[1];break;case 'right':j.cssClassName=i[2];break;case 'justify':j.cssClassName=i[3];break;}j.cssClassRegex=new RegExp('(?:^|\\s+)(?:'+i.join('|')+')(?=$|\\s)');}};d.prototype={exec:function(e){var n=this;var f=e.getSelection();if(!f)return;var g=f.createBookmarks(),h=f.getRanges(),i=n.cssClassName,j,k;for(var l=h.length-1;l>=0;l--){j=h[l].createIterator();while(k=j.getNextParagraph()){k.removeAttribute('align');if(i){var m=k.$.className=CKEDITOR.tools.ltrim(k.$.className.replace(n.cssClassRegex,''));if(n.state==CKEDITOR.TRISTATE_OFF&&!n.isDefaultAlign)k.addClass(i);else if(!m)k.removeAttribute('class');}else if(n.state==CKEDITOR.TRISTATE_OFF&&!n.isDefaultAlign)k.setStyle('text-align',n.value);else k.removeStyle('text-align');}}e.focus();e.forceNextSelectionCheck();f.selectBookmarks(g);}};CKEDITOR.plugins.add('justify',{init:function(e){var f=new d(e,'justifyleft','left'),g=new d(e,'justifycenter','center'),h=new d(e,'justifyright','right'),i=new d(e,'justifyblock','justify');e.addCommand('justifyleft',f);e.addCommand('justifycenter',g);e.addCommand('justifyright',h);e.addCommand('justifyblock',i);e.ui.addButton('JustifyLeft',{label:e.lang.justify.left,command:'justifyleft'});e.ui.addButton('JustifyCenter',{label:e.lang.justify.center,command:'justifycenter'});e.ui.addButton('JustifyRight',{label:e.lang.justify.right,command:'justifyright'});e.ui.addButton('JustifyBlock',{label:e.lang.justify.block,command:'justifyblock'});e.on('selectionChange',CKEDITOR.tools.bind(c,f));e.on('selectionChange',CKEDITOR.tools.bind(c,h));e.on('selectionChange',CKEDITOR.tools.bind(c,g));e.on('selectionChange',CKEDITOR.tools.bind(c,i));},requires:['domiterator']});})();CKEDITOR.tools.extend(CKEDITOR.config,{justifyClasses:null});
@@ -0,0 +1,6 @@
1
+ /*
2
+ Copyright (c) 2003-2009, CKSource - Frederico Knabben. All rights reserved.
3
+ For licensing, see LICENSE.html or http://ckeditor.com/license
4
+ */
5
+
6
+ CKEDITOR.plugins.add('keystrokes',{beforeInit:function(a){a.keystrokeHandler=new CKEDITOR.keystrokeHandler(a);a.specialKeys={};},init:function(a){var b=a.config.keystrokes,c=a.config.blockedKeystrokes,d=a.keystrokeHandler.keystrokes,e=a.keystrokeHandler.blockedKeystrokes;for(var f=0;f<b.length;f++)d[b[f][0]]=b[f][1];for(f=0;f<c.length;f++)e[c[f]]=1;}});CKEDITOR.keystrokeHandler=function(a){var b=this;if(a.keystrokeHandler)return a.keystrokeHandler;b.keystrokes={};b.blockedKeystrokes={};b._={editor:a};return b;};(function(){var a,b=function(d){d=d.data;var e=d.getKeystroke(),f=this.keystrokes[e],g=this._.editor;a=g.fire('key',{keyCode:e})===true;if(!a){if(f){var h={from:'keystrokeHandler'};a=g.execCommand(f,h)!==false;}if(!a){var i=g.specialKeys[e];a=i&&i(g)===true;if(!a)a=!!this.blockedKeystrokes[e];}}if(a)d.preventDefault(true);return!a;},c=function(d){if(a){a=false;d.data.preventDefault(true);}};CKEDITOR.keystrokeHandler.prototype={attach:function(d){d.on('keydown',b,this);if(CKEDITOR.env.opera||CKEDITOR.env.gecko&&CKEDITOR.env.mac)d.on('keypress',c,this);}};})();CKEDITOR.config.blockedKeystrokes=[CKEDITOR.CTRL+66,CKEDITOR.CTRL+73,CKEDITOR.CTRL+85];CKEDITOR.config.keystrokes=[[CKEDITOR.ALT+121,'toolbarFocus'],[CKEDITOR.ALT+122,'elementsPathFocus'],[CKEDITOR.SHIFT+121,'contextMenu'],[CKEDITOR.CTRL+90,'undo'],[CKEDITOR.CTRL+89,'redo'],[CKEDITOR.CTRL+CKEDITOR.SHIFT+90,'redo'],[CKEDITOR.CTRL+76,'link'],[CKEDITOR.CTRL+66,'bold'],[CKEDITOR.CTRL+73,'italic'],[CKEDITOR.CTRL+85,'underline'],[CKEDITOR.ALT+109,'toolbarCollapse']];
@@ -0,0 +1,6 @@
1
+ /*
2
+ Copyright (c) 2003-2009, CKSource - Frederico Knabben. All rights reserved.
3
+ For licensing, see LICENSE.html or http://ckeditor.com/license
4
+ */
5
+
6
+ CKEDITOR.dialog.add('anchor',function(a){var b=function(c,d,e){var g=this;g.editMode=true;g.editObj=e;var f=g.editObj.getAttribute('name');if(f)g.setValueOf('info','txtName',f);else g.setValueOf('info','txtName','');};return{title:a.lang.anchor.title,minWidth:300,minHeight:60,onOk:function(){var f=this;var c=f.getValueOf('info','txtName'),d=CKEDITOR.env.ie?a.document.createElement('<a name="'+CKEDITOR.tools.htmlEncode(c)+'">'):a.document.createElement('a');if(f.editMode){f.editObj.copyAttributes(d,{name:1});f.editObj.moveChildren(d);}d.removeAttribute('_cke_saved_name');d.setAttribute('name',c);var e=a.createFakeElement(d,'cke_anchor','anchor');if(!f.editMode)a.insertElement(e);else{e.replace(f.fakeObj);a.getSelection().selectElement(e);}return true;},onShow:function(){var e=this;e.editObj=false;e.fakeObj=false;e.editMode=false;var c=a.getSelection(),d=c.getSelectedElement();if(d&&d.getAttribute('_cke_real_element_type')&&d.getAttribute('_cke_real_element_type')=='anchor'){e.fakeObj=d;d=a.restoreRealElement(e.fakeObj);b.apply(e,[a,c,d]);c.selectElement(e.fakeObj);}e.getContentElement('info','txtName').focus();},contents:[{id:'info',label:a.lang.anchor.title,accessKey:'I',elements:[{type:'text',id:'txtName',label:a.lang.anchor.name,validate:function(){if(!this.getValue()){alert(a.lang.anchor.errorName);return false;}return true;}}]}]};});
@@ -0,0 +1,11 @@
1
+ /*
2
+ Copyright (c) 2003-2009, CKSource - Frederico Knabben. All rights reserved.
3
+ For licensing, see LICENSE.html or http://ckeditor.com/license
4
+ */
5
+
6
+ CKEDITOR.dialog.add('link',function(a){var b=function(){var s=this.getDialog(),t=s.getContentElement('target','popupFeatures'),u=s.getContentElement('target','linkTargetName'),v=this.getValue();if(!t||!u)return;t=t.getElement();if(v=='popup'){t.show();u.setLabel(a.lang.link.targetPopupName);}else{t.hide();u.setLabel(a.lang.link.targetFrameName);this.getDialog().setValueOf('target','linkTargetName',v.charAt(0)=='_'?v:'');}},c=function(){var s=this.getDialog(),t=['urlOptions','anchorOptions','emailOptions'],u=this.getValue(),v=s.definition.getContents('upload').hidden;if(u=='url'){if(a.config.linkShowTargetTab)s.showPage('target');if(!v)s.showPage('upload');}else{s.hidePage('target');if(!v)s.hidePage('upload');}for(var w=0;w<t.length;w++){var x=s.getContentElement('info',t[w]);if(!x)continue;x=x.getElement().getParent().getParent();if(t[w]==u+'Options')x.show();else x.hide();}},d=/^mailto:([^?]+)(?:\?(.+))?$/,e=/subject=([^;?:@&=$,\/]*)/,f=/body=([^;?:@&=$,\/]*)/,g=/^#(.*)$/,h=/^((?:http|https|ftp|news):\/\/)?(.*)$/,i=/^(_(?:self|top|parent|blank))$/,j=/\s*window.open\(\s*this\.href\s*,\s*(?:'([^']*)'|null)\s*,\s*'([^']*)'\s*\)\s*;\s*return\s*false;*\s*/,k=/(?:^|,)([^=]+)=(\d+|yes|no)/gi,l=function(s,t){var u=t?t.getAttribute('_cke_saved_href')||t.getAttribute('href'):'',v='',w='',x=false,y={};if(u){v=u.match(d);w=u.match(g);x=u.match(h);}if(v){var z=u.match(e),A=u.match(f);y.type='email';y.email={};y.email.address=v[1];z&&(y.email.subject=decodeURIComponent(z[1]));A&&(y.email.body=decodeURIComponent(A[1]));}else if(w){y.type='anchor';y.anchor={};y.anchor.name=y.anchor.id=w[1];}else if(u&&x){y.type='url';y.url={};y.url.protocol=x[1];y.url.url=x[2];}else y.type='url';if(t){var B=t.getAttribute('target');y.target={};y.adv={};if(!B){var C=t.getAttribute('_cke_pa_onclick')||t.getAttribute('onclick'),D=C&&C.match(j);if(D){y.target.type='popup';y.target.name=D[1];var E;while(E=k.exec(D[2]))if(E[2]=='yes'||E[2]=='1')y.target[E[1]]=true;else if(isFinite(E[2]))y.target[E[1]]=E[2];}}else{var F=B.match(i);if(F)y.target.type=y.target.name=B;else{y.target.type='frame';y.target.name=B;}}var G=this,H=function(N,O){var P=t.getAttribute(O);if(P!==null)y.adv[N]=P||'';};H('advId','id');H('advLangDir','dir');H('advAccessKey','accessKey');H('advName','name');H('advLangCode','lang');H('advTabIndex','tabindex');H('advTitle','title');H('advContentType','type');H('advCSSClasses','class');H('advCharset','charset');H('advStyles','style');}var I=s.document.getElementsByTag('img'),J=new CKEDITOR.dom.nodeList(s.document.$.anchors),K=y.anchors=[];
7
+ for(var L=0;L<I.count();L++){var M=I.getItem(L);if(M.getAttribute('_cke_realelement')&&M.getAttribute('_cke_real_element_type')=='anchor')K.push(s.restoreRealElement(M));}for(L=0;L<J.count();L++)K.push(J.getItem(L));for(L=0;L<K.length;L++){M=K[L];K[L]={name:M.getAttribute('name'),id:M.getAttribute('id')};}this._.selectedElement=t;return y;},m=function(s,t){if(t[s])this.setValue(t[s][this.id]||'');},n=function(s){return m.call(this,'target',s);},o=function(s){return m.call(this,'adv',s);},p=function(s,t){if(!t[s])t[s]={};t[s][this.id]=this.getValue()||'';},q=function(s){return p.call(this,'target',s);},r=function(s){return p.call(this,'adv',s);};return{title:a.lang.link.title,minWidth:350,minHeight:230,contents:[{id:'info',label:a.lang.link.info,title:a.lang.link.info,elements:[{id:'linkType',type:'select',label:a.lang.link.type,'default':'url',items:[[a.lang.common.url,'url'],[a.lang.link.toAnchor,'anchor'],[a.lang.link.toEmail,'email']],onChange:c,setup:function(s){if(s.type)this.setValue(s.type);},commit:function(s){s.type=this.getValue();}},{type:'vbox',id:'urlOptions',children:[{type:'hbox',widths:['25%','75%'],children:[{id:'protocol',type:'select',label:a.lang.common.protocol,'default':'http://',style:'width : 100%;',items:[['http://'],['https://'],['ftp://'],['news://'],['<other>','']],setup:function(s){if(s.url)this.setValue(s.url.protocol);},commit:function(s){if(!s.url)s.url={};s.url.protocol=this.getValue();}},{type:'text',id:'url',label:a.lang.common.url,onLoad:function(){this.allowOnChange=true;},onKeyUp:function(){var x=this;x.allowOnChange=false;var s=x.getDialog().getContentElement('info','protocol'),t=x.getValue(),u=/^(http|https|ftp|news):\/\/(?=.)/gi,v=/^((javascript:)|[#\/\.])/gi,w=u.exec(t);if(w){x.setValue(t.substr(w[0].length));s.setValue(w[0].toLowerCase());}else if(v.test(t))s.setValue('');x.allowOnChange=true;},onChange:function(){if(this.allowOnChange)this.onKeyUp();},validate:function(){var s=this.getDialog();if(s.getContentElement('info','linkType')&&s.getValueOf('info','linkType')!='url')return true;if(this.getDialog().fakeObj)return true;var t=CKEDITOR.dialog.validate.notEmpty(a.lang.link.noUrl);return t.apply(this);},setup:function(s){var u=this;u.allowOnChange=false;if(s.url)u.setValue(s.url.url);u.allowOnChange=true;var t=u.getDialog().getContentElement('info','linkType');if(t&&t.getValue()=='url')u.select();},commit:function(s){if(!s.url)s.url={};s.url.url=this.getValue();this.allowOnChange=false;}}],setup:function(s){if(!this.getDialog().getContentElement('info','linkType'))this.getElement().show();
8
+ }},{type:'button',id:'browse',hidden:'true',filebrowser:'info:url',label:a.lang.common.browseServer}]},{type:'vbox',id:'anchorOptions',width:260,align:'center',padding:0,children:[{type:'html',id:'selectAnchorText',html:CKEDITOR.tools.htmlEncode(a.lang.link.selectAnchor),setup:function(s){if(s.anchors.length>0)this.getElement().show();else this.getElement().hide();}},{type:'html',id:'noAnchors',style:'text-align: center;',html:'<div>'+CKEDITOR.tools.htmlEncode(a.lang.link.noAnchors)+'</div>',setup:function(s){if(s.anchors.length<1)this.getElement().show();else this.getElement().hide();}},{type:'hbox',id:'selectAnchor',children:[{type:'select',id:'anchorName','default':'',label:a.lang.link.anchorName,style:'width: 100%;',items:[['']],setup:function(s){var v=this;v.clear();v.add('');for(var t=0;t<s.anchors.length;t++)if(s.anchors[t].name)v.add(s.anchors[t].name);if(s.anchor)v.setValue(s.anchor.name);var u=v.getDialog().getContentElement('info','linkType');if(u&&u.getValue()=='email')v.focus();},commit:function(s){if(!s.anchor)s.anchor={};s.anchor.name=this.getValue();}},{type:'select',id:'anchorId','default':'',label:a.lang.link.anchorId,style:'width: 100%;',items:[['']],setup:function(s){var u=this;u.clear();u.add('');for(var t=0;t<s.anchors.length;t++)if(s.anchors[t].id)u.add(s.anchors[t].id);if(s.anchor)u.setValue(s.anchor.id);},commit:function(s){if(!s.anchor)s.anchor={};s.anchor.id=this.getValue();}}],setup:function(s){if(s.anchors.length>0)this.getElement().show();else this.getElement().hide();}}],setup:function(s){if(!this.getDialog().getContentElement('info','linkType'))this.getElement().hide();}},{type:'vbox',id:'emailOptions',padding:1,children:[{type:'text',id:'emailAddress',label:a.lang.link.emailAddress,validate:function(){var s=this.getDialog();if(!s.getContentElement('info','linkType')||s.getValueOf('info','linkType')!='email')return true;var t=CKEDITOR.dialog.validate.notEmpty(a.lang.link.noEmail);return t.apply(this);},setup:function(s){if(s.email)this.setValue(s.email.address);var t=this.getDialog().getContentElement('info','linkType');if(t&&t.getValue()=='email')this.select();},commit:function(s){if(!s.email)s.email={};s.email.address=this.getValue();}},{type:'text',id:'emailSubject',label:a.lang.link.emailSubject,setup:function(s){if(s.email)this.setValue(s.email.subject);},commit:function(s){if(!s.email)s.email={};s.email.subject=this.getValue();}},{type:'textarea',id:'emailBody',label:a.lang.link.emailBody,rows:3,'default':'',setup:function(s){if(s.email)this.setValue(s.email.body);
9
+ },commit:function(s){if(!s.email)s.email={};s.email.body=this.getValue();}}],setup:function(s){if(!this.getDialog().getContentElement('info','linkType'))this.getElement().hide();}}]},{id:'target',label:a.lang.link.target,title:a.lang.link.target,elements:[{type:'hbox',widths:['50%','50%'],children:[{type:'select',id:'linkTargetType',label:a.lang.link.target,'default':'notSet',style:'width : 100%;',items:[[a.lang.link.targetNotSet,'notSet'],[a.lang.link.targetFrame,'frame'],[a.lang.link.targetPopup,'popup'],[a.lang.link.targetNew,'_blank'],[a.lang.link.targetTop,'_top'],[a.lang.link.targetSelf,'_self'],[a.lang.link.targetParent,'_parent']],onChange:b,setup:function(s){if(s.target)this.setValue(s.target.type);},commit:function(s){if(!s.target)s.target={};s.target.type=this.getValue();}},{type:'text',id:'linkTargetName',label:a.lang.link.targetFrameName,'default':'',setup:function(s){if(s.target)this.setValue(s.target.name);},commit:function(s){if(!s.target)s.target={};s.target.name=this.getValue();}}]},{type:'vbox',width:260,align:'center',padding:2,id:'popupFeatures',children:[{type:'html',html:CKEDITOR.tools.htmlEncode(a.lang.link.popupFeatures)},{type:'hbox',children:[{type:'checkbox',id:'resizable',label:a.lang.link.popupResizable,setup:n,commit:q},{type:'checkbox',id:'status',label:a.lang.link.popupStatusBar,setup:n,commit:q}]},{type:'hbox',children:[{type:'checkbox',id:'location',label:a.lang.link.popupLocationBar,setup:n,commit:q},{type:'checkbox',id:'toolbar',label:a.lang.link.popupToolbar,setup:n,commit:q}]},{type:'hbox',children:[{type:'checkbox',id:'menubar',label:a.lang.link.popupMenuBar,setup:n,commit:q},{type:'checkbox',id:'fullscreen',label:a.lang.link.popupFullScreen,setup:n,commit:q}]},{type:'hbox',children:[{type:'checkbox',id:'scrollbars',label:a.lang.link.popupScrollBars,setup:n,commit:q},{type:'checkbox',id:'dependent',label:a.lang.link.popupDependent,setup:n,commit:q}]},{type:'hbox',children:[{type:'text',widths:['30%','70%'],labelLayout:'horizontal',label:a.lang.link.popupWidth,id:'width',setup:n,commit:q},{type:'text',labelLayout:'horizontal',widths:['55%','45%'],label:a.lang.link.popupLeft,id:'left',setup:n,commit:q}]},{type:'hbox',children:[{type:'text',labelLayout:'horizontal',widths:['30%','70%'],label:a.lang.link.popupHeight,id:'height',setup:n,commit:q},{type:'text',labelLayout:'horizontal',label:a.lang.link.popupTop,widths:['55%','45%'],id:'top',setup:n,commit:q}]}]}]},{id:'upload',label:a.lang.link.upload,title:a.lang.link.upload,hidden:true,filebrowser:'uploadButton',elements:[{type:'file',id:'upload',label:a.lang.common.upload,style:'height:40px',size:29},{type:'fileButton',id:'uploadButton',label:a.lang.common.uploadSubmit,filebrowser:'info:url','for':['upload','upload']}]},{id:'advanced',label:a.lang.link.advanced,title:a.lang.link.advanced,elements:[{type:'vbox',padding:1,children:[{type:'hbox',widths:['45%','35%','20%'],children:[{type:'text',id:'advId',label:a.lang.link.id,setup:o,commit:r},{type:'select',id:'advLangDir',label:a.lang.link.langDir,'default':'',style:'width:110px',items:[[a.lang.link.langDirNotSet,''],[a.lang.link.langDirLTR,'ltr'],[a.lang.link.langDirRTL,'rtl']],setup:o,commit:r},{type:'text',id:'advAccessKey',width:'80px',label:a.lang.link.acccessKey,maxLength:1,setup:o,commit:r}]},{type:'hbox',widths:['45%','35%','20%'],children:[{type:'text',label:a.lang.link.name,id:'advName',setup:o,commit:r},{type:'text',label:a.lang.link.langCode,id:'advLangCode',width:'110px','default':'',setup:o,commit:r},{type:'text',label:a.lang.link.tabIndex,id:'advTabIndex',width:'80px',maxLength:5,setup:o,commit:r}]}]},{type:'vbox',padding:1,children:[{type:'hbox',widths:['45%','55%'],children:[{type:'text',label:a.lang.link.advisoryTitle,'default':'',id:'advTitle',setup:o,commit:r},{type:'text',label:a.lang.link.advisoryContentType,'default':'',id:'advContentType',setup:o,commit:r}]},{type:'hbox',widths:['45%','55%'],children:[{type:'text',label:a.lang.link.cssClasses,'default':'',id:'advCSSClasses',setup:o,commit:r},{type:'text',label:a.lang.link.charset,'default':'',id:'advCharset',setup:o,commit:r}]},{type:'hbox',children:[{type:'text',label:a.lang.link.styles,'default':'',id:'advStyles',setup:o,commit:r}]}]}]}],onShow:function(){var y=this;
10
+ y.fakeObj=false;var s=y.getParentEditor(),t=s.getSelection(),u=t.getRanges(),v=null,w=y;if(u.length==1){var x=u[0].getCommonAncestor(true);v=x.getAscendant('a',true);if(v&&v.getAttribute('href'))t.selectElement(v);else if((v=x.getAscendant('img',true))&&(v.getAttribute('_cke_real_element_type')&&v.getAttribute('_cke_real_element_type')=='anchor')){y.fakeObj=v;v=s.restoreRealElement(y.fakeObj);t.selectElement(y.fakeObj);}else v=null;}y.setupContent(l.apply(y,[s,v]));},onOk:function(){var s={href:'javascript:void(0)/*'+CKEDITOR.tools.getNextNumber()+'*/'},t=[],u={href:s.href},v=this,w=this.getParentEditor();this.commitContent(u);switch(u.type||'url'){case 'url':var x=u.url&&u.url.protocol!=undefined?u.url.protocol:'http://',y=u.url&&u.url.url||'';s._cke_saved_href=y.indexOf('/')===0?y:x+y;break;case 'anchor':var z=u.anchor&&u.anchor.name,A=u.anchor&&u.anchor.id;s._cke_saved_href='#'+(z||A||'');break;case 'email':var B=u.email&&u.email.address,C=u.email&&encodeURIComponent(u.email.subject||''),D=u.email&&encodeURIComponent(u.email.body||''),E=['mailto:',B];if(C||D){var F=[];E.push('?');C&&F.push('subject='+C);D&&F.push('body='+D);E.push(F.join('&'));}s._cke_saved_href=E.join('');break;default:}if(u.target)if(u.target.type=='popup'){var G=["window.open(this.href, '",u.target.name||'',"', '"],H=['resizable','status','location','toolbar','menubar','fullscreen','scrollbars','dependent'],I=H.length,J=function(T){if(u.target[T])H.push(T+'='+u.target[T]);};for(var K=0;K<I;K++)H[K]=H[K]+(u.target[H[K]]?'=yes':'=no');J('width');J('left');J('height');J('top');G.push(H.join(','),"'); return false;");s[CKEDITOR.env.ie||CKEDITOR.env.webkit?'_cke_pa_onclick':'onclick']=G.join('');}else{if(u.target.type!='notSet'&&u.target.name)s.target=u.target.name;t.push('_cke_pa_onclick','onclick');}if(u.adv){var L=function(T,U){var V=u.adv[T];if(V)s[U]=V;else t.push(U);};if(this._.selectedElement)L('advId','id');L('advLangDir','dir');L('advAccessKey','accessKey');L('advName','name');L('advLangCode','lang');L('advTabIndex','tabindex');L('advTitle','title');L('advContentType','type');L('advCSSClasses','class');L('advCharset','charset');L('advStyles','style');}if(!this._.selectedElement){var M=w.getSelection(),N=M.getRanges();if(N.length==1&&N[0].collapsed){var O=new CKEDITOR.dom.text(s._cke_saved_href,w.document);N[0].insertNode(O);N[0].selectNodeContents(O);M.selectRanges(N);}var P=new CKEDITOR.style({element:'a',attributes:s});P.type=CKEDITOR.STYLE_INLINE;P.apply(w.document);if(u.adv&&u.adv.advId){var Q=this.getParentEditor().document.$.getElementsByTagName('a');
11
+ for(K=0;K<Q.length;K++)if(Q[K].href==s.href){Q[K].id=u.adv.advId;break;}}}else{var R=this._.selectedElement;if(CKEDITOR.env.ie&&s.name!=R.getAttribute('name')){var S=new CKEDITOR.dom.element('<a name="'+CKEDITOR.tools.htmlEncode(s.name)+'">',w.document);M=w.getSelection();R.moveChildren(S);R.copyAttributes(S,{name:1});S.replace(R);R=S;M.selectElement(R);}R.setAttributes(s);R.removeAttributes(t);if(R.getAttribute('name'))R.addClass('cke_anchor');else R.removeClass('cke_anchor');if(this.fakeObj)w.createFakeElement(R,'cke_anchor','anchor').replace(this.fakeObj);delete this._.selectedElement;}},onLoad:function(){if(!a.config.linkShowAdvancedTab)this.hidePage('advanced');if(!a.config.linkShowTargetTab)this.hidePage('target');}};});