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
data/README.md CHANGED
@@ -10,13 +10,21 @@ CKEditor is a ready-for-use HTML text editor designed to simplify web content cr
10
10
  * Files browser
11
11
  * HTML5 files uploader
12
12
  * Hooks for formtastic and simple_form forms generators
13
+ * Integrated with authorization framework CanCan and Pundit
13
14
 
14
15
  ## Installation
15
16
 
16
17
  For basic usage just include ckeditor gem:
17
18
 
18
19
  ```
19
- gem "ckeditor"
20
+ gem 'ckeditor'
21
+ ```
22
+ #### Using with ruby 1.8.7
23
+
24
+ For usage with ruby 1.8.7 you need to specify gem version:
25
+
26
+ ```
27
+ gem 'ckeditor', '4.0.4'
20
28
  ```
21
29
 
22
30
  For files uploading support you need generage models for file storage.
@@ -32,7 +40,7 @@ Currently supported next backends:
32
40
  For active_record orm is used paperclip gem (it's by default).
33
41
 
34
42
  ```
35
- gem "paperclip"
43
+ gem 'paperclip'
36
44
 
37
45
  rails generate ckeditor:install --orm=active_record --backend=paperclip
38
46
  ```
@@ -40,8 +48,8 @@ rails generate ckeditor:install --orm=active_record --backend=paperclip
40
48
  #### ActiveRecord + carrierwave
41
49
 
42
50
  ```
43
- gem "carrierwave"
44
- gem "mini_magick"
51
+ gem 'carrierwave'
52
+ gem 'mini_magick'
45
53
 
46
54
  rails generate ckeditor:install --orm=active_record --backend=carrierwave
47
55
  ```
@@ -57,8 +65,8 @@ rails generate ckeditor:install --orm=mongoid --backend=paperclip
57
65
  #### Mongoid + carrierwave
58
66
 
59
67
  ```
60
- gem "carrierwave-mongoid", :require => 'carrierwave/mongoid'
61
- gem "mini_magick"
68
+ gem 'carrierwave-mongoid', :require => 'carrierwave/mongoid'
69
+ gem 'mini_magick'
62
70
 
63
71
  rails generate ckeditor:install --orm=mongoid --backend=carrierwave
64
72
  ```
@@ -75,7 +83,7 @@ config.autoload_paths += %W(#{config.root}/app/models/ckeditor)
75
83
  Mount engine in your routes (config/routes.rb):
76
84
 
77
85
  ```ruby
78
- mount Ckeditor::Engine => "/ckeditor"
86
+ mount Ckeditor::Engine => '/ckeditor'
79
87
  ```
80
88
 
81
89
  ## Usage
@@ -91,11 +99,11 @@ Form helpers:
91
99
  ```erb
92
100
  <%= form_for @page do |form| -%>
93
101
  ...
94
- <%= form.cktext_area :notes, :class => "someclass", :ckeditor => {:language => "uk"} %>
102
+ <%= form.cktext_area :notes, :class => 'someclass', :ckeditor => {:language => 'uk'} %>
95
103
  ...
96
- <%= form.cktext_area :content, :value => "Default value", :id => "sometext" %>
104
+ <%= form.cktext_area :content, :value => 'Default value', :id => 'sometext' %>
97
105
  ...
98
- <%= cktext_area :page, :info, :cols => 40, :ckeditor => {:uiColor => "#AADC6E", :toolbar => "mini"} %>
106
+ <%= cktext_area :page, :info, :cols => 40, :ckeditor => {:uiColor => '#AADC6E', :toolbar => 'mini'} %>
99
107
  ...
100
108
  <% end -%>
101
109
  ```
@@ -158,7 +166,7 @@ after 'deploy:assets:precompile', 'copy_nondigest_assets'
158
166
  Periodically check your error monitoring tool, if you see some part of ckeditor try to load
159
167
  unexisting non-digest asset - if so just add it in the ckeditor rake task.
160
168
 
161
- Also you can use gem [non-stupid-digest-assets](https://rubygems.org/gems/non-stupid-digest-assets), which do the same work.
169
+ Also you can use gem [non-stupid-digest-assets](https://rubygems.org/gems/non-stupid-digest-assets), which do the same work.
162
170
 
163
171
  To reduce the asset precompilation time, you can limit plugins and/or languages to those you need:
164
172
 
@@ -178,7 +186,7 @@ jQuery sample:
178
186
  ```html
179
187
  <script type='text/javascript' charset='UTF-8'>
180
188
  $(document).ready(function(){
181
- $('form[data-remote]').bind("ajax:before", function(){
189
+ $('form[data-remote]').bind('ajax:before', function(){
182
190
  for (instance in CKEDITOR.instances){
183
191
  CKEDITOR.instances[instance].updateElement();
184
192
  }
@@ -224,18 +232,41 @@ can [:read, :create, :destroy], Ckeditor::Picture
224
232
  can [:read, :create, :destroy], Ckeditor::AttachmentFile
225
233
  ```
226
234
 
235
+ ### Pundit integration
236
+
237
+ Just like CanCan, you can write this code in your config/initializers/ckeditor.rb file
238
+
239
+ ```ruby
240
+ Ckeditor.setup do |config|
241
+ config.authorize_with :pundit
242
+ end
243
+ ```
244
+
245
+ And then, generate the policy files for model **Picture** and **AttachmentFile**
246
+
247
+ ```
248
+ $ rails g ckeditor:pundit_policy
249
+ ```
250
+ By this command, you will got two files:
251
+ > app/policies/ckeditor/picture_policy.rb
252
+ app/policies/ckeditor/attachment_file_policy.rb
253
+
254
+ By default, only the user that logged in can access the models(with action *index* and *create*), and only the owner of the asset can **destroy** the resource.
255
+
256
+ You can simply customize these two policy files as you like.
257
+
227
258
  ## I18n
228
259
 
229
260
  ```yml
230
261
  en:
231
262
  ckeditor:
232
- page_title: "CKEditor Files Manager"
233
- confirm_delete: "Delete file?"
263
+ page_title: 'CKEditor Files Manager'
264
+ confirm_delete: 'Delete file?'
234
265
  buttons:
235
- cancel: "Cancel"
236
- upload: "Upload"
237
- delete: "Delete"
238
- next: "Next"
266
+ cancel: 'Cancel'
267
+ upload: 'Upload'
268
+ delete: 'Delete'
269
+ next: 'Next'
239
270
  ```
240
271
 
241
272
  ## Tests
@@ -3,14 +3,6 @@
3
3
 
4
4
  (function() {
5
5
  if (typeof window['CKEDITOR_BASEPATH'] === "undefined" || window['CKEDITOR_BASEPATH'] === null) {
6
- window['CKEDITOR_BASEPATH'] = "<%= asset_path('ckeditor') %>/";
6
+ window['CKEDITOR_BASEPATH'] = "<%= asset_path('assets/ckeditor') %>/";
7
7
  }
8
8
  }).call(this);
9
-
10
- function ck_load() {
11
- $('.ckeditor').each(function(){
12
- CKEDITOR.replace( $(this).attr('name') );
13
- });
14
- }
15
-
16
- $(document).on('page:load', ck_load);
@@ -14,7 +14,7 @@ window.CKEDITOR_GETURL = function( resource ) {
14
14
  // Add the timestamp, except for directories.
15
15
  if ( resource.charAt( resource.length - 1 ) != '/' ){
16
16
  var url = resource.match( /^(.*?:\/\/[^\/]*)\/assets\/(.+)/ );
17
- if(url) resource = url[1] + (CKEDITOR_ASSETS_MAPPING[url[2]] || '/assets/' + url[2]);
17
+ if(url) resource = (CKEDITOR_ASSETS_MAPPING[url[2]] || '/assets/' + url[2]);
18
18
  }
19
19
 
20
20
  return resource;
data/lib/ckeditor.rb CHANGED
@@ -17,6 +17,7 @@ module Ckeditor
17
17
  module Hooks
18
18
  autoload :SimpleFormBuilder, 'ckeditor/hooks/simple_form'
19
19
  autoload :CanCanAuthorization, 'ckeditor/hooks/cancan'
20
+ autoload :PunditAuthorization, 'ckeditor/hooks/pundit'
20
21
  end
21
22
 
22
23
  module Backend
@@ -33,6 +33,10 @@ module Ckeditor
33
33
  if Object.const_defined?("CanCan")
34
34
  require "ckeditor/hooks/cancan"
35
35
  end
36
+
37
+ if Object.const_defined?("Pundit")
38
+ require "ckeditor/hooks/pundit"
39
+ end
36
40
  end
37
41
  end
38
42
  end
@@ -0,0 +1,47 @@
1
+ require 'pundit'
2
+
3
+ module Ckeditor
4
+ module Hooks
5
+ # This adapter is for the Pundit[https://github.com/elabs/pundit] authorization library.
6
+ # You can create another adapter for different authorization behavior, just be certain it
7
+ # responds to each of the public methods here.
8
+ class PunditAuthorization
9
+
10
+ include Ckeditor::Helpers::Controllers
11
+
12
+ # See the +authorize_with+ config method for where the initialization happens.
13
+ def initialize(controller)
14
+ @controller = controller
15
+ @controller.extend ControllerExtension
16
+ end
17
+
18
+ # This method is called in every controller action and should raise an exception
19
+ # when the authorization fails. The first argument is the name of the controller
20
+ # action as a symbol (:create, :destroy, etc.). The second argument is the actual model
21
+ # instance if it is available.
22
+ def authorize(action, model_object = nil)
23
+ raise Pundit::NotAuthorizedError unless authorized?(action, model_object)
24
+ end
25
+
26
+ # This method is called primarily from the view to determine whether the given user
27
+ # has access to perform the action on a given model. It should return true when authorized.
28
+ # This takes the same arguments as +authorize+. The difference is that this will
29
+ # return a boolean whereas +authorize+ will raise an exception when not authorized.
30
+ def authorized?(action, model_object = nil)
31
+ Pundit.policy(@controller.current_user_for_pundit, model_object).public_send(action + '?' ) if action
32
+ end
33
+
34
+ private
35
+
36
+ module ControllerExtension
37
+ def current_user_for_pundit
38
+ # use ckeditor_current_user instead of default current_user so it works with
39
+ # whatever current user method is defined with Ckeditor
40
+ ckeditor_current_user
41
+ end
42
+ end
43
+ end
44
+ end
45
+ end
46
+
47
+ Ckeditor::AUTHORIZATION_ADAPTERS[:pundit] = Ckeditor::Hooks::PunditAuthorization
@@ -1,6 +1,6 @@
1
1
  module Ckeditor
2
2
  module Version
3
- GEM = "4.0.8".freeze
4
- EDITOR = "4.3.1".freeze
3
+ GEM = "4.0.9".freeze
4
+ EDITOR = "4.3.2".freeze
5
5
  end
6
6
  end
@@ -0,0 +1,22 @@
1
+ require 'rails/generators'
2
+
3
+ module Ckeditor
4
+ module Generators
5
+ class PunditPolicyGenerator < Rails::Generators::Base
6
+
7
+ desc "Generates policy files for Pundit"
8
+
9
+ def self.source_root
10
+ @source_root ||= File.expand_path(File.join(File.dirname(__FILE__), 'templates'))
11
+ end
12
+
13
+ # copy configuration
14
+ def copy_policy_files
15
+ [:picture, :attachment_file].each do |model_name|
16
+ template "pundit_policy/#{model_name}_policy.rb", "app/policies/ckeditor/#{model_name}_policy.rb"
17
+ end
18
+ end
19
+
20
+ end
21
+ end
22
+ end
@@ -0,0 +1,20 @@
1
+ class Ckeditor::AttachmentFilePolicy
2
+ attr_reader :user, :attachment
3
+
4
+ def initialize(user, attachment)
5
+ @user = user
6
+ @attachment = attachment
7
+ end
8
+
9
+ def index?
10
+ true and ! @user.nil?
11
+ end
12
+
13
+ def create?
14
+ true and ! @user.nil?
15
+ end
16
+
17
+ def destroy?
18
+ @attachment.assetable_id == @user.id
19
+ end
20
+ end
@@ -0,0 +1,20 @@
1
+ class Ckeditor::PicturePolicy
2
+ attr_reader :user, :picture
3
+
4
+ def initialize(user, picture)
5
+ @user = user
6
+ @picture = picture
7
+ end
8
+
9
+ def index?
10
+ true and ! @user.nil?
11
+ end
12
+
13
+ def create?
14
+ true and ! @user.nil?
15
+ end
16
+
17
+ def destroy?
18
+ @picture.assetable_id == @user.id
19
+ end
20
+ end
@@ -1,6 +1,42 @@
1
1
  CKEditor 4 Changelog
2
2
  ====================
3
3
 
4
+ ## CKEditor 4.3.2
5
+
6
+ * [#11331](http://dev.ckeditor.com/ticket/11331): A menu button will have a changed label when selected instead of using the `aria-pressed` attribute.
7
+ * [#11177](http://dev.ckeditor.com/ticket/11177): Widget drag handler improvements:
8
+ * [#11176](http://dev.ckeditor.com/ticket/11176): Fixed: Initial position is not updated when the widget data object is empty.
9
+ * [#11001](http://dev.ckeditor.com/ticket/11001): Fixed: Multiple synchronous layout recalculations are caused by initial drag handler positioning causing performance issues.
10
+ * [#11161](http://dev.ckeditor.com/ticket/11161): Fixed: Drag handler is not repositioned in various situations.
11
+ * [#11281](http://dev.ckeditor.com/ticket/11281): Fixed: Drag handler and mask are duplicated after widget reinitialization.
12
+ * [#11207](http://dev.ckeditor.com/ticket/11207): [Firefox] Fixed: Misplaced [Enhanced Image](http://ckeditor.com/addon/image2) resizer in the inline editor.
13
+ * [#11102](http://dev.ckeditor.com/ticket/11102): `CKEDITOR.template` improvements:
14
+ * [#11102](http://dev.ckeditor.com/ticket/11102): Added newline character support.
15
+ * [#11216](http://dev.ckeditor.com/ticket/11216): Added "\\'" substring support.
16
+ * [#11121](http://dev.ckeditor.com/ticket/11121): [Firefox] Fixed: High Contrast mode is enabled when the editor is loaded in a hidden iframe.
17
+ * [#11350](http://dev.ckeditor.com/ticket/11350): The default value of [`config.contentsCss`](http://docs.ckeditor.com/#!/api/CKEDITOR.config-cfg-contentsCss) is affected by [`CKEDITOR.getUrl`](http://docs.ckeditor.com/#!/api/CKEDITOR-method-getUrl).
18
+ * [#11097](http://dev.ckeditor.com/ticket/11097): Improved the [Autogrow](http://ckeditor.com/addon/autogrow) plugin performance when dealing with very big tables.
19
+ * [#11290](http://dev.ckeditor.com/ticket/11290): Removed redundant code in the [Source Dialog](http://ckeditor.com/addon/sourcedialog) plugin.
20
+ * [#11133](http://dev.ckeditor.com/ticket/11133): [Page Break](http://ckeditor.com/addon/pagebreak) becomes editable if pasted.
21
+ * [#11126](http://dev.ckeditor.com/ticket/11126): Fixed: Native Undo executed once the bottom of the snapshot stack is reached.
22
+ * [#11131](http://dev.ckeditor.com/ticket/11131): [Div Editing Area](http://ckeditor.com/addon/divarea): Fixed: Error thrown when switching to source mode if the selection was in widget's nested editable.
23
+ * [#11139](http://dev.ckeditor.com/ticket/11139): [Div Editing Area](http://ckeditor.com/addon/divarea): Fixed: Elements Path is not cleared after switching to source mode.
24
+ * [#10778](http://dev.ckeditor.com/ticket/10778): Fixed a bug with range enlargement. The range no longer expands to visible whitespace.
25
+ * [#11146](http://dev.ckeditor.com/ticket/11146): [IE] Fixed: Preview window switches Internet Explorer to Quirks Mode.
26
+ * [#10762](http://dev.ckeditor.com/ticket/10762): [IE] Fixed: JavaScript code displayed in preview window's URL bar.
27
+ * [#11186](http://dev.ckeditor.com/ticket/11186): Introduced the [`widgets.repository.addUpcastCallback`](http://docs.ckeditor.com/#!/api/CKEDITOR.plugins.widget.repository-method-addUpcastCallback) method that allows to block upcasting given element to a widget.
28
+ * [#11307](http://dev.ckeditor.com/ticket/11307): Fixed: Paste as Plain Text conflict with the [MooTools](http://mootools.net) library.
29
+ * [#11140](http://dev.ckeditor.com/ticket/11140): [IE11] Fixed: Anchors are not draggable.
30
+ * [#11379](http://dev.ckeditor.com/ticket/11379): Changed default contents `line-height` to unitless values to avoid huge text overlapping (like in [#9696](http://dev.ckeditor.com/ticket/9696)).
31
+ * [#10787](http://dev.ckeditor.com/ticket/10787): [Firefox] Fixed: Broken replacement of text while pasting into `div`-based editor.
32
+ * [#10884](http://dev.ckeditor.com/ticket/10884): Widgets integration with the [Show Blocks](http://ckeditor.com/addon/showblocks) plugin.
33
+ * [#11021](http://dev.ckeditor.com/ticket/11021): Fixed: An error thrown when selecting entire editable contents while fake selection is on.
34
+ * [#11086](http://dev.ckeditor.com/ticket/11086): [IE8] Re-enable inline widgets drag&drop in Internet Explorer 8.
35
+ * [#11372](http://dev.ckeditor.com/ticket/11372): Widgets: Special characters encoded twice in nested editables.
36
+ * [#10068](http://dev.ckeditor.com/ticket/10068): Fixed: Support for protocol-relative URLs.
37
+ * [#11283](http://dev.ckeditor.com/ticket/11283): [Enhanced Image](http://ckeditor.com/addon/image2): A `<div>` element with `text-align: center` and an image inside is not recognised correctly.
38
+ * [#11196](http://dev.ckeditor.com/ticket/11196): [Accessibility Instructions](http://ckeditor.com/addon/a11yhelp): Allowed additional keyboard button labels to be translated in the dialog window.
39
+
4
40
  ## CKEditor 4.3.1
5
41
 
6
42
  **Important Notes:**
@@ -2,7 +2,7 @@ Software License Agreement
2
2
  ==========================
3
3
 
4
4
  CKEditor - The text editor for Internet - http://ckeditor.com
5
- Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved.
5
+ Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
6
6
 
7
7
  Licensed under the terms of any of the following licenses at your
8
8
  choice:
@@ -1,7 +1,7 @@
1
1
  CKEditor 4
2
2
  ==========
3
3
 
4
- Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved.
4
+ Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
5
5
  http://ckeditor.com - See LICENSE.md for license information.
6
6
 
7
7
  CKEditor is a text editor to be used inside web pages. It's not a replacement
@@ -1,5 +1,5 @@
1
1
  /*
2
- Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved.
2
+ Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
3
3
  For licensing, see LICENSE.md or http://ckeditor.com/license
4
4
  */
5
5
  (function(a){CKEDITOR.config.jqueryOverrideVal="undefined"==typeof CKEDITOR.config.jqueryOverrideVal?!0:CKEDITOR.config.jqueryOverrideVal;"undefined"!=typeof a&&(a.extend(a.fn,{ckeditorGet:function(){var a=this.eq(0).data("ckeditorInstance");if(!a)throw"CKEditor is not initialized yet, use ckeditor() with a callback.";return a},ckeditor:function(g,d){if(!CKEDITOR.env.isCompatible)throw Error("The environment is incompatible.");if(!a.isFunction(g))var k=d,d=g,g=k;var i=[],d=d||{};this.each(function(){var b=
@@ -1,14 +1,25 @@
1
- 
2
- /**
3
- * @license Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved.
4
- * For licensing, see LICENSE.html or http://ckeditor.com/license
1
+ /**
2
+ * @license Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
3
+ * For licensing, see LICENSE.md or http://ckeditor.com/license
5
4
  */
6
5
 
7
6
  /**
8
7
  * This file was added automatically by CKEditor builder.
9
- * You may re-use it at any time at http://ckeditor.com/builder to build CKEditor again.
10
- *
11
- * NOTE:
8
+ * You may re-use it at any time to build CKEditor again.
9
+ *
10
+ * If you would like to build CKEditor online again
11
+ * (for example to upgrade), visit one the following links:
12
+ *
13
+ * (1) http://ckeditor.com/builder
14
+ * Visit online builder to build CKEditor from scratch.
15
+ *
16
+ * (2) http://ckeditor.com/builder/0a65b3bcdcd34789da36844fa1d0eb27
17
+ * Visit online builder to build CKEditor, starting with the same setup as before.
18
+ *
19
+ * (3) http://ckeditor.com/builder/download/0a65b3bcdcd34789da36844fa1d0eb27
20
+ * Straight download link to the latest version of CKEditor (Optimized) with the same setup as before.
21
+ *
22
+ * NOTE:
12
23
  * This file is not used by CKEditor, you may remove it.
13
24
  * Changing this file will not change your CKEditor configuration.
14
25
  */
@@ -24,20 +35,17 @@ var CKBUILDER_CONFIG = {
24
35
  '.mailmap'
25
36
  ],
26
37
  plugins : {
27
- 'about' : 1,
28
38
  'a11yhelp' : 1,
29
- 'dialogadvtab' : 1,
39
+ 'about' : 1,
30
40
  'basicstyles' : 1,
31
41
  'bidi' : 1,
32
42
  'blockquote' : 1,
33
43
  'clipboard' : 1,
34
44
  'colorbutton' : 1,
35
45
  'colordialog' : 1,
36
- 'templates' : 1,
37
46
  'contextmenu' : 1,
47
+ 'dialogadvtab' : 1,
38
48
  'div' : 1,
39
- 'resize' : 1,
40
- 'toolbar' : 1,
41
49
  'elementspath' : 1,
42
50
  'enterkey' : 1,
43
51
  'entities' : 1,
@@ -46,16 +54,14 @@ var CKBUILDER_CONFIG = {
46
54
  'flash' : 1,
47
55
  'floatingspace' : 1,
48
56
  'font' : 1,
49
- 'forms' : 1,
50
57
  'format' : 1,
58
+ 'forms' : 1,
51
59
  'horizontalrule' : 1,
52
60
  'htmlwriter' : 1,
53
61
  'iframe' : 1,
54
- 'wysiwygarea' : 1,
55
62
  'image' : 1,
56
63
  'indentblock' : 1,
57
64
  'indentlist' : 1,
58
- 'smiley' : 1,
59
65
  'justify' : 1,
60
66
  'language' : 1,
61
67
  'link' : 1,
@@ -65,103 +71,95 @@ var CKBUILDER_CONFIG = {
65
71
  'maximize' : 1,
66
72
  'newpage' : 1,
67
73
  'pagebreak' : 1,
68
- 'pastetext' : 1,
69
74
  'pastefromword' : 1,
75
+ 'pastetext' : 1,
70
76
  'preview' : 1,
71
77
  'print' : 1,
72
78
  'removeformat' : 1,
79
+ 'resize' : 1,
73
80
  'save' : 1,
81
+ 'scayt' : 1,
74
82
  'selectall' : 1,
75
83
  'showblocks' : 1,
76
84
  'showborders' : 1,
85
+ 'smiley' : 1,
77
86
  'sourcearea' : 1,
78
87
  'specialchar' : 1,
79
- 'scayt' : 1,
80
88
  'stylescombo' : 1,
81
89
  'tab' : 1,
82
90
  'table' : 1,
83
91
  'tabletools' : 1,
92
+ 'templates' : 1,
93
+ 'toolbar' : 1,
84
94
  'undo' : 1,
85
95
  'wsc' : 1,
86
- 'dialog' : 1,
87
- 'dialogui' : 1,
88
- 'panelbutton' : 1,
89
- 'button' : 1,
90
- 'floatpanel' : 1,
91
- 'panel' : 1,
92
- 'menu' : 1,
93
- 'popup' : 1,
94
- 'fakeobjects' : 1,
95
- 'richcombo' : 1,
96
- 'listblock' : 1,
97
- 'indent' : 1,
98
- 'menubutton' : 1
96
+ 'wysiwygarea' : 1
99
97
  },
100
98
  languages : {
101
99
  'af' : 1,
102
- 'sq' : 1,
103
100
  'ar' : 1,
104
- 'eu' : 1,
101
+ 'bg' : 1,
105
102
  'bn' : 1,
106
103
  'bs' : 1,
107
- 'bg' : 1,
108
104
  'ca' : 1,
109
- 'zh-cn' : 1,
110
- 'zh' : 1,
111
- 'hr' : 1,
112
105
  'cs' : 1,
106
+ 'cy' : 1,
113
107
  'da' : 1,
114
- 'nl' : 1,
108
+ 'de' : 1,
109
+ 'el' : 1,
115
110
  'en' : 1,
116
111
  'en-au' : 1,
117
112
  'en-ca' : 1,
118
113
  'en-gb' : 1,
119
114
  'eo' : 1,
115
+ 'es' : 1,
120
116
  'et' : 1,
121
- 'fo' : 1,
117
+ 'eu' : 1,
118
+ 'fa' : 1,
122
119
  'fi' : 1,
120
+ 'fo' : 1,
123
121
  'fr' : 1,
124
122
  'fr-ca' : 1,
125
123
  'gl' : 1,
126
- 'ka' : 1,
127
- 'de' : 1,
128
- 'el' : 1,
129
124
  'gu' : 1,
130
125
  'he' : 1,
131
126
  'hi' : 1,
127
+ 'hr' : 1,
132
128
  'hu' : 1,
133
- 'is' : 1,
134
129
  'id' : 1,
130
+ 'is' : 1,
135
131
  'it' : 1,
136
132
  'ja' : 1,
133
+ 'ka' : 1,
137
134
  'km' : 1,
138
135
  'ko' : 1,
139
136
  'ku' : 1,
140
- 'lv' : 1,
141
137
  'lt' : 1,
138
+ 'lv' : 1,
142
139
  'mk' : 1,
143
- 'ms' : 1,
144
140
  'mn' : 1,
145
- 'no' : 1,
141
+ 'ms' : 1,
146
142
  'nb' : 1,
147
- 'fa' : 1,
143
+ 'nl' : 1,
144
+ 'no' : 1,
148
145
  'pl' : 1,
149
- 'pt-br' : 1,
150
146
  'pt' : 1,
147
+ 'pt-br' : 1,
151
148
  'ro' : 1,
152
149
  'ru' : 1,
153
- 'sr' : 1,
154
- 'sr-latn' : 1,
155
150
  'si' : 1,
156
151
  'sk' : 1,
157
152
  'sl' : 1,
158
- 'es' : 1,
153
+ 'sq' : 1,
154
+ 'sr' : 1,
155
+ 'sr-latn' : 1,
159
156
  'sv' : 1,
160
157
  'th' : 1,
161
158
  'tr' : 1,
162
159
  'ug' : 1,
163
160
  'uk' : 1,
164
161
  'vi' : 1,
165
- 'cy' : 1
162
+ 'zh' : 1,
163
+ 'zh-cn' : 1
166
164
  }
167
165
  };