frontendeditor_ckeditor 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (430) hide show
  1. data/README.md +29 -0
  2. data/Rakefile +1 -0
  3. data/lib/frontendeditor_ckeditor/engine.rb +8 -0
  4. data/lib/frontendeditor_ckeditor/version.rb +3 -0
  5. data/lib/frontendeditor_ckeditor.rb +3 -0
  6. data/vendor/assets/javascripts/ckeditor/API-CHANGES.md +195 -0
  7. data/vendor/assets/javascripts/ckeditor/LICENSE.md +1274 -0
  8. data/vendor/assets/javascripts/ckeditor/ckeditor.js +847 -0
  9. data/vendor/assets/javascripts/ckeditor/ckeditor_actions.coffee +37 -0
  10. data/vendor/assets/javascripts/ckeditor/config.js +11 -0
  11. data/vendor/assets/javascripts/ckeditor/contents.css +25 -0
  12. data/vendor/assets/javascripts/ckeditor/init_ckeditor.coffee +6 -0
  13. data/vendor/assets/javascripts/ckeditor/lang/_languages.js +7 -0
  14. data/vendor/assets/javascripts/ckeditor/lang/_translationstatus.txt +63 -0
  15. data/vendor/assets/javascripts/ckeditor/lang/af.js +5 -0
  16. data/vendor/assets/javascripts/ckeditor/lang/ar.js +5 -0
  17. data/vendor/assets/javascripts/ckeditor/lang/bg.js +5 -0
  18. data/vendor/assets/javascripts/ckeditor/lang/bn.js +5 -0
  19. data/vendor/assets/javascripts/ckeditor/lang/bs.js +5 -0
  20. data/vendor/assets/javascripts/ckeditor/lang/ca.js +5 -0
  21. data/vendor/assets/javascripts/ckeditor/lang/cs.js +5 -0
  22. data/vendor/assets/javascripts/ckeditor/lang/cy.js +5 -0
  23. data/vendor/assets/javascripts/ckeditor/lang/da.js +5 -0
  24. data/vendor/assets/javascripts/ckeditor/lang/de.js +5 -0
  25. data/vendor/assets/javascripts/ckeditor/lang/el.js +5 -0
  26. data/vendor/assets/javascripts/ckeditor/lang/en-au.js +5 -0
  27. data/vendor/assets/javascripts/ckeditor/lang/en-ca.js +5 -0
  28. data/vendor/assets/javascripts/ckeditor/lang/en-gb.js +5 -0
  29. data/vendor/assets/javascripts/ckeditor/lang/en.js +5 -0
  30. data/vendor/assets/javascripts/ckeditor/lang/eo.js +5 -0
  31. data/vendor/assets/javascripts/ckeditor/lang/es.js +5 -0
  32. data/vendor/assets/javascripts/ckeditor/lang/et.js +5 -0
  33. data/vendor/assets/javascripts/ckeditor/lang/eu.js +5 -0
  34. data/vendor/assets/javascripts/ckeditor/lang/fa.js +5 -0
  35. data/vendor/assets/javascripts/ckeditor/lang/fi.js +5 -0
  36. data/vendor/assets/javascripts/ckeditor/lang/fo.js +5 -0
  37. data/vendor/assets/javascripts/ckeditor/lang/fr-ca.js +5 -0
  38. data/vendor/assets/javascripts/ckeditor/lang/fr.js +5 -0
  39. data/vendor/assets/javascripts/ckeditor/lang/gl.js +5 -0
  40. data/vendor/assets/javascripts/ckeditor/lang/gu.js +5 -0
  41. data/vendor/assets/javascripts/ckeditor/lang/he.js +5 -0
  42. data/vendor/assets/javascripts/ckeditor/lang/hi.js +5 -0
  43. data/vendor/assets/javascripts/ckeditor/lang/hr.js +5 -0
  44. data/vendor/assets/javascripts/ckeditor/lang/hu.js +5 -0
  45. data/vendor/assets/javascripts/ckeditor/lang/is.js +5 -0
  46. data/vendor/assets/javascripts/ckeditor/lang/it.js +5 -0
  47. data/vendor/assets/javascripts/ckeditor/lang/ja.js +5 -0
  48. data/vendor/assets/javascripts/ckeditor/lang/ka.js +5 -0
  49. data/vendor/assets/javascripts/ckeditor/lang/km.js +5 -0
  50. data/vendor/assets/javascripts/ckeditor/lang/ko.js +5 -0
  51. data/vendor/assets/javascripts/ckeditor/lang/lt.js +5 -0
  52. data/vendor/assets/javascripts/ckeditor/lang/lv.js +5 -0
  53. data/vendor/assets/javascripts/ckeditor/lang/mk.js +5 -0
  54. data/vendor/assets/javascripts/ckeditor/lang/mn.js +5 -0
  55. data/vendor/assets/javascripts/ckeditor/lang/ms.js +5 -0
  56. data/vendor/assets/javascripts/ckeditor/lang/nb.js +5 -0
  57. data/vendor/assets/javascripts/ckeditor/lang/nl.js +5 -0
  58. data/vendor/assets/javascripts/ckeditor/lang/no.js +5 -0
  59. data/vendor/assets/javascripts/ckeditor/lang/pl.js +5 -0
  60. data/vendor/assets/javascripts/ckeditor/lang/pt-br.js +5 -0
  61. data/vendor/assets/javascripts/ckeditor/lang/pt.js +5 -0
  62. data/vendor/assets/javascripts/ckeditor/lang/ro.js +5 -0
  63. data/vendor/assets/javascripts/ckeditor/lang/ru.js +5 -0
  64. data/vendor/assets/javascripts/ckeditor/lang/sk.js +5 -0
  65. data/vendor/assets/javascripts/ckeditor/lang/sl.js +5 -0
  66. data/vendor/assets/javascripts/ckeditor/lang/sr-latn.js +5 -0
  67. data/vendor/assets/javascripts/ckeditor/lang/sr.js +5 -0
  68. data/vendor/assets/javascripts/ckeditor/lang/sv.js +5 -0
  69. data/vendor/assets/javascripts/ckeditor/lang/th.js +5 -0
  70. data/vendor/assets/javascripts/ckeditor/lang/tr.js +5 -0
  71. data/vendor/assets/javascripts/ckeditor/lang/ug.js +5 -0
  72. data/vendor/assets/javascripts/ckeditor/lang/uk.js +5 -0
  73. data/vendor/assets/javascripts/ckeditor/lang/vi.js +5 -0
  74. data/vendor/assets/javascripts/ckeditor/lang/zh-cn.js +5 -0
  75. data/vendor/assets/javascripts/ckeditor/lang/zh.js +5 -0
  76. data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/a11yhelp.js +9 -0
  77. data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/_translationstatus.txt +25 -0
  78. data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/cs.js +9 -0
  79. data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/cy.js +8 -0
  80. data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/da.js +8 -0
  81. data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/de.js +9 -0
  82. data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/el.js +9 -0
  83. data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/en.js +8 -0
  84. data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/eo.js +9 -0
  85. data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/fa.js +8 -0
  86. data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/fi.js +9 -0
  87. data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/fr.js +9 -0
  88. data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/gu.js +8 -0
  89. data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/he.js +8 -0
  90. data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/it.js +9 -0
  91. data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/mk.js +8 -0
  92. data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/nb.js +8 -0
  93. data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/nl.js +9 -0
  94. data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/no.js +8 -0
  95. data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/pt-br.js +8 -0
  96. data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/ro.js +8 -0
  97. data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/tr.js +9 -0
  98. data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/ug.js +8 -0
  99. data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/vi.js +8 -0
  100. data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/zh-cn.js +7 -0
  101. data/vendor/assets/javascripts/ckeditor/plugins/about/dialogs/about.js +6 -0
  102. data/vendor/assets/javascripts/ckeditor/plugins/about/dialogs/logo_ckeditor.png +0 -0
  103. data/vendor/assets/javascripts/ckeditor/plugins/adobeair/plugin.js +9 -0
  104. data/vendor/assets/javascripts/ckeditor/plugins/ajax/plugin.js +6 -0
  105. data/vendor/assets/javascripts/ckeditor/plugins/autogrow/plugin.js +8 -0
  106. data/vendor/assets/javascripts/ckeditor/plugins/bbcode/plugin.js +22 -0
  107. data/vendor/assets/javascripts/ckeditor/plugins/bbcode/samples/bbcode.html +172 -0
  108. data/vendor/assets/javascripts/ckeditor/plugins/clipboard/dialogs/paste.js +11 -0
  109. data/vendor/assets/javascripts/ckeditor/plugins/clipboard/samples/clipboard.html +210 -0
  110. data/vendor/assets/javascripts/ckeditor/plugins/colordialog/dialogs/colordialog.js +13 -0
  111. data/vendor/assets/javascripts/ckeditor/plugins/devtools/lang/_translationstatus.txt +27 -0
  112. data/vendor/assets/javascripts/ckeditor/plugins/devtools/lang/bg.js +5 -0
  113. data/vendor/assets/javascripts/ckeditor/plugins/devtools/lang/cs.js +5 -0
  114. data/vendor/assets/javascripts/ckeditor/plugins/devtools/lang/cy.js +5 -0
  115. data/vendor/assets/javascripts/ckeditor/plugins/devtools/lang/da.js +5 -0
  116. data/vendor/assets/javascripts/ckeditor/plugins/devtools/lang/de.js +5 -0
  117. data/vendor/assets/javascripts/ckeditor/plugins/devtools/lang/el.js +5 -0
  118. data/vendor/assets/javascripts/ckeditor/plugins/devtools/lang/en.js +5 -0
  119. data/vendor/assets/javascripts/ckeditor/plugins/devtools/lang/eo.js +5 -0
  120. data/vendor/assets/javascripts/ckeditor/plugins/devtools/lang/et.js +5 -0
  121. data/vendor/assets/javascripts/ckeditor/plugins/devtools/lang/fa.js +5 -0
  122. data/vendor/assets/javascripts/ckeditor/plugins/devtools/lang/fi.js +5 -0
  123. data/vendor/assets/javascripts/ckeditor/plugins/devtools/lang/fr.js +5 -0
  124. data/vendor/assets/javascripts/ckeditor/plugins/devtools/lang/gu.js +5 -0
  125. data/vendor/assets/javascripts/ckeditor/plugins/devtools/lang/he.js +5 -0
  126. data/vendor/assets/javascripts/ckeditor/plugins/devtools/lang/hr.js +5 -0
  127. data/vendor/assets/javascripts/ckeditor/plugins/devtools/lang/it.js +5 -0
  128. data/vendor/assets/javascripts/ckeditor/plugins/devtools/lang/nb.js +5 -0
  129. data/vendor/assets/javascripts/ckeditor/plugins/devtools/lang/nl.js +5 -0
  130. data/vendor/assets/javascripts/ckeditor/plugins/devtools/lang/no.js +5 -0
  131. data/vendor/assets/javascripts/ckeditor/plugins/devtools/lang/pl.js +5 -0
  132. data/vendor/assets/javascripts/ckeditor/plugins/devtools/lang/tr.js +5 -0
  133. data/vendor/assets/javascripts/ckeditor/plugins/devtools/lang/ug.js +5 -0
  134. data/vendor/assets/javascripts/ckeditor/plugins/devtools/lang/uk.js +5 -0
  135. data/vendor/assets/javascripts/ckeditor/plugins/devtools/lang/vi.js +5 -0
  136. data/vendor/assets/javascripts/ckeditor/plugins/devtools/lang/zh-cn.js +5 -0
  137. data/vendor/assets/javascripts/ckeditor/plugins/devtools/plugin.js +9 -0
  138. data/vendor/assets/javascripts/ckeditor/plugins/dialog/dialogDefinition.js +4 -0
  139. data/vendor/assets/javascripts/ckeditor/plugins/dialogadvtab/plugin.js +8 -0
  140. data/vendor/assets/javascripts/ckeditor/plugins/div/dialogs/div.js +9 -0
  141. data/vendor/assets/javascripts/ckeditor/plugins/divarea/plugin.js +5 -0
  142. data/vendor/assets/javascripts/ckeditor/plugins/docprops/dialogs/docprops.js +25 -0
  143. data/vendor/assets/javascripts/ckeditor/plugins/docprops/icons/docprops-rtl.png +0 -0
  144. data/vendor/assets/javascripts/ckeditor/plugins/docprops/icons/docprops.png +0 -0
  145. data/vendor/assets/javascripts/ckeditor/plugins/docprops/lang/af.js +3 -0
  146. data/vendor/assets/javascripts/ckeditor/plugins/docprops/lang/ar.js +2 -0
  147. data/vendor/assets/javascripts/ckeditor/plugins/docprops/lang/bg.js +3 -0
  148. data/vendor/assets/javascripts/ckeditor/plugins/docprops/lang/bn.js +3 -0
  149. data/vendor/assets/javascripts/ckeditor/plugins/docprops/lang/bs.js +3 -0
  150. data/vendor/assets/javascripts/ckeditor/plugins/docprops/lang/ca.js +3 -0
  151. data/vendor/assets/javascripts/ckeditor/plugins/docprops/lang/cs.js +3 -0
  152. data/vendor/assets/javascripts/ckeditor/plugins/docprops/lang/cy.js +3 -0
  153. data/vendor/assets/javascripts/ckeditor/plugins/docprops/lang/da.js +3 -0
  154. data/vendor/assets/javascripts/ckeditor/plugins/docprops/lang/de.js +3 -0
  155. data/vendor/assets/javascripts/ckeditor/plugins/docprops/lang/el.js +3 -0
  156. data/vendor/assets/javascripts/ckeditor/plugins/docprops/lang/en-au.js +3 -0
  157. data/vendor/assets/javascripts/ckeditor/plugins/docprops/lang/en-ca.js +3 -0
  158. data/vendor/assets/javascripts/ckeditor/plugins/docprops/lang/en-gb.js +3 -0
  159. data/vendor/assets/javascripts/ckeditor/plugins/docprops/lang/en.js +3 -0
  160. data/vendor/assets/javascripts/ckeditor/plugins/docprops/lang/eo.js +3 -0
  161. data/vendor/assets/javascripts/ckeditor/plugins/docprops/lang/es.js +3 -0
  162. data/vendor/assets/javascripts/ckeditor/plugins/docprops/lang/et.js +3 -0
  163. data/vendor/assets/javascripts/ckeditor/plugins/docprops/lang/eu.js +3 -0
  164. data/vendor/assets/javascripts/ckeditor/plugins/docprops/lang/fa.js +2 -0
  165. data/vendor/assets/javascripts/ckeditor/plugins/docprops/lang/fi.js +3 -0
  166. data/vendor/assets/javascripts/ckeditor/plugins/docprops/lang/fo.js +3 -0
  167. data/vendor/assets/javascripts/ckeditor/plugins/docprops/lang/fr-ca.js +3 -0
  168. data/vendor/assets/javascripts/ckeditor/plugins/docprops/lang/fr.js +3 -0
  169. data/vendor/assets/javascripts/ckeditor/plugins/docprops/lang/gl.js +3 -0
  170. data/vendor/assets/javascripts/ckeditor/plugins/docprops/lang/gu.js +3 -0
  171. data/vendor/assets/javascripts/ckeditor/plugins/docprops/lang/he.js +2 -0
  172. data/vendor/assets/javascripts/ckeditor/plugins/docprops/lang/hi.js +3 -0
  173. data/vendor/assets/javascripts/ckeditor/plugins/docprops/lang/hr.js +3 -0
  174. data/vendor/assets/javascripts/ckeditor/plugins/docprops/lang/hu.js +3 -0
  175. data/vendor/assets/javascripts/ckeditor/plugins/docprops/lang/is.js +3 -0
  176. data/vendor/assets/javascripts/ckeditor/plugins/docprops/lang/it.js +3 -0
  177. data/vendor/assets/javascripts/ckeditor/plugins/docprops/lang/ja.js +2 -0
  178. data/vendor/assets/javascripts/ckeditor/plugins/docprops/lang/ka.js +3 -0
  179. data/vendor/assets/javascripts/ckeditor/plugins/docprops/lang/km.js +3 -0
  180. data/vendor/assets/javascripts/ckeditor/plugins/docprops/lang/ko.js +2 -0
  181. data/vendor/assets/javascripts/ckeditor/plugins/docprops/lang/lt.js +3 -0
  182. data/vendor/assets/javascripts/ckeditor/plugins/docprops/lang/lv.js +3 -0
  183. data/vendor/assets/javascripts/ckeditor/plugins/docprops/lang/mk.js +3 -0
  184. data/vendor/assets/javascripts/ckeditor/plugins/docprops/lang/mn.js +3 -0
  185. data/vendor/assets/javascripts/ckeditor/plugins/docprops/lang/ms.js +3 -0
  186. data/vendor/assets/javascripts/ckeditor/plugins/docprops/lang/nb.js +3 -0
  187. data/vendor/assets/javascripts/ckeditor/plugins/docprops/lang/nl.js +3 -0
  188. data/vendor/assets/javascripts/ckeditor/plugins/docprops/lang/no.js +3 -0
  189. data/vendor/assets/javascripts/ckeditor/plugins/docprops/lang/pl.js +3 -0
  190. data/vendor/assets/javascripts/ckeditor/plugins/docprops/lang/pt-br.js +3 -0
  191. data/vendor/assets/javascripts/ckeditor/plugins/docprops/lang/pt.js +3 -0
  192. data/vendor/assets/javascripts/ckeditor/plugins/docprops/lang/ro.js +3 -0
  193. data/vendor/assets/javascripts/ckeditor/plugins/docprops/lang/ru.js +3 -0
  194. data/vendor/assets/javascripts/ckeditor/plugins/docprops/lang/sk.js +3 -0
  195. data/vendor/assets/javascripts/ckeditor/plugins/docprops/lang/sl.js +3 -0
  196. data/vendor/assets/javascripts/ckeditor/plugins/docprops/lang/sr-latn.js +3 -0
  197. data/vendor/assets/javascripts/ckeditor/plugins/docprops/lang/sr.js +3 -0
  198. data/vendor/assets/javascripts/ckeditor/plugins/docprops/lang/sv.js +2 -0
  199. data/vendor/assets/javascripts/ckeditor/plugins/docprops/lang/th.js +3 -0
  200. data/vendor/assets/javascripts/ckeditor/plugins/docprops/lang/tr.js +3 -0
  201. data/vendor/assets/javascripts/ckeditor/plugins/docprops/lang/ug.js +3 -0
  202. data/vendor/assets/javascripts/ckeditor/plugins/docprops/lang/uk.js +3 -0
  203. data/vendor/assets/javascripts/ckeditor/plugins/docprops/lang/vi.js +3 -0
  204. data/vendor/assets/javascripts/ckeditor/plugins/docprops/lang/zh-cn.js +2 -0
  205. data/vendor/assets/javascripts/ckeditor/plugins/docprops/lang/zh.js +2 -0
  206. data/vendor/assets/javascripts/ckeditor/plugins/docprops/plugin.js +6 -0
  207. data/vendor/assets/javascripts/ckeditor/plugins/fakeobjects/images/spacer.gif +0 -0
  208. data/vendor/assets/javascripts/ckeditor/plugins/find/dialogs/find.js +25 -0
  209. data/vendor/assets/javascripts/ckeditor/plugins/flash/dialogs/flash.js +23 -0
  210. data/vendor/assets/javascripts/ckeditor/plugins/flash/images/placeholder.png +0 -0
  211. data/vendor/assets/javascripts/ckeditor/plugins/forms/dialogs/button.js +8 -0
  212. data/vendor/assets/javascripts/ckeditor/plugins/forms/dialogs/checkbox.js +8 -0
  213. data/vendor/assets/javascripts/ckeditor/plugins/forms/dialogs/form.js +8 -0
  214. data/vendor/assets/javascripts/ckeditor/plugins/forms/dialogs/hiddenfield.js +8 -0
  215. data/vendor/assets/javascripts/ckeditor/plugins/forms/dialogs/radio.js +8 -0
  216. data/vendor/assets/javascripts/ckeditor/plugins/forms/dialogs/select.js +20 -0
  217. data/vendor/assets/javascripts/ckeditor/plugins/forms/dialogs/textarea.js +8 -0
  218. data/vendor/assets/javascripts/ckeditor/plugins/forms/dialogs/textfield.js +10 -0
  219. data/vendor/assets/javascripts/ckeditor/plugins/forms/images/hiddenfield.gif +0 -0
  220. data/vendor/assets/javascripts/ckeditor/plugins/icons.png +0 -0
  221. data/vendor/assets/javascripts/ckeditor/plugins/iframe/dialogs/iframe.js +10 -0
  222. data/vendor/assets/javascripts/ckeditor/plugins/iframe/images/placeholder.png +0 -0
  223. data/vendor/assets/javascripts/ckeditor/plugins/iframedialog/plugin.js +8 -0
  224. data/vendor/assets/javascripts/ckeditor/plugins/image/dialogs/image.js +41 -0
  225. data/vendor/assets/javascripts/ckeditor/plugins/image/images/noimage.png +0 -0
  226. data/vendor/assets/javascripts/ckeditor/plugins/link/dialogs/anchor.js +8 -0
  227. data/vendor/assets/javascripts/ckeditor/plugins/link/dialogs/link.js +36 -0
  228. data/vendor/assets/javascripts/ckeditor/plugins/link/images/anchor.gif +0 -0
  229. data/vendor/assets/javascripts/ckeditor/plugins/liststyle/dialogs/liststyle.js +10 -0
  230. data/vendor/assets/javascripts/ckeditor/plugins/magicline/images/icon.png +0 -0
  231. data/vendor/assets/javascripts/ckeditor/plugins/magicline/samples/sample.html +544 -0
  232. data/vendor/assets/javascripts/ckeditor/plugins/pagebreak/images/pagebreak.gif +0 -0
  233. data/vendor/assets/javascripts/ckeditor/plugins/pastefromword/filter/default.js +30 -0
  234. data/vendor/assets/javascripts/ckeditor/plugins/placeholder/dialogs/placeholder.js +6 -0
  235. data/vendor/assets/javascripts/ckeditor/plugins/placeholder/icons/createplaceholder.png +0 -0
  236. data/vendor/assets/javascripts/ckeditor/plugins/placeholder/icons/editplaceholder.png +0 -0
  237. data/vendor/assets/javascripts/ckeditor/plugins/placeholder/lang/_translationstatus.txt +26 -0
  238. data/vendor/assets/javascripts/ckeditor/plugins/placeholder/lang/bg.js +5 -0
  239. data/vendor/assets/javascripts/ckeditor/plugins/placeholder/lang/cs.js +5 -0
  240. data/vendor/assets/javascripts/ckeditor/plugins/placeholder/lang/cy.js +5 -0
  241. data/vendor/assets/javascripts/ckeditor/plugins/placeholder/lang/da.js +5 -0
  242. data/vendor/assets/javascripts/ckeditor/plugins/placeholder/lang/de.js +5 -0
  243. data/vendor/assets/javascripts/ckeditor/plugins/placeholder/lang/el.js +5 -0
  244. data/vendor/assets/javascripts/ckeditor/plugins/placeholder/lang/en.js +5 -0
  245. data/vendor/assets/javascripts/ckeditor/plugins/placeholder/lang/eo.js +5 -0
  246. data/vendor/assets/javascripts/ckeditor/plugins/placeholder/lang/et.js +5 -0
  247. data/vendor/assets/javascripts/ckeditor/plugins/placeholder/lang/fa.js +5 -0
  248. data/vendor/assets/javascripts/ckeditor/plugins/placeholder/lang/fi.js +5 -0
  249. data/vendor/assets/javascripts/ckeditor/plugins/placeholder/lang/fr.js +5 -0
  250. data/vendor/assets/javascripts/ckeditor/plugins/placeholder/lang/he.js +5 -0
  251. data/vendor/assets/javascripts/ckeditor/plugins/placeholder/lang/hr.js +5 -0
  252. data/vendor/assets/javascripts/ckeditor/plugins/placeholder/lang/it.js +5 -0
  253. data/vendor/assets/javascripts/ckeditor/plugins/placeholder/lang/nb.js +5 -0
  254. data/vendor/assets/javascripts/ckeditor/plugins/placeholder/lang/nl.js +5 -0
  255. data/vendor/assets/javascripts/ckeditor/plugins/placeholder/lang/no.js +5 -0
  256. data/vendor/assets/javascripts/ckeditor/plugins/placeholder/lang/pl.js +5 -0
  257. data/vendor/assets/javascripts/ckeditor/plugins/placeholder/lang/tr.js +5 -0
  258. data/vendor/assets/javascripts/ckeditor/plugins/placeholder/lang/ug.js +5 -0
  259. data/vendor/assets/javascripts/ckeditor/plugins/placeholder/lang/uk.js +5 -0
  260. data/vendor/assets/javascripts/ckeditor/plugins/placeholder/lang/vi.js +5 -0
  261. data/vendor/assets/javascripts/ckeditor/plugins/placeholder/lang/zh-cn.js +5 -0
  262. data/vendor/assets/javascripts/ckeditor/plugins/placeholder/plugin.js +10 -0
  263. data/vendor/assets/javascripts/ckeditor/plugins/preview/preview.html +10 -0
  264. data/vendor/assets/javascripts/ckeditor/plugins/scayt/dialogs/options.js +19 -0
  265. data/vendor/assets/javascripts/ckeditor/plugins/scayt/dialogs/toolbar.css +71 -0
  266. data/vendor/assets/javascripts/ckeditor/plugins/selectionmark/plugin.js +9 -0
  267. data/vendor/assets/javascripts/ckeditor/plugins/showblocks/images/block_address.png +0 -0
  268. data/vendor/assets/javascripts/ckeditor/plugins/showblocks/images/block_blockquote.png +0 -0
  269. data/vendor/assets/javascripts/ckeditor/plugins/showblocks/images/block_div.png +0 -0
  270. data/vendor/assets/javascripts/ckeditor/plugins/showblocks/images/block_h1.png +0 -0
  271. data/vendor/assets/javascripts/ckeditor/plugins/showblocks/images/block_h2.png +0 -0
  272. data/vendor/assets/javascripts/ckeditor/plugins/showblocks/images/block_h3.png +0 -0
  273. data/vendor/assets/javascripts/ckeditor/plugins/showblocks/images/block_h4.png +0 -0
  274. data/vendor/assets/javascripts/ckeditor/plugins/showblocks/images/block_h5.png +0 -0
  275. data/vendor/assets/javascripts/ckeditor/plugins/showblocks/images/block_h6.png +0 -0
  276. data/vendor/assets/javascripts/ckeditor/plugins/showblocks/images/block_p.png +0 -0
  277. data/vendor/assets/javascripts/ckeditor/plugins/showblocks/images/block_pre.png +0 -0
  278. data/vendor/assets/javascripts/ckeditor/plugins/smiley/dialogs/smiley.js +10 -0
  279. data/vendor/assets/javascripts/ckeditor/plugins/smiley/images/angel_smile.gif +0 -0
  280. data/vendor/assets/javascripts/ckeditor/plugins/smiley/images/angry_smile.gif +0 -0
  281. data/vendor/assets/javascripts/ckeditor/plugins/smiley/images/broken_heart.gif +0 -0
  282. data/vendor/assets/javascripts/ckeditor/plugins/smiley/images/confused_smile.gif +0 -0
  283. data/vendor/assets/javascripts/ckeditor/plugins/smiley/images/cry_smile.gif +0 -0
  284. data/vendor/assets/javascripts/ckeditor/plugins/smiley/images/devil_smile.gif +0 -0
  285. data/vendor/assets/javascripts/ckeditor/plugins/smiley/images/embaressed_smile.gif +0 -0
  286. data/vendor/assets/javascripts/ckeditor/plugins/smiley/images/envelope.gif +0 -0
  287. data/vendor/assets/javascripts/ckeditor/plugins/smiley/images/heart.gif +0 -0
  288. data/vendor/assets/javascripts/ckeditor/plugins/smiley/images/kiss.gif +0 -0
  289. data/vendor/assets/javascripts/ckeditor/plugins/smiley/images/lightbulb.gif +0 -0
  290. data/vendor/assets/javascripts/ckeditor/plugins/smiley/images/omg_smile.gif +0 -0
  291. data/vendor/assets/javascripts/ckeditor/plugins/smiley/images/regular_smile.gif +0 -0
  292. data/vendor/assets/javascripts/ckeditor/plugins/smiley/images/sad_smile.gif +0 -0
  293. data/vendor/assets/javascripts/ckeditor/plugins/smiley/images/shades_smile.gif +0 -0
  294. data/vendor/assets/javascripts/ckeditor/plugins/smiley/images/teeth_smile.gif +0 -0
  295. data/vendor/assets/javascripts/ckeditor/plugins/smiley/images/thumbs_down.gif +0 -0
  296. data/vendor/assets/javascripts/ckeditor/plugins/smiley/images/thumbs_up.gif +0 -0
  297. data/vendor/assets/javascripts/ckeditor/plugins/smiley/images/tounge_smile.gif +0 -0
  298. data/vendor/assets/javascripts/ckeditor/plugins/smiley/images/whatchutalkingabout_smile.gif +0 -0
  299. data/vendor/assets/javascripts/ckeditor/plugins/smiley/images/wink_smile.gif +0 -0
  300. data/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/_translationstatus.txt +20 -0
  301. data/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/cs.js +13 -0
  302. data/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/cy.js +14 -0
  303. data/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/de.js +13 -0
  304. data/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/el.js +13 -0
  305. data/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/en.js +13 -0
  306. data/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/eo.js +12 -0
  307. data/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/et.js +13 -0
  308. data/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/fa.js +13 -0
  309. data/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/fi.js +13 -0
  310. data/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/fr.js +11 -0
  311. data/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/hr.js +13 -0
  312. data/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/it.js +14 -0
  313. data/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/nb.js +11 -0
  314. data/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/nl.js +13 -0
  315. data/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/no.js +11 -0
  316. data/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/tr.js +12 -0
  317. data/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/ug.js +13 -0
  318. data/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/zh-cn.js +9 -0
  319. data/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/specialchar.js +14 -0
  320. data/vendor/assets/javascripts/ckeditor/plugins/stylesheetparser/plugin.js +7 -0
  321. data/vendor/assets/javascripts/ckeditor/plugins/table/dialogs/table.js +20 -0
  322. data/vendor/assets/javascripts/ckeditor/plugins/tableresize/plugin.js +13 -0
  323. data/vendor/assets/javascripts/ckeditor/plugins/tabletools/dialogs/tableCell.js +18 -0
  324. data/vendor/assets/javascripts/ckeditor/plugins/templates/dialogs/templates.css +84 -0
  325. data/vendor/assets/javascripts/ckeditor/plugins/templates/dialogs/templates.js +10 -0
  326. data/vendor/assets/javascripts/ckeditor/plugins/templates/templates/default.js +6 -0
  327. data/vendor/assets/javascripts/ckeditor/plugins/templates/templates/images/template1.gif +0 -0
  328. data/vendor/assets/javascripts/ckeditor/plugins/templates/templates/images/template2.gif +0 -0
  329. data/vendor/assets/javascripts/ckeditor/plugins/templates/templates/images/template3.gif +0 -0
  330. data/vendor/assets/javascripts/ckeditor/plugins/toolbar/samples/toolbar.html +80 -0
  331. data/vendor/assets/javascripts/ckeditor/plugins/uicolor/dialogs/uicolor.js +10 -0
  332. data/vendor/assets/javascripts/ckeditor/plugins/uicolor/icons/uicolor.png +0 -0
  333. data/vendor/assets/javascripts/ckeditor/plugins/uicolor/lang/_translationstatus.txt +27 -0
  334. data/vendor/assets/javascripts/ckeditor/plugins/uicolor/lang/bg.js +5 -0
  335. data/vendor/assets/javascripts/ckeditor/plugins/uicolor/lang/cs.js +5 -0
  336. data/vendor/assets/javascripts/ckeditor/plugins/uicolor/lang/cy.js +5 -0
  337. data/vendor/assets/javascripts/ckeditor/plugins/uicolor/lang/da.js +5 -0
  338. data/vendor/assets/javascripts/ckeditor/plugins/uicolor/lang/de.js +5 -0
  339. data/vendor/assets/javascripts/ckeditor/plugins/uicolor/lang/el.js +5 -0
  340. data/vendor/assets/javascripts/ckeditor/plugins/uicolor/lang/en.js +5 -0
  341. data/vendor/assets/javascripts/ckeditor/plugins/uicolor/lang/eo.js +5 -0
  342. data/vendor/assets/javascripts/ckeditor/plugins/uicolor/lang/et.js +5 -0
  343. data/vendor/assets/javascripts/ckeditor/plugins/uicolor/lang/fa.js +5 -0
  344. data/vendor/assets/javascripts/ckeditor/plugins/uicolor/lang/fi.js +5 -0
  345. data/vendor/assets/javascripts/ckeditor/plugins/uicolor/lang/fr.js +5 -0
  346. data/vendor/assets/javascripts/ckeditor/plugins/uicolor/lang/he.js +5 -0
  347. data/vendor/assets/javascripts/ckeditor/plugins/uicolor/lang/hr.js +5 -0
  348. data/vendor/assets/javascripts/ckeditor/plugins/uicolor/lang/it.js +5 -0
  349. data/vendor/assets/javascripts/ckeditor/plugins/uicolor/lang/mk.js +5 -0
  350. data/vendor/assets/javascripts/ckeditor/plugins/uicolor/lang/nb.js +5 -0
  351. data/vendor/assets/javascripts/ckeditor/plugins/uicolor/lang/nl.js +5 -0
  352. data/vendor/assets/javascripts/ckeditor/plugins/uicolor/lang/no.js +5 -0
  353. data/vendor/assets/javascripts/ckeditor/plugins/uicolor/lang/pl.js +5 -0
  354. data/vendor/assets/javascripts/ckeditor/plugins/uicolor/lang/tr.js +5 -0
  355. data/vendor/assets/javascripts/ckeditor/plugins/uicolor/lang/ug.js +5 -0
  356. data/vendor/assets/javascripts/ckeditor/plugins/uicolor/lang/uk.js +5 -0
  357. data/vendor/assets/javascripts/ckeditor/plugins/uicolor/lang/vi.js +5 -0
  358. data/vendor/assets/javascripts/ckeditor/plugins/uicolor/lang/zh-cn.js +5 -0
  359. data/vendor/assets/javascripts/ckeditor/plugins/uicolor/plugin.js +5 -0
  360. data/vendor/assets/javascripts/ckeditor/plugins/uicolor/yui/assets/hue_bg.png +0 -0
  361. data/vendor/assets/javascripts/ckeditor/plugins/uicolor/yui/assets/hue_thumb.png +0 -0
  362. data/vendor/assets/javascripts/ckeditor/plugins/uicolor/yui/assets/picker_mask.png +0 -0
  363. data/vendor/assets/javascripts/ckeditor/plugins/uicolor/yui/assets/picker_thumb.png +0 -0
  364. data/vendor/assets/javascripts/ckeditor/plugins/uicolor/yui/assets/yui.css +15 -0
  365. data/vendor/assets/javascripts/ckeditor/plugins/uicolor/yui/yui.js +225 -0
  366. data/vendor/assets/javascripts/ckeditor/plugins/wsc/dialogs/ciframe.html +49 -0
  367. data/vendor/assets/javascripts/ckeditor/plugins/wsc/dialogs/tmpFrameset.html +52 -0
  368. data/vendor/assets/javascripts/ckeditor/plugins/wsc/dialogs/wsc.css +82 -0
  369. data/vendor/assets/javascripts/ckeditor/plugins/wsc/dialogs/wsc.js +11 -0
  370. data/vendor/assets/javascripts/ckeditor/plugins/xml/plugin.js +7 -0
  371. data/vendor/assets/javascripts/ckeditor/samples/ajax.html +82 -0
  372. data/vendor/assets/javascripts/ckeditor/samples/api.html +210 -0
  373. data/vendor/assets/javascripts/ckeditor/samples/apidialog.html +164 -0
  374. data/vendor/assets/javascripts/ckeditor/samples/appendto.html +92 -0
  375. data/vendor/assets/javascripts/ckeditor/samples/assets/apidialog/my_dialog.js +5 -0
  376. data/vendor/assets/javascripts/ckeditor/samples/assets/inlineall/logo.png +0 -0
  377. data/vendor/assets/javascripts/ckeditor/samples/assets/outputforflash/outputforflash.fla +0 -0
  378. data/vendor/assets/javascripts/ckeditor/samples/assets/outputforflash/outputforflash.swf +0 -0
  379. data/vendor/assets/javascripts/ckeditor/samples/assets/outputforflash/swfobject.js +18 -0
  380. data/vendor/assets/javascripts/ckeditor/samples/assets/outputxhtml/outputxhtml.css +204 -0
  381. data/vendor/assets/javascripts/ckeditor/samples/assets/posteddata.php +59 -0
  382. data/vendor/assets/javascripts/ckeditor/samples/assets/sample.css +3 -0
  383. data/vendor/assets/javascripts/ckeditor/samples/assets/stylesheetparser/sample.css +70 -0
  384. data/vendor/assets/javascripts/ckeditor/samples/autogrow.html +96 -0
  385. data/vendor/assets/javascripts/ckeditor/samples/bbcode.html +106 -0
  386. data/vendor/assets/javascripts/ckeditor/samples/devtools.html +80 -0
  387. data/vendor/assets/javascripts/ckeditor/samples/divarea.html +96 -0
  388. data/vendor/assets/javascripts/ckeditor/samples/divreplace.html +141 -0
  389. data/vendor/assets/javascripts/ckeditor/samples/enterkey.html +99 -0
  390. data/vendor/assets/javascripts/ckeditor/samples/fullpage.html +109 -0
  391. data/vendor/assets/javascripts/ckeditor/samples/index.html +133 -0
  392. data/vendor/assets/javascripts/ckeditor/samples/inlineall.html +338 -0
  393. data/vendor/assets/javascripts/ckeditor/samples/inlinebycode.html +138 -0
  394. data/vendor/assets/javascripts/ckeditor/samples/magicline.html +198 -0
  395. data/vendor/assets/javascripts/ckeditor/samples/outputforflash.html +246 -0
  396. data/vendor/assets/javascripts/ckeditor/samples/outputhtml.html +228 -0
  397. data/vendor/assets/javascripts/ckeditor/samples/outputxhtml.html +217 -0
  398. data/vendor/assets/javascripts/ckeditor/samples/placeholder.html +69 -0
  399. data/vendor/assets/javascripts/ckeditor/samples/readonly.html +73 -0
  400. data/vendor/assets/javascripts/ckeditor/samples/replacebyclass.html +95 -0
  401. data/vendor/assets/javascripts/ckeditor/samples/replacebycode.html +93 -0
  402. data/vendor/assets/javascripts/ckeditor/samples/sample.css +261 -0
  403. data/vendor/assets/javascripts/ckeditor/samples/sample_posteddata.php +16 -0
  404. data/vendor/assets/javascripts/ckeditor/samples/stylesheetparser.html +77 -0
  405. data/vendor/assets/javascripts/ckeditor/samples/tabindex.html +80 -0
  406. data/vendor/assets/javascripts/ckeditor/samples/tableresize.html +101 -0
  407. data/vendor/assets/javascripts/ckeditor/samples/uicolor.html +137 -0
  408. data/vendor/assets/javascripts/ckeditor/samples/uilanguages.html +119 -0
  409. data/vendor/assets/javascripts/ckeditor/styles.js +86 -0
  410. data/vendor/assets/stylesheets/ckeditor/skins/kama/dialog.css +5 -0
  411. data/vendor/assets/stylesheets/ckeditor/skins/kama/dialog_ie.css +5 -0
  412. data/vendor/assets/stylesheets/ckeditor/skins/kama/dialog_ie7.css +5 -0
  413. data/vendor/assets/stylesheets/ckeditor/skins/kama/dialog_ie8.css +5 -0
  414. data/vendor/assets/stylesheets/ckeditor/skins/kama/dialog_iequirks.css +5 -0
  415. data/vendor/assets/stylesheets/ckeditor/skins/kama/dialog_opera.css +5 -0
  416. data/vendor/assets/stylesheets/ckeditor/skins/kama/editor.css +5 -0
  417. data/vendor/assets/stylesheets/ckeditor/skins/kama/editor_ie.css +5 -0
  418. data/vendor/assets/stylesheets/ckeditor/skins/kama/editor_ie7.css +5 -0
  419. data/vendor/assets/stylesheets/ckeditor/skins/kama/editor_ie8.css +5 -0
  420. data/vendor/assets/stylesheets/ckeditor/skins/kama/editor_iequirks.css +5 -0
  421. data/vendor/assets/stylesheets/ckeditor/skins/kama/icons.png +0 -0
  422. data/vendor/assets/stylesheets/ckeditor/skins/kama/images/dialog_sides.gif +0 -0
  423. data/vendor/assets/stylesheets/ckeditor/skins/kama/images/dialog_sides.png +0 -0
  424. data/vendor/assets/stylesheets/ckeditor/skins/kama/images/dialog_sides_rtl.png +0 -0
  425. data/vendor/assets/stylesheets/ckeditor/skins/kama/images/mini.gif +0 -0
  426. data/vendor/assets/stylesheets/ckeditor/skins/kama/images/sprites.png +0 -0
  427. data/vendor/assets/stylesheets/ckeditor/skins/kama/images/sprites_ie6.png +0 -0
  428. data/vendor/assets/stylesheets/ckeditor/skins/kama/images/toolbar_start.gif +0 -0
  429. data/vendor/assets/stylesheets/ckeditor/skins/kama/readme.md +26 -0
  430. metadata +490 -0
