ckeditor 4.0.8 → 4.0.9

Sign up to get free protection for your applications and to get access to all the features.
Files changed (263) hide show
  1. data/README.md +49 -18
  2. data/app/assets/javascripts/ckeditor/init.js.erb +1 -9
  3. data/app/assets/javascripts/ckeditor/override.js.erb +1 -1
  4. data/lib/ckeditor.rb +1 -0
  5. data/lib/ckeditor/engine.rb +4 -0
  6. data/lib/ckeditor/hooks/pundit.rb +47 -0
  7. data/lib/ckeditor/version.rb +2 -2
  8. data/lib/generators/ckeditor/pundit_policy_generator.rb +22 -0
  9. data/lib/generators/ckeditor/templates/pundit_policy/attachment_file_policy.rb +20 -0
  10. data/lib/generators/ckeditor/templates/pundit_policy/picture_policy.rb +20 -0
  11. data/vendor/assets/javascripts/ckeditor/CHANGES.md +36 -0
  12. data/vendor/assets/javascripts/ckeditor/LICENSE.md +1 -1
  13. data/vendor/assets/javascripts/ckeditor/README.md +1 -1
  14. data/vendor/assets/javascripts/ckeditor/adapters/jquery.js +1 -1
  15. data/vendor/assets/javascripts/ckeditor/build-config.js +49 -51
  16. data/vendor/assets/javascripts/ckeditor/ckeditor.js +341 -338
  17. data/vendor/assets/javascripts/ckeditor/config.js +2 -2
  18. data/vendor/assets/javascripts/ckeditor/contents.css +3 -3
  19. data/vendor/assets/javascripts/ckeditor/lang/af.js +2 -2
  20. data/vendor/assets/javascripts/ckeditor/lang/ar.js +2 -2
  21. data/vendor/assets/javascripts/ckeditor/lang/bg.js +2 -2
  22. data/vendor/assets/javascripts/ckeditor/lang/bn.js +2 -2
  23. data/vendor/assets/javascripts/ckeditor/lang/bs.js +2 -2
  24. data/vendor/assets/javascripts/ckeditor/lang/ca.js +2 -2
  25. data/vendor/assets/javascripts/ckeditor/lang/cs.js +2 -2
  26. data/vendor/assets/javascripts/ckeditor/lang/cy.js +2 -2
  27. data/vendor/assets/javascripts/ckeditor/lang/da.js +2 -2
  28. data/vendor/assets/javascripts/ckeditor/lang/de.js +2 -2
  29. data/vendor/assets/javascripts/ckeditor/lang/el.js +2 -2
  30. data/vendor/assets/javascripts/ckeditor/lang/en-au.js +2 -2
  31. data/vendor/assets/javascripts/ckeditor/lang/en-ca.js +2 -2
  32. data/vendor/assets/javascripts/ckeditor/lang/en-gb.js +2 -2
  33. data/vendor/assets/javascripts/ckeditor/lang/en.js +2 -2
  34. data/vendor/assets/javascripts/ckeditor/lang/eo.js +2 -2
  35. data/vendor/assets/javascripts/ckeditor/lang/es.js +2 -2
  36. data/vendor/assets/javascripts/ckeditor/lang/et.js +2 -2
  37. data/vendor/assets/javascripts/ckeditor/lang/eu.js +2 -2
  38. data/vendor/assets/javascripts/ckeditor/lang/fa.js +2 -2
  39. data/vendor/assets/javascripts/ckeditor/lang/fi.js +2 -2
  40. data/vendor/assets/javascripts/ckeditor/lang/fo.js +2 -2
  41. data/vendor/assets/javascripts/ckeditor/lang/fr-ca.js +2 -2
  42. data/vendor/assets/javascripts/ckeditor/lang/fr.js +2 -2
  43. data/vendor/assets/javascripts/ckeditor/lang/gl.js +2 -2
  44. data/vendor/assets/javascripts/ckeditor/lang/gu.js +2 -2
  45. data/vendor/assets/javascripts/ckeditor/lang/he.js +2 -2
  46. data/vendor/assets/javascripts/ckeditor/lang/hi.js +2 -2
  47. data/vendor/assets/javascripts/ckeditor/lang/hr.js +2 -2
  48. data/vendor/assets/javascripts/ckeditor/lang/hu.js +2 -2
  49. data/vendor/assets/javascripts/ckeditor/lang/id.js +2 -2
  50. data/vendor/assets/javascripts/ckeditor/lang/is.js +2 -2
  51. data/vendor/assets/javascripts/ckeditor/lang/it.js +2 -2
  52. data/vendor/assets/javascripts/ckeditor/lang/ja.js +2 -2
  53. data/vendor/assets/javascripts/ckeditor/lang/ka.js +2 -2
  54. data/vendor/assets/javascripts/ckeditor/lang/km.js +2 -2
  55. data/vendor/assets/javascripts/ckeditor/lang/ko.js +2 -2
  56. data/vendor/assets/javascripts/ckeditor/lang/ku.js +2 -2
  57. data/vendor/assets/javascripts/ckeditor/lang/lt.js +2 -2
  58. data/vendor/assets/javascripts/ckeditor/lang/lv.js +2 -2
  59. data/vendor/assets/javascripts/ckeditor/lang/mk.js +2 -2
  60. data/vendor/assets/javascripts/ckeditor/lang/mn.js +2 -2
  61. data/vendor/assets/javascripts/ckeditor/lang/ms.js +2 -2
  62. data/vendor/assets/javascripts/ckeditor/lang/nb.js +2 -2
  63. data/vendor/assets/javascripts/ckeditor/lang/nl.js +2 -2
  64. data/vendor/assets/javascripts/ckeditor/lang/no.js +2 -2
  65. data/vendor/assets/javascripts/ckeditor/lang/pl.js +2 -2
  66. data/vendor/assets/javascripts/ckeditor/lang/pt-br.js +2 -2
  67. data/vendor/assets/javascripts/ckeditor/lang/pt.js +2 -2
  68. data/vendor/assets/javascripts/ckeditor/lang/ro.js +2 -2
  69. data/vendor/assets/javascripts/ckeditor/lang/ru.js +2 -2
  70. data/vendor/assets/javascripts/ckeditor/lang/si.js +2 -2
  71. data/vendor/assets/javascripts/ckeditor/lang/sk.js +2 -2
  72. data/vendor/assets/javascripts/ckeditor/lang/sl.js +2 -2
  73. data/vendor/assets/javascripts/ckeditor/lang/sq.js +2 -2
  74. data/vendor/assets/javascripts/ckeditor/lang/sr-latn.js +2 -2
  75. data/vendor/assets/javascripts/ckeditor/lang/sr.js +2 -2
  76. data/vendor/assets/javascripts/ckeditor/lang/sv.js +2 -2
  77. data/vendor/assets/javascripts/ckeditor/lang/th.js +2 -2
  78. data/vendor/assets/javascripts/ckeditor/lang/tr.js +2 -2
  79. data/vendor/assets/javascripts/ckeditor/lang/ug.js +2 -2
  80. data/vendor/assets/javascripts/ckeditor/lang/uk.js +2 -2
  81. data/vendor/assets/javascripts/ckeditor/lang/vi.js +2 -2
  82. data/vendor/assets/javascripts/ckeditor/lang/zh-cn.js +2 -2
  83. data/vendor/assets/javascripts/ckeditor/lang/zh.js +2 -2
  84. data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/a11yhelp.js +6 -6
  85. data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/_translationstatus.txt +1 -1
  86. data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/ar.js +4 -2
  87. data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/bg.js +4 -2
  88. data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/ca.js +4 -2
  89. data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/cs.js +5 -2
  90. data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/cy.js +4 -2
  91. data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/da.js +4 -2
  92. data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/de.js +4 -2
  93. data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/el.js +5 -2
  94. data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/en.js +4 -2
  95. data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/eo.js +4 -2
  96. data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/es.js +4 -2
  97. data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/et.js +4 -2
  98. data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/fa.js +4 -2
  99. data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/fi.js +4 -2
  100. data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/fr-ca.js +4 -2
  101. data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/fr.js +4 -2
  102. data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/gl.js +4 -2
  103. data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/gu.js +4 -2
  104. data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/he.js +4 -2
  105. data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/hi.js +4 -2
  106. data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/hr.js +4 -2
  107. data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/hu.js +4 -2
  108. data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/id.js +4 -2
  109. data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/it.js +4 -2
  110. data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/ja.js +3 -2
  111. data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/km.js +7 -5
  112. data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/ko.js +5 -3
  113. data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/ku.js +4 -2
  114. data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/lt.js +4 -2
  115. data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/lv.js +4 -2
  116. data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/mk.js +4 -2
  117. data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/mn.js +4 -2
  118. data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/nb.js +4 -2
  119. data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/nl.js +5 -3
  120. data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/no.js +4 -2
  121. data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/pl.js +5 -2
  122. data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/pt-br.js +4 -2
  123. data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/pt.js +4 -2
  124. data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/ro.js +9 -6
  125. data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/ru.js +4 -2
  126. data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/si.js +4 -2
  127. data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/sk.js +4 -2
  128. data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/sl.js +4 -2
  129. data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/sq.js +4 -2
  130. data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/sr-latn.js +4 -2
  131. data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/sr.js +4 -2
  132. data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/sv.js +4 -2
  133. data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/th.js +4 -2
  134. data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/tr.js +4 -2
  135. data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/ug.js +4 -2
  136. data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/uk.js +4 -2
  137. data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/vi.js +4 -2
  138. data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/zh-cn.js +4 -2
  139. data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/zh.js +5 -2
  140. data/vendor/assets/javascripts/ckeditor/plugins/about/dialogs/about.js +1 -1
  141. data/vendor/assets/javascripts/ckeditor/plugins/clipboard/dialogs/paste.js +1 -1
  142. data/vendor/assets/javascripts/ckeditor/plugins/colordialog/dialogs/colordialog.js +1 -1
  143. data/vendor/assets/javascripts/ckeditor/plugins/dialog/dialogDefinition.js +1 -1
  144. data/vendor/assets/javascripts/ckeditor/plugins/find/dialogs/find.js +1 -1
  145. data/vendor/assets/javascripts/ckeditor/plugins/flash/dialogs/flash.js +1 -1
  146. data/vendor/assets/javascripts/ckeditor/plugins/forms/dialogs/button.js +1 -1
  147. data/vendor/assets/javascripts/ckeditor/plugins/forms/dialogs/checkbox.js +1 -1
  148. data/vendor/assets/javascripts/ckeditor/plugins/forms/dialogs/form.js +1 -1
  149. data/vendor/assets/javascripts/ckeditor/plugins/forms/dialogs/hiddenfield.js +1 -1
  150. data/vendor/assets/javascripts/ckeditor/plugins/forms/dialogs/radio.js +1 -1
  151. data/vendor/assets/javascripts/ckeditor/plugins/forms/dialogs/select.js +1 -1
  152. data/vendor/assets/javascripts/ckeditor/plugins/forms/dialogs/textarea.js +1 -1
  153. data/vendor/assets/javascripts/ckeditor/plugins/forms/dialogs/textfield.js +1 -1
  154. data/vendor/assets/javascripts/ckeditor/plugins/iframe/dialogs/iframe.js +1 -1
  155. data/vendor/assets/javascripts/ckeditor/plugins/image/dialogs/image.js +1 -1
  156. data/vendor/assets/javascripts/ckeditor/plugins/link/dialogs/anchor.js +1 -1
  157. data/vendor/assets/javascripts/ckeditor/plugins/link/dialogs/link.js +1 -1
  158. data/vendor/assets/javascripts/ckeditor/plugins/liststyle/dialogs/liststyle.js +1 -1
  159. data/vendor/assets/javascripts/ckeditor/plugins/pastefromword/filter/default.js +1 -1
  160. data/vendor/assets/javascripts/ckeditor/plugins/smiley/dialogs/smiley.js +1 -1
  161. data/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/_translationstatus.txt +1 -1
  162. data/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/ar.js +1 -1
  163. data/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/bg.js +1 -1
  164. data/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/ca.js +1 -1
  165. data/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/cs.js +1 -1
  166. data/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/cy.js +1 -1
  167. data/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/de.js +1 -1
  168. data/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/el.js +1 -1
  169. data/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/en.js +1 -1
  170. data/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/eo.js +1 -1
  171. data/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/es.js +1 -1
  172. data/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/et.js +1 -1
  173. data/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/fa.js +1 -1
  174. data/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/fi.js +1 -1
  175. data/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/fr-ca.js +1 -1
  176. data/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/fr.js +1 -1
  177. data/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/gl.js +1 -1
  178. data/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/he.js +1 -1
  179. data/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/hr.js +1 -1
  180. data/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/hu.js +1 -1
  181. data/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/id.js +1 -1
  182. data/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/it.js +1 -1
  183. data/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/ja.js +1 -1
  184. data/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/km.js +1 -1
  185. data/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/ku.js +1 -1
  186. data/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/lv.js +1 -1
  187. data/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/nb.js +1 -1
  188. data/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/nl.js +1 -1
  189. data/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/no.js +1 -1
  190. data/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/pl.js +1 -1
  191. data/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/pt-br.js +1 -1
  192. data/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/pt.js +1 -1
  193. data/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/ru.js +1 -1
  194. data/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/si.js +1 -1
  195. data/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/sk.js +1 -1
  196. data/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/sl.js +1 -1
  197. data/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/sq.js +1 -1
  198. data/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/sv.js +1 -1
  199. data/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/th.js +1 -1
  200. data/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/tr.js +1 -1
  201. data/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/ug.js +1 -1
  202. data/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/uk.js +1 -1
  203. data/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/vi.js +1 -1
  204. data/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/zh-cn.js +1 -1
  205. data/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/zh.js +1 -1
  206. data/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/specialchar.js +1 -1
  207. data/vendor/assets/javascripts/ckeditor/plugins/table/dialogs/table.js +1 -1
  208. data/vendor/assets/javascripts/ckeditor/plugins/tabletools/dialogs/tableCell.js +1 -1
  209. data/vendor/assets/javascripts/ckeditor/plugins/templates/dialogs/templates.css +1 -1
  210. data/vendor/assets/javascripts/ckeditor/plugins/templates/dialogs/templates.js +1 -1
  211. data/vendor/assets/javascripts/ckeditor/plugins/templates/templates/default.js +1 -1
  212. data/vendor/assets/javascripts/ckeditor/skins/moono/dialog.css +1 -1
  213. data/vendor/assets/javascripts/ckeditor/skins/moono/dialog_ie.css +1 -1
  214. data/vendor/assets/javascripts/ckeditor/skins/moono/dialog_ie7.css +1 -1
  215. data/vendor/assets/javascripts/ckeditor/skins/moono/dialog_ie8.css +1 -1
  216. data/vendor/assets/javascripts/ckeditor/skins/moono/dialog_iequirks.css +1 -1
  217. data/vendor/assets/javascripts/ckeditor/skins/moono/dialog_opera.css +1 -1
  218. data/vendor/assets/javascripts/ckeditor/skins/moono/editor.css +2 -2
  219. data/vendor/assets/javascripts/ckeditor/skins/moono/editor_gecko.css +2 -2
  220. data/vendor/assets/javascripts/ckeditor/skins/moono/editor_ie.css +2 -2
  221. data/vendor/assets/javascripts/ckeditor/skins/moono/editor_ie7.css +2 -2
  222. data/vendor/assets/javascripts/ckeditor/skins/moono/editor_ie8.css +2 -2
  223. data/vendor/assets/javascripts/ckeditor/skins/moono/editor_iequirks.css +2 -2
  224. data/vendor/assets/javascripts/ckeditor/skins/moono/readme.md +1 -1
  225. data/vendor/assets/javascripts/ckeditor/styles.js +2 -2
  226. metadata +10 -43
  227. data/vendor/assets/javascripts/ckeditor/samples/ajax.html +0 -82
  228. data/vendor/assets/javascripts/ckeditor/samples/api.html +0 -207
  229. data/vendor/assets/javascripts/ckeditor/samples/appendto.html +0 -57
  230. data/vendor/assets/javascripts/ckeditor/samples/assets/inlineall/logo.png +0 -0
  231. data/vendor/assets/javascripts/ckeditor/samples/assets/outputxhtml/outputxhtml.css +0 -204
  232. data/vendor/assets/javascripts/ckeditor/samples/assets/posteddata.php +0 -59
  233. data/vendor/assets/javascripts/ckeditor/samples/assets/sample.css +0 -3
  234. data/vendor/assets/javascripts/ckeditor/samples/assets/sample.jpg +0 -0
  235. data/vendor/assets/javascripts/ckeditor/samples/assets/uilanguages/languages.js +0 -7
  236. data/vendor/assets/javascripts/ckeditor/samples/datafiltering.html +0 -401
  237. data/vendor/assets/javascripts/ckeditor/samples/divreplace.html +0 -141
  238. data/vendor/assets/javascripts/ckeditor/samples/index.html +0 -128
  239. data/vendor/assets/javascripts/ckeditor/samples/inlineall.html +0 -311
  240. data/vendor/assets/javascripts/ckeditor/samples/inlinebycode.html +0 -121
  241. data/vendor/assets/javascripts/ckeditor/samples/inlinetextarea.html +0 -110
  242. data/vendor/assets/javascripts/ckeditor/samples/jquery.html +0 -97
  243. data/vendor/assets/javascripts/ckeditor/samples/plugins/dialog/assets/my_dialog.js +0 -48
  244. data/vendor/assets/javascripts/ckeditor/samples/plugins/dialog/dialog.html +0 -187
  245. data/vendor/assets/javascripts/ckeditor/samples/plugins/enterkey/enterkey.html +0 -103
  246. data/vendor/assets/javascripts/ckeditor/samples/plugins/htmlwriter/assets/outputforflash/outputforflash.fla +0 -0
  247. data/vendor/assets/javascripts/ckeditor/samples/plugins/htmlwriter/assets/outputforflash/outputforflash.swf +0 -0
  248. data/vendor/assets/javascripts/ckeditor/samples/plugins/htmlwriter/assets/outputforflash/swfobject.js +0 -18
  249. data/vendor/assets/javascripts/ckeditor/samples/plugins/htmlwriter/outputforflash.html +0 -280
  250. data/vendor/assets/javascripts/ckeditor/samples/plugins/htmlwriter/outputhtml.html +0 -221
  251. data/vendor/assets/javascripts/ckeditor/samples/plugins/magicline/magicline.html +0 -206
  252. data/vendor/assets/javascripts/ckeditor/samples/plugins/toolbar/toolbar.html +0 -232
  253. data/vendor/assets/javascripts/ckeditor/samples/plugins/wysiwygarea/fullpage.html +0 -77
  254. data/vendor/assets/javascripts/ckeditor/samples/readonly.html +0 -73
  255. data/vendor/assets/javascripts/ckeditor/samples/replacebyclass.html +0 -57
  256. data/vendor/assets/javascripts/ckeditor/samples/replacebycode.html +0 -56
  257. data/vendor/assets/javascripts/ckeditor/samples/sample.css +0 -356
  258. data/vendor/assets/javascripts/ckeditor/samples/sample.js +0 -50
  259. data/vendor/assets/javascripts/ckeditor/samples/sample_posteddata.php +0 -16
  260. data/vendor/assets/javascripts/ckeditor/samples/tabindex.html +0 -75
  261. data/vendor/assets/javascripts/ckeditor/samples/uicolor.html +0 -69
  262. data/vendor/assets/javascripts/ckeditor/samples/uilanguages.html +0 -119
  263. data/vendor/assets/javascripts/ckeditor/samples/xhtmlstyle.html +0 -231
