glebtv-ckeditor 4.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (596) hide show
  1. data/Gemfile +4 -0
  2. data/MIT-LICENSE +20 -0
  3. data/README.rdoc +202 -0
  4. data/Rakefile +66 -0
  5. data/app/assets/javascripts/ckeditor/application.js +5 -0
  6. data/app/assets/javascripts/ckeditor/init.js +8 -0
  7. data/app/assets/stylesheets/ckeditor/application.css +6 -0
  8. data/app/controllers/ckeditor/application_controller.rb +32 -0
  9. data/app/controllers/ckeditor/attachment_files_controller.rb +24 -0
  10. data/app/controllers/ckeditor/pictures_controller.rb +24 -0
  11. data/app/views/ckeditor/attachment_files/index.html.erb +15 -0
  12. data/app/views/ckeditor/pictures/index.html.erb +15 -0
  13. data/app/views/ckeditor/shared/_asset.html.erb +20 -0
  14. data/app/views/ckeditor/shared/_asset_tmpl.html.erb +22 -0
  15. data/app/views/layouts/ckeditor/application.html.erb +31 -0
  16. data/app/views/rails_admin/main/_form_ckeditor.html.haml +3 -0
  17. data/config/locales/cs.ckeditor.yml +8 -0
  18. data/config/locales/en.ckeditor.yml +8 -0
  19. data/config/locales/es.ckeditor.yml +8 -0
  20. data/config/locales/fr.ckeditor.yml +8 -0
  21. data/config/locales/it.ckeditor.yml +8 -0
  22. data/config/locales/nl.ckeditor.yml +8 -0
  23. data/config/locales/pl.ckeditor.yml +8 -0
  24. data/config/locales/pt-BR.ckeditor.yml +8 -0
  25. data/config/locales/ru.ckeditor.yml +8 -0
  26. data/config/locales/sv-SE.ckeditor.yml +8 -0
  27. data/config/locales/uk.ckeditor.yml +8 -0
  28. data/config/locales/zh-CN.ckeditor.yml +8 -0
  29. data/config/routes.rb +4 -0
  30. data/lib/ckeditor.rb +81 -0
  31. data/lib/ckeditor/backend/carrierwave.rb +64 -0
  32. data/lib/ckeditor/backend/dragonfly.rb +45 -0
  33. data/lib/ckeditor/backend/paperclip.rb +56 -0
  34. data/lib/ckeditor/engine.rb +37 -0
  35. data/lib/ckeditor/helpers/controllers.rb +30 -0
  36. data/lib/ckeditor/helpers/form_builder.rb +11 -0
  37. data/lib/ckeditor/helpers/form_helper.rb +27 -0
  38. data/lib/ckeditor/helpers/view_helper.rb +22 -0
  39. data/lib/ckeditor/hooks/formtastic.rb +12 -0
  40. data/lib/ckeditor/hooks/simple_form.rb +9 -0
  41. data/lib/ckeditor/http.rb +89 -0
  42. data/lib/ckeditor/orm/active_record.rb +26 -0
  43. data/lib/ckeditor/orm/base.rb +46 -0
  44. data/lib/ckeditor/orm/mongoid.rb +43 -0
  45. data/lib/ckeditor/rails_admin/config/fields/types/ckeditor.rb +29 -0
  46. data/lib/ckeditor/utils.rb +70 -0
  47. data/lib/ckeditor/version.rb +6 -0
  48. data/lib/generators/ckeditor/install_generator.rb +83 -0
  49. data/lib/generators/ckeditor/templates/active_record/carrierwave/ckeditor/asset.rb +7 -0
  50. data/lib/generators/ckeditor/templates/active_record/carrierwave/ckeditor/attachment_file.rb +7 -0
  51. data/lib/generators/ckeditor/templates/active_record/carrierwave/ckeditor/picture.rb +7 -0
  52. data/lib/generators/ckeditor/templates/active_record/carrierwave/migration.rb +26 -0
  53. data/lib/generators/ckeditor/templates/active_record/dragonfly/ckeditor/asset.rb +7 -0
  54. data/lib/generators/ckeditor/templates/active_record/dragonfly/ckeditor/attachment_file.rb +7 -0
  55. data/lib/generators/ckeditor/templates/active_record/dragonfly/ckeditor/picture.rb +12 -0
  56. data/lib/generators/ckeditor/templates/active_record/dragonfly/migration.rb +27 -0
  57. data/lib/generators/ckeditor/templates/active_record/paperclip/ckeditor/asset.rb +4 -0
  58. data/lib/generators/ckeditor/templates/active_record/paperclip/ckeditor/attachment_file.rb +12 -0
  59. data/lib/generators/ckeditor/templates/active_record/paperclip/ckeditor/picture.rb +13 -0
  60. data/lib/generators/ckeditor/templates/active_record/paperclip/migration.rb +26 -0
  61. data/lib/generators/ckeditor/templates/base/carrierwave/uploaders/ckeditor_attachment_file_uploader.rb +42 -0
  62. data/lib/generators/ckeditor/templates/base/carrierwave/uploaders/ckeditor_picture_uploader.rb +53 -0
  63. data/lib/generators/ckeditor/templates/base/dragonfly/initializer.rb +26 -0
  64. data/lib/generators/ckeditor/templates/ckeditor.rb +18 -0
  65. data/lib/generators/ckeditor/templates/mongoid/carrierwave/ckeditor/asset.rb +7 -0
  66. data/lib/generators/ckeditor/templates/mongoid/carrierwave/ckeditor/attachment_file.rb +7 -0
  67. data/lib/generators/ckeditor/templates/mongoid/carrierwave/ckeditor/picture.rb +7 -0
  68. data/lib/generators/ckeditor/templates/mongoid/paperclip/ckeditor/asset.rb +5 -0
  69. data/lib/generators/ckeditor/templates/mongoid/paperclip/ckeditor/attachment_file.rb +12 -0
  70. data/lib/generators/ckeditor/templates/mongoid/paperclip/ckeditor/picture.rb +13 -0
  71. data/test/ckeditor_test.rb +13 -0
  72. data/test/controllers/attachment_files_controller_test.rb +63 -0
  73. data/test/controllers/pictures_controller_test.rb +64 -0
  74. data/test/dummy/Rakefile +7 -0
  75. data/test/dummy/app/assets/javascripts/application.js +11 -0
  76. data/test/dummy/app/assets/stylesheets/application.css +7 -0
  77. data/test/dummy/app/assets/stylesheets/scaffold.css +56 -0
  78. data/test/dummy/app/controllers/application_controller.rb +4 -0
  79. data/test/dummy/app/controllers/posts_controller.rb +83 -0
  80. data/test/dummy/app/helpers/application_helper.rb +2 -0
  81. data/test/dummy/app/helpers/posts_helper.rb +2 -0
  82. data/test/dummy/app/models/post.rb +17 -0
  83. data/test/dummy/app/views/layouts/application.html.erb +14 -0
  84. data/test/dummy/app/views/posts/_form.html.erb +30 -0
  85. data/test/dummy/app/views/posts/edit.html.erb +6 -0
  86. data/test/dummy/app/views/posts/index.html.erb +27 -0
  87. data/test/dummy/app/views/posts/new.html.erb +5 -0
  88. data/test/dummy/app/views/posts/show.html.erb +5 -0
  89. data/test/dummy/config.ru +4 -0
  90. data/test/dummy/config/application.rb +63 -0
  91. data/test/dummy/config/boot.rb +10 -0
  92. data/test/dummy/config/database.yml +25 -0
  93. data/test/dummy/config/environment.rb +5 -0
  94. data/test/dummy/config/environments/development.rb +37 -0
  95. data/test/dummy/config/environments/production.rb +67 -0
  96. data/test/dummy/config/environments/test.rb +37 -0
  97. data/test/dummy/config/initializers/backtrace_silencers.rb +7 -0
  98. data/test/dummy/config/initializers/ckeditor.rb +10 -0
  99. data/test/dummy/config/initializers/inflections.rb +15 -0
  100. data/test/dummy/config/initializers/mime_types.rb +5 -0
  101. data/test/dummy/config/initializers/secret_token.rb +7 -0
  102. data/test/dummy/config/initializers/session_store.rb +8 -0
  103. data/test/dummy/config/initializers/wrap_parameters.rb +14 -0
  104. data/test/dummy/config/locales/en.yml +5 -0
  105. data/test/dummy/config/mongoid.yml +2 -0
  106. data/test/dummy/config/routes.rb +6 -0
  107. data/test/dummy/db/migrate/20110623120047_create_posts.rb +14 -0
  108. data/test/dummy/public/404.html +26 -0
  109. data/test/dummy/public/422.html +26 -0
  110. data/test/dummy/public/500.html +26 -0
  111. data/test/dummy/public/favicon.ico +0 -0
  112. data/test/dummy/script/rails +6 -0
  113. data/test/dummy/test/fixtures/files/rails.png +0 -0
  114. data/test/dummy/test/fixtures/files/rails.tar.gz +0 -0
  115. data/test/functional/posts_controller_test.rb +41 -0
  116. data/test/generators/install_generator_test.rb +97 -0
  117. data/test/integration/navigation_test.rb +7 -0
  118. data/test/models/attachment_file_test.rb +22 -0
  119. data/test/models/picture_test.rb +21 -0
  120. data/test/models/utils_test.rb +19 -0
  121. data/test/orm/active_record.rb +1 -0
  122. data/test/orm/mongoid.rb +6 -0
  123. data/test/support/controller_hooks.rb +27 -0
  124. data/test/support/helpers.rb +30 -0
  125. data/test/support/integration_case.rb +5 -0
  126. data/test/support/raw_post.rb +9 -0
  127. data/test/support/routes.txt +4 -0
  128. data/test/test_helper.rb +38 -0
  129. data/vendor/assets/javascripts/ckeditor/CHANGES.md +56 -0
  130. data/vendor/assets/javascripts/ckeditor/LICENSE.md +1264 -0
  131. data/vendor/assets/javascripts/ckeditor/README.md +39 -0
  132. data/vendor/assets/javascripts/ckeditor/build-config.js +161 -0
  133. data/vendor/assets/javascripts/ckeditor/ckeditor.js +873 -0
  134. data/vendor/assets/javascripts/ckeditor/config.js.erb +69 -0
  135. data/vendor/assets/javascripts/ckeditor/contents.css +99 -0
  136. data/vendor/assets/javascripts/ckeditor/filebrowser/images/gal_add.jpg +0 -0
  137. data/vendor/assets/javascripts/ckeditor/filebrowser/images/gal_add.png +0 -0
  138. data/vendor/assets/javascripts/ckeditor/filebrowser/images/gal_del.png +0 -0
  139. data/vendor/assets/javascripts/ckeditor/filebrowser/images/gal_more.gif +0 -0
  140. data/vendor/assets/javascripts/ckeditor/filebrowser/images/preloader.gif +0 -0
  141. data/vendor/assets/javascripts/ckeditor/filebrowser/images/thumbs/avi.gif +0 -0
  142. data/vendor/assets/javascripts/ckeditor/filebrowser/images/thumbs/ckfnothumb.gif +0 -0
  143. data/vendor/assets/javascripts/ckeditor/filebrowser/images/thumbs/doc.gif +0 -0
  144. data/vendor/assets/javascripts/ckeditor/filebrowser/images/thumbs/docx.gif +0 -0
  145. data/vendor/assets/javascripts/ckeditor/filebrowser/images/thumbs/exe.gif +0 -0
  146. data/vendor/assets/javascripts/ckeditor/filebrowser/images/thumbs/gz.gif +0 -0
  147. data/vendor/assets/javascripts/ckeditor/filebrowser/images/thumbs/htm.gif +0 -0
  148. data/vendor/assets/javascripts/ckeditor/filebrowser/images/thumbs/jpg.gif +0 -0
  149. data/vendor/assets/javascripts/ckeditor/filebrowser/images/thumbs/mp3.gif +0 -0
  150. data/vendor/assets/javascripts/ckeditor/filebrowser/images/thumbs/mpg.gif +0 -0
  151. data/vendor/assets/javascripts/ckeditor/filebrowser/images/thumbs/pdf.gif +0 -0
  152. data/vendor/assets/javascripts/ckeditor/filebrowser/images/thumbs/psd.gif +0 -0
  153. data/vendor/assets/javascripts/ckeditor/filebrowser/images/thumbs/rar.gif +0 -0
  154. data/vendor/assets/javascripts/ckeditor/filebrowser/images/thumbs/swf.gif +0 -0
  155. data/vendor/assets/javascripts/ckeditor/filebrowser/images/thumbs/tar.gif +0 -0
  156. data/vendor/assets/javascripts/ckeditor/filebrowser/images/thumbs/txt.gif +0 -0
  157. data/vendor/assets/javascripts/ckeditor/filebrowser/images/thumbs/unknown.gif +0 -0
  158. data/vendor/assets/javascripts/ckeditor/filebrowser/images/thumbs/wmv.gif +0 -0
  159. data/vendor/assets/javascripts/ckeditor/filebrowser/images/thumbs/xls.gif +0 -0
  160. data/vendor/assets/javascripts/ckeditor/filebrowser/images/thumbs/xlsx.gif +0 -0
  161. data/vendor/assets/javascripts/ckeditor/filebrowser/images/thumbs/zip.gif +0 -0
  162. data/vendor/assets/javascripts/ckeditor/filebrowser/javascripts/application.js +221 -0
  163. data/vendor/assets/javascripts/ckeditor/filebrowser/javascripts/fileuploader.js +1301 -0
  164. data/vendor/assets/javascripts/ckeditor/filebrowser/javascripts/jquery.min.js +4 -0
  165. data/vendor/assets/javascripts/ckeditor/filebrowser/javascripts/jquery.tmpl.min.js +10 -0
  166. data/vendor/assets/javascripts/ckeditor/filebrowser/javascripts/rails.js +373 -0
  167. data/vendor/assets/javascripts/ckeditor/filebrowser/stylesheets/uploader.css.sass +102 -0
  168. data/vendor/assets/javascripts/ckeditor/lang/af.js +5 -0
  169. data/vendor/assets/javascripts/ckeditor/lang/ar.js +5 -0
  170. data/vendor/assets/javascripts/ckeditor/lang/bg.js +5 -0
  171. data/vendor/assets/javascripts/ckeditor/lang/bn.js +5 -0
  172. data/vendor/assets/javascripts/ckeditor/lang/bs.js +5 -0
  173. data/vendor/assets/javascripts/ckeditor/lang/ca.js +5 -0
  174. data/vendor/assets/javascripts/ckeditor/lang/cs.js +5 -0
  175. data/vendor/assets/javascripts/ckeditor/lang/cy.js +5 -0
  176. data/vendor/assets/javascripts/ckeditor/lang/da.js +5 -0
  177. data/vendor/assets/javascripts/ckeditor/lang/de.js +5 -0
  178. data/vendor/assets/javascripts/ckeditor/lang/el.js +5 -0
  179. data/vendor/assets/javascripts/ckeditor/lang/en-au.js +5 -0
  180. data/vendor/assets/javascripts/ckeditor/lang/en-ca.js +5 -0
  181. data/vendor/assets/javascripts/ckeditor/lang/en-gb.js +5 -0
  182. data/vendor/assets/javascripts/ckeditor/lang/en.js +5 -0
  183. data/vendor/assets/javascripts/ckeditor/lang/eo.js +5 -0
  184. data/vendor/assets/javascripts/ckeditor/lang/es.js +5 -0
  185. data/vendor/assets/javascripts/ckeditor/lang/et.js +5 -0
  186. data/vendor/assets/javascripts/ckeditor/lang/eu.js +5 -0
  187. data/vendor/assets/javascripts/ckeditor/lang/fa.js +5 -0
  188. data/vendor/assets/javascripts/ckeditor/lang/fi.js +5 -0
  189. data/vendor/assets/javascripts/ckeditor/lang/fo.js +5 -0
  190. data/vendor/assets/javascripts/ckeditor/lang/fr-ca.js +5 -0
  191. data/vendor/assets/javascripts/ckeditor/lang/fr.js +5 -0
  192. data/vendor/assets/javascripts/ckeditor/lang/gl.js +5 -0
  193. data/vendor/assets/javascripts/ckeditor/lang/gu.js +5 -0
  194. data/vendor/assets/javascripts/ckeditor/lang/he.js +5 -0
  195. data/vendor/assets/javascripts/ckeditor/lang/hi.js +5 -0
  196. data/vendor/assets/javascripts/ckeditor/lang/hr.js +5 -0
  197. data/vendor/assets/javascripts/ckeditor/lang/hu.js +5 -0
  198. data/vendor/assets/javascripts/ckeditor/lang/is.js +5 -0
  199. data/vendor/assets/javascripts/ckeditor/lang/it.js +5 -0
  200. data/vendor/assets/javascripts/ckeditor/lang/ja.js +5 -0
  201. data/vendor/assets/javascripts/ckeditor/lang/ka.js +5 -0
  202. data/vendor/assets/javascripts/ckeditor/lang/km.js +5 -0
  203. data/vendor/assets/javascripts/ckeditor/lang/ko.js +5 -0
  204. data/vendor/assets/javascripts/ckeditor/lang/ku.js +5 -0
  205. data/vendor/assets/javascripts/ckeditor/lang/lt.js +5 -0
  206. data/vendor/assets/javascripts/ckeditor/lang/lv.js +5 -0
  207. data/vendor/assets/javascripts/ckeditor/lang/mk.js +5 -0
  208. data/vendor/assets/javascripts/ckeditor/lang/mn.js +5 -0
  209. data/vendor/assets/javascripts/ckeditor/lang/ms.js +5 -0
  210. data/vendor/assets/javascripts/ckeditor/lang/nb.js +5 -0
  211. data/vendor/assets/javascripts/ckeditor/lang/nl.js +5 -0
  212. data/vendor/assets/javascripts/ckeditor/lang/no.js +5 -0
  213. data/vendor/assets/javascripts/ckeditor/lang/pl.js +5 -0
  214. data/vendor/assets/javascripts/ckeditor/lang/pt-br.js +5 -0
  215. data/vendor/assets/javascripts/ckeditor/lang/pt.js +5 -0
  216. data/vendor/assets/javascripts/ckeditor/lang/ro.js +5 -0
  217. data/vendor/assets/javascripts/ckeditor/lang/ru.js +5 -0
  218. data/vendor/assets/javascripts/ckeditor/lang/sk.js +5 -0
  219. data/vendor/assets/javascripts/ckeditor/lang/sl.js +5 -0
  220. data/vendor/assets/javascripts/ckeditor/lang/sr-latn.js +5 -0
  221. data/vendor/assets/javascripts/ckeditor/lang/sr.js +5 -0
  222. data/vendor/assets/javascripts/ckeditor/lang/sv.js +5 -0
  223. data/vendor/assets/javascripts/ckeditor/lang/th.js +5 -0
  224. data/vendor/assets/javascripts/ckeditor/lang/tr.js +5 -0
  225. data/vendor/assets/javascripts/ckeditor/lang/ug.js +5 -0
  226. data/vendor/assets/javascripts/ckeditor/lang/uk.js +5 -0
  227. data/vendor/assets/javascripts/ckeditor/lang/vi.js +5 -0
  228. data/vendor/assets/javascripts/ckeditor/lang/zh-cn.js +5 -0
  229. data/vendor/assets/javascripts/ckeditor/lang/zh.js +5 -0
  230. data/vendor/assets/javascripts/ckeditor/plugins/CKCss/CKCss.xml +26 -0
  231. data/vendor/assets/javascripts/ckeditor/plugins/CKCss/ckcss.png +0 -0
  232. data/vendor/assets/javascripts/ckeditor/plugins/CKCss/ckcss1.png +0 -0
  233. data/vendor/assets/javascripts/ckeditor/plugins/CKCss/css/styles.css +10 -0
  234. data/vendor/assets/javascripts/ckeditor/plugins/CKCss/dialogs/ckcss.js +3589 -0
  235. data/vendor/assets/javascripts/ckeditor/plugins/CKCss/lang/en.js +16 -0
  236. data/vendor/assets/javascripts/ckeditor/plugins/CKCss/lang/ru.js +16 -0
  237. data/vendor/assets/javascripts/ckeditor/plugins/CKCss/plugin.js +62 -0
  238. data/vendor/assets/javascripts/ckeditor/plugins/LoremIpsum/images/icon.png +0 -0
  239. data/vendor/assets/javascripts/ckeditor/plugins/LoremIpsum/images/icon1.png +0 -0
  240. data/vendor/assets/javascripts/ckeditor/plugins/LoremIpsum/plugin.js +66 -0
  241. data/vendor/assets/javascripts/ckeditor/plugins/MediaEmbed/icons/mediaembed.png +0 -0
  242. data/vendor/assets/javascripts/ckeditor/plugins/MediaEmbed/images/icon.png +0 -0
  243. data/vendor/assets/javascripts/ckeditor/plugins/MediaEmbed/plugin.js +64 -0
  244. data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/a11yhelp.js +10 -0
  245. data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/_translationstatus.txt +25 -0
  246. data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/ar.js +9 -0
  247. data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/bg.js +9 -0
  248. data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/ca.js +9 -0
  249. data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/cs.js +10 -0
  250. data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/cy.js +9 -0
  251. data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/da.js +9 -0
  252. data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/de.js +10 -0
  253. data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/el.js +10 -0
  254. data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/en.js +9 -0
  255. data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/eo.js +10 -0
  256. data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/es.js +10 -0
  257. data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/et.js +9 -0
  258. data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/fa.js +9 -0
  259. data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/fi.js +10 -0
  260. data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/fr.js +10 -0
  261. data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/gu.js +9 -0
  262. data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/he.js +9 -0
  263. data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/hi.js +9 -0
  264. data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/hr.js +9 -0
  265. data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/hu.js +9 -0
  266. data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/it.js +10 -0
  267. data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/ja.js +9 -0
  268. data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/ku.js +10 -0
  269. data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/lt.js +9 -0
  270. data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/lv.js +10 -0
  271. data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/mk.js +9 -0
  272. data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/mn.js +9 -0
  273. data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/nb.js +9 -0
  274. data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/nl.js +10 -0
  275. data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/no.js +9 -0
  276. data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/pl.js +9 -0
  277. data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/pt-br.js +9 -0
  278. data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/pt.js +9 -0
  279. data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/ro.js +9 -0
  280. data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/ru.js +9 -0
  281. data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/sk.js +10 -0
  282. data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/sl.js +9 -0
  283. data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/sv.js +10 -0
  284. data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/tr.js +10 -0
  285. data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/ug.js +9 -0
  286. data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/uk.js +9 -0
  287. data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/vi.js +9 -0
  288. data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/zh-cn.js +7 -0
  289. data/vendor/assets/javascripts/ckeditor/plugins/about/dialogs/about.js +6 -0
  290. data/vendor/assets/javascripts/ckeditor/plugins/about/dialogs/logo_ckeditor.png +0 -0
  291. data/vendor/assets/javascripts/ckeditor/plugins/clipboard/dialogs/paste.js +11 -0
  292. data/vendor/assets/javascripts/ckeditor/plugins/code/code/code.js +48 -0
  293. data/vendor/assets/javascripts/ckeditor/plugins/code/images/code.png +0 -0
  294. data/vendor/assets/javascripts/ckeditor/plugins/code/plugin.js +17 -0
  295. data/vendor/assets/javascripts/ckeditor/plugins/codemirror/css/codemirror.css +239 -0
  296. data/vendor/assets/javascripts/ckeditor/plugins/codemirror/css/sourcecodepro-regular.eot +0 -0
  297. data/vendor/assets/javascripts/ckeditor/plugins/codemirror/css/sourcecodepro-regular.otf +0 -0
  298. data/vendor/assets/javascripts/ckeditor/plugins/codemirror/css/sourcecodepro-regular.svg +242 -0
  299. data/vendor/assets/javascripts/ckeditor/plugins/codemirror/css/sourcecodepro-regular.ttf +0 -0
  300. data/vendor/assets/javascripts/ckeditor/plugins/codemirror/css/sourcecodepro-regular.woff +0 -0
  301. data/vendor/assets/javascripts/ckeditor/plugins/codemirror/js/codemirror.js +4553 -0
  302. data/vendor/assets/javascripts/ckeditor/plugins/codemirror/js/css.js +465 -0
  303. data/vendor/assets/javascripts/ckeditor/plugins/codemirror/js/htmlmixed.js +84 -0
  304. data/vendor/assets/javascripts/ckeditor/plugins/codemirror/js/javascript.js +411 -0
  305. data/vendor/assets/javascripts/ckeditor/plugins/codemirror/js/util/closetag.js +85 -0
  306. data/vendor/assets/javascripts/ckeditor/plugins/codemirror/js/util/colorize.js +29 -0
  307. data/vendor/assets/javascripts/ckeditor/plugins/codemirror/js/util/continuecomment.js +36 -0
  308. data/vendor/assets/javascripts/ckeditor/plugins/codemirror/js/util/continuelist.js +28 -0
  309. data/vendor/assets/javascripts/ckeditor/plugins/codemirror/js/util/dialog.css +32 -0
  310. data/vendor/assets/javascripts/ckeditor/plugins/codemirror/js/util/dialog.js +75 -0
  311. data/vendor/assets/javascripts/ckeditor/plugins/codemirror/js/util/foldcode.js +182 -0
  312. data/vendor/assets/javascripts/ckeditor/plugins/codemirror/js/util/formatting.js +108 -0
  313. data/vendor/assets/javascripts/ckeditor/plugins/codemirror/js/util/javascript-hint.js +137 -0
  314. data/vendor/assets/javascripts/ckeditor/plugins/codemirror/js/util/loadmode.js +51 -0
  315. data/vendor/assets/javascripts/ckeditor/plugins/codemirror/js/util/match-highlighter.js +46 -0
  316. data/vendor/assets/javascripts/ckeditor/plugins/codemirror/js/util/matchbrackets.js +63 -0
  317. data/vendor/assets/javascripts/ckeditor/plugins/codemirror/js/util/multiplex.js +95 -0
  318. data/vendor/assets/javascripts/ckeditor/plugins/codemirror/js/util/overlay.js +59 -0
  319. data/vendor/assets/javascripts/ckeditor/plugins/codemirror/js/util/pig-hint.js +117 -0
  320. data/vendor/assets/javascripts/ckeditor/plugins/codemirror/js/util/runmode-standalone.js +90 -0
  321. data/vendor/assets/javascripts/ckeditor/plugins/codemirror/js/util/runmode.js +52 -0
  322. data/vendor/assets/javascripts/ckeditor/plugins/codemirror/js/util/search.js +119 -0
  323. data/vendor/assets/javascripts/ckeditor/plugins/codemirror/js/util/searchcursor.js +119 -0
  324. data/vendor/assets/javascripts/ckeditor/plugins/codemirror/js/util/simple-hint.css +16 -0
  325. data/vendor/assets/javascripts/ckeditor/plugins/codemirror/js/util/simple-hint.js +102 -0
  326. data/vendor/assets/javascripts/ckeditor/plugins/codemirror/js/util/xml-hint.js +131 -0
  327. data/vendor/assets/javascripts/ckeditor/plugins/codemirror/js/xml.js +324 -0
  328. data/vendor/assets/javascripts/ckeditor/plugins/codemirror/lang/af.js +7 -0
  329. data/vendor/assets/javascripts/ckeditor/plugins/codemirror/lang/ar.js +7 -0
  330. data/vendor/assets/javascripts/ckeditor/plugins/codemirror/lang/bg.js +7 -0
  331. data/vendor/assets/javascripts/ckeditor/plugins/codemirror/lang/bn.js +7 -0
  332. data/vendor/assets/javascripts/ckeditor/plugins/codemirror/lang/bs.js +7 -0
  333. data/vendor/assets/javascripts/ckeditor/plugins/codemirror/lang/ca.js +7 -0
  334. data/vendor/assets/javascripts/ckeditor/plugins/codemirror/lang/cs.js +7 -0
  335. data/vendor/assets/javascripts/ckeditor/plugins/codemirror/lang/cy.js +7 -0
  336. data/vendor/assets/javascripts/ckeditor/plugins/codemirror/lang/da.js +7 -0
  337. data/vendor/assets/javascripts/ckeditor/plugins/codemirror/lang/de.js +7 -0
  338. data/vendor/assets/javascripts/ckeditor/plugins/codemirror/lang/el.js +7 -0
  339. data/vendor/assets/javascripts/ckeditor/plugins/codemirror/lang/en-au.js +7 -0
  340. data/vendor/assets/javascripts/ckeditor/plugins/codemirror/lang/en-ca.js +7 -0
  341. data/vendor/assets/javascripts/ckeditor/plugins/codemirror/lang/en-gb.js +7 -0
  342. data/vendor/assets/javascripts/ckeditor/plugins/codemirror/lang/en.js +7 -0
  343. data/vendor/assets/javascripts/ckeditor/plugins/codemirror/lang/eo.js +7 -0
  344. data/vendor/assets/javascripts/ckeditor/plugins/codemirror/lang/es.js +7 -0
  345. data/vendor/assets/javascripts/ckeditor/plugins/codemirror/lang/et.js +7 -0
  346. data/vendor/assets/javascripts/ckeditor/plugins/codemirror/lang/eu.js +7 -0
  347. data/vendor/assets/javascripts/ckeditor/plugins/codemirror/lang/fa.js +7 -0
  348. data/vendor/assets/javascripts/ckeditor/plugins/codemirror/lang/fi.js +7 -0
  349. data/vendor/assets/javascripts/ckeditor/plugins/codemirror/lang/fo.js +7 -0
  350. data/vendor/assets/javascripts/ckeditor/plugins/codemirror/lang/fr-ca.js +7 -0
  351. data/vendor/assets/javascripts/ckeditor/plugins/codemirror/lang/fr.js +7 -0
  352. data/vendor/assets/javascripts/ckeditor/plugins/codemirror/lang/gl.js +7 -0
  353. data/vendor/assets/javascripts/ckeditor/plugins/codemirror/lang/gu.js +7 -0
  354. data/vendor/assets/javascripts/ckeditor/plugins/codemirror/lang/he.js +7 -0
  355. data/vendor/assets/javascripts/ckeditor/plugins/codemirror/lang/hi.js +7 -0
  356. data/vendor/assets/javascripts/ckeditor/plugins/codemirror/lang/hr.js +7 -0
  357. data/vendor/assets/javascripts/ckeditor/plugins/codemirror/lang/hu.js +7 -0
  358. data/vendor/assets/javascripts/ckeditor/plugins/codemirror/lang/is.js +7 -0
  359. data/vendor/assets/javascripts/ckeditor/plugins/codemirror/lang/it.js +7 -0
  360. data/vendor/assets/javascripts/ckeditor/plugins/codemirror/lang/ja.js +7 -0
  361. data/vendor/assets/javascripts/ckeditor/plugins/codemirror/lang/ka.js +7 -0
  362. data/vendor/assets/javascripts/ckeditor/plugins/codemirror/lang/km.js +7 -0
  363. data/vendor/assets/javascripts/ckeditor/plugins/codemirror/lang/ko.js +7 -0
  364. data/vendor/assets/javascripts/ckeditor/plugins/codemirror/lang/ku.js +7 -0
  365. data/vendor/assets/javascripts/ckeditor/plugins/codemirror/lang/lt.js +7 -0
  366. data/vendor/assets/javascripts/ckeditor/plugins/codemirror/lang/lv.js +7 -0
  367. data/vendor/assets/javascripts/ckeditor/plugins/codemirror/lang/mk.js +7 -0
  368. data/vendor/assets/javascripts/ckeditor/plugins/codemirror/lang/mn.js +7 -0
  369. data/vendor/assets/javascripts/ckeditor/plugins/codemirror/lang/ms.js +7 -0
  370. data/vendor/assets/javascripts/ckeditor/plugins/codemirror/lang/nb.js +7 -0
  371. data/vendor/assets/javascripts/ckeditor/plugins/codemirror/lang/nl.js +7 -0
  372. data/vendor/assets/javascripts/ckeditor/plugins/codemirror/lang/no.js +7 -0
  373. data/vendor/assets/javascripts/ckeditor/plugins/codemirror/lang/pl.js +7 -0
  374. data/vendor/assets/javascripts/ckeditor/plugins/codemirror/lang/pt-br.js +7 -0
  375. data/vendor/assets/javascripts/ckeditor/plugins/codemirror/lang/pt.js +7 -0
  376. data/vendor/assets/javascripts/ckeditor/plugins/codemirror/lang/ro.js +7 -0
  377. data/vendor/assets/javascripts/ckeditor/plugins/codemirror/lang/ru.js +7 -0
  378. data/vendor/assets/javascripts/ckeditor/plugins/codemirror/lang/sk.js +7 -0
  379. data/vendor/assets/javascripts/ckeditor/plugins/codemirror/lang/sl.js +7 -0
  380. data/vendor/assets/javascripts/ckeditor/plugins/codemirror/lang/sr-latn.js +7 -0
  381. data/vendor/assets/javascripts/ckeditor/plugins/codemirror/lang/sr.js +7 -0
  382. data/vendor/assets/javascripts/ckeditor/plugins/codemirror/lang/sv.js +7 -0
  383. data/vendor/assets/javascripts/ckeditor/plugins/codemirror/lang/th.js +7 -0
  384. data/vendor/assets/javascripts/ckeditor/plugins/codemirror/lang/tr.js +7 -0
  385. data/vendor/assets/javascripts/ckeditor/plugins/codemirror/lang/ug.js +7 -0
  386. data/vendor/assets/javascripts/ckeditor/plugins/codemirror/lang/uk.js +7 -0
  387. data/vendor/assets/javascripts/ckeditor/plugins/codemirror/lang/vi.js +7 -0
  388. data/vendor/assets/javascripts/ckeditor/plugins/codemirror/lang/zh-cn.js +7 -0
  389. data/vendor/assets/javascripts/ckeditor/plugins/codemirror/lang/zh.js +7 -0
  390. data/vendor/assets/javascripts/ckeditor/plugins/codemirror/plugin.js +189 -0
  391. data/vendor/assets/javascripts/ckeditor/plugins/codemirror/theme/ambiance-mobile.css +6 -0
  392. data/vendor/assets/javascripts/ckeditor/plugins/codemirror/theme/ambiance.css +76 -0
  393. data/vendor/assets/javascripts/ckeditor/plugins/codemirror/theme/blackboard.css +25 -0
  394. data/vendor/assets/javascripts/ckeditor/plugins/codemirror/theme/cobalt.css +18 -0
  395. data/vendor/assets/javascripts/ckeditor/plugins/codemirror/theme/eclipse.css +25 -0
  396. data/vendor/assets/javascripts/ckeditor/plugins/codemirror/theme/elegant.css +10 -0
  397. data/vendor/assets/javascripts/ckeditor/plugins/codemirror/theme/erlang-dark.css +21 -0
  398. data/vendor/assets/javascripts/ckeditor/plugins/codemirror/theme/lesser-dark.css +44 -0
  399. data/vendor/assets/javascripts/ckeditor/plugins/codemirror/theme/monokai.css +28 -0
  400. data/vendor/assets/javascripts/ckeditor/plugins/codemirror/theme/neat.css +9 -0
  401. data/vendor/assets/javascripts/ckeditor/plugins/codemirror/theme/night.css +21 -0
  402. data/vendor/assets/javascripts/ckeditor/plugins/codemirror/theme/rubyblue.css +21 -0
  403. data/vendor/assets/javascripts/ckeditor/plugins/codemirror/theme/solarized.css +207 -0
  404. data/vendor/assets/javascripts/ckeditor/plugins/codemirror/theme/twilight.css +25 -0
  405. data/vendor/assets/javascripts/ckeditor/plugins/codemirror/theme/vibrant-ink.css +27 -0
  406. data/vendor/assets/javascripts/ckeditor/plugins/codemirror/theme/xq-dark.css +46 -0
  407. data/vendor/assets/javascripts/ckeditor/plugins/colordialog/dialogs/colordialog.js +13 -0
  408. data/vendor/assets/javascripts/ckeditor/plugins/dialog/dialogDefinition.js +4 -0
  409. data/vendor/assets/javascripts/ckeditor/plugins/div/dialogs/div.js +9 -0
  410. data/vendor/assets/javascripts/ckeditor/plugins/fakeobjects/images/spacer.gif +0 -0
  411. data/vendor/assets/javascripts/ckeditor/plugins/find/dialogs/find.js +24 -0
  412. data/vendor/assets/javascripts/ckeditor/plugins/flash/dialogs/flash.js +23 -0
  413. data/vendor/assets/javascripts/ckeditor/plugins/flash/images/placeholder.png +0 -0
  414. data/vendor/assets/javascripts/ckeditor/plugins/forms/dialogs/button.js +8 -0
  415. data/vendor/assets/javascripts/ckeditor/plugins/forms/dialogs/checkbox.js +8 -0
  416. data/vendor/assets/javascripts/ckeditor/plugins/forms/dialogs/form.js +8 -0
  417. data/vendor/assets/javascripts/ckeditor/plugins/forms/dialogs/hiddenfield.js +8 -0
  418. data/vendor/assets/javascripts/ckeditor/plugins/forms/dialogs/radio.js +8 -0
  419. data/vendor/assets/javascripts/ckeditor/plugins/forms/dialogs/select.js +20 -0
  420. data/vendor/assets/javascripts/ckeditor/plugins/forms/dialogs/textarea.js +8 -0
  421. data/vendor/assets/javascripts/ckeditor/plugins/forms/dialogs/textfield.js +10 -0
  422. data/vendor/assets/javascripts/ckeditor/plugins/forms/images/hiddenfield.gif +0 -0
  423. data/vendor/assets/javascripts/ckeditor/plugins/highslide/dialogs/hs.js +73 -0
  424. data/vendor/assets/javascripts/ckeditor/plugins/highslide/icon.png +0 -0
  425. data/vendor/assets/javascripts/ckeditor/plugins/highslide/lang/en.js +7 -0
  426. data/vendor/assets/javascripts/ckeditor/plugins/highslide/lang/ru.js +7 -0
  427. data/vendor/assets/javascripts/ckeditor/plugins/highslide/plugin.js +26 -0
  428. data/vendor/assets/javascripts/ckeditor/plugins/highslide/readme.txt +55 -0
  429. data/vendor/assets/javascripts/ckeditor/plugins/htmlbuttons/docs/install.html +93 -0
  430. data/vendor/assets/javascripts/ckeditor/plugins/htmlbuttons/docs/styles.css +59 -0
  431. data/vendor/assets/javascripts/ckeditor/plugins/htmlbuttons/icon1.png +0 -0
  432. data/vendor/assets/javascripts/ckeditor/plugins/htmlbuttons/icon2.png +0 -0
  433. data/vendor/assets/javascripts/ckeditor/plugins/htmlbuttons/icon3.png +0 -0
  434. data/vendor/assets/javascripts/ckeditor/plugins/htmlbuttons/plugin.js +71 -0
  435. data/vendor/assets/javascripts/ckeditor/plugins/icons.png +0 -0
  436. data/vendor/assets/javascripts/ckeditor/plugins/iframe/dialogs/iframe.js +10 -0
  437. data/vendor/assets/javascripts/ckeditor/plugins/iframe/images/placeholder.png +0 -0
  438. data/vendor/assets/javascripts/ckeditor/plugins/iframedialog/plugin.js +173 -0
  439. data/vendor/assets/javascripts/ckeditor/plugins/image/dialogs/image.js +41 -0
  440. data/vendor/assets/javascripts/ckeditor/plugins/image/images/noimage.png +0 -0
  441. data/vendor/assets/javascripts/ckeditor/plugins/link/dialogs/anchor.js +8 -0
  442. data/vendor/assets/javascripts/ckeditor/plugins/link/dialogs/link.js +36 -0
  443. data/vendor/assets/javascripts/ckeditor/plugins/link/images/anchor.png +0 -0
  444. data/vendor/assets/javascripts/ckeditor/plugins/liststyle/dialogs/liststyle.js +10 -0
  445. data/vendor/assets/javascripts/ckeditor/plugins/magicline/images/icon.png +0 -0
  446. data/vendor/assets/javascripts/ckeditor/plugins/oembed/images/icon.png +0 -0
  447. data/vendor/assets/javascripts/ckeditor/plugins/oembed/lang/de.js +9 -0
  448. data/vendor/assets/javascripts/ckeditor/plugins/oembed/lang/en.js +9 -0
  449. data/vendor/assets/javascripts/ckeditor/plugins/oembed/lang/fr.js +11 -0
  450. data/vendor/assets/javascripts/ckeditor/plugins/oembed/lang/nl.js +9 -0
  451. data/vendor/assets/javascripts/ckeditor/plugins/oembed/lang/ru.js +9 -0
  452. data/vendor/assets/javascripts/ckeditor/plugins/oembed/libs/jquery.oembed.js +781 -0
  453. data/vendor/assets/javascripts/ckeditor/plugins/oembed/libs/jquery.oembed.min.js +4 -0
  454. data/vendor/assets/javascripts/ckeditor/plugins/oembed/plugin.js +106 -0
  455. data/vendor/assets/javascripts/ckeditor/plugins/pagebreak/images/pagebreak.gif +0 -0
  456. data/vendor/assets/javascripts/ckeditor/plugins/pastefromword/filter/default.js +31 -0
  457. data/vendor/assets/javascripts/ckeditor/plugins/preview/preview.html +10 -0
  458. data/vendor/assets/javascripts/ckeditor/plugins/scayt/LICENSE.md +28 -0
  459. data/vendor/assets/javascripts/ckeditor/plugins/scayt/README.md +25 -0
  460. data/vendor/assets/javascripts/ckeditor/plugins/scayt/dialogs/options.js +19 -0
  461. data/vendor/assets/javascripts/ckeditor/plugins/scayt/dialogs/toolbar.css +71 -0
  462. data/vendor/assets/javascripts/ckeditor/plugins/showblocks/images/block_address.png +0 -0
  463. data/vendor/assets/javascripts/ckeditor/plugins/showblocks/images/block_blockquote.png +0 -0
  464. data/vendor/assets/javascripts/ckeditor/plugins/showblocks/images/block_div.png +0 -0
  465. data/vendor/assets/javascripts/ckeditor/plugins/showblocks/images/block_h1.png +0 -0
  466. data/vendor/assets/javascripts/ckeditor/plugins/showblocks/images/block_h2.png +0 -0
  467. data/vendor/assets/javascripts/ckeditor/plugins/showblocks/images/block_h3.png +0 -0
  468. data/vendor/assets/javascripts/ckeditor/plugins/showblocks/images/block_h4.png +0 -0
  469. data/vendor/assets/javascripts/ckeditor/plugins/showblocks/images/block_h5.png +0 -0
  470. data/vendor/assets/javascripts/ckeditor/plugins/showblocks/images/block_h6.png +0 -0
  471. data/vendor/assets/javascripts/ckeditor/plugins/showblocks/images/block_p.png +0 -0
  472. data/vendor/assets/javascripts/ckeditor/plugins/showblocks/images/block_pre.png +0 -0
  473. data/vendor/assets/javascripts/ckeditor/plugins/smiley/dialogs/smiley.js +10 -0
  474. data/vendor/assets/javascripts/ckeditor/plugins/smiley/images/angel_smile.gif +0 -0
  475. data/vendor/assets/javascripts/ckeditor/plugins/smiley/images/angry_smile.gif +0 -0
  476. data/vendor/assets/javascripts/ckeditor/plugins/smiley/images/broken_heart.gif +0 -0
  477. data/vendor/assets/javascripts/ckeditor/plugins/smiley/images/confused_smile.gif +0 -0
  478. data/vendor/assets/javascripts/ckeditor/plugins/smiley/images/cry_smile.gif +0 -0
  479. data/vendor/assets/javascripts/ckeditor/plugins/smiley/images/devil_smile.gif +0 -0
  480. data/vendor/assets/javascripts/ckeditor/plugins/smiley/images/embaressed_smile.gif +0 -0
  481. data/vendor/assets/javascripts/ckeditor/plugins/smiley/images/embarrassed_smile.gif +0 -0
  482. data/vendor/assets/javascripts/ckeditor/plugins/smiley/images/envelope.gif +0 -0
  483. data/vendor/assets/javascripts/ckeditor/plugins/smiley/images/heart.gif +0 -0
  484. data/vendor/assets/javascripts/ckeditor/plugins/smiley/images/kiss.gif +0 -0
  485. data/vendor/assets/javascripts/ckeditor/plugins/smiley/images/lightbulb.gif +0 -0
  486. data/vendor/assets/javascripts/ckeditor/plugins/smiley/images/omg_smile.gif +0 -0
  487. data/vendor/assets/javascripts/ckeditor/plugins/smiley/images/regular_smile.gif +0 -0
  488. data/vendor/assets/javascripts/ckeditor/plugins/smiley/images/sad_smile.gif +0 -0
  489. data/vendor/assets/javascripts/ckeditor/plugins/smiley/images/shades_smile.gif +0 -0
  490. data/vendor/assets/javascripts/ckeditor/plugins/smiley/images/teeth_smile.gif +0 -0
  491. data/vendor/assets/javascripts/ckeditor/plugins/smiley/images/thumbs_down.gif +0 -0
  492. data/vendor/assets/javascripts/ckeditor/plugins/smiley/images/thumbs_up.gif +0 -0
  493. data/vendor/assets/javascripts/ckeditor/plugins/smiley/images/tongue_smile.gif +0 -0
  494. data/vendor/assets/javascripts/ckeditor/plugins/smiley/images/tounge_smile.gif +0 -0
  495. data/vendor/assets/javascripts/ckeditor/plugins/smiley/images/whatchutalkingabout_smile.gif +0 -0
  496. data/vendor/assets/javascripts/ckeditor/plugins/smiley/images/wink_smile.gif +0 -0
  497. data/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/_translationstatus.txt +20 -0
  498. data/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/ca.js +13 -0
  499. data/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/cs.js +13 -0
  500. data/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/cy.js +14 -0
  501. data/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/de.js +13 -0
  502. data/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/el.js +13 -0
  503. data/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/en.js +13 -0
  504. data/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/eo.js +12 -0
  505. data/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/et.js +13 -0
  506. data/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/fa.js +13 -0
  507. data/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/fi.js +13 -0
  508. data/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/fr.js +11 -0
  509. data/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/he.js +13 -0
  510. data/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/hr.js +13 -0
  511. data/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/it.js +14 -0
  512. data/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/ku.js +14 -0
  513. data/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/lv.js +13 -0
  514. data/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/nb.js +11 -0
  515. data/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/nl.js +13 -0
  516. data/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/no.js +11 -0
  517. data/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/pt-br.js +11 -0
  518. data/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/sk.js +13 -0
  519. data/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/sv.js +11 -0
  520. data/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/tr.js +12 -0
  521. data/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/ug.js +13 -0
  522. data/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/zh-cn.js +9 -0
  523. data/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/specialchar.js +14 -0
  524. data/vendor/assets/javascripts/ckeditor/plugins/stylesheetparser/plugin.js +138 -0
  525. data/vendor/assets/javascripts/ckeditor/plugins/stylesheetparser/samples/assets/sample.css +70 -0
  526. data/vendor/assets/javascripts/ckeditor/plugins/stylesheetparser/samples/stylesheetparser.html +82 -0
  527. data/vendor/assets/javascripts/ckeditor/plugins/table/dialogs/table.js +20 -0
  528. data/vendor/assets/javascripts/ckeditor/plugins/tabletools/dialogs/tableCell.js +16 -0
  529. data/vendor/assets/javascripts/ckeditor/plugins/templates/dialogs/templates.css +84 -0
  530. data/vendor/assets/javascripts/ckeditor/plugins/templates/dialogs/templates.js +10 -0
  531. data/vendor/assets/javascripts/ckeditor/plugins/templates/templates/default.js +6 -0
  532. data/vendor/assets/javascripts/ckeditor/plugins/templates/templates/images/template1.gif +0 -0
  533. data/vendor/assets/javascripts/ckeditor/plugins/templates/templates/images/template2.gif +0 -0
  534. data/vendor/assets/javascripts/ckeditor/plugins/templates/templates/images/template3.gif +0 -0
  535. data/vendor/assets/javascripts/ckeditor/plugins/wordcount/lang/en.js +9 -0
  536. data/vendor/assets/javascripts/ckeditor/plugins/wordcount/lang/ru.js +9 -0
  537. data/vendor/assets/javascripts/ckeditor/plugins/wordcount/plugin.js +95 -0
  538. data/vendor/assets/javascripts/ckeditor/plugins/wsc/LICENSE.md +28 -0
  539. data/vendor/assets/javascripts/ckeditor/plugins/wsc/README.md +25 -0
  540. data/vendor/assets/javascripts/ckeditor/plugins/wsc/dialogs/ciframe.html +49 -0
  541. data/vendor/assets/javascripts/ckeditor/plugins/wsc/dialogs/tmpFrameset.html +52 -0
  542. data/vendor/assets/javascripts/ckeditor/plugins/wsc/dialogs/wsc.css +82 -0
  543. data/vendor/assets/javascripts/ckeditor/plugins/wsc/dialogs/wsc.js +11 -0
  544. data/vendor/assets/javascripts/ckeditor/samples/ajax.html +82 -0
  545. data/vendor/assets/javascripts/ckeditor/samples/api.html +207 -0
  546. data/vendor/assets/javascripts/ckeditor/samples/appendto.html +57 -0
  547. data/vendor/assets/javascripts/ckeditor/samples/assets/inlineall/logo.png +0 -0
  548. data/vendor/assets/javascripts/ckeditor/samples/assets/outputxhtml/outputxhtml.css +204 -0
  549. data/vendor/assets/javascripts/ckeditor/samples/assets/posteddata.php +59 -0
  550. data/vendor/assets/javascripts/ckeditor/samples/assets/sample.css +3 -0
  551. data/vendor/assets/javascripts/ckeditor/samples/assets/sample.jpg +0 -0
  552. data/vendor/assets/javascripts/ckeditor/samples/assets/uilanguages/languages.js +7 -0
  553. data/vendor/assets/javascripts/ckeditor/samples/divreplace.html +141 -0
  554. data/vendor/assets/javascripts/ckeditor/samples/index.html +119 -0
  555. data/vendor/assets/javascripts/ckeditor/samples/inlineall.html +311 -0
  556. data/vendor/assets/javascripts/ckeditor/samples/inlinebycode.html +122 -0
  557. data/vendor/assets/javascripts/ckeditor/samples/plugins/dialog/assets/my_dialog.js +48 -0
  558. data/vendor/assets/javascripts/ckeditor/samples/plugins/dialog/dialog.html +187 -0
  559. data/vendor/assets/javascripts/ckeditor/samples/plugins/enterkey/enterkey.html +103 -0
  560. data/vendor/assets/javascripts/ckeditor/samples/plugins/htmlwriter/assets/outputforflash/outputforflash.fla +0 -0
  561. data/vendor/assets/javascripts/ckeditor/samples/plugins/htmlwriter/assets/outputforflash/outputforflash.swf +0 -0
  562. data/vendor/assets/javascripts/ckeditor/samples/plugins/htmlwriter/assets/outputforflash/swfobject.js +18 -0
  563. data/vendor/assets/javascripts/ckeditor/samples/plugins/htmlwriter/outputforflash.html +280 -0
  564. data/vendor/assets/javascripts/ckeditor/samples/plugins/htmlwriter/outputhtml.html +237 -0
  565. data/vendor/assets/javascripts/ckeditor/samples/plugins/magicline/magicline.html +203 -0
  566. data/vendor/assets/javascripts/ckeditor/samples/plugins/toolbar/toolbar.html +200 -0
  567. data/vendor/assets/javascripts/ckeditor/samples/plugins/wysiwygarea/fullpage.html +71 -0
  568. data/vendor/assets/javascripts/ckeditor/samples/readonly.html +73 -0
  569. data/vendor/assets/javascripts/ckeditor/samples/replacebyclass.html +57 -0
  570. data/vendor/assets/javascripts/ckeditor/samples/replacebycode.html +56 -0
  571. data/vendor/assets/javascripts/ckeditor/samples/sample.css +333 -0
  572. data/vendor/assets/javascripts/ckeditor/samples/sample.js +5 -0
  573. data/vendor/assets/javascripts/ckeditor/samples/sample_posteddata.php +16 -0
  574. data/vendor/assets/javascripts/ckeditor/samples/tabindex.html +75 -0
  575. data/vendor/assets/javascripts/ckeditor/samples/uicolor.html +69 -0
  576. data/vendor/assets/javascripts/ckeditor/samples/uilanguages.html +119 -0
  577. data/vendor/assets/javascripts/ckeditor/samples/xhtmlstyle.html +219 -0
  578. data/vendor/assets/javascripts/ckeditor/skins/moono/dialog.css +5 -0
  579. data/vendor/assets/javascripts/ckeditor/skins/moono/dialog_ie.css +5 -0
  580. data/vendor/assets/javascripts/ckeditor/skins/moono/dialog_ie7.css +5 -0
  581. data/vendor/assets/javascripts/ckeditor/skins/moono/dialog_ie8.css +5 -0
  582. data/vendor/assets/javascripts/ckeditor/skins/moono/dialog_iequirks.css +687 -0
  583. data/vendor/assets/javascripts/ckeditor/skins/moono/dialog_opera.css +5 -0
  584. data/vendor/assets/javascripts/ckeditor/skins/moono/editor.css +5 -0
  585. data/vendor/assets/javascripts/ckeditor/skins/moono/editor_gecko.css +5 -0
  586. data/vendor/assets/javascripts/ckeditor/skins/moono/editor_ie.css +5 -0
  587. data/vendor/assets/javascripts/ckeditor/skins/moono/editor_ie7.css +5 -0
  588. data/vendor/assets/javascripts/ckeditor/skins/moono/editor_ie8.css +5 -0
  589. data/vendor/assets/javascripts/ckeditor/skins/moono/editor_iequirks.css +1389 -0
  590. data/vendor/assets/javascripts/ckeditor/skins/moono/icons.png +0 -0
  591. data/vendor/assets/javascripts/ckeditor/skins/moono/images/arrow.png +0 -0
  592. data/vendor/assets/javascripts/ckeditor/skins/moono/images/close.png +0 -0
  593. data/vendor/assets/javascripts/ckeditor/skins/moono/images/mini.png +0 -0
  594. data/vendor/assets/javascripts/ckeditor/skins/moono/readme.md +51 -0
  595. data/vendor/assets/javascripts/ckeditor/styles.js +112 -0
  596. metadata +736 -0