@@ -0,0 +1,9 @@
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
+ (function(){function d(a){for(var a=a.getElementsByTag("*"),c=a.count(),b,e=0;e<c;e++)b=a.getItem(e),function(a){for(var b=0;b<j.length;b++)(function(b){var c=a.getAttribute("on"+b);a.hasAttribute("on"+b)&&(a.removeAttribute("on"+b),a.on(b,function(b){var e=/(return\s*)?CKEDITOR\.tools\.callFunction\(([^)]+)\)/.exec(c),k=e&&e[1],f=e&&e[2].split(","),e=/return false;/.test(c);if(f){for(var h=f.length,i,g=0;g<h;g++){f[g]=i=CKEDITOR.tools.trim(f[g]);var d=i.match(/^(["'])([^"']*?)\1$/);if(d)f[g]=d[2];
6
+ else if(i.match(/\d+/))f[g]=parseInt(i,10);else switch(i){case "this":f[g]=a.$;break;case "event":f[g]=b.data.$;break;case "null":f[g]=null}}f=CKEDITOR.tools.callFunction.apply(window,f);k&&!1===f&&(e=1)}e&&b.data.preventDefault()}))})(j[b])}(b)}var j="click keydown mousedown keypress mouseover mouseout".split(" ");CKEDITOR.plugins.add("adobeair",{onLoad:function(){CKEDITOR.env.air&&(CKEDITOR.dom.document.prototype.write=CKEDITOR.tools.override(CKEDITOR.dom.document.prototype.write,function(a){function c(b,
7
+ a,c,h){a=b.append(a);(c=CKEDITOR.htmlParser.fragment.fromHtml(c).children[0].attributes)&&a.setAttributes(c);h&&a.append(b.getDocument().createText(h))}return function(b,e){if(this.getBody()){var d=this,h=this.getHead(),b=b.replace(/(<style[^>]*>)([\s\S]*?)<\/style>/gi,function(a,b,d){c(h,"style",b,d);return""}),b=b.replace(/<base\b[^>]*\/>/i,function(b){c(h,"base",b);return""}),b=b.replace(/<title>([\s\S]*)<\/title>/i,function(b,a){d.$.title=a;return""}),b=b.replace(/<head>([\s\S]*)<\/head>/i,function(b){var a=
8
+ new CKEDITOR.dom.element("div",d);a.setHtml(b);a.moveChildren(h);return""});b.replace(/(<body[^>]*>)([\s\S]*)(?=$|<\/body>)/i,function(b,a,c){d.getBody().setHtml(c);(b=CKEDITOR.htmlParser.fragment.fromHtml(a).children[0].attributes)&&d.getBody().setAttributes(b)})}else a.apply(this,arguments)}}),CKEDITOR.addCss("body.cke_editable { padding: 8px }"),CKEDITOR.ui.on("ready",function(a){a=a.data;if(a._.panel){var c=a._.panel._.panel,b;(function(){c.isLoaded?(b=c._.holder,d(b)):setTimeout(arguments.callee,
9
+ 30)})()}else a instanceof CKEDITOR.dialog&&d(a._.element)}))},init:function(a){CKEDITOR.env.air&&(a.on("uiReady",function(){d(a.container);a.on("elementsPathUpdate",function(a){d(a.data.space)})}),a.on("contentDom",function(){a.document.on("click",function(a){a.data.preventDefault(!0)})}))}})})();
@@ -0,0 +1,6 @@
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
+ (function(){CKEDITOR.plugins.add("ajax",{requires:"xml"});CKEDITOR.ajax=function(){var h=function(){if(!CKEDITOR.env.ie||"file:"!=location.protocol)try{return new XMLHttpRequest}catch(a){}try{return new ActiveXObject("Msxml2.XMLHTTP")}catch(b){}try{return new ActiveXObject("Microsoft.XMLHTTP")}catch(d){}return null},f=function(a){return 4==a.readyState&&(200<=a.status&&300>a.status||304==a.status||0===a.status||1223==a.status)},i=function(a){return f(a)?a.responseText:null},j=function(a){if(f(a)){var b=
6
+ a.responseXML;return new CKEDITOR.xml(b&&b.firstChild?b:a.responseText)}return null},g=function(a,b,d){var e=!!b,c=h();if(!c)return null;c.open("GET",a,e);e&&(c.onreadystatechange=function(){4==c.readyState&&(b(d(c)),c=null)});c.send(null);return e?"":d(c)};return{load:function(a,b){return g(a,b,i)},loadXml:function(a,b){return g(a,b,j)}}}()})();
@@ -0,0 +1,8 @@
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
+ (function(){var f=function(a){if(a.window){var c=a.document;new CKEDITOR.dom.element(c.getWindow().$.frameElement);var b=c.getBody(),d=c.getDocumentElement(),g=a.window.getViewPaneSize().height,c="BackCompat"==c.$.compatMode?b:d,b=c.getStyle("overflow-y"),e=c.getDocument(),d=CKEDITOR.dom.element.createFromHtml('<span style="margin:0;padding:0;border:0;clear:both;width:1px;height:1px;display:block;">'+(CKEDITOR.env.webkit?"&nbsp;":"")+"</span>",e);e[CKEDITOR.env.ie?"getBody":"getDocumentElement"]().append(d);
6
+ e=d.getDocumentPosition(e).y+d.$.offsetHeight;d.remove();c.setStyle("overflow-y",b);b=e+(a.config.autoGrow_bottomSpace||0);d=a.config.autoGrow_maxHeight||Infinity;b=Math.max(b,void 0!=a.config.autoGrow_minHeight?a.config.autoGrow_minHeight:200);b=Math.min(b,d);b!=g&&(b=a.fire("autoGrow",{currentHeight:g,newHeight:b}).newHeight,a.resize(a.container.getStyle("width"),b,!0));c.$.scrollHeight>c.$.clientHeight&&b<d?c.setStyle("overflow-y","hidden"):c.removeStyle("overflow-y")}};CKEDITOR.plugins.add("autogrow",
7
+ {init:function(a){if(a.elementMode!=CKEDITOR.ELEMENT_MODE_INLINE)a.on("instanceReady",function(){if(a.editable().isInline())a.ui.space("contents").setStyle("height","auto");else{a.addCommand("autogrow",{exec:f,modes:{wysiwyg:1},readOnly:1,canUndo:!1,editorFocus:!1});var c={contentDom:1,key:1,selectionChange:1,insertElement:1,mode:1},b;for(b in c)a.on(b,function(b){var c=a.getCommand("maximize");"wysiwyg"==b.editor.mode&&(!c||c.state!=CKEDITOR.TRISTATE_ON)&&setTimeout(function(){f(b.editor);f(b.editor)},
8
+ 100)});a.config.autoGrow_onStartup&&a.execCommand("autogrow")}})}})})();
@@ -0,0 +1,22 @@
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
+ (function(){CKEDITOR.on("dialogDefinition",function(a){var b;b=a.data.name;a=a.data.definition;"link"==b?(a.removeContents("target"),a.removeContents("upload"),a.removeContents("advanced"),b=a.getContents("info"),b.remove("emailSubject"),b.remove("emailBody")):"image"==b&&(a.removeContents("advanced"),b=a.getContents("Link"),b.remove("cmbTarget"),b=a.getContents("info"),b.remove("txtAlt"),b.remove("basic"))});var j={b:"strong",u:"u",i:"em",color:"span",size:"span",quote:"blockquote",code:"code",url:"a",
6
+ email:"span",img:"span","*":"li",list:"ol"},v={strong:"b",b:"b",u:"u",em:"i",i:"i",code:"code",li:"*"},k={strong:"b",em:"i",u:"u",li:"*",ul:"list",ol:"list",code:"code",a:"link",img:"img",blockquote:"quote"},w={color:"color",size:"font-size"},x={url:"href",email:"mailhref",quote:"cite",list:"listType"},m=CKEDITOR.dtd,y=CKEDITOR.tools.extend({table:1},m.$block,m.$listItem,m.$tableContent,m.$list),A=/\s*(?:;\s*|$)/,o={smiley:":)",sad:":(",wink:";)",laugh:":D",cheeky:":P",blush:":*)",surprise:":-o",
7
+ indecision:":|",angry:">:(",angel:"o:)",cool:"8-)",devil:">:-)",crying:";(",kiss:":-*"},z={},p=[],q;for(q in o)z[o[q]]=q,p.push(o[q].replace(/\(|\)|\:|\/|\*|\-|\|/g,function(a){return"\\"+a}));var p=RegExp(p.join("|"),"g"),B=function(){var a=[],b={nbsp:" ",shy:"­",gt:">",lt:"<"},c;for(c in b)a.push(c);a=RegExp("&("+a.join("|")+");","g");return function(c){return c.replace(a,function(e,a){return b[a]})}}();CKEDITOR.BBCodeParser=function(){this._={bbcPartsRegex:/(?:\[([^\/\]=]*?)(?:=([^\]]*?))?\])|(?:\[\/([a-z]{1,16})\])/ig}};
8
+ CKEDITOR.BBCodeParser.prototype={parse:function(a){for(var b,c,i=0;b=this._.bbcPartsRegex.exec(a);){c=b.index;if(c>i)this.onText(a.substring(i,c),1);i=this._.bbcPartsRegex.lastIndex;if((c=(b[1]||b[3]||"").toLowerCase())&&!j[c])this.onText(b[0]);else if(b[1]){var e=j[c],g={},h={};if(b=b[2])if("list"==c&&(isNaN(b)?/^[a-z]+$/.test(b)?b="lower-alpha":/^[A-Z]+$/.test(b)&&(b="upper-alpha"):b="decimal"),w[c]){"size"==c&&(b+="%");h[w[c]]=b;b=g;var f="",d=void 0;for(d in h)var r=(d+":"+h[d]).replace(A,";"),
9
+ f=f+r;b.style=f}else x[c]&&(g[x[c]]=b);if("email"==c||"img"==c)g.bbcode=c;this.onTagOpen(e,g,CKEDITOR.dtd.$empty[e])}else if(b[3])this.onTagClose(j[c])}if(a.length>i)this.onText(a.substring(i,a.length),1)}};CKEDITOR.htmlParser.fragment.fromBBCode=function(a){function b(e){if(0<h.length)for(var a=0;a<h.length;a++){var b=h[a],c=b.name,g=CKEDITOR.dtd[c],f=d.name&&CKEDITOR.dtd[d.name];if((!f||f[c])&&(!e||!g||g[e]||!CKEDITOR.dtd[e]))b=b.clone(),b.parent=d,d=b,h.splice(a,1),a--}}function c(e,a){var b=d.children.length,
10
+ c=0<b&&d.children[b-1],b=!c&&s.getRule(k[d.name],"breakAfterOpen"),c=c&&c.type==CKEDITOR.NODE_ELEMENT&&s.getRule(k[c.name],"breakAfterClose"),g=e&&s.getRule(k[e],a?"breakBeforeClose":"breakBeforeOpen");f&&(b||c||g)&&f--;f&&e in y&&f++;for(;f&&f--;)d.children.push(new CKEDITOR.htmlParser.element("br"))}function i(e,a){c(e.name,1);var a=a||d||g,b=a.children.length;e.previous=0<b&&a.children[b-1]||null;e.parent=a;a.children.push(e);e.returnPoint&&(d=e.returnPoint,delete e.returnPoint)}var e=new CKEDITOR.BBCodeParser,
11
+ g=new CKEDITOR.htmlParser.fragment,h=[],f=0,d=g,r;e.onTagOpen=function(a,g,f){var l=new CKEDITOR.htmlParser.element(a,g);if(CKEDITOR.dtd.$removeEmpty[a])h.push(l);else{var t=d.name,n=t&&(CKEDITOR.dtd[t]||(d._.isBlockLike?CKEDITOR.dtd.div:CKEDITOR.dtd.span));if(n&&!n[a]){var n=!1,u;a==t?i(d,d.parent):(a in CKEDITOR.dtd.$listItem?(e.onTagOpen("ul",{}),u=d):(i(d,d.parent),h.unshift(d)),n=!0);d=u?u:d.returnPoint||d.parent;if(n){e.onTagOpen.apply(this,arguments);return}}b(a);c(a);l.parent=d;l.returnPoint=
12
+ r;r=0;l.isEmpty?i(l):d=l}};e.onTagClose=function(a){for(var e=h.length-1;0<=e;e--)if(a==h[e].name){h.splice(e,1);return}for(var b=[],c=[],g=d;g.type&&g.name!=a;)g._.isBlockLike||c.unshift(g),b.push(g),g=g.parent;if(g.type){for(e=0;e<b.length;e++)a=b[e],i(a,a.parent);d=g;i(g,g.parent);g==d&&(d=d.parent);h=h.concat(c)}};e.onText=function(e){var a=CKEDITOR.dtd[d.name];if(!a||a["#"])c(),b(),e.replace(/([\r\n])|[^\r\n]*/g,function(e,a){if(void 0!==a&&a.length)f++;else if(e.length){var b=0;e.replace(p,
13
+ function(a,c){i(new CKEDITOR.htmlParser.text(e.substring(b,c)),d);i(new CKEDITOR.htmlParser.element("smiley",{desc:z[a]}),d);b=c+a.length});b!=e.length&&i(new CKEDITOR.htmlParser.text(e.substring(b,e.length)),d)}})};for(e.parse(CKEDITOR.tools.htmlEncode(a));d.type;)a=d.parent,i(d,a),d=a;return g};var s=new (CKEDITOR.tools.createClass({$:function(){this._={output:[],rules:[]};this.setRules("list",{breakBeforeOpen:1,breakAfterOpen:1,breakBeforeClose:1,breakAfterClose:1});this.setRules("*",{breakBeforeOpen:1,
14
+ breakAfterOpen:0,breakBeforeClose:1,breakAfterClose:0});this.setRules("quote",{breakBeforeOpen:1,breakAfterOpen:0,breakBeforeClose:0,breakAfterClose:1})},proto:{setRules:function(a,b){var c=this._.rules[a];c?CKEDITOR.tools.extend(c,b,!0):this._.rules[a]=b},getRule:function(a,b){return this._.rules[a]&&this._.rules[a][b]},openTag:function(a,b){if(a in j){this.getRule(a,"breakBeforeOpen")&&this.lineBreak(1);this.write("[",a);var c=b.option;c&&this.write("=",c);this.write("]");this.getRule(a,"breakAfterOpen")&&
15
+ this.lineBreak(1)}else"br"==a&&this._.output.push("\n")},openTagClose:function(){},attribute:function(){},closeTag:function(a){a in j&&(this.getRule(a,"breakBeforeClose")&&this.lineBreak(1),"*"!=a&&this.write("[/",a,"]"),this.getRule(a,"breakAfterClose")&&this.lineBreak(1))},text:function(a){this.write(a)},comment:function(){},lineBreak:function(){!this._.hasLineBreak&&this._.output.length&&(this.write("\n"),this._.hasLineBreak=1)},write:function(){this._.hasLineBreak=0;this._.output.push(Array.prototype.join.call(arguments,
16
+ ""))},reset:function(){this._.output=[];this._.hasLineBreak=0},getHtml:function(a){var b=this._.output.join("");a&&this.reset();return B(b)}}}));CKEDITOR.plugins.add("bbcode",{requires:"entities",beforeInit:function(a){CKEDITOR.tools.extend(a.config,{enterMode:CKEDITOR.ENTER_BR,basicEntities:!1,entities:!1,fillEmptyBlocks:!1},!0)},init:function(a){function b(e){var a=e.data,e=CKEDITOR.htmlParser.fragment.fromBBCode(e.data.dataValue),b=new CKEDITOR.htmlParser.basicWriter;e.writeHtml(b,i);e=b.getHtml(!0);
17
+ a.dataValue=e}var c=a.config,i=new CKEDITOR.htmlParser.filter;i.addRules({elements:{blockquote:function(a){var b=new CKEDITOR.htmlParser.element("div");b.children=a.children;a.children=[b];if(b=a.attributes.cite){var c=new CKEDITOR.htmlParser.element("cite");c.add(new CKEDITOR.htmlParser.text(b.replace(/^"|"$/g,"")));delete a.attributes.cite;a.children.unshift(c)}},span:function(a){var b;if(b=a.attributes.bbcode)"img"==b?(a.name="img",a.attributes.src=a.children[0].value,a.children=[]):"email"==b&&
18
+ (a.name="a",a.attributes.href="mailto:"+a.children[0].value),delete a.attributes.bbcode},ol:function(a){a.attributes.listType?"decimal"!=a.attributes.listType&&(a.attributes.style="list-style-type:"+a.attributes.listType):a.name="ul";delete a.attributes.listType},a:function(a){a.attributes.href||(a.attributes.href=a.children[0].value)},smiley:function(a){a.name="img";var b=a.attributes.desc,h=c.smiley_images[CKEDITOR.tools.indexOf(c.smiley_descriptions,b)],h=CKEDITOR.tools.htmlEncode(c.smiley_path+
19
+ h);a.attributes={src:h,"data-cke-saved-src":h,title:b,alt:b}}}});a.dataProcessor.htmlFilter.addRules({elements:{$:function(b){var c=b.attributes,h=CKEDITOR.tools.parseCssText(c.style),f,d=b.name;if(d in v)d=v[d];else if("span"==d)if(f=h.color)d="color",f=CKEDITOR.tools.convertRgbToHex(f);else{if(f=h["font-size"])if(c=f.match(/(\d+)%$/))f=c[1],d="size"}else if("ol"==d||"ul"==d){if(f=h["list-style-type"])switch(f){case "lower-alpha":f="a";break;case "upper-alpha":f="A"}else"ol"==d&&(f=1);d="list"}else if("blockquote"==
20
+ d){try{var i=b.children[0],j=b.children[1],k="cite"==i.name&&i.children[0].value;k&&(f='"'+k+'"',b.children=j.children)}catch(m){}d="quote"}else if("a"==d){if(f=c.href)-1!==f.indexOf("mailto:")?(d="email",b.children=[new CKEDITOR.htmlParser.text(f.replace("mailto:",""))],f=""):((d=1==b.children.length&&b.children[0])&&(d.type==CKEDITOR.NODE_TEXT&&d.value==f)&&(f=""),d="url")}else if("img"==d){b.isEmpty=0;h=c["data-cke-saved-src"]||c.src;c=c.alt;if(h&&-1!=h.indexOf(a.config.smiley_path)&&c)return new CKEDITOR.htmlParser.text(o[c]);
21
+ b.children=[new CKEDITOR.htmlParser.text(h)]}b.name=d;f&&(b.attributes.option=f);return null},br:function(a){if((a=a.next)&&a.name in y)return!1}}},1);a.dataProcessor.writer=s;if(a.elementMode==CKEDITOR.ELEMENT_MODE_INLINE)a.once("contentDom",function(){a.on("setData",b)});else a.on("setData",b)},afterInit:function(a){var b;a._.elementsPath&&(b=a._.elementsPath.filters)&&b.push(function(b){var i=b.getName(),e=k[i]||!1;"link"==e&&0===b.getAttribute("href").indexOf("mailto:")?e="email":"span"==i?b.getStyle("font-size")?
22
+ e="size":b.getStyle("color")&&(e="color"):"img"==e&&(b=b.data("cke-saved-src")||b.getAttribute("src"))&&0===b.indexOf(a.config.smiley_path)&&(e="smiley");return e})}})})();
@@ -0,0 +1,172 @@
1
+ <!DOCTYPE html>
2
+ <!--
3
+ Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved.
4
+ For licensing, see LICENSE.html or http://ckeditor.com/license
5
+ -->
6
+ <html>
7
+ <head>
8
+ <meta charset="utf-8">
9
+ <title>Clipboard playground &ndash; CKEditor Sample</title>
10
+ <script src="../../../ckeditor.js"></script>
11
+ <link href="../../../samples/sample.css" rel="stylesheet">
12
+ <style>
13
+ body {
14
+ margin: 0;
15
+ }
16
+
17
+ #editables
18
+ {
19
+ float:left;
20
+ width: 49%
21
+ }
22
+
23
+ #preview
24
+ {
25
+ width: 50%;
26
+ float:right;
27
+ }
28
+
29
+ #console
30
+ {
31
+ height: 300px;
32
+ padding: 5px 10px;
33
+ border: solid 3px #555;
34
+ overflow: auto;
35
+ color: #000;
36
+ -webkit-transition: border-color 0.5s;
37
+ -moz-transition: border-color 0.5s;
38
+ -o-transition: border-color 0.5s;
39
+ -ms-transition: border-color 0.5s;
40
+ transition: border-color 0.5s;
41
+ font-family: Monaco, monospace;
42
+ font-size: 13px;
43
+ white-space: normal;
44
+ }
45
+
46
+ #console.updated {
47
+ border-color: #0B0;
48
+ }
49
+ </style>
50
+ </head>
51
+ <body>
52
+ <h1 class="samples">
53
+ CKEditor Sample &mdash; BBCode plugin playground
54
+ </h1>
55
+ <div id="main">
56
+ <div class="description">
57
+ <p>
58
+ This sample shows how to configure CKEditor to output <a href="http://en.wikipedia.org/wiki/BBCode">BBCode</a> format instead of HTML.
59
+ Please note that the editor configuration was modified to reflect what is needed in a BBCode editing environment.
60
+ Smiley images, for example, were stripped to the emoticons that are commonly used in some BBCode dialects.
61
+ </p>
62
+ <p>
63
+ Please note that currently there is no standard for the BBCode markup language, so its implementation
64
+ for different platforms (message boards, blogs etc.) can vary. This means that before using CKEditor to
65
+ output BBCode you may need to adjust the implementation to your own environment.
66
+ </p>
67
+ <p>
68
+ A snippet of the configuration code can be seen below; check the source of this page for
69
+ a full definition:
70
+ </p>
71
+ <pre class="samples">
72
+ CKEDITOR.inline( 'editor1', {
73
+ <strong>extraPlugins : 'bbcode',</strong>
74
+ <i>(below configurations details omitted:)</i>
75
+ toolbar : ...,
76
+ fontSize_sizes : ...,
77
+ smiley_images : ...,
78
+ smiley_descriptions : ...
79
+ });</pre>
80
+ </div>
81
+
82
+ <div id="editables">
83
+ <textarea id="editor1">
84
+ [img]http://a.cksource.com/f/1/img/logo-ckeditor.gif[/img]
85
+ "[b]Little Red Riding Hood[/b]" is a famous [url=http://en.wikipedia.org/wiki/Fairy_tale]fairy tale[/url] about a young girl's encounter with a wolf. The story has been changed considerably in its history and subject to numerous modern adaptations and readings.
86
+ [list]
87
+ [*]Chinese: [i]小紅帽[/i]
88
+ [*]Italian: [i]Cappuccetto Rosso[/i]
89
+ [*]Spanish: [i]Caperucita Roja[/i]
90
+ [/list]
91
+ [quote]It is about a girl called [color=#FF0000]Little Red Riding Hood :)[/color], after the red [url=http://en.wikipedia.org/wiki/Hood_%28headgear%29]hooded[/url] [url=http://en.wikipedia.org/wiki/Cape]cape[/url] or [url=http://en.wikipedia.org/wiki/Cloak]cloak[/url] she wears.
92
+ The girl walks through the woods to deliver food to her sick grandmother. A wolf wants to eat the girl but is afraid to do so in public. He approaches the girl, and she naïvely tells him where she is going.
93
+ He suggests the girl pick some flowers, which she does. In the meantime, he goes to the grandmother's house and gains entry by pretending to be the girl. He swallows the grandmother whole, and waits for the girl, disguised as the grandmother. When the girl arrives, she notices he looks very strange to be her grandma. In most retellings, this eventually culminates with Little Red Riding Hood saying, "My, what big teeth you have!"
94
+ To which the wolf replies, "The better to eat you with," and swallows her whole, too.[/quote]
95
+ The above version most widely known today is based on the [url=http://en.wikipedia.org/wiki/Brothers_Grimm]Brothers Grimm[/url] variant.
96
+ </textarea>
97
+ </div>
98
+ <div id="preview">
99
+ <h3 for="console">BBCode Output: </h3>
100
+ <pre id="console">
101
+ </pre>
102
+ </div>
103
+ </div>
104
+ <div id="footer">
105
+ <hr>
106
+ <p>
107
+ CKEditor - The text editor for the Internet - <a class="samples" href="http://ckeditor.com/">http://ckeditor.com</a>
108
+ </p>
109
+ <p id="copy">
110
+ Copyright &copy; 2003-2012, <a class="samples" href="http://cksource.com/">CKSource</a> - Frederico
111
+ Knabben. All rights reserved.
112
+ </p>
113
+ </div>
114
+ <script>
115
+ (function() {
116
+ 'use strict';
117
+
118
+ var editor = CKEDITOR.replace( 'editor1', {
119
+ extraPlugins: 'bbcode',
120
+ // Remove unused plugins.
121
+ removePlugins: 'bidi,button,dialogadvtab,div,filebrowser,flash,format,forms,horizontalrule,iframe,indent,justify,liststyle,pagebreak,showborders,stylescombo,table,tabletools,templates',
122
+ // Width and height are not supported in the BBCode format, so object resizing is disabled.
123
+ disableObjectResizing: true,
124
+ height: 250,
125
+ toolbar: [
126
+ ['Source', '-', 'Save', 'NewPage', '-', 'Undo', 'Redo'],
127
+ ['Find', 'Replace', '-', 'SelectAll', 'RemoveFormat'],
128
+ ['Link', 'Unlink', 'Image'],
129
+ '/',
130
+ ['FontSize', 'Bold', 'Italic', 'Underline'],
131
+ ['NumberedList', 'BulletedList', '-', 'Blockquote'],
132
+ ['TextColor', '-', 'Smiley', 'SpecialChar', '-', 'Maximize']
133
+ ],
134
+ // Define font sizes in percent values.
135
+ fontSize_sizes: '30/30%;50/50%;100/100%;120/120%;150/150%;200/200%;300/300%',
136
+ // Strip CKEditor smileys to those commonly used in BBCode.
137
+ smiley_images: [
138
+ 'regular_smile.gif', 'sad_smile.gif', 'wink_smile.gif', 'teeth_smile.gif', 'tounge_smile.gif',
139
+ 'embaressed_smile.gif', 'omg_smile.gif', 'whatchutalkingabout_smile.gif', 'angel_smile.gif', 'shades_smile.gif',
140
+ 'cry_smile.gif', 'kiss.gif'
141
+ ],
142
+ smiley_descriptions: [
143
+ 'smiley', 'sad', 'wink', 'laugh', 'cheeky', 'blush', 'surprise',
144
+ 'indecision', 'angel', 'cool', 'crying', 'kiss'
145
+ ]
146
+ } );
147
+
148
+ function updatePreview() {
149
+ var consoleEl = CKEDITOR.document.getById( 'console' );
150
+ consoleEl.addClass( 'updated' );
151
+ setTimeout( function() { consoleEl.removeClass( 'updated' ); }, 500 );
152
+ // IE needs <br>, it doesn't even understand new lines.
153
+ consoleEl.setHtml( editor.getData().replace( /\n\r?/g, '<br>' ) );
154
+ }
155
+
156
+ function checkUpdatePreview() {
157
+ setTimeout( function() {
158
+ if ( editor.checkDirty() ) {
159
+ updatePreview();
160
+ editor.resetDirty();
161
+ }
162
+ }, 0 );
163
+ }
164
+
165
+ editor.on( 'instanceReady', updatePreview );
166
+ editor.on( 'key', checkUpdatePreview );
167
+ editor.on( 'selectionChange', checkUpdatePreview );
168
+
169
+ })();
170
+ </script>
171
+ </body>
172
+ </html>
@@ -0,0 +1,11 @@
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("paste",function(c){function g(a){var b=new CKEDITOR.dom.document(a.document),d=b.getBody(),e=b.getById("cke_actscrpt");e&&e.remove();d.setAttribute("contenteditable",!0);if(CKEDITOR.env.ie&&8>CKEDITOR.env.version)b.getWindow().on("blur",function(){b.$.selection.empty()});b.on("keydown",function(a){var a=a.data,b;switch(a.getKeystroke()){case 27:this.hide();b=1;break;case 9:case CKEDITOR.SHIFT+9:this.changeFocus(1),b=1}b&&a.preventDefault()},this);c.fire("ariaWidget",new CKEDITOR.dom.element(a.frameElement));
6
+ b.getWindow().getFrame().removeCustomData("pendingFocus")&&d.focus()}var f=c.lang.clipboard,h=CKEDITOR.env.isCustomDomain();c.on("pasteDialogCommit",function(a){a.data&&c.fire("paste",{type:"auto",dataValue:a.data})},null,null,1E3);return{title:f.title,minWidth:CKEDITOR.env.ie&&CKEDITOR.env.quirks?370:350,minHeight:CKEDITOR.env.quirks?250:245,onShow:function(){this.parts.dialog.$.offsetHeight;this.setupContent();this.parts.title.setHtml(this.customTitle||f.title);this.customTitle=null},onLoad:function(){(CKEDITOR.env.ie7Compat||
7
+ CKEDITOR.env.ie6Compat)&&"rtl"==c.lang.dir&&this.parts.contents.setStyle("overflow","hidden")},onOk:function(){this.commitContent()},contents:[{id:"general",label:c.lang.common.generalTab,elements:[{type:"html",id:"securityMsg",html:'<div style="white-space:normal;width:340px">'+f.securityMsg+"</div>"},{type:"html",id:"pasteMsg",html:'<div style="white-space:normal;width:340px">'+f.pasteMsg+"</div>"},{type:"html",id:"editing_area",style:"width:100%;height:100%",html:"",focus:function(){var a=this.getInputElement(),
8
+ b=a.getFrameDocument().getBody();!b||b.isReadOnly()?a.setCustomData("pendingFocus",1):b.focus()},setup:function(){var a=this.getDialog(),b='<html dir="'+c.config.contentsLangDirection+'" lang="'+(c.config.contentsLanguage||c.langCode)+'"><head><style>body{margin:3px;height:95%}</style></head><body><script id="cke_actscrpt" type="text/javascript">window.parent.CKEDITOR.tools.callFunction('+CKEDITOR.tools.addFunction(g,a)+",this);<\/script></body></html>",d=CKEDITOR.dom.element.createFromHtml('<iframe class="cke_pasteframe" frameborder="0" allowTransparency="true" src="'+
9
+ (CKEDITOR.env.air?"javascript:void(0)":h?"javascript:void((function(){document.open();document.domain='"+document.domain+"';document.close();})())\"":"")+'" role="region" aria-label="'+f.pasteArea+'" aria-describedby="'+a.getContentElement("general","pasteMsg").domId+'" aria-multiple="true"></iframe>');d.on("load",function(a){a.removeListener();a=d.getFrameDocument();a.write(b);c.focusManager.add(a.getBody());CKEDITOR.env.air&&g.call(this,a.getWindow().$)},a);d.setCustomData("dialog",a);a=this.getElement();
10
+ a.setHtml("");a.append(d);if(CKEDITOR.env.ie){var e=CKEDITOR.dom.element.createFromHtml('<span tabindex="-1" style="position:absolute" role="presentation"></span>');e.on("focus",function(){d.$.contentWindow.focus()});a.append(e);this.focus=function(){e.focus();this.fire("focus")}}this.getInputElement=function(){return d};CKEDITOR.env.ie&&(a.setStyle("display","block"),a.setStyle("height",d.$.offsetHeight+2+"px"))},commit:function(){var a=this.getDialog().getParentEditor(),b=this.getInputElement().getFrameDocument().getBody(),
11
+ d=b.getBogus(),c;d&&d.remove();c=b.getHtml();setTimeout(function(){a.fire("pasteDialogCommit",c)},0)}}]}]}});
@@ -0,0 +1,210 @@
1
+ <!DOCTYPE html>
2
+ <!--
3
+ Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved.
4
+ For licensing, see LICENSE.html or http://ckeditor.com/license
5
+ -->
6
+ <html>
7
+ <head>
8
+ <meta charset="utf-8">
9
+ <title>Clipboard playground &ndash; CKEditor Sample</title>
10
+ <script src="../../../ckeditor.js"></script>
11
+ <link href="../../../samples/sample.css" rel="stylesheet">
12
+ <style>
13
+ body {
14
+ margin: 0;
15
+ }
16
+
17
+ #editables, #console
18
+ {
19
+ width: 48%;
20
+ }
21
+ #editable {
22
+ padding: 5px 10px;
23
+ }
24
+
25
+ #console {
26
+ position: fixed;
27
+ top: 10px;
28
+ right: 30px;
29
+ height: 500px;
30
+ border: solid 3px #555;
31
+ overflow: auto;
32
+ }
33
+ #console > p {
34
+ border-bottom: solid 1px #555;
35
+ margin: 0;
36
+ padding: 0 5px;
37
+ background: rgba(0, 0, 0, 0.25);
38
+ -webkit-transition: background-color 1s;
39
+ -moz-transition: background-color 1s;
40
+ -o-transition: background-color 1s;
41
+ -ms-transition: background-color 1s;
42
+ transition: background-color 1s;
43
+ }
44
+ #console > p.old {
45
+ background: rgba(0, 0, 0, 0);
46
+ }
47
+ #console time, #console .prompt {
48
+ padding: 0 5px;
49
+ display: inline-block;
50
+ }
51
+ #console time {
52
+ background: #999;
53
+ background: rgba(0, 0, 0, 0.5 );
54
+ color: #FFF;
55
+ margin-left: -5px;
56
+ }
57
+ #console .prompt {
58
+ background: #DDD;
59
+ background: rgba(0, 0, 0, 0.1 );
60
+ min-width: 200px;
61
+ }
62
+ .someClass {
63
+ color: blue;
64
+ }
65
+ .specChar {
66
+ color: #777;
67
+ background-color: #EEE;
68
+ background-color: rgba(0, 0, 0, 0.1);
69
+ font-size: 0.8em;
70
+ border-radius: 2px;
71
+ padding: 1px;
72
+ }
73
+ </style>
74
+ </head>
75
+ <body>
76
+ <h1 class="samples">
77
+ CKEditor Sample &mdash; clipboard plugin playground
78
+ </h1>
79
+ <div id="editables">
80
+ <p>
81
+ <label for="editor1">
82
+ Editor 1:</label>
83
+ <textarea cols="80" id="editor1" name="editor1" rows="10">&lt;p&gt;This is some &lt;strong&gt;sample text&lt;/strong&gt;. You are using &lt;a href="http://ckeditor.com/"&gt;CKEditor&lt;/a&gt;.&lt;/p&gt;</textarea>
84
+ </p>
85
+ <p>
86
+ <label for="editor2">
87
+ Editor 2:</label>
88
+ <textarea cols="80" id="editor2" name="editor2" rows="10">&lt;p&gt;This is more &lt;strong class="MsoNormal"&gt;sample text&lt;/strong&gt;.&lt;/p&gt;</textarea>
89
+ </p>
90
+ <p>
91
+ <label for="editor3">
92
+ Editor 3:</label>
93
+ <textarea cols="80" id="editor3" name="editor3" rows="10">&lt;p&gt;This editor &lt;strong&gt;forces pasting in text mode&lt;/strong&gt; by listening for "beforePaste" event.&lt;/p&gt;</textarea>
94
+ </p>
95
+ <p>
96
+ <label for="editor4">
97
+ Editor 4:</label>
98
+ <textarea cols="80" id="editor4" name="editor4" rows="10">&lt;p&gt;This editor &lt;strong&gt;forces pasting in text mode&lt;/strong&gt; by "forcePasteAsPlainText" config option.&lt;/p&gt;</textarea>
99
+ </p>
100
+ <p>
101
+ <label for="editor5">
102
+ Editor 5:</label>
103
+ <textarea cols="80" id="editor5" name="editor5" rows="10">Editor with autoParagraphing set to off.</textarea>
104
+ </p>
105
+ <div id="editor6" contenteditable="true" style="font-family: Georgia; font-size: 14px">
106
+ <h1>Editor 6</h1>
107
+ <p>Content content content.</p>
108
+ <p class="someClass">Styled by <code>.someClass</code>.</p>
109
+ </div>
110
+ </div>
111
+ <div id="console">
112
+ </div>
113
+ <script>
114
+ ( function()
115
+ {
116
+ 'use strict';
117
+
118
+ var log = window.__log = function( title, msg )
119
+ {
120
+ var msgEl = new CKEDITOR.dom.element( 'p' ),
121
+ consoleEl = CKEDITOR.document.getById( 'console' ),
122
+ time = new Date().toString().match( /\d\d:\d\d:\d\d/ )[ 0 ],
123
+ format = function( tpl )
124
+ {
125
+ return tpl.replace( /{time}/g, time ).replace( '{title}', title ).replace( '{msg}', msg || '' );
126
+ };
127
+
128
+ window.console && console.log && console.log( format( '[{time}] {title}: {msg}' ) );
129
+
130
+ msg = ( msg || '' ).replace( /\r/g, '{\\r}' ).replace( /\n/g, '{\\n}' ).replace( /\t/g, '{\\t}' );
131
+ msg = CKEDITOR.tools.htmlEncode( msg );
132
+ msg = msg.replace( /\{(\\\w)\}/g, '<code class="specChar">$1</code>' );
133
+
134
+ msgEl.setHtml( format( '<time datetime="{time}">{time}</time><span class="prompt">{title}</span> {msg}' ) );
135
+ consoleEl.append( msgEl );
136
+ consoleEl.$.scrollTop = consoleEl.$.scrollHeight;
137
+ setTimeout( function () { msgEl.addClass( 'old' ); }, 250 );
138
+ };
139
+
140
+ var observe = function( editor, num )
141
+ {
142
+ var p = 'EDITOR ' + num + ' > ';
143
+
144
+ editor.on( 'paste', function( event )
145
+ {
146
+ log( p + 'paste(prior:-1)', event.data.type + ' - "' + event.data.dataValue + '"' );
147
+ }, null, null, -1 );
148
+ editor.on( 'paste', function( event )
149
+ {
150
+ log( p + 'paste(prior:10)', event.data.type + ' - "' + event.data.dataValue + '"' );
151
+ });
152
+ editor.on( 'paste', function( event )
153
+ {
154
+ log( p + 'paste(prior:999)', event.data.type + ' - "' + event.data.dataValue + '"' );
155
+ }, null, null, 999 );
156
+ editor.on( 'beforePaste', function( event )
157
+ {
158
+ log( p + 'beforePaste', event.data.type );
159
+ });
160
+ editor.on( 'beforePaste', function( event )
161
+ {
162
+ log( p + 'beforePaste(prior:999)', event.data.type );
163
+ }, null, null, 999 );
164
+ editor.on( 'afterPaste', function( event )
165
+ {
166
+ log( p + 'afterPaste' );
167
+ });
168
+ editor.on( 'copy', function( event )
169
+ {
170
+ log( p + 'copy' );
171
+ });
172
+ editor.on( 'cut', function( event )
173
+ {
174
+ log( p + 'cut' );
175
+ });
176
+ };
177
+
178
+ CKEDITOR.disableAutoInline = true;
179
+ var config =
180
+ {
181
+ height : 120,
182
+ toolbar : 'Custom',
183
+ toolbar_Custom :
184
+ [
185
+ { name: 'custom', items : [ 'Source','Bold','Italic','Underline','-','Cut','Copy','Paste','PasteText','PasteFromWord','-','Undo','Redo' ] }
186
+ ]
187
+ },
188
+ editor1 = CKEDITOR.replace( 'editor1', config ),
189
+ editor2 = CKEDITOR.replace( 'editor2', config ),
190
+ editor3 = CKEDITOR.replace( 'editor3', config ),
191
+ editor4 = CKEDITOR.replace( 'editor4', CKEDITOR.tools.extend( { forcePasteAsPlainText : true }, config ) ),
192
+ editor5 = CKEDITOR.replace( 'editor5', CKEDITOR.tools.extend( { autoParagraph : false }, config ) ),
193
+ editor6 = CKEDITOR.inline( document.getElementById( 'editor6' ), config );
194
+
195
+ editor3.on( 'beforePaste', function( evt )
196
+ {
197
+ evt.data.type = 'text';
198
+ });
199
+
200
+ observe( editor1, 1 );
201
+ observe( editor2, 2 );
202
+ observe( editor3, 3 );
203
+ observe( editor4, 4 );
204
+ observe( editor5, 5 );
205
+ observe( editor6, 6 );
206
+
207
+ })();
208
+ </script>
209
+ </body>
210
+ </html>