@@ -1,82 +0,0 @@
1
- <!DOCTYPE html>
2
- <!--
3
- Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved.
4
- For licensing, see LICENSE.md or http://ckeditor.com/license
5
- -->
6
- <html>
7
- <head>
8
- <title>Ajax &mdash; CKEditor Sample</title>
9
- <meta charset="utf-8">
10
- <script src="../ckeditor.js"></script>
11
- <link rel="stylesheet" href="sample.css">
12
- <script>
13
-
14
- var editor, html = '';
15
-
16
- function createEditor() {
17
- if ( editor )
18
- return;
19
-
20
- // Create a new editor inside the <div id="editor">, setting its value to html
21
- var config = {};
22
- editor = CKEDITOR.appendTo( 'editor', config, html );
23
- }
24
-
25
- function removeEditor() {
26
- if ( !editor )
27
- return;
28
-
29
- // Retrieve the editor contents. In an Ajax application, this data would be
30
- // sent to the server or used in any other way.
31
- document.getElementById( 'editorcontents' ).innerHTML = html = editor.getData();
32
- document.getElementById( 'contents' ).style.display = '';
33
-
34
- // Destroy the editor.
35
- editor.destroy();
36
- editor = null;
37
- }
38
-
39
- </script>
40
- </head>
41
- <body>
42
- <h1 class="samples">
43
- <a href="index.html">CKEditor Samples</a> &raquo; Create and Destroy Editor Instances for Ajax Applications
44
- </h1>
45
- <div class="description">
46
- <p>
47
- This sample shows how to create and destroy CKEditor instances on the fly. After the removal of CKEditor the content created inside the editing
48
- area will be displayed in a <code>&lt;div&gt;</code> element.
49
- </p>
50
- <p>
51
- For details of how to create this setup check the source code of this sample page
52
- for JavaScript code responsible for the creation and destruction of a CKEditor instance.
53
- </p>
54
- </div>
55
- <p>Click the buttons to create and remove a CKEditor instance.</p>
56
- <p>
57
- <input onclick="createEditor();" type="button" value="Create Editor">
58
- <input onclick="removeEditor();" type="button" value="Remove Editor">
59
- </p>
60
- <!-- This div will hold the editor. -->
61
- <div id="editor">
62
- </div>
63
- <div id="contents" style="display: none">
64
- <p>
65
- Edited Contents:
66
- </p>
67
- <!-- This div will be used to display the editor contents. -->
68
- <div id="editorcontents">
69
- </div>
70
- </div>
71
- <div id="footer">
72
- <hr>
73
- <p>
74
- CKEditor - The text editor for the Internet - <a class="samples" href="http://ckeditor.com/">http://ckeditor.com</a>
75
- </p>
76
- <p id="copy">
77
- Copyright &copy; 2003-2013, <a class="samples" href="http://cksource.com/">CKSource</a> - Frederico
78
- Knabben. All rights reserved.
79
- </p>
80
- </div>
81
- </body>
82
- </html>
@@ -1,207 +0,0 @@
1
- <!DOCTYPE html>
2
- <!--
3
- Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved.
4
- For licensing, see LICENSE.md or http://ckeditor.com/license
5
- -->
6
- <html>
7
- <head>
8
- <meta charset="utf-8">
9
- <title>API Usage &mdash; CKEditor Sample</title>
10
- <script src="../ckeditor.js"></script>
11
- <link href="sample.css" rel="stylesheet">
12
- <script>
13
-
14
- // The instanceReady event is fired, when an instance of CKEditor has finished
15
- // its initialization.
16
- CKEDITOR.on( 'instanceReady', function( ev ) {
17
- // Show the editor name and description in the browser status bar.
18
- document.getElementById( 'eMessage' ).innerHTML = 'Instance <code>' + ev.editor.name + '<\/code> loaded.';
19
-
20
- // Show this sample buttons.
21
- document.getElementById( 'eButtons' ).style.display = 'block';
22
- });
23
-
24
- function InsertHTML() {
25
- // Get the editor instance that we want to interact with.
26
- var editor = CKEDITOR.instances.editor1;
27
- var value = document.getElementById( 'htmlArea' ).value;
28
-
29
- // Check the active editing mode.
30
- if ( editor.mode == 'wysiwyg' )
31
- {
32
- // Insert HTML code.
33
- // http://docs.ckeditor.com/#!/api/CKEDITOR.editor-method-insertHtml
34
- editor.insertHtml( value );
35
- }
36
- else
37
- alert( 'You must be in WYSIWYG mode!' );
38
- }
39
-
40
- function InsertText() {
41
- // Get the editor instance that we want to interact with.
42
- var editor = CKEDITOR.instances.editor1;
43
- var value = document.getElementById( 'txtArea' ).value;
44
-
45
- // Check the active editing mode.
46
- if ( editor.mode == 'wysiwyg' )
47
- {
48
- // Insert as plain text.
49
- // http://docs.ckeditor.com/#!/api/CKEDITOR.editor-method-insertText
50
- editor.insertText( value );
51
- }
52
- else
53
- alert( 'You must be in WYSIWYG mode!' );
54
- }
55
-
56
- function SetContents() {
57
- // Get the editor instance that we want to interact with.
58
- var editor = CKEDITOR.instances.editor1;
59
- var value = document.getElementById( 'htmlArea' ).value;
60
-
61
- // Set editor contents (replace current contents).
62
- // http://docs.ckeditor.com/#!/api/CKEDITOR.editor-method-setData
63
- editor.setData( value );
64
- }
65
-
66
- function GetContents() {
67
- // Get the editor instance that you want to interact with.
68
- var editor = CKEDITOR.instances.editor1;
69
-
70
- // Get editor contents
71
- // http://docs.ckeditor.com/#!/api/CKEDITOR.editor-method-getData
72
- alert( editor.getData() );
73
- }
74
-
75
- function ExecuteCommand( commandName ) {
76
- // Get the editor instance that we want to interact with.
77
- var editor = CKEDITOR.instances.editor1;
78
-
79
- // Check the active editing mode.
80
- if ( editor.mode == 'wysiwyg' )
81
- {
82
- // Execute the command.
83
- // http://docs.ckeditor.com/#!/api/CKEDITOR.editor-method-execCommand
84
- editor.execCommand( commandName );
85
- }
86
- else
87
- alert( 'You must be in WYSIWYG mode!' );
88
- }
89
-
90
- function CheckDirty() {
91
- // Get the editor instance that we want to interact with.
92
- var editor = CKEDITOR.instances.editor1;
93
- // Checks whether the current editor contents present changes when compared
94
- // to the contents loaded into the editor at startup
95
- // http://docs.ckeditor.com/#!/api/CKEDITOR.editor-method-checkDirty
96
- alert( editor.checkDirty() );
97
- }
98
-
99
- function ResetDirty() {
100
- // Get the editor instance that we want to interact with.
101
- var editor = CKEDITOR.instances.editor1;
102
- // Resets the "dirty state" of the editor (see CheckDirty())
103
- // http://docs.ckeditor.com/#!/api/CKEDITOR.editor-method-resetDirty
104
- editor.resetDirty();
105
- alert( 'The "IsDirty" status has been reset' );
106
- }
107
-
108
- function Focus() {
109
- CKEDITOR.instances.editor1.focus();
110
- }
111
-
112
- function onFocus() {
113
- document.getElementById( 'eMessage' ).innerHTML = '<b>' + this.name + ' is focused </b>';
114
- }
115
-
116
- function onBlur() {
117
- document.getElementById( 'eMessage' ).innerHTML = this.name + ' lost focus';
118
- }
119
-
120
- </script>
121
-
122
- </head>
123
- <body>
124
- <h1 class="samples">
125
- <a href="index.html">CKEditor Samples</a> &raquo; Using CKEditor JavaScript API
126
- </h1>
127
- <div class="description">
128
- <p>
129
- This sample shows how to use the
130
- <a class="samples" href="http://docs.ckeditor.com/#!/api/CKEDITOR.editor">CKEditor JavaScript API</a>
131
- to interact with the editor at runtime.
132
- </p>
133
- <p>
134
- For details on how to create this setup check the source code of this sample page.
135
- </p>
136
- </div>
137
-
138
- <!-- This <div> holds alert messages to be display in the sample page. -->
139
- <div id="alerts">
140
- <noscript>
141
- <p>
142
- <strong>CKEditor requires JavaScript to run</strong>. In a browser with no JavaScript
143
- support, like yours, you should still see the contents (HTML data) and you should
144
- be able to edit it normally, without a rich editor interface.
145
- </p>
146
- </noscript>
147
- </div>
148
- <form action="../../../samples/sample_posteddata.php" method="post">
149
- <textarea cols="100" 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>
150
-
151
- <script>
152
- // Replace the <textarea id="editor1"> with an CKEditor instance.
153
- CKEDITOR.replace( 'editor1', {
154
- on: {
155
- focus: onFocus,
156
- blur: onBlur,
157
-
158
- // Check for availability of corresponding plugins.
159
- pluginsLoaded: function( evt ) {
160
- var doc = CKEDITOR.document, ed = evt.editor;
161
- if ( !ed.getCommand( 'bold' ) )
162
- doc.getById( 'exec-bold' ).hide();
163
- if ( !ed.getCommand( 'link' ) )
164
- doc.getById( 'exec-link' ).hide();
165
- }
166
- }
167
- });
168
- </script>
169
-
170
- <p id="eMessage">
171
- </p>
172
-
173
- <div id="eButtons" style="display: none">
174
- <input id="exec-bold" onclick="ExecuteCommand('bold');" type="button" value="Execute &quot;bold&quot; Command">
175
- <input id="exec-link" onclick="ExecuteCommand('link');" type="button" value="Execute &quot;link&quot; Command">
176
- <input onclick="Focus();" type="button" value="Focus">
177
- <br><br>
178
- <input onclick="InsertHTML();" type="button" value="Insert HTML">
179
- <input onclick="SetContents();" type="button" value="Set Editor Contents">
180
- <input onclick="GetContents();" type="button" value="Get Editor Contents (HTML)">
181
- <br>
182
- <textarea cols="100" id="htmlArea" rows="3">&lt;h2&gt;Test&lt;/h2&gt;&lt;p&gt;This is some &lt;a href="/Test1.html"&gt;sample&lt;/a&gt; HTML code.&lt;/p&gt;</textarea>
183
- <br>
184
- <br>
185
- <input onclick="InsertText();" type="button" value="Insert Text">
186
- <br>
187
- <textarea cols="100" id="txtArea" rows="3"> First line with some leading whitespaces.
188
-
189
- Second line of text preceded by two line breaks.</textarea>
190
- <br>
191
- <br>
192
- <input onclick="CheckDirty();" type="button" value="checkDirty()">
193
- <input onclick="ResetDirty();" type="button" value="resetDirty()">
194
- </div>
195
- </form>
196
- <div id="footer">
197
- <hr>
198
- <p>
199
- CKEditor - The text editor for the Internet - <a class="samples" href="http://ckeditor.com/">http://ckeditor.com</a>
200
- </p>
201
- <p id="copy">
202
- Copyright &copy; 2003-2013, <a class="samples" href="http://cksource.com/">CKSource</a> - Frederico
203
- Knabben. All rights reserved.
204
- </p>
205
- </div>
206
- </body>
207
- </html>
@@ -1,57 +0,0 @@
1
- <!DOCTYPE html>
2
- <!--
3
- Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved.
4
- For licensing, see LICENSE.md or http://ckeditor.com/license
5
- -->
6
- <html>
7
- <head>
8
- <title>CKEDITOR.appendTo &mdash; CKEditor Sample</title>
9
- <meta charset="utf-8">
10
- <script src="../ckeditor.js"></script>
11
- <link rel="stylesheet" href="sample.css">
12
- </head>
13
- <body>
14
- <h1 class="samples">
15
- <a href="index.html">CKEditor Samples</a> &raquo; Append To Page Element Using JavaScript Code
16
- </h1>
17
- <div id="section1">
18
- <div class="description">
19
- <p>
20
- <code>CKEDITOR.appendTo</code> is basically to place editors
21
- inside existing DOM elements. Unlike <code>CKEDITOR.replace</code>,
22
- a target container to be replaced is no longer necessary. A new editor
23
- instance is inserted directly wherever it is desired.
24
- </p>
25
- <pre class="samples">CKEDITOR.appendTo( '<em>container_id</em>',
26
- { /* Configuration options to be used. */ }
27
- 'Editor content to be used.'
28
- );</pre>
29
- </div>
30
- <script>
31
-
32
- // This call can be placed at any point after the
33
- // <textarea>, or inside a <head><script> in a
34
- // window.onload event handler.
35
-
36
- // Replace the <textarea id="editor"> with an CKEditor
37
- // instance, using default configurations.
38
- CKEDITOR.appendTo( 'section1',
39
- null,
40
- '<p>This is some <strong>sample text</strong>. You are using <a href="http://ckeditor.com/">CKEditor</a>.</p>'
41
- );
42
-
43
- </script>
44
- </div>
45
- <br>
46
- <div id="footer">
47
- <hr>
48
- <p>
49
- CKEditor - The text editor for the Internet - <a class="samples" href="http://ckeditor.com/">http://ckeditor.com</a>
50
- </p>
51
- <p id="copy">
52
- Copyright &copy; 2003-2013, <a class="samples" href="http://cksource.com/">CKSource</a> - Frederico
53
- Knabben. All rights reserved.
54
- </p>
55
- </div>
56
- </body>
57
- </html>
@@ -1,204 +0,0 @@
1
- /*
2
- * Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved.
3
- * For licensing, see LICENSE.md or http://ckeditor.com/license
4
- *
5
- * Styles used by the XHTML 1.1 sample page (xhtml.html).
6
- */
7
-
8
- /**
9
- * Basic definitions for the editing area.
10
- */
11
- body
12
- {
13
- font-family: Arial, Verdana, sans-serif;
14
- font-size: 80%;
15
- color: #000000;
16
- background-color: #ffffff;
17
- padding: 5px;
18
- margin: 0px;
19
- }
20
-
21
- /**
22
- * Core styles.
23
- */
24
-
25
- .Bold
26
- {
27
- font-weight: bold;
28
- }
29
-
30
- .Italic
31
- {
32
- font-style: italic;
33
- }
34
-
35
- .Underline
36
- {
37
- text-decoration: underline;
38
- }
39
-
40
- .StrikeThrough
41
- {
42
- text-decoration: line-through;
43
- }
44
-
45
- .Subscript
46
- {
47
- vertical-align: sub;
48
- font-size: smaller;
49
- }
50
-
51
- .Superscript
52
- {
53
- vertical-align: super;
54
- font-size: smaller;
55
- }
56
-
57
- /**
58
- * Font faces.
59
- */
60
-
61
- .FontComic
62
- {
63
- font-family: 'Comic Sans MS';
64
- }
65
-
66
- .FontCourier
67
- {
68
- font-family: 'Courier New';
69
- }
70
-
71
- .FontTimes
72
- {
73
- font-family: 'Times New Roman';
74
- }
75
-
76
- /**
77
- * Font sizes.
78
- */
79
-
80
- .FontSmaller
81
- {
82
- font-size: smaller;
83
- }
84
-
85
- .FontLarger
86
- {
87
- font-size: larger;
88
- }
89
-
90
- .FontSmall
91
- {
92
- font-size: 8pt;
93
- }
94
-
95
- .FontBig
96
- {
97
- font-size: 14pt;
98
- }
99
-
100
- .FontDouble
101
- {
102
- font-size: 200%;
103
- }
104
-
105
- /**
106
- * Font colors.
107
- */
108
- .FontColor1
109
- {
110
- color: #ff9900;
111
- }
112
-
113
- .FontColor2
114
- {
115
- color: #0066cc;
116
- }
117
-
118
- .FontColor3
119
- {
120
- color: #ff0000;
121
- }
122
-
123
- .FontColor1BG
124
- {
125
- background-color: #ff9900;
126
- }
127
-
128
- .FontColor2BG
129
- {
130
- background-color: #0066cc;
131
- }
132
-
133
- .FontColor3BG
134
- {
135
- background-color: #ff0000;
136
- }
137
-
138
- /**
139
- * Indentation.
140
- */
141
-
142
- .Indent1
143
- {
144
- margin-left: 40px;
145
- }
146
-
147
- .Indent2
148
- {
149
- margin-left: 80px;
150
- }
151
-
152
- .Indent3
153
- {
154
- margin-left: 120px;
155
- }
156
-
157
- /**
158
- * Alignment.
159
- */
160
-
161
- .JustifyLeft
162
- {
163
- text-align: left;
164
- }
165
-
166
- .JustifyRight
167
- {
168
- text-align: right;
169
- }
170
-
171
- .JustifyCenter
172
- {
173
- text-align: center;
174
- }
175
-
176
- .JustifyFull
177
- {
178
- text-align: justify;
179
- }
180
-
181
- /**
182
- * Other.
183
- */
184
-
185
- code
186
- {
187
- font-family: courier, monospace;
188
- background-color: #eeeeee;
189
- padding-left: 1px;
190
- padding-right: 1px;
191
- border: #c0c0c0 1px solid;
192
- }
193
-
194
- kbd
195
- {
196
- padding: 0px 1px 0px 1px;
197
- border-width: 1px 2px 2px 1px;
198
- border-style: solid;
199
- }
200
-
201
- blockquote
202
- {
203
- color: #808080;
204
- }