@@ -0,0 +1,4 @@
1
+ (function($){$.fn.oembed=function(url,options,embedAction){settings=$.extend(true,$.fn.oembed.defaults,options);var shortURLList=["0rz.tw","1link.in","1url.com","2.gp","2big.at","2tu.us","3.ly","307.to","4ms.me","4sq.com","4url.cc","6url.com","7.ly","a.gg","a.nf","aa.cx","abcurl.net","ad.vu","adf.ly","adjix.com","afx.cc","all.fuseurl.com","alturl.com","amzn.to","ar.gy","arst.ch","atu.ca","azc.cc","b23.ru","b2l.me","bacn.me","bcool.bz","binged.it","bit.ly","bizj.us","bloat.me","bravo.ly","bsa.ly","budurl.com","canurl.com","chilp.it","chzb.gr","cl.lk","cl.ly","clck.ru","cli.gs","cliccami.info","clickthru.ca","clop.in","conta.cc","cort.as","cot.ag","crks.me","ctvr.us","cutt.us","dai.ly","decenturl.com","dfl8.me","digbig.com","http:\/\/digg\.com\/[^\/]+$","disq.us","dld.bz","dlvr.it","do.my","doiop.com","dopen.us","easyuri.com","easyurl.net","eepurl.com","eweri.com","fa.by","fav.me","fb.me","fbshare.me","ff.im","fff.to","fire.to","firsturl.de","firsturl.net","flic.kr","flq.us","fly2.ws","fon.gs","freak.to","fuseurl.com","fuzzy.to","fwd4.me","fwib.net","g.ro.lt","gizmo.do","gl.am","go.9nl.com","go.ign.com","go.usa.gov","goo.gl","goshrink.com","gurl.es","hex.io","hiderefer.com","hmm.ph","href.in","hsblinks.com","htxt.it","huff.to","hulu.com","hurl.me","hurl.ws","icanhaz.com","idek.net","ilix.in","is.gd","its.my","ix.lt","j.mp","jijr.com","kl.am","klck.me","korta.nu","krunchd.com","l9k.net","lat.ms","liip.to","liltext.com","linkbee.com","linkbun.ch","liurl.cn","ln-s.net","ln-s.ru","lnk.gd","lnk.ms","lnkd.in","lnkurl.com","lru.jp","lt.tl","lurl.no","macte.ch","mash.to","merky.de","migre.me","miniurl.com","minurl.fr","mke.me","moby.to","moourl.com","mrte.ch","myloc.me","myurl.in","n.pr","nbc.co","nblo.gs","nn.nf","not.my","notlong.com","nsfw.in","nutshellurl.com","nxy.in","nyti.ms","o-x.fr","oc1.us","om.ly","omf.gd","omoikane.net","on.cnn.com","on.mktw.net","onforb.es","orz.se","ow.ly","ping.fm","pli.gs","pnt.me","politi.co","post.ly","pp.gg","profile.to","ptiturl.com","pub.vitrue.com","qlnk.net","qte.me","qu.tc","qy.fi","r.im","rb6.me","read.bi","readthis.ca","reallytinyurl.com","redir.ec","redirects.ca","redirx.com","retwt.me","ri.ms","rickroll.it","riz.gd","rt.nu","ru.ly","rubyurl.com","rurl.org","rww.tw","s4c.in","s7y.us","safe.mn","sameurl.com","sdut.us","shar.es","shink.de","shorl.com","short.ie","short.to","shortlinks.co.uk","shorturl.com","shout.to","show.my","shrinkify.com","shrinkr.com","shrt.fr","shrt.st","shrten.com","shrunkin.com","simurl.com","slate.me","smallr.com","smsh.me","smurl.name","sn.im","snipr.com","snipurl.com","snurl.com","sp2.ro","spedr.com","srnk.net","srs.li","starturl.com","su.pr","surl.co.uk","surl.hu","t.cn","t.co","t.lh.com","ta.gd","tbd.ly","tcrn.ch","tgr.me","tgr.ph","tighturl.com","tiniuri.com","tiny.cc","tiny.ly","tiny.pl","tinylink.in","tinyuri.ca","tinyurl.com","tk.","tl.gd","tmi.me","tnij.org","tnw.to","tny.com","to.ly","togoto.us","totc.us","toysr.us","tpm.ly","tr.im","tra.kz","trunc.it","twhub.com","twirl.at","twitclicks.com","twitterurl.net","twitterurl.org","twiturl.de","twurl.cc","twurl.nl","u.mavrev.com","u.nu","u76.org","ub0.cc","ulu.lu","updating.me","ur1.ca","url.az","url.co.uk","url.ie","url360.me","url4.eu","urlborg.com","urlbrief.com","urlcover.com","urlcut.com","urlenco.de","urli.nl","urls.im","urlshorteningservicefortwitter.com","urlx.ie","urlzen.com","usat.ly","use.my","vb.ly","vgn.am","vl.am","vm.lc","w55.de","wapo.st","wapurl.co.uk","wipi.es","wp.me","x.vu","xr.com","xrl.in","xrl.us","xurl.es","xurl.jp","y.ahoo.it","yatuc.com","ye.pe","yep.it","yfrog.com","yhoo.it","yiyd.com","youtu.be","yuarel.com","z0p.de","zi.ma","zi.mu","zipmyurl.com","zud.me","zurl.ws","zz.gd","zzang.kr","›.ws","✩.ws","✿.ws","❥.ws","➔.ws","➞.ws","➡.ws","➨.ws","➯.ws","➹.ws","➽.ws"];if($('#jqoembeddata').length===0)$('<span id="jqoembeddata"></span>').appendTo('body');return this.each(function(){var container=$(this),resourceURL=(url&&(!url.indexOf('http://')||!url.indexOf('https://')))?url:container.attr("href"),provider;if(embedAction){settings.onEmbed=embedAction}else if(!settings.onEmbed){settings.onEmbed=function(oembedData){$.fn.oembed.insertCode(this,settings.embedMethod,oembedData)}}if(resourceURL!==null){for(var j=0,l=shortURLList.length;j<l;j++){var regExp=new RegExp('://'+shortURLList[j]+'/',"i");if(resourceURL.match(regExp)!==null){var ajaxopts=$.extend({url:"http://api.longurl.org/v2/expand",dataType:'jsonp',data:{url:resourceURL,format:"json"},success:function(data){resourceURL=data['long-url'];provider=$.fn.oembed.getOEmbedProvider(data['long-url']);if(provider!==null){provider.params=getNormalizedParams(settings[provider.name])||{};provider.maxWidth=settings.maxWidth;provider.maxHeight=settings.maxHeight;embedCode(container,resourceURL,provider)}else{settings.onProviderNotFound.call(container,resourceURL)}}},settings.ajaxOptions||{});$.ajax(ajaxopts);return container}}provider=$.fn.oembed.getOEmbedProvider(resourceURL);if(provider!==null){provider.params=getNormalizedParams(settings[provider.name])||{};provider.maxWidth=settings.maxWidth;provider.maxHeight=settings.maxHeight;embedCode(container,resourceURL,provider)}else{settings.onProviderNotFound.call(container,resourceURL)}}return container})};var settings;$.fn.oembed.defaults={maxWidth:null,maxHeight:null,includeHandle:true,embedMethod:'auto',onProviderNotFound:function(){},beforeEmbed:function(){},afterEmbed:function(){},onEmbed:false,onError:function(){},ajaxOptions:{}};function rand(length,current){current=current?current:'';return length?rand(--length,"0123456789ABCDEFGHIJKLMNOPQRSTUVWXTZabcdefghiklmnopqrstuvwxyz".charAt(Math.floor(Math.random()*60))+current):current}function getRequestUrl(provider,externalUrl){var url=provider.apiendpoint,qs="",i;url+=(url.indexOf("?")<=0)?"?":"&";url=url.replace('#','%23');if(provider.maxWidth!==null&&(typeof provider.params.maxwidth==='undefined'||provider.params.maxwidth===null)){provider.params.maxwidth=provider.maxWidth}if(provider.maxHeight!==null&&(typeof provider.params.maxheight==='undefined'||provider.params.maxheight===null)){provider.params.maxheight=provider.maxHeight}for(i in provider.params){if(i==provider.callbackparameter)continue;if(provider.params[i]!==null)qs+="&"+escape(i)+"="+provider.params[i]}url+="format="+provider.format+"&url="+escape(externalUrl)+qs;if(provider.dataType!='json')url+="&"+provider.callbackparameter+"=?";return url}function success(oembedData,externalUrl,container){$('#jqoembeddata').data(externalUrl,oembedData.code);settings.beforeEmbed.call(container,oembedData);settings.onEmbed.call(container,oembedData);settings.afterEmbed.call(container,oembedData)}function embedCode(container,externalUrl,embedProvider){if($('#jqoembeddata').data(externalUrl)!=undefined&&embedProvider.embedtag.tag!='iframe'){var oembedData={code:$('#jqoembeddata').data(externalUrl)};success(oembedData,externalUrl,container)}else if(embedProvider.yql){var from=embedProvider.yql.from||'htmlstring';var url=embedProvider.yql.url?embedProvider.yql.url(externalUrl):externalUrl;var query='SELECT * FROM '+from+' WHERE url="'+(url)+'"'+" and "+(/html/.test(from)?'xpath':'itemPath')+"='"+(embedProvider.yql.xpath||'/')+"'";if(from=='html')query+=" and compat='html5'";var ajaxopts=$.extend({url:"http://query.yahooapis.com/v1/public/yql",dataType:'jsonp',data:{q:query,format:"json",env:'store://datatables.org/alltableswithkeys',callback:"?"},success:function(data){var result;if(embedProvider.yql.xpath&&embedProvider.yql.xpath=='//meta|//title|//link'){var meta={};if(data.query.results==null){data.query.results={"meta":[]}}for(var i=0,l=data.query.results.meta.length;i<l;i++){var name=data.query.results.meta[i].name||data.query.results.meta[i].property||null;if(name==null)continue;meta[name.toLowerCase()]=data.query.results.meta[i].content}if(!meta.hasOwnProperty("title")||!meta.hasOwnProperty("og:title")){if(data.query.results.title!=null){meta.title=data.query.results.title}}if(!meta.hasOwnProperty("og:image")&&data.query.results.hasOwnProperty("link")){for(var i=0,l=data.query.results.link.length;i<l;i++){if(data.query.results.link[i].hasOwnProperty("rel")){if(data.query.results.link[i].rel=="apple-touch-icon"){if(data.query.results.link[i].href.charAt(0)=="/"){meta["og:image"]=url.match(/^(([a-z]+:)?(\/\/)?[^\/]+\/).*$/)[1]+data.query.results.link[i].href}else{meta["og:image"]=data.query.results.link[i].href}}}}}result=embedProvider.yql.datareturn(meta)}else{result=embedProvider.yql.datareturn?embedProvider.yql.datareturn(data.query.results):data.query.results.result}if(result===false)return;var oembedData=$.extend({},result);oembedData.code=result;success(oembedData,externalUrl,container)},error:settings.onError.call(container,externalUrl,embedProvider)},settings.ajaxOptions||{});$.ajax(ajaxopts)}else if(embedProvider.templateRegex){if(embedProvider.embedtag.tag!==''){var flashvars=embedProvider.embedtag.flashvars||'';var tag=embedProvider.embedtag.tag||'embed';var width=embedProvider.embedtag.width||'auto';var nocache=embedProvider.embedtag.nocache||0;var height=embedProvider.embedtag.height||'auto';var src=externalUrl.replace(embedProvider.templateRegex,embedProvider.apiendpoint);if(!embedProvider.nocache)src+='&jqoemcache='+rand(5);if(embedProvider.apikey)src=src.replace('_APIKEY_',settings.apikeys[embedProvider.name]);var code=$('<'+tag+'/>').attr('src',src).attr('width',width).attr('height',height).attr('allowfullscreen',embedProvider.embedtag.allowfullscreen||'true').attr('allowscriptaccess',embedProvider.embedtag.allowfullscreen||'always').css('max-height',settings.maxHeight||'auto').css('max-width',settings.maxWidth||'auto');if(tag=='embed')code.attr('type',embedProvider.embedtag.type||"application/x-shockwave-flash").attr('flashvars',externalUrl.replace(embedProvider.templateRegex,flashvars));if(tag=='iframe')code.attr('scrolling',embedProvider.embedtag.scrolling||"no").attr('frameborder',embedProvider.embedtag.frameborder||"0");var oembedData={code:code};success(oembedData,externalUrl,container)}else if(embedProvider.apiendpoint){if(embedProvider.apikey)embedProvider.apiendpoint=embedProvider.apiendpoint.replace('_APIKEY_',settings.apikeys[embedProvider.name]);ajaxopts=$.extend({url:externalUrl.replace(embedProvider.templateRegex,embedProvider.apiendpoint),dataType:'jsonp',success:function(data){var oembedData=$.extend({},data);oembedData.code=embedProvider.templateData(data);success(oembedData,externalUrl,container)},error:settings.onError.call(container,externalUrl,embedProvider)},settings.ajaxOptions||{});$.ajax(ajaxopts)}else{var oembedData={code:externalUrl.replace(embedProvider.templateRegex,embedProvider.template)};success(oembedData,externalUrl,container)}}else{var requestUrl=getRequestUrl(embedProvider,externalUrl),ajaxopts=$.extend({url:requestUrl,dataType:embedProvider.dataType||'jsonp',success:function(data){var oembedData=$.extend({},data);switch(oembedData.type){case"file":case"photo":oembedData.code=$.fn.oembed.getPhotoCode(externalUrl,oembedData);break;case"video":case"rich":oembedData.code=$.fn.oembed.getRichCode(externalUrl,oembedData);break;default:oembedData.code=$.fn.oembed.getGenericCode(externalUrl,oembedData);break}success(oembedData,externalUrl,container)},error:settings.onError.call(container,externalUrl,embedProvider)},settings.ajaxOptions||{});$.ajax(ajaxopts)}};function getNormalizedParams(params){if(params===null)return null;var key,normalizedParams={};for(key in params){if(key!==null)normalizedParams[key.toLowerCase()]=params[key]}return normalizedParams}$.fn.oembed.insertCode=function(container,embedMethod,oembedData){if(oembedData===null)return;if(embedMethod=='auto'&&container.attr("href")!==null)embedMethod='append';else if(embedMethod=='auto')embedMethod='replace';switch(embedMethod){case"replace":container.replaceWith(oembedData.code);break;case"fill":container.html(oembedData.code);break;case"append":container.wrap('<div class="oembedall-container"></div>');var oembedContainer=container.parent();if(settings.includeHandle){$('<span class="oembedall-closehide">&darr;</span>').insertBefore(container).click(function(){var encodedString=encodeURIComponent($(this).text());$(this).html((encodedString=='%E2%86%91')?'&darr;':'&uarr;');$(this).parent().children().last().toggle()})}oembedContainer.append('<br/>');try{oembedData.code.clone().appendTo(oembedContainer)}catch(e){oembedContainer.append(oembedData.code)}if(settings.maxWidth){var post_width=oembedContainer.parent().width();if(post_width<settings.maxWidth){var iframe_width_orig=$('iframe',oembedContainer).width();var iframe_height_orig=$('iframe',oembedContainer).height();var ratio=iframe_width_orig/post_width;$('iframe',oembedContainer).width(iframe_width_orig/ratio);$('iframe',oembedContainer).height(iframe_height_orig/ratio)}else{if(settings.maxWidth){$('iframe',oembedContainer).width(settings.maxWidth)}if(settings.maxHeight){$('iframe',oembedContainer).height(settings.maxHeight)}}}break}};$.fn.oembed.getPhotoCode=function(url,oembedData){var code,alt=oembedData.title?oembedData.title:'';alt+=oembedData.author_name?' - '+oembedData.author_name:'';alt+=oembedData.provider_name?' - '+oembedData.provider_name:'';code='<div><a href="'+url+'" target=\'_blank\'><img src="'+oembedData.url+'" alt="'+alt+'"/></a></div>';if(oembedData.html)code+="<div>"+oembedData.html+"</div>";return code};$.fn.oembed.getRichCode=function(url,oembedData){var code=oembedData.html;return code};$.fn.oembed.getGenericCode=function(url,oembedData){var title=(oembedData.title!==null)?oembedData.title:url,code='<a href="'+url+'">'+title+'</a>';if(oembedData.html)code+="<div>"+oembedData.html+"</div>";return code};$.fn.oembed.getOEmbedProvider=function(url){for(var i=0;i<$.fn.oembed.providers.length;i++){for(var j=0,l=$.fn.oembed.providers[i].urlschemes.length;j<l;j++){var regExp=new RegExp($.fn.oembed.providers[i].urlschemes[j],"i");if(url.match(regExp)!==null)return $.fn.oembed.providers[i]}}return null};$.fn.oembed.OEmbedProvider=function(name,type,urlschemesarray,apiendpoint,extraSettings){this.name=name;this.type=type;this.urlschemes=urlschemesarray;this.apiendpoint=apiendpoint;this.maxWidth=500;this.maxHeight=400;extraSettings=extraSettings||{};if(extraSettings.useYQL){if(extraSettings.useYQL=='xml'){extraSettings.yql={xpath:"//oembed/html",from:'xml',apiendpoint:this.apiendpoint,url:function(externalurl){return this.apiendpoint+'?format=xml&url='+externalurl},datareturn:function(results){return results.html.replace(/.*\[CDATA\[(.*)\]\]>$/,'$1')||''}}}else{extraSettings.yql={from:'json',apiendpoint:this.apiendpoint,url:function(externalurl){return this.apiendpoint+'?format=json&url='+externalurl},datareturn:function(results){if(results.json.type!='video'&&(results.json.url||results.json.thumbnail_url)){return'<img src="'+(results.json.url||results.json.thumbnail_url)+'" />'}return results.json.html||''}}}this.apiendpoint=null}for(var property in extraSettings){this[property]=extraSettings[property]}this.format=this.format||'json';this.callbackparameter=this.callbackparameter||"callback";this.embedtag=this.embedtag||{tag:""}};$.fn.oembed.providers=[new $.fn.oembed.OEmbedProvider("youtube","video",["youtube\\.com/watch.+v=[\\w-]+&?","youtu\\.be/[\\w-]+"],'http://www.youtube.com/oembed',{useYQL:'json'}),new $.fn.oembed.OEmbedProvider("youtubeiframe","video",["youtube.com/embed"],"$1?wmode=transparent",{templateRegex:/(.*)/,embedtag:{tag:'iframe',width:'425',height:'349'}}),new $.fn.oembed.OEmbedProvider("wistia","video",["wistia.com/m/.+","wistia.com/embed/.+","wi.st/m/.+","wi.st/embed/.+"],'http://fast.wistia.com/oembed',{useYQL:'json'}),new $.fn.oembed.OEmbedProvider("xtranormal","video",["xtranormal\\.com/watch/.+"],"http://www.xtranormal.com/xtraplayr/$1/$2",{templateRegex:/.*com\/watch\/([\w\-]+)\/([\w\-]+).*/,embedtag:{tag:'iframe',width:'320',height:'269'}}),new $.fn.oembed.OEmbedProvider("scivee","video",["scivee.tv/node/.+"],"http://www.scivee.tv/flash/embedCast.swf?",{templateRegex:/.*tv\/node\/(.+)/,embedtag:{width:'480',height:'400',flashvars:"id=$1&type=3"}}),new $.fn.oembed.OEmbedProvider("veoh","video",["veoh.com/watch/.+"],"http://www.veoh.com/swf/webplayer/WebPlayer.swf?version=AFrontend.5.7.0.1337&permalinkId=$1&player=videodetailsembedded&videoAutoPlay=0&id=anonymous",{templateRegex:/.*watch\/([^\?]+).*/,embedtag:{width:'410',height:'341'}}),new $.fn.oembed.OEmbedProvider("gametrailers","video",["gametrailers\\.com/video/.+"],"http://media.mtvnservices.com/mgid:moses:video:gametrailers.com:$2",{templateRegex:/.*com\/video\/([\w\-]+)\/([\w\-]+).*/,embedtag:{width:'512',height:'288'}}),new $.fn.oembed.OEmbedProvider("funnyordie","video",["funnyordie\\.com/videos/.+"],"http://player.ordienetworks.com/flash/fodplayer.swf?",{templateRegex:/.*videos\/([^\/]+)\/([^\/]+)?/,embedtag:{width:512,height:328,flashvars:"key=$1"}}),new $.fn.oembed.OEmbedProvider("colledgehumour","video",["collegehumor\\.com/video/.+"],"http://www.collegehumor.com/moogaloop/moogaloop.swf?clip_id=$1&use_node_id=true&fullscreen=1",{templateRegex:/.*video\/([^\/]+).*/,embedtag:{width:600,height:338}}),new $.fn.oembed.OEmbedProvider("metacafe","video",["metacafe\\.com/watch/.+"],"http://www.metacafe.com/fplayer/$1/$2.swf",{templateRegex:/.*watch\/(\d+)\/(\w+)\/.*/,embedtag:{width:400,height:345}}),new $.fn.oembed.OEmbedProvider("bambuser","video",["bambuser\\.com\/channel\/.*\/broadcast\/.*"],"http://static.bambuser.com/r/player.swf?vid=$1",{templateRegex:/.*bambuser\.com\/channel\/.*\/broadcast\/(\w+).*/,embedtag:{width:512,height:339}}),new $.fn.oembed.OEmbedProvider("twitvid","video",["twitvid\\.com/.+"],"http://www.twitvid.com/embed.php?guid=$1&autoplay=0",{templateRegex:/.*twitvid\.com\/(\w+).*/,embedtag:{tag:'iframe',width:480,height:360}}),new $.fn.oembed.OEmbedProvider("aniboom","video",["aniboom\\.com/animation-video/.+"],"http://api.aniboom.com/e/$1",{templateRegex:/.*animation-video\/(\d+).*/,embedtag:{width:594,height:334}}),new $.fn.oembed.OEmbedProvider("vzaar","video",["vzaar\\.com/videos/.+","vzaar.tv/.+"],"http://view.vzaar.com/$1/player?",{templateRegex:/.*\/(\d+).*/,embedtag:{tag:'iframe',width:576,height:324}}),new $.fn.oembed.OEmbedProvider("snotr","video",["snotr\\.com/video/.+"],"http://www.snotr.com/embed/$1",{templateRegex:/.*\/(\d+).*/,embedtag:{tag:'iframe',width:400,height:330,nocache:1}}),new $.fn.oembed.OEmbedProvider("youku","video",["v.youku.com/v_show/id_.+"],"http://player.youku.com/player.php/sid/$1/v.swf",{templateRegex:/.*id_(.+)\.html.*/,embedtag:{width:480,height:400,nocache:1}}),new $.fn.oembed.OEmbedProvider("embedr","video",["embedr\\.com/playlist/.+"],"http://embedr.com/swf/slider/$1/425/520/default/false/std?",{templateRegex:/.*playlist\/([^\/]+).*/,embedtag:{width:425,height:520}}),new $.fn.oembed.OEmbedProvider("blip","video",["blip\\.tv/.+"],"http://blip.tv/oembed/"),new $.fn.oembed.OEmbedProvider("minoto-video","video",["http://api.minoto-video.com/publishers/.+/videos/.+","http://dashboard.minoto-video.com/main/video/details/.+","http://embed.minoto-video.com/.+"],"http://api.minoto-video.com/services/oembed.json",{useYQL:'json'}),new $.fn.oembed.OEmbedProvider("animoto","video",["animoto.com/play/.+"],"http://animoto.com/services/oembed"),new $.fn.oembed.OEmbedProvider("hulu","video",["hulu\\.com/watch/.*"],"http://www.hulu.com/api/oembed.json"),new $.fn.oembed.OEmbedProvider("ustream","video",["ustream\\.tv/recorded/.*"],"http://www.ustream.tv/oembed",{useYQL:'json'}),new $.fn.oembed.OEmbedProvider("vodpod","video",["vodpod.com/watch/.*"],"http://vodpod.com/oembed.js",{useYQL:'json'}),new $.fn.oembed.OEmbedProvider("vimeo","video",["http:\/\/www\.vimeo\.com\/groups\/.*\/videos\/.*","http:\/\/www\.vimeo\.com\/.*","http:\/\/vimeo\.com\/groups\/.*\/videos\/.*","http:\/\/vimeo\.com\/.*"],"http://vimeo.com/api/oembed.json"),new $.fn.oembed.OEmbedProvider("dailymotion","video",["dailymotion\\.com/.+"],'http://www.dailymotion.com/services/oembed'),new $.fn.oembed.OEmbedProvider("5min","video",["www\\.5min\\.com/.+"],'http://api.5min.com/oembed.xml',{useYQL:'xml'}),new $.fn.oembed.OEmbedProvider("National Film Board of Canada","video",["nfb\\.ca/film/.+"],'http://www.nfb.ca/remote/services/oembed/',{useYQL:'json'}),new $.fn.oembed.OEmbedProvider("qik","video",["qik\\.com/\\w+"],'http://qik.com/api/oembed.json',{useYQL:'json'}),new $.fn.oembed.OEmbedProvider("revision3","video",["revision3\\.com"],"http://revision3.com/api/oembed/"),new $.fn.oembed.OEmbedProvider("dotsub","video",["dotsub\\.com/view/.+"],"http://dotsub.com/services/oembed",{useYQL:'json'}),new $.fn.oembed.OEmbedProvider("clikthrough","video",["clikthrough\\.com/theater/video/\\d+"],"http://clikthrough.com/services/oembed"),new $.fn.oembed.OEmbedProvider("Kinomap","video",["kinomap\\.com/.+"],"http://www.kinomap.com/oembed"),new $.fn.oembed.OEmbedProvider("VHX","video",["vhx.tv/.+"],"http://vhx.tv/services/oembed.json"),new $.fn.oembed.OEmbedProvider("bambuser","video",["bambuser.com/.+"],"http://api.bambuser.com/oembed/iframe.json"),new $.fn.oembed.OEmbedProvider("justin.tv","video",["justin.tv/.+"],'http://api.justin.tv/api/embed/from_url.json',{useYQL:'json'}),new $.fn.oembed.OEmbedProvider("official.fm","rich",["official.fm/.+"],'http://official.fm/services/oembed',{useYQL:'json'}),new $.fn.oembed.OEmbedProvider("chirbit","rich",["chirb.it/.+"],'http://chirb.it/oembed.json',{useYQL:'json'}),new $.fn.oembed.OEmbedProvider("Huffduffer","rich",["huffduffer.com/[-.\\w@]+/\\d+"],"http://huffduffer.com/oembed"),new $.fn.oembed.OEmbedProvider("shoudio","rich",["shoudio.com/.+","shoud.io/.+"],"http://shoudio.com/api/oembed"),new $.fn.oembed.OEmbedProvider("mixcloud","rich",["mixcloud.com/.+"],'http://www.mixcloud.com/oembed/',{useYQL:'json'}),new $.fn.oembed.OEmbedProvider("rdio.com","rich",["rd.io/.+","rdio.com"],"http://www.rdio.com/api/oembed/"),new $.fn.oembed.OEmbedProvider("Soundcloud","rich",["soundcloud.com/.+","snd.sc/.+"],"http://soundcloud.com/oembed",{format:'js'}),new $.fn.oembed.OEmbedProvider("bandcamp","rich",["bandcamp\\.com/album/.+"],null,{yql:{xpath:"//meta[contains(@content, \\'EmbeddedPlayer\\')]",from:'html',datareturn:function(results){return results.meta?'<iframe width="400" height="100" src="'+results.meta.content+'" allowtransparency="true" frameborder="0"></iframe>':false}}}),new $.fn.oembed.OEmbedProvider("deviantart","photo",["deviantart.com/.+","fav.me/.+","deviantart.com/.+"],"http://backend.deviantart.com/oembed",{format:'jsonp'}),new $.fn.oembed.OEmbedProvider("skitch","photo",["skitch.com/.+"],null,{yql:{xpath:"json",from:'json',url:function(externalurl){return'http://skitch.com/oembed/?format=json&url='+externalurl},datareturn:function(data){return $.fn.oembed.getPhotoCode(data.json.url,data.json)}}}),new $.fn.oembed.OEmbedProvider("mobypicture","photo",["mobypicture.com/user/.+/view/.+","moby.to/.+"],"http://api.mobypicture.com/oEmbed"),new $.fn.oembed.OEmbedProvider("flickr","photo",["flickr\\.com/photos/.+"],"http://flickr.com/services/oembed",{callbackparameter:'jsoncallback'}),new $.fn.oembed.OEmbedProvider("photobucket","photo",["photobucket\\.com/(albums|groups)/.+"],"http://photobucket.com/oembed/"),new $.fn.oembed.OEmbedProvider("instagram","photo",["instagr\\.?am(\\.com)?/.+"],"http://api.instagram.com/oembed"),new $.fn.oembed.OEmbedProvider("SmugMug","photo",["smugmug.com/[-.\\w@]+/.+"],"http://api.smugmug.com/services/oembed/"),new $.fn.oembed.OEmbedProvider("dribbble","photo",["dribbble.com/shots/.+"],"http://api.dribbble.com/shots/$1?callback=?",{templateRegex:/.*shots\/([\d]+).*/,templateData:function(data){if(!data.image_teaser_url)return false;return'<img src="'+data.image_teaser_url+'"/>'}}),new $.fn.oembed.OEmbedProvider("chart.ly","photo",["chart\\.ly/[a-z0-9]{6,8}"],"http://chart.ly/uploads/large_$1.png",{templateRegex:/.*ly\/([^\/]+).*/,embedtag:{tag:'img'},nocache:1}),new $.fn.oembed.OEmbedProvider("circuitlab","photo",["circuitlab.com/circuit/.+"],"https://www.circuitlab.com/circuit/$1/screenshot/540x405/",{templateRegex:/.*circuit\/([^\/]+).*/,embedtag:{tag:'img'},nocache:1}),new $.fn.oembed.OEmbedProvider("23hq","photo",["23hq.com/[-.\\w@]+/photo/.+"],"http://www.23hq.com/23/oembed",{useYQL:"json"}),new $.fn.oembed.OEmbedProvider("img.ly","photo",["img\\.ly/.+"],"http://img.ly/show/thumb/$1",{templateRegex:/.*ly\/([^\/]+).*/,embedtag:{tag:'img'},nocache:1}),new $.fn.oembed.OEmbedProvider("twitgoo.com","photo",["twitgoo\\.com/.+"],"http://twitgoo.com/show/thumb/$1",{templateRegex:/.*com\/([^\/]+).*/,embedtag:{tag:'img'},nocache:1}),new $.fn.oembed.OEmbedProvider("imgur.com","photo",["imgur\\.com/gallery/.+"],"http://imgur.com/$1l.jpg",{templateRegex:/.*gallery\/([^\/]+).*/,embedtag:{tag:'img'},nocache:1}),new $.fn.oembed.OEmbedProvider("visual.ly","rich",["visual\\.ly/.+"],null,{yql:{xpath:"//a[@id=\\'gc_article_graphic_image\\']/img",from:'htmlstring'}}),new $.fn.oembed.OEmbedProvider("gravtar","photo",["mailto:.+"],null,{templateRegex:/mailto:([^\/]+).*/,template:function(wm,email){return'<img src="http://gravatar.com/avatar/'+email.md5()+'.jpg" alt="on Gravtar" class="jqoaImg">'}}),new $.fn.oembed.OEmbedProvider("twitter","rich",["twitter.com/.+"],"https://api.twitter.com/1/statuses/oembed.json"),new $.fn.oembed.OEmbedProvider("urtak","rich",["urtak.com/(u|clr)/.+"],"http://oembed.urtak.com/1/oembed"),new $.fn.oembed.OEmbedProvider("cacoo","rich",["cacoo.com/.+"],"http://cacoo.com/oembed.json"),new $.fn.oembed.OEmbedProvider("dailymile","rich",["dailymile.com/people/.*/entries/.*"],"http://api.dailymile.com/oembed"),new $.fn.oembed.OEmbedProvider("dipity","rich",["dipity.com/timeline/.+"],'http://www.dipity.com/oembed/timeline/',{useYQL:'json'}),new $.fn.oembed.OEmbedProvider("speakerdeck","rich",["speakerdeck.com/.+"],'http://speakerdeck.com/oembed.json',{useYQL:'json'}),new $.fn.oembed.OEmbedProvider("popplet","rich",["popplet.com/app/.*"],"http://popplet.com/app/Popplet_Alpha.swf?page_id=$1&em=1",{templateRegex:/.*#\/([^\/]+).*/,embedtag:{width:460,height:460}}),new $.fn.oembed.OEmbedProvider("pearltrees","rich",["pearltrees.com/.*"],"http://cdn.pearltrees.com/s/embed/getApp?",{templateRegex:/.*N-f=1_(\d+).*N-p=(\d+).*/,embedtag:{width:460,height:460,flashvars:"lang=en_US&amp;embedId=pt-embed-$1-693&amp;treeId=$1&amp;pearlId=$2&amp;treeTitle=Diagrams%2FVisualization&amp;site=www.pearltrees.com%2FF"}}),new $.fn.oembed.OEmbedProvider("prezi","rich",["prezi.com/.*"],"http://prezi.com/bin/preziloader.swf?",{templateRegex:/.*com\/([^\/]+)\/.*/,embedtag:{width:550,height:400,flashvars:"prezi_id=$1&amp;lock_to_path=0&amp;color=ffffff&amp;autoplay=no&amp;autohide_ctrls=0"}}),new $.fn.oembed.OEmbedProvider("tourwrist","rich",["tourwrist.com/tours/.+"],null,{templateRegex:/.*tours.([\d]+).*/,template:function(wm,tourid){setTimeout(function(){if(loadEmbeds)loadEmbeds()},2000);return"<div id='"+tourid+"' class='tourwrist-tour-embed direct'></div> <script type='text/javascript' src='http://tourwrist.com/tour_embed.js'></script>"}}),new $.fn.oembed.OEmbedProvider("meetup","rich",["meetup\\.(com|ps)/.+"],"http://api.meetup.com/oembed"),new $.fn.oembed.OEmbedProvider("ebay","rich",["ebay\\.*"],"http://togo.ebay.com/togo/togo.swf?2008013100",{templateRegex:/.*\/([^\/]+)\/(\d{10,13}).*/,embedtag:{width:355,height:300,flashvars:"base=http://togo.ebay.com/togo/&lang=en-us&mode=normal&itemid=$2&query=$1"}}),new $.fn.oembed.OEmbedProvider("wikipedia","rich",["wikipedia.org/wiki/.+"],"http://$1.wikipedia.org/w/api.php?action=parse&page=$2&format=json&section=0&callback=?",{templateRegex:/.*\/\/([\w]+).*\/wiki\/([^\/]+).*/,templateData:function(data){if(!data.parse)return false;var text=data.parse['text']['*'].replace('href="/wiki','href="http://en.wikipedia.org/wiki');return'<div id="content"><h3><a class="nav-link" href="http://en.wikipedia.org/wiki/'+data.parse['displaytitle']+'">'+data.parse['displaytitle']+'</a></h3>'+text+'</div>'}}),new $.fn.oembed.OEmbedProvider("imdb","rich",["imdb.com/title/.+"],"http://www.imdbapi.com/?i=$1&callback=?",{templateRegex:/.*\/title\/([^\/]+).*/,templateData:function(data){if(!data.Title)return false;return'<div id="content"><h3><a class="nav-link" href="http://imdb.com/title/'+data.ID+'/">'+data.Title+'</a> ('+data.Year+')</h3><p>Starring: '+data.Actors+'</p><div id="photo-wrap" style="margin: auto;width:600px;height:450px;"><img class="photo" id="photo-display" src="'+data.Poster+'" alt="'+data.Title+'"></div> <div id="view-photo-caption">'+data.Plot+'</div></div>'}}),new $.fn.oembed.OEmbedProvider("livejournal","rich",["livejournal.com/"],"http://ljpic.seacrow.com/json/$2$4?jsonp=?",{templateRegex:/(http:\/\/(((?!users).)+)\.livejournal\.com|.*users\.livejournal\.com\/([^\/]+)).*/,templateData:function(data){if(!data.username)return false;return'<div><img src="'+data.image+'" align="left" style="margin-right: 1em;" /><span class="oembedall-ljuser"><a href="http://'+data.username+'.livejournal.com/profile"><img src="http://www.livejournal.com/img/userinfo.gif" alt="[info]" width="17" height="17" /></a><a href="http://'+data.username+'.livejournal.com/">'+data.username+'</a></span><br />'+data.name+'</div>'}}),new $.fn.oembed.OEmbedProvider("circuitbee","rich",["circuitbee\\.com/circuit/view/.+"],"http://c.circuitbee.com/build/r/schematic-embed.html?id=$1",{templateRegex:/.*circuit\/view\/(\d+).*/,embedtag:{tag:'iframe',width:'500',height:'350'}}),new $.fn.oembed.OEmbedProvider("googlecalendar","rich",["www.google.com/calendar/embed?.+"],"$1",{templateRegex:/(.*)/,embedtag:{tag:'iframe',width:'800',height:'600'}}),new $.fn.oembed.OEmbedProvider("jsfiddle","rich",["jsfiddle.net/[^/]+/?"],"http://jsfiddle.net/$1/embedded/result,js,resources,html,css/?",{templateRegex:/.*net\/([^\/]+).*/,embedtag:{tag:'iframe',width:'100%',height:'300'}}),new $.fn.oembed.OEmbedProvider("jsbin","rich",["jsbin.com/.+"],"http://jsbin.com/$1/?",{templateRegex:/.*com\/([^\/]+).*/,embedtag:{tag:'iframe',width:'100%',height:'300'}}),new $.fn.oembed.OEmbedProvider("jotform","rich",["form.jotform.co/form/.+"],"$1?",{templateRegex:/(.*)/,embedtag:{tag:'iframe',width:'100%',height:'507'}}),new $.fn.oembed.OEmbedProvider("reelapp","rich",["reelapp\\.com/.+"],"http://www.reelapp.com/$1/embed",{templateRegex:/.*com\/(\S{6}).*/,embedtag:{tag:'iframe',width:'400',height:'338'}}),new $.fn.oembed.OEmbedProvider("linkedin","rich",["linkedin.com/pub/.+"],"https://www.linkedin.com/cws/member/public_profile?public_profile_url=$1&format=inline&isFramed=true",{templateRegex:/(.*)/,embedtag:{tag:'iframe',width:'368px',height:'auto'}}),new $.fn.oembed.OEmbedProvider("timetoast","rich",["timetoast.com/timelines/[0-9]+"],"http://www.timetoast.com/flash/TimelineViewer.swf?passedTimelines=$1",{templateRegex:/.*timelines\/([0-9]*)/,embedtag:{width:550,height:400,nocache:1}}),new $.fn.oembed.OEmbedProvider("pastebin","rich",["pastebin\\.com/[\\S]{8}"],"http://pastebin.com/embed_iframe.php?i=$1",{templateRegex:/.*\/(\S{8}).*/,embedtag:{tag:'iframe',width:'100%',height:'auto'}}),new $.fn.oembed.OEmbedProvider("pastie","rich",["pastie\\.org/pastes/.+"],null,{yql:{xpath:'//pre[@class="textmate-source"]'}}),new $.fn.oembed.OEmbedProvider("github","rich",["gist.github.com/.+"],"https://github.com/api/oembed"),new $.fn.oembed.OEmbedProvider("github","rich",["github.com/[-.\\w@]+/[-.\\w@]+"],"https://api.github.com/repos/$1/$2?callback=?",{templateRegex:/.*\/([^\/]+)\/([^\/]+).*/,templateData:function(data){if(!data.data.html_url)return false;return'<div class="oembedall-githubrepos"><ul class="oembedall-repo-stats"><li>'+data.data.language+'</li><li class="oembedall-watchers"><a title="Watchers" href="'+data.data.html_url+'/watchers">&#x25c9; '+data.data.watchers+'</a></li>'+'<li class="oembedall-forks"><a title="Forks" href="'+data.data.html_url+'/network">&#x0265; '+data.data.forks+'</a></li></ul><h3><a href="'+data.data.html_url+'">'+data.data.name+'</a></h3><div class="oembedall-body"><p class="oembedall-description">'+data.data.description+'</p>'+'<p class="oembedall-updated-at">Last updated: '+data.data.pushed_at+'</p></div></div>'}}),new $.fn.oembed.OEmbedProvider("facebook","rich",["facebook.com/(people/[^\\/]+/\\d+|[^\\/]+$)"],"https://graph.facebook.com/$2$3/?callback=?",{templateRegex:/.*facebook.com\/(people\/[^\/]+\/(\d+).*|([^\/]+$))/,templateData:function(data){if(!data.id)return false;var out='<div class="oembedall-facebook1"><div class="oembedall-facebook2"><a href="http://www.facebook.com/">facebook</a> <a href="'+data.link+'">'+data.name+'</a></div><div class="oembedall-facebookBody"><div>';if(data.picture)out+='<img src="'+data.picture+'" align="left"></div><div>';if(data.category)out+='Category <strong>'+data.category+'</strong><br/>';if(data.website)out+='Website <strong>'+data.website+'</strong><br/>';if(data.gender)out+='Gender <strong>'+data.gender+'</strong><br/>';out+='</div></div></div>';return out}}),new $.fn.oembed.OEmbedProvider("stackoverflow","rich",["stackoverflow.com/questions/[\\d]+"],"http://api.stackoverflow.com/1.1/questions/$1?body=true&jsonp=?",{templateRegex:/.*questions\/([\d]+).*/,templateData:function(data){if(!data.questions)return false;var q=data.questions[0];var body=$(q.body).text();var out='<div class="oembedall-stoqembed"><div class="oembedall-statscontainer"><div class="oembedall-statsarrow"></div><div class="oembedall-stats"><div class="oembedall-vote"><div class="oembedall-votes">'+'<span class="oembedall-vote-count-post"><strong>'+(q.up_vote_count-q.down_vote_count)+'</strong></span><div class="oembedall-viewcount">vote(s)</div></div>'+'</div><div class="oembedall-status"><strong>'+q.answer_count+'</strong>answer</div></div><div class="oembedall-views">'+q.view_count+' view(s)</div></div>'+'<div class="oembedall-summary"><h3><a class="oembedall-question-hyperlink" href="http://stackoverflow.com/questions/'+q.question_id+'/">'+q.title+'</a></h3>'+'<div class="oembedall-excerpt">'+body.substring(0,100)+'...</div><div class="oembedall-tags">';for(i in q.tags)out+='<a title="" class="oembedall-post-tag" href="http://stackoverflow.com/questions/tagged/'+q.tags[i]+'">'+q.tags[i]+'</a>';out+='</div><div class="oembedall-fr"><div class="oembedall-user-info"><div class="oembedall-user-gravatar32"><a href="http://stackoverflow.com/users/'+q.owner.user_id+'/'+q.owner.display_name+'">'+'<img width="32" height="32" alt="" src="http://www.gravatar.com/avatar/'+q.owner.email_hash+'?s=32&amp;d=identicon&amp;r=PG"></a></div><div class="oembedall-user-details">'+'<a href="http://stackoverflow.com/users/'+q.owner.user_id+'/'+q.owner.display_name+'">'+q.owner.display_name+'</a><br><span title="reputation score" class="oembedall-reputation-score">'+q.owner.reputation+'</span></div></div></div></div></div>';return out}}),new $.fn.oembed.OEmbedProvider("wordpress","rich",["wordpress\\.com/.+","blogs\\.cnn\\.com/.+","techcrunch\\.com/.+","wp\\.me/.+"],"http://public-api.wordpress.com/oembed/1.0/?for=jquery-oembed-all"),new $.fn.oembed.OEmbedProvider("screenr","rich",["screenr\.com"],"http://www.screenr.com/embed/$1",{templateRegex:/.*\/([^\/]+).*/,embedtag:{tag:'iframe',width:'650',height:396}}),new $.fn.oembed.OEmbedProvider("gigpans","rich",["gigapan\\.org/[-.\\w@]+/\\d+"],"http://gigapan.org/gigapans/$1/options/nosnapshots/iframe/flash.html",{templateRegex:/.*\/(\d+)\/?.*/,embedtag:{tag:'iframe',width:'100%',height:400}}),new $.fn.oembed.OEmbedProvider("scribd","rich",["scribd\\.com/.+"],"http://www.scribd.com/embeds/$1/content?start_page=1&view_mode=list",{templateRegex:/.*doc\/([^\/]+).*/,embedtag:{tag:'iframe',width:'100%',height:600}}),new $.fn.oembed.OEmbedProvider("kickstarter","rich",["kickstarter\\.com/projects/.+"],"$1/widget/card.html",{templateRegex:/([^\?]+).*/,embedtag:{tag:'iframe',width:'220',height:380}}),new $.fn.oembed.OEmbedProvider("amazon","rich",["amzn.com/B+","amazon.com.*/(B\\S+)($|\\/.*)"],"http://rcm.amazon.com/e/cm?t=_APIKEY_&o=1&p=8&l=as1&asins=$1&ref=qf_br_asin_til&fc1=000000&IS2=1&lt1=_blank&m=amazon&lc1=0000FF&bc1=000000&bg1=FFFFFF&f=ifr",{apikey:true,templateRegex:/.*\/(B[0-9A-Z]+)($|\/.*)/,embedtag:{tag:'iframe',width:'120px',height:'240px'}}),new $.fn.oembed.OEmbedProvider("slideshare","rich",["slideshare\.net"],"http://www.slideshare.net/api/oembed/2",{format:'jsonp'}),new $.fn.oembed.OEmbedProvider("roomsharejp","rich",["roomshare\\.jp/(en/)?post/.*"],"http://roomshare.jp/oembed.json"),new $.fn.oembed.OEmbedProvider("lanyard","rich",["lanyrd.com/\\d+/.+"],null,{yql:{xpath:'(//div[@class="primary"])[1]',from:'htmlstring',datareturn:function(results){if(!results.result)return false;return'<div class="oembedall-lanyard">'+results.result+'</div>'}}}),new $.fn.oembed.OEmbedProvider("asciiartfarts","rich",["asciiartfarts.com/\\d+.html"],null,{yql:{xpath:'//pre/font',from:'htmlstring',datareturn:function(results){if(!results.result)return false;return'<pre style="background-color:000;">'+results.result+'</div>'}}}),new $.fn.oembed.OEmbedProvider("opengraph","rich",[".*"],null,{yql:{xpath:"//meta|//title|//link",from:'html',datareturn:function(results){if(!results['og:title']&&results['title']&&results['description'])results['og:title']=results['title'];if(!results['og:title']&&!results['title'])return false;var code=$('<p/>');if(results['og:video']){var embed=$('<embed src="'+results['og:video']+'"/>');embed.attr('type',results['og:video:type']||"application/x-shockwave-flash").css('max-height',settings.maxHeight||'auto').css('max-width',settings.maxWidth||'auto');if(results['og:video:width'])embed.attr('width',results['og:video:width']);if(results['og:video:height'])embed.attr('height',results['og:video:height']);code.append(embed)}else if(results['og:image']){var img=$('<img src="'+results['og:image']+'">');img.css('max-height',settings.maxHeight||'auto').css('max-width',settings.maxWidth||'auto');if(results['og:image:width'])img.attr('width',results['og:image:width']);if(results['og:image:height'])img.attr('height',results['og:image:height']);code.append(img)}if(results['og:title'])code.append('<b>'+results['og:title']+'</b><br/>');if(results['og:description'])code.append(results['og:description']+'<br/>');else if(results['description'])code.append(results['description']+'<br/>');return code}}})]})(jQuery);
2
+
3
+ //This is needed for gravatar :(
4
+ String.prototype.md5=function(){var a=function(a,b){var c=(a&65535)+(b&65535);var d=(a>>16)+(b>>16)+(c>>16);return d<<16|c&65535};var b=function(a,b){return a<<b|a>>>32-b};var c=function(c,d,e,f,g,h){return a(b(a(a(d,c),a(f,h)),g),e)};var d=function(a,b,d,e,f,g,h){return c(b&d|~b&e,a,b,f,g,h)};var e=function(a,b,d,e,f,g,h){return c(b&e|d&~e,a,b,f,g,h)};var f=function(a,b,d,e,f,g,h){return c(b^d^e,a,b,f,g,h)};var g=function(a,b,d,e,f,g,h){return c(d^(b|~e),a,b,f,g,h)};var h=function(b){var c,h,i,j,k,l=b.length;var m=1732584193;var n=-271733879;var o=-1732584194;var p=271733878;for(k=0;k<l;k+=16){c=m;h=n;i=o;j=p;m=d(m,n,o,p,b[k+0],7,-680876936);p=d(p,m,n,o,b[k+1],12,-389564586);o=d(o,p,m,n,b[k+2],17,606105819);n=d(n,o,p,m,b[k+3],22,-1044525330);m=d(m,n,o,p,b[k+4],7,-176418897);p=d(p,m,n,o,b[k+5],12,1200080426);o=d(o,p,m,n,b[k+6],17,-1473231341);n=d(n,o,p,m,b[k+7],22,-45705983);m=d(m,n,o,p,b[k+8],7,1770035416);p=d(p,m,n,o,b[k+9],12,-1958414417);o=d(o,p,m,n,b[k+10],17,-42063);n=d(n,o,p,m,b[k+11],22,-1990404162);m=d(m,n,o,p,b[k+12],7,1804603682);p=d(p,m,n,o,b[k+13],12,-40341101);o=d(o,p,m,n,b[k+14],17,-1502002290);n=d(n,o,p,m,b[k+15],22,1236535329);m=e(m,n,o,p,b[k+1],5,-165796510);p=e(p,m,n,o,b[k+6],9,-1069501632);o=e(o,p,m,n,b[k+11],14,643717713);n=e(n,o,p,m,b[k+0],20,-373897302);m=e(m,n,o,p,b[k+5],5,-701558691);p=e(p,m,n,o,b[k+10],9,38016083);o=e(o,p,m,n,b[k+15],14,-660478335);n=e(n,o,p,m,b[k+4],20,-405537848);m=e(m,n,o,p,b[k+9],5,568446438);p=e(p,m,n,o,b[k+14],9,-1019803690);o=e(o,p,m,n,b[k+3],14,-187363961);n=e(n,o,p,m,b[k+8],20,1163531501);m=e(m,n,o,p,b[k+13],5,-1444681467);p=e(p,m,n,o,b[k+2],9,-51403784);o=e(o,p,m,n,b[k+7],14,1735328473);n=e(n,o,p,m,b[k+12],20,-1926607734);m=f(m,n,o,p,b[k+5],4,-378558);p=f(p,m,n,o,b[k+8],11,-2022574463);o=f(o,p,m,n,b[k+11],16,1839030562);n=f(n,o,p,m,b[k+14],23,-35309556);m=f(m,n,o,p,b[k+1],4,-1530992060);p=f(p,m,n,o,b[k+4],11,1272893353);o=f(o,p,m,n,b[k+7],16,-155497632);n=f(n,o,p,m,b[k+10],23,-1094730640);m=f(m,n,o,p,b[k+13],4,681279174);p=f(p,m,n,o,b[k+0],11,-358537222);o=f(o,p,m,n,b[k+3],16,-722521979);n=f(n,o,p,m,b[k+6],23,76029189);m=f(m,n,o,p,b[k+9],4,-640364487);p=f(p,m,n,o,b[k+12],11,-421815835);o=f(o,p,m,n,b[k+15],16,530742520);n=f(n,o,p,m,b[k+2],23,-995338651);m=g(m,n,o,p,b[k+0],6,-198630844);p=g(p,m,n,o,b[k+7],10,1126891415);o=g(o,p,m,n,b[k+14],15,-1416354905);n=g(n,o,p,m,b[k+5],21,-57434055);m=g(m,n,o,p,b[k+12],6,1700485571);p=g(p,m,n,o,b[k+3],10,-1894986606);o=g(o,p,m,n,b[k+10],15,-1051523);n=g(n,o,p,m,b[k+1],21,-2054922799);m=g(m,n,o,p,b[k+8],6,1873313359);p=g(p,m,n,o,b[k+15],10,-30611744);o=g(o,p,m,n,b[k+6],15,-1560198380);n=g(n,o,p,m,b[k+13],21,1309151649);m=g(m,n,o,p,b[k+4],6,-145523070);p=g(p,m,n,o,b[k+11],10,-1120210379);o=g(o,p,m,n,b[k+2],15,718787259);n=g(n,o,p,m,b[k+9],21,-343485551);m=a(m,c);n=a(n,h);o=a(o,i);p=a(p,j)}return[m,n,o,p]};var i=function(a){var b="0123456789abcdef",c="",d,e=a.length*4;for(d=0;d<e;d++){c+=b.charAt(a[d>>2]>>d%4*8+4&15)+b.charAt(a[d>>2]>>d%4*8&15)}return c};var j=function(a){var b=(a.length+8>>6)+1;var c=[],d,e=b*16,f,g=a.length;for(d=0;d<e;d++){c.push(0)}for(f=0;f<g;f++){c[f>>2]|=(a.charCodeAt(f)&255)<<f%4*8}c[f>>2]|=128<<f%4*8;c[b*16-2]=g*8;return c};return i(h(j(this)))}
@@ -0,0 +1,106 @@
1
+ /*
2
+ * oEmbed Plugin plugin
3
+ * Copyright (c) Ingo Herbote
4
+ * Licensed under the MIT license
5
+ * jQuery Embed Plugin: http://code.google.com/p/jquery-oembed/ (MIT License)
6
+ * Plugin for: http://ckeditor.com/license (GPL/LGPL/MPL: http://ckeditor.com/license)
7
+ */
8
+
9
+ (function () {
10
+ CKEDITOR.plugins.add('oembed', {
11
+ requires: ['dialog'],
12
+ lang: ['de', 'en', 'nl', 'fr', 'ru'],
13
+ init: function (editor) {
14
+ // Load jquery?
15
+ if (typeof (jQuery) == 'undefined') {
16
+ CKEDITOR.scriptLoader.load('http://ajax.googleapis.com/ajax/libs/jquery/1.7/jquery.min.js');
17
+ }
18
+ editor.addCommand('oembed', new CKEDITOR.dialogCommand('oembed'));
19
+ editor.ui.addButton('oembed', {
20
+ label: editor.lang.oembed.button,
21
+ command: 'oembed',
22
+ icon: this.path + 'images/icon.png'
23
+ });
24
+ CKEDITOR.dialog.add('oembed', function (editor) {
25
+ return {
26
+ title: editor.lang.oembed.title,
27
+ minWidth: CKEDITOR.env.ie && CKEDITOR.env.quirks ? 568 : 550,
28
+ minHeight: 240,
29
+ onLoad: function () {
30
+ if (typeof (jQuery.fn.oembed) == 'undefined') {
31
+ CKEDITOR.scriptLoader.load(CKEDITOR.getUrl(CKEDITOR.plugins.getPath('oembed') + 'libs/jquery.oembed.min.js'));
32
+ }
33
+ },
34
+ onCancel: function () {
35
+ $('#oembedInfoFooter').hide();
36
+ },
37
+ onOk: function () {
38
+ $('#oembedInfoFooter').hide();
39
+ var inputCode = this.getValueOf('general', 'embedCode');
40
+ if (inputCode.length < 1 || inputCode.indexOf('http') < 0) {
41
+ $('#oembedInfoFooter').html(editor.lang.oembed.invalidUrl);
42
+ $('#oembedInfoFooter').css("color", "red");
43
+ $('#oembedInfoFooter').show();
44
+ return false;
45
+ }
46
+ var width = this.getContentElement('general', 'width').getInputElement().getValue();
47
+ var height = this.getContentElement('general', 'height').getInputElement().getValue();
48
+ var editorInstance = this.getParentEditor();
49
+ var codeFound = null;
50
+ $('body').oembed(inputCode, {
51
+ onEmbed: function (e) {
52
+ if (typeof e.code === 'string') {
53
+ editorInstance.insertElement( CKEDITOR.dom.element.createFromHtml( '<p>' + e.code + '</p>' ) );
54
+ CKEDITOR.dialog.getCurrent().hide();
55
+ } else {
56
+ //this.show();
57
+ $('#oembedInfoFooter').html(editor.lang.oembed.noEmbedCode);
58
+ $('#oembedInfoFooter').css("color", "red");
59
+ $('#oembedInfoFooter').show();
60
+ }
61
+ },
62
+ maxHeight: width,
63
+ maxWidth: height,
64
+ embedMethod: 'editor'
65
+ });
66
+ return false;
67
+ },
68
+ contents: [{
69
+ label: editor.lang.common.generalTab,
70
+ id: 'general',
71
+ elements: [{
72
+ type: 'html',
73
+ id: 'oembedHeader',
74
+ html: '<div style="white-space:normal;width:500px;padding-bottom:10px">' + editor.lang.oembed.pasteUrl + '</div>'
75
+ }, {
76
+ type: 'textarea',
77
+ id: 'embedCode',
78
+ height : "80",
79
+ focus: function () {
80
+ this.getElement().focus()
81
+ }
82
+ }, {
83
+ type: 'hbox',
84
+ widths: ['50%', '50%'],
85
+ children: [{
86
+ type: 'text',
87
+ id: 'width',
88
+ 'default': editor.config.oembed_maxWidth != null ? editor.config.oembed_maxWidth : '560',
89
+ label: editor.lang.oembed.width
90
+ }, {
91
+ type: 'text',
92
+ id: 'height',
93
+ 'default': editor.config.oembed_maxHeight != null ? editor.config.oembed_maxHeight : '315',
94
+ label: editor.lang.oembed.height
95
+ }]
96
+ }, {
97
+ type: 'html',
98
+ id: 'oembedInfoFooter',
99
+ html: '<div id="oembedInfoFooter" style="white-space:normal;width:500px;text-align:center;display:none"></div>'
100
+ }]
101
+ }]
102
+ }
103
+ })
104
+ }
105
+ })
106
+ })();
@@ -0,0 +1,31 @@
1
+ /*
2
+ Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved.
3
+ For licensing, see LICENSE.html or http://ckeditor.com/license
4
+ */
5
+ (function(){function z(a){for(var a=a.toUpperCase(),b=A.length,c=0,d=0;d<b;++d)for(var e=A[d],f=e[1].length;a.substr(0,f)==e[1];a=a.substr(f))c+=e[0];return c}function B(a){for(var a=a.toUpperCase(),b=C.length,c=1,d=1;0<a.length;d*=b)c+=C.indexOf(a.charAt(a.length-1))*d,a=a.substr(0,a.length-1);return c}var D=CKEDITOR.htmlParser.fragment.prototype,v=CKEDITOR.htmlParser.element.prototype;D.onlyChild=v.onlyChild=function(){var a=this.children;return 1==a.length&&a[0]||null};v.removeAnyChildWithName=
6
+ function(a){for(var b=this.children,c=[],d,e=0;e<b.length;e++)d=b[e],d.name&&(d.name==a&&(c.push(d),b.splice(e--,1)),c=c.concat(d.removeAnyChildWithName(a)));return c};v.getAncestor=function(a){for(var b=this.parent;b&&(!b.name||!b.name.match(a));)b=b.parent;return b};D.firstChild=v.firstChild=function(a){for(var b,c=0;c<this.children.length;c++)if(b=this.children[c],a(b)||b.name&&(b=b.firstChild(a)))return b;return null};v.addStyle=function(a,b,c){var d="";if("string"==typeof b)d+=a+":"+b+";";else{if("object"==
7
+ typeof a)for(var e in a)a.hasOwnProperty(e)&&(d+=e+":"+a[e]+";");else d+=a;c=b}this.attributes||(this.attributes={});a=this.attributes.style||"";a=(c?[d,a]:[a,d]).join(";");this.attributes.style=a.replace(/^;|;(?=;)/,"")};v.getStyle=function(a){var b=this.attributes.style;if(b)return b=CKEDITOR.tools.parseCssText(b,1),b[a]};CKEDITOR.dtd.parentOf=function(a){var b={},c;for(c in this)-1==c.indexOf("$")&&this[c][a]&&(b[c]=1);return b};var H=/^([.\d]*)+(em|ex|px|gd|rem|vw|vh|vm|ch|mm|cm|in|pt|pc|deg|rad|ms|s|hz|khz){1}?/i,
8
+ E=/^(?:\b0[^\s]*\s*){1,4}$/,y={ol:{decimal:/\d+/,"lower-roman":/^m{0,4}(cm|cd|d?c{0,3})(xc|xl|l?x{0,3})(ix|iv|v?i{0,3})$/,"upper-roman":/^M{0,4}(CM|CD|D?C{0,3})(XC|XL|L?X{0,3})(IX|IV|V?I{0,3})$/,"lower-alpha":/^[a-z]+$/,"upper-alpha":/^[A-Z]+$/},ul:{disc:/[l\u00B7\u2002]/,circle:/[\u006F\u00D8]/,square:/[\u006E\u25C6]/}},A=[[1E3,"M"],[900,"CM"],[500,"D"],[400,"CD"],[100,"C"],[90,"XC"],[50,"L"],[40,"XL"],[10,"X"],[9,"IX"],[5,"V"],[4,"IV"],[1,"I"]],C="ABCDEFGHIJKLMNOPQRSTUVWXYZ",w=0,o=null,x,F=CKEDITOR.plugins.pastefromword=
9
+ {utils:{createListBulletMarker:function(a,b){var c=new CKEDITOR.htmlParser.element("cke:listbullet");c.attributes={"cke:listsymbol":a[0]};c.add(new CKEDITOR.htmlParser.text(b));return c},isListBulletIndicator:function(a){if(/mso-list\s*:\s*Ignore/i.test(a.attributes&&a.attributes.style))return!0},isContainingOnlySpaces:function(a){var b;return(b=a.onlyChild())&&/^(:?\s|&nbsp;)+$/.test(b.value)},resolveList:function(a){var b=a.attributes,c;if((c=a.removeAnyChildWithName("cke:listbullet"))&&c.length&&
10
+ (c=c[0]))return a.name="cke:li",b.style&&(b.style=F.filters.stylesFilter([["text-indent"],["line-height"],[/^margin(:?-left)?$/,null,function(a){a=a.split(" ");a=CKEDITOR.tools.convertToPx(a[3]||a[1]||a[0]);!w&&(null!==o&&a>o)&&(w=a-o);o=a;b["cke:indent"]=w&&Math.ceil(a/w)+1||1}],[/^mso-list$/,null,function(a){var a=a.split(" "),c=Number(a[0].match(/\d+/)),a=Number(a[1].match(/\d+/));1==a&&(c!==x&&(b["cke:reset"]=1),x=c);b["cke:indent"]=a}]])(b.style,a)||""),b["cke:indent"]||(o=0,b["cke:indent"]=
11
+ 1),CKEDITOR.tools.extend(b,c.attributes),!0;x=o=w=null;return!1},getStyleComponents:function(){var a=CKEDITOR.dom.element.createFromHtml('<div style="position:absolute;left:-9999px;top:-9999px;"></div>',CKEDITOR.document);CKEDITOR.document.getBody().append(a);return function(b,c,d){a.setStyle(b,c);for(var b={},c=d.length,e=0;e<c;e++)b[d[e]]=a.getStyle(d[e]);return b}}(),listDtdParents:CKEDITOR.dtd.parentOf("ol")},filters:{flattenList:function(a,b){var b="number"==typeof b?b:1,c=a.attributes,d;switch(c.type){case "a":d=
12
+ "lower-alpha";break;case "1":d="decimal"}for(var e=a.children,f,h=0;h<e.length;h++)if(f=e[h],f.name in CKEDITOR.dtd.$listItem){var g=f.attributes,i=f.children,m=i[i.length-1];m.name in CKEDITOR.dtd.$list&&(a.add(m,h+1),--i.length||e.splice(h--,1));f.name="cke:li";c.start&&!h&&(g.value=c.start);F.filters.stylesFilter([["tab-stops",null,function(a){(a=a.split(" ")[1].match(H))&&(o=CKEDITOR.tools.convertToPx(a[0]))}],1==b?["mso-list",null,function(a){a=a.split(" ");a=Number(a[0].match(/\d+/));a!==x&&
13
+ (g["cke:reset"]=1);x=a}]:null])(g.style);g["cke:indent"]=b;g["cke:listtype"]=a.name;g["cke:list-style-type"]=d}else if(f.name in CKEDITOR.dtd.$list){arguments.callee.apply(this,[f,b+1]);e=e.slice(0,h).concat(f.children).concat(e.slice(h+1));a.children=[];f=0;for(i=e.length;f<i;f++)a.add(e[f])}delete a.name;c["cke:list"]=1},assembleList:function(a){for(var b=a.children,c,d,e,f,h,g,a=[],i,m,j,l,k,r,p=0;p<b.length;p++)if(c=b[p],"cke:li"==c.name)if(c.name="li",d=c.attributes,j=(j=d["cke:listsymbol"])&&
14
+ j.match(/^(?:[(]?)([^\s]+?)([.)]?)$/),l=k=r=null,d["cke:ignored"])b.splice(p--,1);else{d["cke:reset"]&&(g=f=h=null);e=Number(d["cke:indent"]);e!=f&&(m=i=null);if(j){if(m&&y[m][i].test(j[1]))l=m,k=i;else for(var s in y)for(var t in y[s])if(y[s][t].test(j[1]))if("ol"==s&&/alpha|roman/.test(t)){if(i=/roman/.test(t)?z(j[1]):B(j[1]),!r||i<r)r=i,l=s,k=t}else{l=s;k=t;break}!l&&(l=j[2]?"ol":"ul")}else l=d["cke:listtype"]||"ol",k=d["cke:list-style-type"];m=l;i=k||("ol"==l?"decimal":"disc");k&&k!=("ol"==l?
15
+ "decimal":"disc")&&c.addStyle("list-style-type",k);if("ol"==l&&j){switch(k){case "decimal":r=Number(j[1]);break;case "lower-roman":case "upper-roman":r=z(j[1]);break;case "lower-alpha":case "upper-alpha":r=B(j[1])}c.attributes.value=r}if(g){if(e>f)a.push(g=new CKEDITOR.htmlParser.element(l)),g.add(c),h.add(g);else{if(e<f){f-=e;for(var n;f--&&(n=g.parent);)g=n.parent}g.add(c)}b.splice(p--,1)}else a.push(g=new CKEDITOR.htmlParser.element(l)),g.add(c),b[p]=g;h=c;f=e}else g&&(g=f=h=null);for(p=0;p<a.length;p++)if(g=
16
+ a[p],s=g.children,i=i=void 0,t=g.children.length,n=i=void 0,b=/list-style-type:(.*?)(?:;|$)/,f=CKEDITOR.plugins.pastefromword.filters.stylesFilter,i=g.attributes,!b.exec(i.style)){for(h=0;h<t;h++)if(i=s[h],i.attributes.value&&Number(i.attributes.value)==h+1&&delete i.attributes.value,i=b.exec(i.attributes.style))if(i[1]==n||!n)n=i[1];else{n=null;break}if(n){for(h=0;h<t;h++)i=s[h].attributes,i.style&&(i.style=f([["list-style-type"]])(i.style)||"");g.addStyle("list-style-type",n)}}x=o=w=null},falsyFilter:function(){return!1},
17
+ stylesFilter:function(a,b){return function(c,d){var e=[];(c||"").replace(/&quot;/g,'"').replace(/\s*([^ :;]+)\s*:\s*([^;]+)\s*(?=;|$)/g,function(c,g,f){g=g.toLowerCase();"font-family"==g&&(f=f.replace(/["']/g,""));for(var m,j,l,k=0;k<a.length;k++)if(a[k]&&(c=a[k][0],m=a[k][1],j=a[k][2],l=a[k][3],g.match(c)&&(!m||f.match(m)))){g=l||g;b&&(j=j||f);"function"==typeof j&&(j=j(f,d,g));j&&j.push&&(g=j[0],j=j[1]);"string"==typeof j&&e.push([g,j]);return}!b&&e.push([g,f])});for(var f=0;f<e.length;f++)e[f]=
18
+ e[f].join(":");return e.length?e.join(";")+";":!1}},elementMigrateFilter:function(a,b){return a?function(c){var d=b?(new CKEDITOR.style(a,b))._.definition:a;c.name=d.element;CKEDITOR.tools.extend(c.attributes,CKEDITOR.tools.clone(d.attributes));c.addStyle(CKEDITOR.style.getStyleText(d))}:function(){}},styleMigrateFilter:function(a,b){var c=this.elementMigrateFilter;return a?function(d,e){var f=new CKEDITOR.htmlParser.element(null),h={};h[b]=d;c(a,h)(f);f.children=e.children;e.children=[f]}:function(){}},
19
+ bogusAttrFilter:function(a,b){if(-1==b.name.indexOf("cke:"))return!1},applyStyleFilter:null},getRules:function(a){var b=CKEDITOR.dtd,c=CKEDITOR.tools.extend({},b.$block,b.$listItem,b.$tableContent),d=a.config,e=this.filters,a=e.falsyFilter,f=e.stylesFilter,h=e.elementMigrateFilter,g=CKEDITOR.tools.bind(this.filters.styleMigrateFilter,this.filters),i=this.utils.createListBulletMarker,m=e.flattenList,j=e.assembleList,l=this.utils.isListBulletIndicator,k=this.utils.isContainingOnlySpaces,r=this.utils.resolveList,
20
+ p=function(a){a=CKEDITOR.tools.convertToPx(a);return isNaN(a)?a:a+"px"},s=this.utils.getStyleComponents,t=this.utils.listDtdParents,n=!1!==d.pasteFromWordRemoveFontStyles,o=!1!==d.pasteFromWordRemoveStyles;return{elementNames:[[/meta|link|script/,""]],root:function(a){a.filterChildren();j(a)},elements:{"^":function(a){var b;CKEDITOR.env.gecko&&(b=e.applyStyleFilter)&&b(a)},$:function(a){var u=a.name||"",e=a.attributes;u in c&&e.style&&(e.style=f([[/^(:?width|height)$/,null,p]])(e.style)||"");if(u.match(/h\d/)){a.filterChildren();
21
+ if(r(a))return;h(d["format_"+u])(a)}else if(u in b.$inline)a.filterChildren(),k(a)&&delete a.name;else if(-1!=u.indexOf(":")&&-1==u.indexOf("cke")){a.filterChildren();if("v:imagedata"==u){if(u=a.attributes["o:href"])a.attributes.src=u;a.name="img";return}delete a.name}u in t&&(a.filterChildren(),j(a))},style:function(a){if(CKEDITOR.env.gecko){var a=(a=a.onlyChild().value.match(/\/\* Style Definitions \*\/([\s\S]*?)\/\*/))&&a[1],b={};a&&(a.replace(/[\n\r]/g,"").replace(/(.+?)\{(.+?)\}/g,function(a,
22
+ c,d){for(var c=c.split(","),a=c.length,q=0;q<a;q++)CKEDITOR.tools.trim(c[q]).replace(/^(\w+)(\.[\w-]+)?$/g,function(a,c,q){c=c||"*";q=q.substring(1,q.length);q.match(/MsoNormal/)||(b[c]||(b[c]={}),q?b[c][q]=d:b[c]=d)})}),e.applyStyleFilter=function(a){var c=b["*"]?"*":a.name,q=a.attributes&&a.attributes["class"];c in b&&(c=b[c],"object"==typeof c&&(c=c[q]),c&&a.addStyle(c,!0))})}return!1},p:function(a){if(/MsoListParagraph/i.exec(a.attributes["class"])||a.getStyle("mso-list")){var b=a.firstChild(function(a){return a.type==
23
+ CKEDITOR.NODE_TEXT&&!k(a.parent)});(b=b&&b.parent)&&b.addStyle("mso-list","Ignore")}a.filterChildren();r(a)||(d.enterMode==CKEDITOR.ENTER_BR?(delete a.name,a.add(new CKEDITOR.htmlParser.element("br"))):h(d["format_"+(d.enterMode==CKEDITOR.ENTER_P?"p":"div")])(a))},div:function(a){var b=a.onlyChild();if(b&&"table"==b.name){var c=a.attributes;b.attributes=CKEDITOR.tools.extend(b.attributes,c);c.style&&b.addStyle(c.style);b=new CKEDITOR.htmlParser.element("div");b.addStyle("clear","both");a.add(b);delete a.name}},
24
+ td:function(a){a.getAncestor("thead")&&(a.name="th")},ol:m,ul:m,dl:m,font:function(a){if(l(a.parent))delete a.name;else{a.filterChildren();var b=a.attributes,c=b.style,d=a.parent;"font"==d.name?(CKEDITOR.tools.extend(d.attributes,a.attributes),c&&d.addStyle(c),delete a.name):(c=c||"",b.color&&("#000000"!=b.color&&(c+="color:"+b.color+";"),delete b.color),b.face&&(c+="font-family:"+b.face+";",delete b.face),b.size&&(c+="font-size:"+(3<b.size?"large":3>b.size?"small":"medium")+";",delete b.size),a.name=
25
+ "span",a.addStyle(c))}},span:function(a){if(l(a.parent))return!1;a.filterChildren();if(k(a))return delete a.name,null;if(l(a)){var b=a.firstChild(function(a){return a.value||"img"==a.name}),c=(b=b&&(b.value||"l."))&&b.match(/^(?:[(]?)([^\s]+?)([.)]?)$/);if(c)return b=i(c,b),(a=a.getAncestor("span"))&&/ mso-hide:\s*all|display:\s*none /.test(a.attributes.style)&&(b.attributes["cke:ignored"]=1),b}if(c=(b=a.attributes)&&b.style)b.style=f([["line-height"],[/^font-family$/,null,!n?g(d.font_style,"family"):
26
+ null],[/^font-size$/,null,!n?g(d.fontSize_style,"size"):null],[/^color$/,null,!n?g(d.colorButton_foreStyle,"color"):null],[/^background-color$/,null,!n?g(d.colorButton_backStyle,"color"):null]])(c,a)||"";b.style||delete b.style;CKEDITOR.tools.isEmpty(b)&&delete a.name;return null},b:h(d.coreStyles_bold),i:h(d.coreStyles_italic),u:h(d.coreStyles_underline),s:h(d.coreStyles_strike),sup:h(d.coreStyles_superscript),sub:h(d.coreStyles_subscript),a:function(a){var b=a.attributes;b&&!b.href&&b.name?delete a.name:
27
+ CKEDITOR.env.webkit&&(b.href&&b.href.match(/file:\/\/\/[\S]+#/i))&&(b.href=b.href.replace(/file:\/\/\/[^#]+/i,""))},"cke:listbullet":function(a){a.getAncestor(/h\d/)&&!d.pasteFromWordNumberedHeadingToList&&delete a.name}},attributeNames:[[/^onmouse(:?out|over)/,""],[/^onload$/,""],[/(?:v|o):\w+/,""],[/^lang/,""]],attributes:{style:f(o?[[/^list-style-type$/,null],[/^margin$|^margin-(?!bottom|top)/,null,function(a,b,c){if(b.name in{p:1,div:1}){b="ltr"==d.contentsLangDirection?"margin-left":"margin-right";
28
+ if("margin"==c)a=s(c,a,[b])[b];else if(c!=b)return null;if(a&&!E.test(a))return[b,a]}return null}],[/^clear$/],[/^border.*|margin.*|vertical-align|float$/,null,function(a,b){if("img"==b.name)return a}],[/^width|height$/,null,function(a,b){if(b.name in{table:1,td:1,th:1,img:1})return a}]]:[[/^mso-/],[/-color$/,null,function(a){if("transparent"==a)return!1;if(CKEDITOR.env.gecko)return a.replace(/-moz-use-text-color/g,"transparent")}],[/^margin$/,E],["text-indent","0cm"],["page-break-before"],["tab-stops"],
29
+ ["display","none"],n?[/font-?/]:null],o),width:function(a,c){if(c.name in b.$tableContent)return!1},border:function(a,c){if(c.name in b.$tableContent)return!1},"class":a,bgcolor:a,valign:o?a:function(a,b){b.addStyle("vertical-align",a);return!1}},comment:!CKEDITOR.env.ie?function(a,b){var c=a.match(/<img.*?>/),d=a.match(/^\[if !supportLists\]([\s\S]*?)\[endif\]$/);return d?(d=(c=d[1]||c&&"l.")&&c.match(/>(?:[(]?)([^\s]+?)([.)]?)</),i(d,c)):CKEDITOR.env.gecko&&c?(c=CKEDITOR.htmlParser.fragment.fromHtml(c[0]).children[0],
30
+ (d=(d=(d=b.previous)&&d.value.match(/<v:imagedata[^>]*o:href=['"](.*?)['"]/))&&d[1])&&(c.attributes.src=d),c):!1}:a}}},G=function(){this.dataFilter=new CKEDITOR.htmlParser.filter};G.prototype={toHtml:function(a){var a=CKEDITOR.htmlParser.fragment.fromHtml(a),b=new CKEDITOR.htmlParser.basicWriter;a.writeHtml(b,this.dataFilter);return b.getHtml(!0)}};CKEDITOR.cleanWord=function(a,b){CKEDITOR.env.gecko&&(a=a.replace(/(<\!--\[if[^<]*?\])--\>([\S\s]*?)<\!--(\[endif\]--\>)/gi,"$1$2$3"));CKEDITOR.env.webkit&&
31
+ (a=a.replace(/(class="MsoListParagraph[^>]+><\!--\[if !supportLists\]--\>)([^<]+<span[^<]+<\/span>)(<\!--\[endif\]--\>)/gi,"$1<span>$2</span>$3"));var c=new G,d=c.dataFilter;d.addRules(CKEDITOR.plugins.pastefromword.getRules(b));b.fire("beforeCleanWord",{filter:d});try{a=c.toHtml(a)}catch(e){alert(b.lang.pastefromword.error)}a=a.replace(/cke:.*?".*?"/g,"");a=a.replace(/style=""/g,"");return a=a.replace(/<span>/g,"")}})();
@@ -0,0 +1,10 @@
1
+ <script>
2
+
3
+ var doc = document;
4
+ doc.open();
5
+ doc.write( window.opener._cke_htmlToLoad );
6
+ doc.close();
7
+
8
+ delete window.opener._cke_htmlToLoad;
9
+
10
+ </script>
@@ -0,0 +1,28 @@
1
+ Software License Agreement
2
+ ==========================
3
+
4
+ **CKEditor SCAYT Plugin**
5
+ Copyright &copy; 2012, [CKSource](http://cksource.com) - Frederico Knabben. All rights reserved.
6
+
7
+ Licensed under the terms of any of the following licenses at your choice:
8
+
9
+ * GNU General Public License Version 2 or later (the "GPL"):
10
+ http://www.gnu.org/licenses/gpl.html
11
+
12
+ * GNU Lesser General Public License Version 2.1 or later (the "LGPL"):
13
+ http://www.gnu.org/licenses/lgpl.html
14
+
15
+ * Mozilla Public License Version 1.1 or later (the "MPL"):
16
+ http://www.mozilla.org/MPL/MPL-1.1.html
17
+
18
+ You are not required to, but if you want to explicitly declare the license you have chosen to be bound to when using, reproducing, modifying and distributing this software, just include a text file titled "legal.txt" in your version of this software, indicating your license choice.
19
+
20
+ Sources of Intellectual Property Included in this plugin
21
+ --------------------------------------------------------
22
+
23
+ Where not otherwise indicated, all plugin content is authored by CKSource engineers and consists of CKSource-owned intellectual property. In some specific instances, the plugin will incorporate work done by developers outside of CKSource with their express permission.
24
+
25
+ Trademarks
26
+ ----------
27
+
28
+ CKEditor is a trademark of CKSource - Frederico Knabben. All other brand and product names are trademarks, registered trademarks or service marks of their respective holders.
@@ -0,0 +1,25 @@
1
+ CKEditor SCAYT Plugin
2
+ =====================
3
+
4
+ This plugin brings Spell Check As You Type (SCAYT) into CKEditor.
5
+
6
+ SCAYT is a "installation-less", using the web-services of [WebSpellChecker.net](http://www.webspellchecker.net/). It's an out of the box solution.
7
+
8
+ Installation
9
+ ------------
10
+
11
+ 1. Clone/copy this repository contents in a new "plugins/scayt" folder in your CKEditor installation.
12
+ 2. Enable the "scayt" plugin in the CKEditor configuration file (config.js):
13
+
14
+ config.extraPlugins = 'scayt';
15
+
16
+ That's all. SCAYT will appear on the editor toolbar and will be ready to use.
17
+
18
+ License
19
+ -------
20
+
21
+ Licensed under the terms of any of the following licenses at your choice: [GPL](http://www.gnu.org/licenses/gpl.html), [LGPL](http://www.gnu.org/licenses/lgpl.html) and [MPL](http://www.mozilla.org/MPL/MPL-1.1.html).
22
+
23
+ See LICENSE.md for more information.
24
+
25
+ Developed in cooperation with [WebSpellChecker.net](http://www.webspellchecker.net/).
@@ -0,0 +1,19 @@
1
+ /*
2
+ Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved.
3
+ For licensing, see LICENSE.html or http://ckeditor.com/license
4
+ */
5
+ CKEDITOR.dialog.add("scaytcheck",function(j){function w(){return"undefined"!=typeof document.forms["optionsbar_"+a]?document.forms["optionsbar_"+a].options:[]}function x(b,a){if(b){var e=b.length;if(void 0==e)b.checked=b.value==a.toString();else for(var d=0;d<e;d++)b[d].checked=!1,b[d].value==a.toString()&&(b[d].checked=!0)}}function n(b){f.getById("dic_message_"+a).setHtml('<span style="color:red;">'+b+"</span>")}function o(b){f.getById("dic_message_"+a).setHtml('<span style="color:blue;">'+b+"</span>")}
6
+ function p(b){for(var b=(""+b).split(","),a=0,e=b.length;a<e;a+=1)f.getById(b[a]).$.style.display="inline"}function q(b){for(var b=(""+b).split(","),a=0,e=b.length;a<e;a+=1)f.getById(b[a]).$.style.display="none"}function r(b){f.getById("dic_name_"+a).$.value=b}var s=!0,h,f=CKEDITOR.document,a=j.name,l=CKEDITOR.plugins.scayt.getUiTabs(j),g,t=[],u=0,m=["dic_create_"+a+",dic_restore_"+a,"dic_rename_"+a+",dic_delete_"+a],v=["mixedCase","mixedWithDigits","allCaps","ignoreDomainNames"];g=j.lang.scayt;var z=
7
+ [{id:"options",label:g.optionsTab,elements:[{type:"html",id:"options",html:'<form name="optionsbar_'+a+'"><div class="inner_options">\t<div class="messagebox"></div>\t<div style="display:none;">\t\t<input type="checkbox" name="options" id="allCaps_'+a+'" />\t\t<label for="allCaps" id="label_allCaps_'+a+'"></label>\t</div>\t<div style="display:none;">\t\t<input name="options" type="checkbox" id="ignoreDomainNames_'+a+'" />\t\t<label for="ignoreDomainNames" id="label_ignoreDomainNames_'+a+'"></label>\t</div>\t<div style="display:none;">\t<input name="options" type="checkbox" id="mixedCase_'+
8
+ a+'" />\t\t<label for="mixedCase" id="label_mixedCase_'+a+'"></label>\t</div>\t<div style="display:none;">\t\t<input name="options" type="checkbox" id="mixedWithDigits_'+a+'" />\t\t<label for="mixedWithDigits" id="label_mixedWithDigits_'+a+'"></label>\t</div></div></form>'}]},{id:"langs",label:g.languagesTab,elements:[{type:"html",id:"langs",html:'<form name="languagesbar_'+a+'"><div class="inner_langs">\t<div class="messagebox"></div>\t <div style="float:left;width:45%;margin-left:5px;" id="scayt_lcol_'+
9
+ a+'" ></div> <div style="float:left;width:45%;margin-left:15px;" id="scayt_rcol_'+a+'"></div></div></form>'}]},{id:"dictionaries",label:g.dictionariesTab,elements:[{type:"html",style:"",id:"dictionaries",html:'<form name="dictionarybar_'+a+'"><div class="inner_dictionary" style="text-align:left; white-space:normal; width:320px; overflow: hidden;">\t<div style="margin:5px auto; width:80%;white-space:normal; overflow:hidden;" id="dic_message_'+a+'"> </div>\t<div style="margin:5px auto; width:80%;white-space:normal;"> <span class="cke_dialog_ui_labeled_label" >Dictionary name</span><br>\t\t<span class="cke_dialog_ui_labeled_content" >\t\t\t<div class="cke_dialog_ui_input_text">\t\t\t\t<input id="dic_name_'+
10
+ a+'" type="text" class="cke_dialog_ui_input_text"/>\t\t</div></span></div>\t\t<div style="margin:5px auto; width:80%;white-space:normal;">\t\t\t<a style="display:none;" class="cke_dialog_ui_button" href="javascript:void(0)" id="dic_create_'+a+'">\t\t\t\t</a>\t\t\t<a style="display:none;" class="cke_dialog_ui_button" href="javascript:void(0)" id="dic_delete_'+a+'">\t\t\t\t</a>\t\t\t<a style="display:none;" class="cke_dialog_ui_button" href="javascript:void(0)" id="dic_rename_'+a+'">\t\t\t\t</a>\t\t\t<a style="display:none;" class="cke_dialog_ui_button" href="javascript:void(0)" id="dic_restore_'+
11
+ a+'">\t\t\t\t</a>\t\t</div>\t<div style="margin:5px auto; width:95%;white-space:normal;" id="dic_info_'+a+'"></div></div></form>'}]},{id:"about",label:g.aboutTab,elements:[{type:"html",id:"about",style:"margin: 5px 5px;",html:'<div id="scayt_about_'+a+'"></div>'}]}],B={title:g.title,minWidth:360,minHeight:220,onShow:function(){var b=this;b.data=j.fire("scaytDialog",{});b.options=b.data.scayt_control.option();b.chosed_lang=b.sLang=b.data.scayt_control.sLang;if(!b.data||!b.data.scayt||!b.data.scayt_control)alert("Error loading application service"),
12
+ b.hide();else{var a=0;s?b.data.scayt.getCaption(j.langCode||"en",function(e){0<a++||(h=e,A.apply(b),y.apply(b),s=!1)}):y.apply(b);b.selectPage(b.data.tab)}},onOk:function(){var a=this.data.scayt_control;a.option(this.options);a.setLang(this.chosed_lang);a.refresh()},onCancel:function(){var b=w(),f;for(f in b)b[f].checked=!1;b="undefined"!=typeof document.forms["languagesbar_"+a]?document.forms["languagesbar_"+a].scayt_lang:[];x(b,"")},contents:t};CKEDITOR.plugins.scayt.getScayt(j);for(g=0;g<l.length;g++)1==
13
+ l[g]&&(t[t.length]=z[g]);1==l[2]&&(u=1);var A=function(){function b(b){var c=f.getById("dic_name_"+a).getValue();if(!c)return n(" Dictionary name should not be empty. "),!1;try{var d=b.data.getTarget().getParent(),e=/(dic_\w+)_[\w\d]+/.exec(d.getId())[1];j[e].apply(null,[d,c,m])}catch(C){n(" Dictionary error. ")}return!0}var k=this,e=k.data.scayt.getLangList(),d=["dic_create","dic_delete","dic_rename","dic_restore"],g=[],i=[],c;if(u){for(c=0;c<d.length;c++)g[c]=d[c]+"_"+a,f.getById(g[c]).setHtml('<span class="cke_dialog_ui_button">'+
14
+ h["button_"+d[c]]+"</span>");f.getById("dic_info_"+a).setHtml(h.dic_info)}if(1==l[0])for(c in v)d="label_"+v[c],g=f.getById(d+"_"+a),"undefined"!=typeof g&&("undefined"!=typeof h[d]&&"undefined"!=typeof k.options[v[c]])&&(g.setHtml(h[d]),g.getParent().$.style.display="block");d='<p><img src="'+window.scayt.getAboutInfo().logoURL+'" /></p><p>'+h.version+window.scayt.getAboutInfo().version.toString()+"</p><p>"+h.about_throwt_copy+"</p>";f.getById("scayt_about_"+a).setHtml(d);d=function(a,b){var c=f.createElement("label");
15
+ c.setAttribute("for","cke_option"+a);c.setHtml(b[a]);k.sLang==a&&(k.chosed_lang=a);var d=f.createElement("div"),e=CKEDITOR.dom.element.createFromHtml('<input id="cke_option'+a+'" type="radio" '+(k.sLang==a?'checked="checked"':"")+' value="'+a+'" name="scayt_lang" />');e.on("click",function(){this.$.checked=true;k.chosed_lang=a});d.append(e);d.append(c);return{lang:b[a],code:a,radio:d}};if(1==l[1]){for(c in e.rtl)i[i.length]=d(c,e.ltr);for(c in e.ltr)i[i.length]=d(c,e.ltr);i.sort(function(a,b){return b.lang>
16
+ a.lang?-1:1});e=f.getById("scayt_lcol_"+a);d=f.getById("scayt_rcol_"+a);for(c=0;c<i.length;c++)(c<i.length/2?e:d).append(i[c].radio)}var j={dic_create:function(a,b,c){var d=c[0]+","+c[1],e=h.err_dic_create,f=h.succ_dic_create;window.scayt.createUserDictionary(b,function(a){q(d);p(c[1]);f=f.replace("%s",a.dname);o(f)},function(a){e=e.replace("%s",a.dname);n(e+"( "+(a.message||"")+")")})},dic_rename:function(a,b){var c=h.err_dic_rename||"",d=h.succ_dic_rename||"";window.scayt.renameUserDictionary(b,
17
+ function(a){d=d.replace("%s",a.dname);r(b);o(d)},function(a){c=c.replace("%s",a.dname);r(b);n(c+"( "+(a.message||"")+" )")})},dic_delete:function(a,b,c){var d=c[0]+","+c[1],e=h.err_dic_delete,f=h.succ_dic_delete;window.scayt.deleteUserDictionary(function(a){f=f.replace("%s",a.dname);q(d);p(c[0]);r("");o(f)},function(a){e=e.replace("%s",a.dname);n(e)})}};j.dic_restore=k.dic_restore||function(a,b,c){var d=c[0]+","+c[1],e=h.err_dic_restore,f=h.succ_dic_restore;window.scayt.restoreUserDictionary(b,function(a){f=
18
+ f.replace("%s",a.dname);q(d);p(c[1]);o(f)},function(a){e=e.replace("%s",a.dname);n(e)})};i=(m[0]+","+m[1]).split(",");c=0;for(e=i.length;c<e;c+=1)if(d=f.getById(i[c]))d.on("click",b,this)},y=function(){var b=this;if(1==l[0])for(var g=w(),e=0,d=g.length;e<d;e++){var h=g[e].id,i=f.getById(h);if(i&&(g[e].checked=!1,1==b.options[h.split("_")[0]]&&(g[e].checked=!0),s))i.on("click",function(){b.options[this.getId().split("_")[0]]=this.$.checked?1:0})}1==l[1]&&(g=f.getById("cke_option"+b.sLang),x(g.$,b.sLang));
19
+ u&&(window.scayt.getNameUserDictionary(function(b){b=b.dname;q(m[0]+","+m[1]);if(b){f.getById("dic_name_"+a).setValue(b);p(m[1])}else p(m[0])},function(){f.getById("dic_name_"+a).setValue("")}),o(""))};return B});
@@ -0,0 +1,71 @@
1
+ a
2
+ {
3
+ text-decoration:none;
4
+ padding: 2px 4px 4px 6px;
5
+ display : block;
6
+ border-width: 1px;
7
+ border-style: solid;
8
+ margin : 0px;
9
+ }
10
+
11
+ a.cke_scayt_toogle:hover,
12
+ a.cke_scayt_toogle:focus,
13
+ a.cke_scayt_toogle:active
14
+ {
15
+ border-color: #316ac5;
16
+ background-color: #dff1ff;
17
+ color : #000;
18
+ cursor: pointer;
19
+ margin : 0px;
20
+ }
21
+ a.cke_scayt_toogle {
22
+ color : #316ac5;
23
+ border-color: #fff;
24
+ }
25
+ .scayt_enabled a.cke_scayt_item {
26
+ color : #316ac5;
27
+ border-color: #fff;
28
+ margin : 0px;
29
+ }
30
+ .scayt_disabled a.cke_scayt_item {
31
+ color : gray;
32
+ border-color : #fff;
33
+ }
34
+ .scayt_enabled a.cke_scayt_item:hover,
35
+ .scayt_enabled a.cke_scayt_item:focus,
36
+ .scayt_enabled a.cke_scayt_item:active
37
+ {
38
+ border-color: #316ac5;
39
+ background-color: #dff1ff;
40
+ color : #000;
41
+ cursor: pointer;
42
+ }
43
+ .scayt_disabled a.cke_scayt_item:hover,
44
+ .scayt_disabled a.cke_scayt_item:focus,
45
+ .scayt_disabled a.cke_scayt_item:active
46
+ {
47
+ border-color: gray;
48
+ background-color: #dff1ff;
49
+ color : gray;
50
+ cursor: no-drop;
51
+ }
52
+ .cke_scayt_set_on, .cke_scayt_set_off
53
+ {
54
+ display: none;
55
+ }
56
+ .scayt_enabled .cke_scayt_set_on
57
+ {
58
+ display: none;
59
+ }
60
+ .scayt_disabled .cke_scayt_set_on
61
+ {
62
+ display: inline;
63
+ }
64
+ .scayt_disabled .cke_scayt_set_off
65
+ {
66
+ display: none;
67
+ }
68
+ .scayt_enabled .cke_scayt_set_off
69
+ {
70
+ display: inline;
71
+ }
@@ -0,0 +1,10 @@
1
+ /*
2
+ Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved.
3
+ For licensing, see LICENSE.html or http://ckeditor.com/license
4
+ */
5
+ CKEDITOR.dialog.add("smiley",function(f){for(var e=f.config,a=f.lang.smiley,h=e.smiley_images,g=e.smiley_columns||8,i,k=function(j){var c=j.data.getTarget(),b=c.getName();if("a"==b)c=c.getChild(0);else if("img"!=b)return;var b=c.getAttribute("cke_src"),a=c.getAttribute("title"),c=f.document.createElement("img",{attributes:{src:b,"data-cke-saved-src":b,title:a,alt:a,width:c.$.width,height:c.$.height}});f.insertElement(c);i.hide();j.data.preventDefault()},n=CKEDITOR.tools.addFunction(function(a,c){var a=
6
+ new CKEDITOR.dom.event(a),c=new CKEDITOR.dom.element(c),b;b=a.getKeystroke();var d="rtl"==f.lang.dir;switch(b){case 38:if(b=c.getParent().getParent().getPrevious())b=b.getChild([c.getParent().getIndex(),0]),b.focus();a.preventDefault();break;case 40:if(b=c.getParent().getParent().getNext())(b=b.getChild([c.getParent().getIndex(),0]))&&b.focus();a.preventDefault();break;case 32:k({data:a});a.preventDefault();break;case d?37:39:if(b=c.getParent().getNext())b=b.getChild(0),b.focus(),a.preventDefault(!0);
7
+ else if(b=c.getParent().getParent().getNext())(b=b.getChild([0,0]))&&b.focus(),a.preventDefault(!0);break;case d?39:37:if(b=c.getParent().getPrevious())b=b.getChild(0),b.focus(),a.preventDefault(!0);else if(b=c.getParent().getParent().getPrevious())b=b.getLast().getChild(0),b.focus(),a.preventDefault(!0)}}),d=CKEDITOR.tools.getNextId()+"_smiley_emtions_label",d=['<div><span id="'+d+'" class="cke_voice_label">'+a.options+"</span>",'<table role="listbox" aria-labelledby="'+d+'" style="width:100%;height:100%;border-collapse:separate;" cellspacing="2" cellpadding="2"',
8
+ CKEDITOR.env.ie&&CKEDITOR.env.quirks?' style="position:absolute;"':"","><tbody>"],l=h.length,a=0;a<l;a++){0===a%g&&d.push('<tr role="presentation">');var m="cke_smile_label_"+a+"_"+CKEDITOR.tools.getNextNumber();d.push('<td class="cke_dark_background cke_centered" style="vertical-align: middle;" role="presentation"><a href="javascript:void(0)" role="option"',' aria-posinset="'+(a+1)+'"',' aria-setsize="'+l+'"',' aria-labelledby="'+m+'"',' class="cke_smile cke_hand" tabindex="-1" onkeydown="CKEDITOR.tools.callFunction( ',
9
+ n,', event, this );">','<img class="cke_hand" title="',e.smiley_descriptions[a],'" cke_src="',CKEDITOR.tools.htmlEncode(e.smiley_path+h[a]),'" alt="',e.smiley_descriptions[a],'"',' src="',CKEDITOR.tools.htmlEncode(e.smiley_path+h[a]),'"',CKEDITOR.env.ie?" onload=\"this.setAttribute('width', 2); this.removeAttribute('width');\" ":"",'><span id="'+m+'" class="cke_voice_label">'+e.smiley_descriptions[a]+"</span></a>","</td>");a%g==g-1&&d.push("</tr>")}if(a<g-1){for(;a<g-1;a++)d.push("<td></td>");d.push("</tr>")}d.push("</tbody></table></div>");
10
+ e={type:"html",id:"smileySelector",html:d.join(""),onLoad:function(a){i=a.sender},focus:function(){var a=this;setTimeout(function(){a.getElement().getElementsByTag("a").getItem(0).focus()},0)},onClick:k,style:"width: 100%; border-collapse: separate;"};return{title:f.lang.smiley.title,minWidth:270,minHeight:120,contents:[{id:"tab1",label:"",title:"",expand:!0,padding:0,elements:[e]}],buttons:[CKEDITOR.dialog.cancelButton]}});
@@ -0,0 +1,20 @@
1
+ Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved.
2
+ For licensing, see LICENSE.html or http://ckeditor.com/license
3
+
4
+ cs.js Found: 118 Missing: 0
5
+ cy.js Found: 118 Missing: 0
6
+ de.js Found: 118 Missing: 0
7
+ el.js Found: 16 Missing: 102
8
+ eo.js Found: 118 Missing: 0
9
+ et.js Found: 31 Missing: 87
10
+ fa.js Found: 24 Missing: 94
11
+ fi.js Found: 23 Missing: 95
12
+ fr.js Found: 118 Missing: 0
13
+ hr.js Found: 23 Missing: 95
14
+ it.js Found: 118 Missing: 0
15
+ nb.js Found: 118 Missing: 0
16
+ nl.js Found: 118 Missing: 0
17
+ no.js Found: 118 Missing: 0
18
+ tr.js Found: 118 Missing: 0
19
+ ug.js Found: 39 Missing: 79
20
+ zh-cn.js Found: 118 Missing: 0
@@ -0,0 +1,13 @@
1
+ /*
2
+ Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved.
3
+ For licensing, see LICENSE.html or http://ckeditor.com/license
4
+ */
5
+ CKEDITOR.plugins.setLang("specialchar","ca",{euro:"Símbol d'euro",lsquo:"Signe de cometa simple esquerra",rsquo:"Signe de cometa simple dreta",ldquo:"Signe de cometa doble esquerra",rdquo:"Signe de cometa doble dreta",ndash:"Guió",mdash:"Guió baix",iexcl:"Signe d'exclamació inversa",cent:"Símbol de percentatge",pound:"Símbol de lliura",curren:"Símbol de moneda",yen:"Símbol de Yen",brvbar:"Broken bar",sect:"Section sign",uml:"Dièresi",copy:"Símbol de Copyright",ordf:"Feminine ordinal indicator",laquo:"Left-pointing double angle quotation mark",
6
+ not:"Not sign",reg:"Símbol registrat",macr:"Macron",deg:"Degree sign",sup2:"Superscript two",sup3:"Superscript three",acute:"Acute accent",micro:"Micro sign",para:"Pilcrow sign",middot:"Middle dot",cedil:"Cedilla",sup1:"Superscript one",ordm:"Masculine ordinal indicator",raquo:"Right-pointing double angle quotation mark",frac14:"Vulgar fraction one quarter",frac12:"Vulgar fraction one half",frac34:"Vulgar fraction three quarters",iquest:"Inverted question mark",Agrave:"Latin capital letter A with grave accent",
7
+ Aacute:"Latin capital letter A with acute accent",Acirc:"Latin capital letter A with circumflex",Atilde:"Latin capital letter A with tilde",Auml:"Latin capital letter A with diaeresis",Aring:"Latin capital letter A with ring above",AElig:"Latin Capital letter Æ",Ccedil:"Latin capital letter C with cedilla",Egrave:"Latin capital letter E with grave accent",Eacute:"Latin capital letter E with acute accent",Ecirc:"Latin capital letter E with circumflex",Euml:"Latin capital letter E with diaeresis",Igrave:"Latin capital letter I with grave accent",
8
+ Iacute:"Latin capital letter I with acute accent",Icirc:"Latin capital letter I with circumflex",Iuml:"Latin capital letter I with diaeresis",ETH:"Latin capital letter Eth",Ntilde:"Latin capital letter N with tilde",Ograve:"Latin capital letter O with grave accent",Oacute:"Latin capital letter O with acute accent",Ocirc:"Latin capital letter O with circumflex",Otilde:"Latin capital letter O with tilde",Ouml:"Latin capital letter O with diaeresis",times:"Multiplication sign",Oslash:"Latin capital letter O with stroke",
9
+ Ugrave:"Latin capital letter U with grave accent",Uacute:"Latin capital letter U with acute accent",Ucirc:"Latin capital letter U with circumflex",Uuml:"Latin capital letter U with diaeresis",Yacute:"Latin capital letter Y with acute accent",THORN:"Latin capital letter Thorn",szlig:"Latin small letter sharp s",agrave:"Latin small letter a with grave accent",aacute:"Latin small letter a with acute accent",acirc:"Latin small letter a with circumflex",atilde:"Latin small letter a with tilde",auml:"Latin small letter a with diaeresis",
10
+ aring:"Latin small letter a with ring above",aelig:"Latin small letter æ",ccedil:"Latin small letter c with cedilla",egrave:"Latin small letter e with grave accent",eacute:"Latin small letter e with acute accent",ecirc:"Latin small letter e with circumflex",euml:"Latin small letter e with diaeresis",igrave:"Latin small letter i with grave accent",iacute:"Latin small letter i with acute accent",icirc:"Latin small letter i with circumflex",iuml:"Latin small letter i with diaeresis",eth:"Latin small letter eth",
11
+ ntilde:"Latin small letter n with tilde",ograve:"Latin small letter o with grave accent",oacute:"Latin small letter o with acute accent",ocirc:"Latin small letter o with circumflex",otilde:"Latin small letter o with tilde",ouml:"Latin small letter o with diaeresis",divide:"Division sign",oslash:"Latin small letter o with stroke",ugrave:"Latin small letter u with grave accent",uacute:"Latin small letter u with acute accent",ucirc:"Latin small letter u with circumflex",uuml:"Latin small letter u with diaeresis",
12
+ yacute:"Latin small letter y with acute accent",thorn:"Latin small letter thorn",yuml:"Latin small letter y with diaeresis",OElig:"Latin capital ligature OE",oelig:"Latin small ligature oe",372:"Latin capital letter W with circumflex",374:"Latin capital letter Y with circumflex",373:"Latin small letter w with circumflex",375:"Latin small letter y with circumflex",sbquo:"Single low-9 quotation mark",8219:"Single high-reversed-9 quotation mark",bdquo:"Double low-9 quotation mark",hellip:"Horizontal ellipsis",
13
+ trade:"Trade mark sign",9658:"Black right-pointing pointer",bull:"Bullet",rarr:"Rightwards arrow",rArr:"Rightwards double arrow",hArr:"Left right double arrow",diams:"Black diamond suit",asymp:"Almost equal to"});
@@ -0,0 +1,13 @@
1
+ /*
2
+ Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved.
3
+ For licensing, see LICENSE.html or http://ckeditor.com/license
4
+ */
5
+ CKEDITOR.plugins.setLang("specialchar","cs",{euro:"Znak eura",lsquo:"Počáteční uvozovka jednoduchá",rsquo:"Koncová uvozovka jednoduchá",ldquo:"Počáteční uvozovka dvojitá",rdquo:"Koncová uvozovka dvojitá",ndash:"En pomlčka",mdash:"Em pomlčka",iexcl:"Obrácený vykřičník",cent:"Znak centu",pound:"Znak libry",curren:"Znak měny",yen:"Znak jenu",brvbar:"Přerušená svislá čára",sect:"Znak oddílu",uml:"Přehláska",copy:"Znak copyrightu",ordf:"Ženský indikátor rodu",laquo:"Znak dvojitých lomených uvozovek vlevo",
6
+ not:"Logistický zápor",reg:"Znak registrace",macr:"Pomlčka nad",deg:"Znak stupně",sup2:"Dvojka jako horní index",sup3:"Trojka jako horní index",acute:"Čárka nad vpravo",micro:"Znak mikro",para:"Znak odstavce",middot:"Tečka uprostřed",cedil:"Ocásek vlevo",sup1:"Jednička jako horní index",ordm:"Mužský indikátor rodu",raquo:"Znak dvojitých lomených uvozovek vpravo",frac14:"Obyčejný zlomek jedna čtvrtina",frac12:"Obyčejný zlomek jedna polovina",frac34:"Obyčejný zlomek tři čtvrtiny",iquest:"Znak obráceného otazníku",
7
+ Agrave:"Velké písmeno latinky A s čárkou nad vlevo",Aacute:"Velké písmeno latinky A s čárkou nad vpravo",Acirc:"Velké písmeno latinky A s vokáněm",Atilde:"Velké písmeno latinky A s tildou",Auml:"Velké písmeno latinky A s dvěma tečkami",Aring:"Velké písmeno latinky A s kroužkem nad",AElig:"Velké písmeno latinky Ae",Ccedil:"Velké písmeno latinky C s ocáskem vlevo",Egrave:"Velké písmeno latinky E s čárkou nad vlevo",Eacute:"Velké písmeno latinky E s čárkou nad vpravo",Ecirc:"Velké písmeno latinky E s vokáněm",
8
+ Euml:"Velké písmeno latinky E s dvěma tečkami",Igrave:"Velké písmeno latinky I s čárkou nad vlevo",Iacute:"Velké písmeno latinky I s čárkou nad vpravo",Icirc:"Velké písmeno latinky I s vokáněm",Iuml:"Velké písmeno latinky I s dvěma tečkami",ETH:"Velké písmeno latinky Eth",Ntilde:"Velké písmeno latinky N s tildou",Ograve:"Velké písmeno latinky O s čárkou nad vlevo",Oacute:"Velké písmeno latinky O s čárkou nad vpravo",Ocirc:"Velké písmeno latinky O s vokáněm",Otilde:"Velké písmeno latinky O s tildou",
9
+ Ouml:"Velké písmeno latinky O s dvěma tečkami",times:"Znak násobení",Oslash:"Velké písmeno latinky O přeškrtnuté",Ugrave:"Velké písmeno latinky U s čárkou nad vlevo",Uacute:"Velké písmeno latinky U s čárkou nad vpravo",Ucirc:"Velké písmeno latinky U s vokáněm",Uuml:"Velké písmeno latinky U s dvěma tečkami",Yacute:"Velké písmeno latinky Y s čárkou nad vpravo",THORN:"Velké písmeno latinky Thorn",szlig:"Malé písmeno latinky ostré s",agrave:"Malé písmeno latinky a s čárkou nad vlevo",aacute:"Malé písmeno latinky a s čárkou nad vpravo",
10
+ acirc:"Malé písmeno latinky a s vokáněm",atilde:"Malé písmeno latinky a s tildou",auml:"Malé písmeno latinky a s dvěma tečkami",aring:"Malé písmeno latinky a s kroužkem nad",aelig:"Malé písmeno latinky ae",ccedil:"Malé písmeno latinky c s ocáskem vlevo",egrave:"Malé písmeno latinky e s čárkou nad vlevo",eacute:"Malé písmeno latinky e s čárkou nad vpravo",ecirc:"Malé písmeno latinky e s vokáněm",euml:"Malé písmeno latinky e s dvěma tečkami",igrave:"Malé písmeno latinky i s čárkou nad vlevo",iacute:"Malé písmeno latinky i s čárkou nad vpravo",
11
+ icirc:"Malé písmeno latinky i s vokáněm",iuml:"Malé písmeno latinky i s dvěma tečkami",eth:"Malé písmeno latinky eth",ntilde:"Malé písmeno latinky n s tildou",ograve:"Malé písmeno latinky o s čárkou nad vlevo",oacute:"Malé písmeno latinky o s čárkou nad vpravo",ocirc:"Malé písmeno latinky o s vokáněm",otilde:"Malé písmeno latinky o s tildou",ouml:"Malé písmeno latinky o s dvěma tečkami",divide:"Znak dělení",oslash:"Malé písmeno latinky o přeškrtnuté",ugrave:"Malé písmeno latinky u s čárkou nad vlevo",
12
+ uacute:"Malé písmeno latinky u s čárkou nad vpravo",ucirc:"Malé písmeno latinky u s vokáněm",uuml:"Malé písmeno latinky u s dvěma tečkami",yacute:"Malé písmeno latinky y s čárkou nad vpravo",thorn:"Malé písmeno latinky thorn",yuml:"Malé písmeno latinky y s dvěma tečkami",OElig:"Velká ligatura latinky OE",oelig:"Malá ligatura latinky OE",372:"Velké písmeno latinky W s vokáněm",374:"Velké písmeno latinky Y s vokáněm",373:"Malé písmeno latinky w s vokáněm",375:"Malé písmeno latinky y s vokáněm",sbquo:"Dolní 9 uvozovka jednoduchá",
13
+ 8219:"Horní obrácená 9 uvozovka jednoduchá",bdquo:"Dolní 9 uvozovka dvojitá",hellip:"Trojtečkový úvod",trade:"Obchodní značka",9658:"Černý ukazatel směřující vpravo",bull:"Kolečko",rarr:"Šipka vpravo",rArr:"Dvojitá šipka vpravo",hArr:"Dvojitá šipka vlevo a vpravo",diams:"Černé piky",asymp:"Téměř se rovná"});