ckeditor_rails 3.6.4.1 → 4.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (397) hide show
  1. data/CONTRIBUTORS +7 -0
  2. data/README.md +2 -2
  3. data/Rakefile +1 -2
  4. data/{vendor → lib}/assets/javascripts/ckeditor-jquery.js +1 -1
  5. data/{vendor → lib}/assets/javascripts/ckeditor/basepath.js.erb +0 -0
  6. data/{vendor/assets/javascripts/ckeditor/adapters → lib/assets/javascripts/ckeditor}/jquery.js +0 -0
  7. data/lib/ckeditor-rails/source_file.rb +56 -97
  8. data/lib/ckeditor-rails/version.rb +2 -2
  9. data/lib/ckeditor_rails.rb +1 -0
  10. data/vendor/assets/images/ckeditor/{images → plugins/fakeobjects/images}/spacer.gif +0 -0
  11. data/vendor/assets/images/ckeditor/{skins/kama → plugins/image}/images/noimage.png +0 -0
  12. data/vendor/assets/images/ckeditor/plugins/link/images/anchor.png +0 -0
  13. data/vendor/assets/images/ckeditor/plugins/magicline/images/icon.png +0 -0
  14. data/vendor/assets/images/ckeditor/plugins/smiley/images/embarrassed_smile.gif +0 -0
  15. data/vendor/assets/images/ckeditor/plugins/smiley/images/tongue_smile.gif +0 -0
  16. data/vendor/assets/{javascripts → images}/ckeditor/plugins/templates/templates/images/template1.gif +0 -0
  17. data/vendor/assets/{javascripts → images}/ckeditor/plugins/templates/templates/images/template2.gif +0 -0
  18. data/vendor/assets/{javascripts → images}/ckeditor/plugins/templates/templates/images/template3.gif +0 -0
  19. data/vendor/assets/images/ckeditor/skins/moono/icons.png +0 -0
  20. data/vendor/assets/images/ckeditor/skins/moono/images/arrow.png +0 -0
  21. data/vendor/assets/images/ckeditor/skins/moono/images/close.png +0 -0
  22. data/vendor/assets/images/ckeditor/skins/moono/images/mini.png +0 -0
  23. data/vendor/assets/javascripts/ckeditor/{LICENSE.html → LICENSE.md} +26 -89
  24. data/vendor/assets/javascripts/ckeditor/build-config.js +158 -0
  25. data/vendor/assets/javascripts/ckeditor/ckeditor.js +847 -152
  26. data/vendor/assets/javascripts/ckeditor/config.js +10 -11
  27. data/vendor/assets/javascripts/ckeditor/lang/af.js +2 -3
  28. data/vendor/assets/javascripts/ckeditor/lang/ar.js +2 -3
  29. data/vendor/assets/javascripts/ckeditor/lang/bg.js +2 -3
  30. data/vendor/assets/javascripts/ckeditor/lang/bn.js +2 -3
  31. data/vendor/assets/javascripts/ckeditor/lang/bs.js +2 -3
  32. data/vendor/assets/javascripts/ckeditor/lang/ca.js +2 -3
  33. data/vendor/assets/javascripts/ckeditor/lang/cs.js +2 -3
  34. data/vendor/assets/javascripts/ckeditor/lang/cy.js +2 -3
  35. data/vendor/assets/javascripts/ckeditor/lang/da.js +2 -3
  36. data/vendor/assets/javascripts/ckeditor/lang/de.js +2 -3
  37. data/vendor/assets/javascripts/ckeditor/lang/el.js +2 -3
  38. data/vendor/assets/javascripts/ckeditor/lang/en-au.js +2 -3
  39. data/vendor/assets/javascripts/ckeditor/lang/en-ca.js +2 -3
  40. data/vendor/assets/javascripts/ckeditor/lang/en-gb.js +2 -3
  41. data/vendor/assets/javascripts/ckeditor/lang/en.js +2 -3
  42. data/vendor/assets/javascripts/ckeditor/lang/eo.js +2 -3
  43. data/vendor/assets/javascripts/ckeditor/lang/es.js +2 -3
  44. data/vendor/assets/javascripts/ckeditor/lang/et.js +2 -3
  45. data/vendor/assets/javascripts/ckeditor/lang/eu.js +2 -3
  46. data/vendor/assets/javascripts/ckeditor/lang/fa.js +2 -3
  47. data/vendor/assets/javascripts/ckeditor/lang/fi.js +2 -3
  48. data/vendor/assets/javascripts/ckeditor/lang/fo.js +2 -3
  49. data/vendor/assets/javascripts/ckeditor/lang/fr-ca.js +2 -3
  50. data/vendor/assets/javascripts/ckeditor/lang/fr.js +2 -3
  51. data/vendor/assets/javascripts/ckeditor/lang/gl.js +2 -3
  52. data/vendor/assets/javascripts/ckeditor/lang/gu.js +2 -3
  53. data/vendor/assets/javascripts/ckeditor/lang/he.js +2 -3
  54. data/vendor/assets/javascripts/ckeditor/lang/hi.js +2 -3
  55. data/vendor/assets/javascripts/ckeditor/lang/hr.js +2 -3
  56. data/vendor/assets/javascripts/ckeditor/lang/hu.js +2 -3
  57. data/vendor/assets/javascripts/ckeditor/lang/is.js +2 -3
  58. data/vendor/assets/javascripts/ckeditor/lang/it.js +2 -3
  59. data/vendor/assets/javascripts/ckeditor/lang/ja.js +2 -3
  60. data/vendor/assets/javascripts/ckeditor/lang/ka.js +2 -3
  61. data/vendor/assets/javascripts/ckeditor/lang/km.js +2 -3
  62. data/vendor/assets/javascripts/ckeditor/lang/ko.js +2 -3
  63. data/vendor/assets/javascripts/ckeditor/lang/ku.js +5 -0
  64. data/vendor/assets/javascripts/ckeditor/lang/lt.js +2 -3
  65. data/vendor/assets/javascripts/ckeditor/lang/lv.js +2 -3
  66. data/vendor/assets/javascripts/ckeditor/lang/mk.js +2 -3
  67. data/vendor/assets/javascripts/ckeditor/lang/mn.js +2 -3
  68. data/vendor/assets/javascripts/ckeditor/lang/ms.js +2 -3
  69. data/vendor/assets/javascripts/ckeditor/lang/nb.js +2 -3
  70. data/vendor/assets/javascripts/ckeditor/lang/nl.js +2 -3
  71. data/vendor/assets/javascripts/ckeditor/lang/no.js +2 -3
  72. data/vendor/assets/javascripts/ckeditor/lang/pl.js +2 -3
  73. data/vendor/assets/javascripts/ckeditor/lang/pt-br.js +2 -3
  74. data/vendor/assets/javascripts/ckeditor/lang/pt.js +2 -3
  75. data/vendor/assets/javascripts/ckeditor/lang/ro.js +2 -3
  76. data/vendor/assets/javascripts/ckeditor/lang/ru.js +2 -3
  77. data/vendor/assets/javascripts/ckeditor/lang/sk.js +2 -3
  78. data/vendor/assets/javascripts/ckeditor/lang/sl.js +2 -3
  79. data/vendor/assets/javascripts/ckeditor/lang/sr-latn.js +2 -3
  80. data/vendor/assets/javascripts/ckeditor/lang/sr.js +2 -3
  81. data/vendor/assets/javascripts/ckeditor/lang/sv.js +2 -3
  82. data/vendor/assets/javascripts/ckeditor/lang/th.js +2 -3
  83. data/vendor/assets/javascripts/ckeditor/lang/tr.js +2 -3
  84. data/vendor/assets/javascripts/ckeditor/lang/ug.js +2 -3
  85. data/vendor/assets/javascripts/ckeditor/lang/uk.js +2 -3
  86. data/vendor/assets/javascripts/ckeditor/lang/vi.js +2 -3
  87. data/vendor/assets/javascripts/ckeditor/lang/zh-cn.js +2 -3
  88. data/vendor/assets/javascripts/ckeditor/lang/zh.js +2 -3
  89. data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/a11yhelp.js +10 -7
  90. data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/ar.js +8 -0
  91. data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/bg.js +8 -0
  92. data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/ca.js +8 -0
  93. data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/cs.js +9 -0
  94. data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/cy.js +8 -0
  95. data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/da.js +8 -0
  96. data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/de.js +9 -0
  97. data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/el.js +9 -0
  98. data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/en.js +8 -0
  99. data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/eo.js +9 -0
  100. data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/et.js +8 -0
  101. data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/fa.js +8 -0
  102. data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/fi.js +9 -0
  103. data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/fr.js +9 -0
  104. data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/gu.js +8 -0
  105. data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/he.js +8 -0
  106. data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/hi.js +8 -0
  107. data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/hr.js +8 -0
  108. data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/hu.js +8 -0
  109. data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/it.js +9 -0
  110. data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/ku.js +9 -0
  111. data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/lt.js +8 -0
  112. data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/lv.js +9 -0
  113. data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/mk.js +8 -0
  114. data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/mn.js +8 -0
  115. data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/nb.js +8 -0
  116. data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/nl.js +9 -0
  117. data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/no.js +8 -0
  118. data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/pl.js +8 -0
  119. data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/pt-br.js +8 -0
  120. data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/pt.js +8 -0
  121. data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/ro.js +8 -0
  122. data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/ru.js +8 -0
  123. data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/sk.js +9 -0
  124. data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/sl.js +8 -0
  125. data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/tr.js +9 -0
  126. data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/ug.js +8 -0
  127. data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/uk.js +8 -0
  128. data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/vi.js +8 -0
  129. data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/zh-cn.js +7 -0
  130. data/vendor/assets/javascripts/ckeditor/plugins/about/dialogs/about.js +6 -6
  131. data/vendor/assets/javascripts/ckeditor/plugins/clipboard/dialogs/paste.js +11 -7
  132. data/vendor/assets/javascripts/ckeditor/plugins/colordialog/dialogs/colordialog.js +13 -7
  133. data/vendor/assets/javascripts/ckeditor/plugins/dialog/dialogDefinition.js +4 -4
  134. data/vendor/assets/javascripts/ckeditor/plugins/div/dialogs/div.js +9 -8
  135. data/vendor/assets/javascripts/ckeditor/plugins/find/dialogs/find.js +24 -10
  136. data/vendor/assets/javascripts/ckeditor/plugins/flash/dialogs/flash.js +23 -9
  137. data/vendor/assets/javascripts/ckeditor/plugins/forms/dialogs/button.js +8 -6
  138. data/vendor/assets/javascripts/ckeditor/plugins/forms/dialogs/checkbox.js +8 -6
  139. data/vendor/assets/javascripts/ckeditor/plugins/forms/dialogs/form.js +8 -6
  140. data/vendor/assets/javascripts/ckeditor/plugins/forms/dialogs/hiddenfield.js +8 -6
  141. data/vendor/assets/javascripts/ckeditor/plugins/forms/dialogs/radio.js +8 -6
  142. data/vendor/assets/javascripts/ckeditor/plugins/forms/dialogs/select.js +20 -9
  143. data/vendor/assets/javascripts/ckeditor/plugins/forms/dialogs/textarea.js +8 -6
  144. data/vendor/assets/javascripts/ckeditor/plugins/forms/dialogs/textfield.js +10 -6
  145. data/vendor/assets/javascripts/ckeditor/plugins/iframe/dialogs/iframe.js +10 -7
  146. data/vendor/assets/javascripts/ckeditor/plugins/image/dialogs/image.js +41 -13
  147. data/vendor/assets/javascripts/ckeditor/plugins/link/dialogs/anchor.js +8 -6
  148. data/vendor/assets/javascripts/ckeditor/plugins/link/dialogs/link.js +36 -12
  149. data/vendor/assets/javascripts/ckeditor/plugins/liststyle/dialogs/liststyle.js +10 -7
  150. data/vendor/assets/javascripts/ckeditor/plugins/pastefromword/filter/default.js +30 -11
  151. data/vendor/assets/javascripts/ckeditor/plugins/smiley/dialogs/smiley.js +10 -7
  152. data/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/ca.js +13 -0
  153. data/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/cs.js +13 -0
  154. data/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/cy.js +14 -0
  155. data/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/de.js +13 -0
  156. data/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/el.js +13 -0
  157. data/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/en.js +13 -0
  158. data/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/eo.js +12 -0
  159. data/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/et.js +13 -0
  160. data/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/fa.js +13 -0
  161. data/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/fi.js +13 -0
  162. data/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/fr.js +11 -0
  163. data/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/he.js +13 -0
  164. data/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/hr.js +13 -0
  165. data/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/it.js +14 -0
  166. data/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/ku.js +14 -0
  167. data/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/lv.js +13 -0
  168. data/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/nb.js +11 -0
  169. data/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/nl.js +13 -0
  170. data/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/no.js +11 -0
  171. data/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/pt-br.js +11 -0
  172. data/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/sk.js +13 -0
  173. data/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/tr.js +12 -0
  174. data/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/ug.js +13 -0
  175. data/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/zh-cn.js +9 -0
  176. data/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/specialchar.js +14 -7
  177. data/vendor/assets/javascripts/ckeditor/plugins/table/dialogs/table.js +20 -9
  178. data/vendor/assets/javascripts/ckeditor/plugins/tabletools/dialogs/tableCell.js +16 -8
  179. data/vendor/assets/javascripts/ckeditor/plugins/templates/dialogs/templates.js +10 -7
  180. data/vendor/assets/javascripts/ckeditor/plugins/templates/templates/default.js +6 -6
  181. data/vendor/assets/javascripts/ckeditor/styles.js +112 -0
  182. data/vendor/assets/stylesheets/ckeditor/contents.css +72 -4
  183. data/vendor/assets/stylesheets/ckeditor/plugins/templates/dialogs/templates.css +84 -0
  184. data/vendor/assets/stylesheets/ckeditor/skins/moono/dialog.css +5 -0
  185. data/vendor/assets/stylesheets/ckeditor/skins/moono/dialog_ie.css +5 -0
  186. data/vendor/assets/stylesheets/ckeditor/skins/moono/dialog_ie7.css +5 -0
  187. data/vendor/assets/stylesheets/ckeditor/skins/moono/dialog_ie8.css +5 -0
  188. data/vendor/assets/stylesheets/ckeditor/skins/moono/dialog_opera.css +5 -0
  189. data/vendor/assets/stylesheets/ckeditor/skins/moono/editor.css +5 -0
  190. data/vendor/assets/stylesheets/ckeditor/skins/moono/editor_gecko.css +5 -0
  191. data/vendor/assets/stylesheets/ckeditor/skins/moono/editor_ie.css +5 -0
  192. data/vendor/assets/stylesheets/ckeditor/skins/moono/editor_ie7.css +5 -0
  193. data/vendor/assets/stylesheets/ckeditor/skins/moono/editor_ie8.css +5 -0
  194. metadata +99 -220
  195. data/vendor/assets/images/ckeditor/plugins/link/images/anchor.gif +0 -0
  196. data/vendor/assets/images/ckeditor/skins/kama/icons.png +0 -0
  197. data/vendor/assets/images/ckeditor/skins/kama/icons_rtl.png +0 -0
  198. data/vendor/assets/images/ckeditor/skins/kama/images/dialog_sides.gif +0 -0
  199. data/vendor/assets/images/ckeditor/skins/kama/images/dialog_sides.png +0 -0
  200. data/vendor/assets/images/ckeditor/skins/kama/images/dialog_sides_rtl.png +0 -0
  201. data/vendor/assets/images/ckeditor/skins/kama/images/mini.gif +0 -0
  202. data/vendor/assets/images/ckeditor/skins/kama/images/sprites.png +0 -0
  203. data/vendor/assets/images/ckeditor/skins/kama/images/sprites_ie6.png +0 -0
  204. data/vendor/assets/images/ckeditor/skins/kama/images/toolbar_start.gif +0 -0
  205. data/vendor/assets/images/ckeditor/skins/office2003/icons.png +0 -0
  206. data/vendor/assets/images/ckeditor/skins/office2003/icons_rtl.png +0 -0
  207. data/vendor/assets/images/ckeditor/skins/office2003/images/dialog_sides.gif +0 -0
  208. data/vendor/assets/images/ckeditor/skins/office2003/images/dialog_sides.png +0 -0
  209. data/vendor/assets/images/ckeditor/skins/office2003/images/dialog_sides_rtl.png +0 -0
  210. data/vendor/assets/images/ckeditor/skins/office2003/images/mini.gif +0 -0
  211. data/vendor/assets/images/ckeditor/skins/office2003/images/noimage.png +0 -0
  212. data/vendor/assets/images/ckeditor/skins/office2003/images/sprites.png +0 -0
  213. data/vendor/assets/images/ckeditor/skins/office2003/images/sprites_ie6.png +0 -0
  214. data/vendor/assets/images/ckeditor/skins/v2/icons.png +0 -0
  215. data/vendor/assets/images/ckeditor/skins/v2/icons_rtl.png +0 -0
  216. data/vendor/assets/images/ckeditor/skins/v2/images/dialog_sides.gif +0 -0
  217. data/vendor/assets/images/ckeditor/skins/v2/images/dialog_sides.png +0 -0
  218. data/vendor/assets/images/ckeditor/skins/v2/images/dialog_sides_rtl.png +0 -0
  219. data/vendor/assets/images/ckeditor/skins/v2/images/mini.gif +0 -0
  220. data/vendor/assets/images/ckeditor/skins/v2/images/noimage.png +0 -0
  221. data/vendor/assets/images/ckeditor/skins/v2/images/sprites.png +0 -0
  222. data/vendor/assets/images/ckeditor/skins/v2/images/sprites_ie6.png +0 -0
  223. data/vendor/assets/images/ckeditor/skins/v2/images/toolbar_start.gif +0 -0
  224. data/vendor/assets/javascripts/ckeditor/ckeditor_basic.js +0 -8
  225. data/vendor/assets/javascripts/ckeditor/lang/_languages.js +0 -6
  226. data/vendor/assets/javascripts/ckeditor/lang/_translationstatus.txt +0 -64
  227. data/vendor/assets/javascripts/ckeditor/lang/id.js +0 -6
  228. data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/lang/_translationstatus.txt +0 -25
  229. data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/lang/cs.js +0 -6
  230. data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/lang/cy.js +0 -6
  231. data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/lang/da.js +0 -6
  232. data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/lang/de.js +0 -6
  233. data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/lang/el.js +0 -6
  234. data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/lang/en.js +0 -6
  235. data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/lang/eo.js +0 -6
  236. data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/lang/fa.js +0 -6
  237. data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/lang/fi.js +0 -6
  238. data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/lang/fr.js +0 -6
  239. data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/lang/gu.js +0 -6
  240. data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/lang/he.js +0 -6
  241. data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/lang/it.js +0 -6
  242. data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/lang/mk.js +0 -6
  243. data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/lang/nb.js +0 -6
  244. data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/lang/nl.js +0 -6
  245. data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/lang/no.js +0 -6
  246. data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/lang/pt-br.js +0 -6
  247. data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/lang/ro.js +0 -6
  248. data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/lang/tr.js +0 -6
  249. data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/lang/ug.js +0 -6
  250. data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/lang/vi.js +0 -6
  251. data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/lang/zh-cn.js +0 -6
  252. data/vendor/assets/javascripts/ckeditor/plugins/adobeair/plugin.js +0 -6
  253. data/vendor/assets/javascripts/ckeditor/plugins/ajax/plugin.js +0 -6
  254. data/vendor/assets/javascripts/ckeditor/plugins/autogrow/plugin.js +0 -6
  255. data/vendor/assets/javascripts/ckeditor/plugins/bbcode/plugin.js +0 -9
  256. data/vendor/assets/javascripts/ckeditor/plugins/devtools/lang/_translationstatus.txt +0 -28
  257. data/vendor/assets/javascripts/ckeditor/plugins/devtools/lang/bg.js +0 -6
  258. data/vendor/assets/javascripts/ckeditor/plugins/devtools/lang/cs.js +0 -6
  259. data/vendor/assets/javascripts/ckeditor/plugins/devtools/lang/cy.js +0 -6
  260. data/vendor/assets/javascripts/ckeditor/plugins/devtools/lang/da.js +0 -6
  261. data/vendor/assets/javascripts/ckeditor/plugins/devtools/lang/de.js +0 -6
  262. data/vendor/assets/javascripts/ckeditor/plugins/devtools/lang/el.js +0 -6
  263. data/vendor/assets/javascripts/ckeditor/plugins/devtools/lang/en.js +0 -6
  264. data/vendor/assets/javascripts/ckeditor/plugins/devtools/lang/eo.js +0 -6
  265. data/vendor/assets/javascripts/ckeditor/plugins/devtools/lang/et.js +0 -6
  266. data/vendor/assets/javascripts/ckeditor/plugins/devtools/lang/fa.js +0 -6
  267. data/vendor/assets/javascripts/ckeditor/plugins/devtools/lang/fi.js +0 -6
  268. data/vendor/assets/javascripts/ckeditor/plugins/devtools/lang/fr.js +0 -6
  269. data/vendor/assets/javascripts/ckeditor/plugins/devtools/lang/gu.js +0 -6
  270. data/vendor/assets/javascripts/ckeditor/plugins/devtools/lang/he.js +0 -6
  271. data/vendor/assets/javascripts/ckeditor/plugins/devtools/lang/hr.js +0 -6
  272. data/vendor/assets/javascripts/ckeditor/plugins/devtools/lang/it.js +0 -6
  273. data/vendor/assets/javascripts/ckeditor/plugins/devtools/lang/nb.js +0 -6
  274. data/vendor/assets/javascripts/ckeditor/plugins/devtools/lang/nl.js +0 -6
  275. data/vendor/assets/javascripts/ckeditor/plugins/devtools/lang/no.js +0 -6
  276. data/vendor/assets/javascripts/ckeditor/plugins/devtools/lang/pl.js +0 -6
  277. data/vendor/assets/javascripts/ckeditor/plugins/devtools/lang/pt-br.js +0 -6
  278. data/vendor/assets/javascripts/ckeditor/plugins/devtools/lang/tr.js +0 -6
  279. data/vendor/assets/javascripts/ckeditor/plugins/devtools/lang/ug.js +0 -6
  280. data/vendor/assets/javascripts/ckeditor/plugins/devtools/lang/uk.js +0 -6
  281. data/vendor/assets/javascripts/ckeditor/plugins/devtools/lang/vi.js +0 -6
  282. data/vendor/assets/javascripts/ckeditor/plugins/devtools/lang/zh-cn.js +0 -6
  283. data/vendor/assets/javascripts/ckeditor/plugins/devtools/plugin.js +0 -6
  284. data/vendor/assets/javascripts/ckeditor/plugins/docprops/dialogs/docprops.js +0 -10
  285. data/vendor/assets/javascripts/ckeditor/plugins/docprops/plugin.js +0 -6
  286. data/vendor/assets/javascripts/ckeditor/plugins/iframedialog/plugin.js +0 -6
  287. data/vendor/assets/javascripts/ckeditor/plugins/pastetext/dialogs/pastetext.js +0 -6
  288. data/vendor/assets/javascripts/ckeditor/plugins/placeholder/dialogs/placeholder.js +0 -6
  289. data/vendor/assets/javascripts/ckeditor/plugins/placeholder/lang/_translationstatus.txt +0 -27
  290. data/vendor/assets/javascripts/ckeditor/plugins/placeholder/lang/bg.js +0 -6
  291. data/vendor/assets/javascripts/ckeditor/plugins/placeholder/lang/cs.js +0 -6
  292. data/vendor/assets/javascripts/ckeditor/plugins/placeholder/lang/cy.js +0 -6
  293. data/vendor/assets/javascripts/ckeditor/plugins/placeholder/lang/da.js +0 -6
  294. data/vendor/assets/javascripts/ckeditor/plugins/placeholder/lang/de.js +0 -6
  295. data/vendor/assets/javascripts/ckeditor/plugins/placeholder/lang/el.js +0 -6
  296. data/vendor/assets/javascripts/ckeditor/plugins/placeholder/lang/en.js +0 -6
  297. data/vendor/assets/javascripts/ckeditor/plugins/placeholder/lang/eo.js +0 -6
  298. data/vendor/assets/javascripts/ckeditor/plugins/placeholder/lang/et.js +0 -6
  299. data/vendor/assets/javascripts/ckeditor/plugins/placeholder/lang/fa.js +0 -6
  300. data/vendor/assets/javascripts/ckeditor/plugins/placeholder/lang/fi.js +0 -6
  301. data/vendor/assets/javascripts/ckeditor/plugins/placeholder/lang/fr.js +0 -6
  302. data/vendor/assets/javascripts/ckeditor/plugins/placeholder/lang/he.js +0 -6
  303. data/vendor/assets/javascripts/ckeditor/plugins/placeholder/lang/hr.js +0 -6
  304. data/vendor/assets/javascripts/ckeditor/plugins/placeholder/lang/it.js +0 -6
  305. data/vendor/assets/javascripts/ckeditor/plugins/placeholder/lang/nb.js +0 -6
  306. data/vendor/assets/javascripts/ckeditor/plugins/placeholder/lang/nl.js +0 -6
  307. data/vendor/assets/javascripts/ckeditor/plugins/placeholder/lang/no.js +0 -6
  308. data/vendor/assets/javascripts/ckeditor/plugins/placeholder/lang/pl.js +0 -6
  309. data/vendor/assets/javascripts/ckeditor/plugins/placeholder/lang/pt-br.js +0 -6
  310. data/vendor/assets/javascripts/ckeditor/plugins/placeholder/lang/tr.js +0 -6
  311. data/vendor/assets/javascripts/ckeditor/plugins/placeholder/lang/ug.js +0 -6
  312. data/vendor/assets/javascripts/ckeditor/plugins/placeholder/lang/uk.js +0 -6
  313. data/vendor/assets/javascripts/ckeditor/plugins/placeholder/lang/vi.js +0 -6
  314. data/vendor/assets/javascripts/ckeditor/plugins/placeholder/lang/zh-cn.js +0 -6
  315. data/vendor/assets/javascripts/ckeditor/plugins/placeholder/placeholder.gif +0 -0
  316. data/vendor/assets/javascripts/ckeditor/plugins/placeholder/plugin.js +0 -6
  317. data/vendor/assets/javascripts/ckeditor/plugins/preview/preview.html +0 -10
  318. data/vendor/assets/javascripts/ckeditor/plugins/scayt/dialogs/options.js +0 -8
  319. data/vendor/assets/javascripts/ckeditor/plugins/scayt/dialogs/toolbar.css +0 -6
  320. data/vendor/assets/javascripts/ckeditor/plugins/specialchar/lang/_translationstatus.txt +0 -22
  321. data/vendor/assets/javascripts/ckeditor/plugins/specialchar/lang/cs.js +0 -6
  322. data/vendor/assets/javascripts/ckeditor/plugins/specialchar/lang/cy.js +0 -6
  323. data/vendor/assets/javascripts/ckeditor/plugins/specialchar/lang/de.js +0 -6
  324. data/vendor/assets/javascripts/ckeditor/plugins/specialchar/lang/el.js +0 -6
  325. data/vendor/assets/javascripts/ckeditor/plugins/specialchar/lang/en.js +0 -6
  326. data/vendor/assets/javascripts/ckeditor/plugins/specialchar/lang/eo.js +0 -6
  327. data/vendor/assets/javascripts/ckeditor/plugins/specialchar/lang/et.js +0 -6
  328. data/vendor/assets/javascripts/ckeditor/plugins/specialchar/lang/fa.js +0 -6
  329. data/vendor/assets/javascripts/ckeditor/plugins/specialchar/lang/fi.js +0 -6
  330. data/vendor/assets/javascripts/ckeditor/plugins/specialchar/lang/fr.js +0 -6
  331. data/vendor/assets/javascripts/ckeditor/plugins/specialchar/lang/he.js +0 -6
  332. data/vendor/assets/javascripts/ckeditor/plugins/specialchar/lang/hr.js +0 -6
  333. data/vendor/assets/javascripts/ckeditor/plugins/specialchar/lang/it.js +0 -6
  334. data/vendor/assets/javascripts/ckeditor/plugins/specialchar/lang/nb.js +0 -6
  335. data/vendor/assets/javascripts/ckeditor/plugins/specialchar/lang/nl.js +0 -6
  336. data/vendor/assets/javascripts/ckeditor/plugins/specialchar/lang/no.js +0 -6
  337. data/vendor/assets/javascripts/ckeditor/plugins/specialchar/lang/pt-br.js +0 -6
  338. data/vendor/assets/javascripts/ckeditor/plugins/specialchar/lang/tr.js +0 -6
  339. data/vendor/assets/javascripts/ckeditor/plugins/specialchar/lang/ug.js +0 -6
  340. data/vendor/assets/javascripts/ckeditor/plugins/specialchar/lang/zh-cn.js +0 -6
  341. data/vendor/assets/javascripts/ckeditor/plugins/styles/styles/default.js +0 -6
  342. data/vendor/assets/javascripts/ckeditor/plugins/stylesheetparser/plugin.js +0 -6
  343. data/vendor/assets/javascripts/ckeditor/plugins/tableresize/plugin.js +0 -7
  344. data/vendor/assets/javascripts/ckeditor/plugins/uicolor/dialogs/uicolor.js +0 -7
  345. data/vendor/assets/javascripts/ckeditor/plugins/uicolor/lang/_translationstatus.txt +0 -28
  346. data/vendor/assets/javascripts/ckeditor/plugins/uicolor/lang/bg.js +0 -6
  347. data/vendor/assets/javascripts/ckeditor/plugins/uicolor/lang/cs.js +0 -6
  348. data/vendor/assets/javascripts/ckeditor/plugins/uicolor/lang/cy.js +0 -6
  349. data/vendor/assets/javascripts/ckeditor/plugins/uicolor/lang/da.js +0 -6
  350. data/vendor/assets/javascripts/ckeditor/plugins/uicolor/lang/de.js +0 -6
  351. data/vendor/assets/javascripts/ckeditor/plugins/uicolor/lang/el.js +0 -6
  352. data/vendor/assets/javascripts/ckeditor/plugins/uicolor/lang/en.js +0 -6
  353. data/vendor/assets/javascripts/ckeditor/plugins/uicolor/lang/eo.js +0 -6
  354. data/vendor/assets/javascripts/ckeditor/plugins/uicolor/lang/et.js +0 -6
  355. data/vendor/assets/javascripts/ckeditor/plugins/uicolor/lang/fa.js +0 -6
  356. data/vendor/assets/javascripts/ckeditor/plugins/uicolor/lang/fi.js +0 -6
  357. data/vendor/assets/javascripts/ckeditor/plugins/uicolor/lang/fr.js +0 -6
  358. data/vendor/assets/javascripts/ckeditor/plugins/uicolor/lang/he.js +0 -6
  359. data/vendor/assets/javascripts/ckeditor/plugins/uicolor/lang/hr.js +0 -6
  360. data/vendor/assets/javascripts/ckeditor/plugins/uicolor/lang/it.js +0 -6
  361. data/vendor/assets/javascripts/ckeditor/plugins/uicolor/lang/mk.js +0 -6
  362. data/vendor/assets/javascripts/ckeditor/plugins/uicolor/lang/nb.js +0 -6
  363. data/vendor/assets/javascripts/ckeditor/plugins/uicolor/lang/nl.js +0 -6
  364. data/vendor/assets/javascripts/ckeditor/plugins/uicolor/lang/no.js +0 -6
  365. data/vendor/assets/javascripts/ckeditor/plugins/uicolor/lang/pl.js +0 -6
  366. data/vendor/assets/javascripts/ckeditor/plugins/uicolor/lang/pt-br.js +0 -6
  367. data/vendor/assets/javascripts/ckeditor/plugins/uicolor/lang/tr.js +0 -6
  368. data/vendor/assets/javascripts/ckeditor/plugins/uicolor/lang/ug.js +0 -6
  369. data/vendor/assets/javascripts/ckeditor/plugins/uicolor/lang/uk.js +0 -6
  370. data/vendor/assets/javascripts/ckeditor/plugins/uicolor/lang/vi.js +0 -6
  371. data/vendor/assets/javascripts/ckeditor/plugins/uicolor/lang/zh-cn.js +0 -6
  372. data/vendor/assets/javascripts/ckeditor/plugins/uicolor/plugin.js +0 -6
  373. data/vendor/assets/javascripts/ckeditor/plugins/uicolor/uicolor.gif +0 -0
  374. data/vendor/assets/javascripts/ckeditor/plugins/uicolor/yui/assets/hue_bg.png +0 -0
  375. data/vendor/assets/javascripts/ckeditor/plugins/uicolor/yui/assets/hue_thumb.png +0 -0
  376. data/vendor/assets/javascripts/ckeditor/plugins/uicolor/yui/assets/picker_mask.png +0 -0
  377. data/vendor/assets/javascripts/ckeditor/plugins/uicolor/yui/assets/picker_thumb.png +0 -0
  378. data/vendor/assets/javascripts/ckeditor/plugins/uicolor/yui/assets/yui.css +0 -6
  379. data/vendor/assets/javascripts/ckeditor/plugins/uicolor/yui/yui.js +0 -76
  380. data/vendor/assets/javascripts/ckeditor/plugins/wsc/dialogs/ciframe.html +0 -49
  381. data/vendor/assets/javascripts/ckeditor/plugins/wsc/dialogs/tmpFrameset.html +0 -52
  382. data/vendor/assets/javascripts/ckeditor/plugins/wsc/dialogs/wsc.css +0 -6
  383. data/vendor/assets/javascripts/ckeditor/plugins/wsc/dialogs/wsc.js +0 -7
  384. data/vendor/assets/javascripts/ckeditor/plugins/xml/plugin.js +0 -6
  385. data/vendor/assets/javascripts/ckeditor/skins/kama/skin.js +0 -7
  386. data/vendor/assets/javascripts/ckeditor/skins/office2003/skin.js +0 -6
  387. data/vendor/assets/javascripts/ckeditor/skins/v2/skin.js +0 -6
  388. data/vendor/assets/javascripts/ckeditor/themes/default/theme.js +0 -8
  389. data/vendor/assets/stylesheets/ckeditor/skins/kama/dialog.css +0 -10
  390. data/vendor/assets/stylesheets/ckeditor/skins/kama/editor.css +0 -13
  391. data/vendor/assets/stylesheets/ckeditor/skins/kama/templates.css +0 -6
  392. data/vendor/assets/stylesheets/ckeditor/skins/office2003/dialog.css +0 -10
  393. data/vendor/assets/stylesheets/ckeditor/skins/office2003/editor.css +0 -14
  394. data/vendor/assets/stylesheets/ckeditor/skins/office2003/templates.css +0 -6
  395. data/vendor/assets/stylesheets/ckeditor/skins/v2/dialog.css +0 -9
  396. data/vendor/assets/stylesheets/ckeditor/skins/v2/editor.css +0 -13
  397. data/vendor/assets/stylesheets/ckeditor/skins/v2/templates.css +0 -6
data/CONTRIBUTORS ADDED
@@ -0,0 +1,7 @@
1
+ Contributors
2
+ ============
3
+
4
+ list by commit order.
5
+
6
+ * Rafe Rosen
7
+ * Eric Anderson
data/README.md CHANGED
@@ -10,7 +10,7 @@ The `ckeditor_rails` gem integrates the `CKEditor` with the Rails asset pipeline
10
10
 
11
11
  Include `ckeditor_rails` in Gemefile
12
12
 
13
- gem 'ckeditor_rails', :require => 'ckeditor-rails'
13
+ gem 'ckeditor_rails'
14
14
 
15
15
  Then run `bundle install`
16
16
 
@@ -55,7 +55,7 @@ Maintain `ckeditor_rails` gem with `Rake` commands.
55
55
 
56
56
  Update origin CKEditor source files.
57
57
 
58
- rake update-ckeditor VERSION=3.6.4
58
+ rake update-ckeditor VERSION=4.0
59
59
 
60
60
  Publish gem.
61
61
 
data/Rakefile CHANGED
@@ -6,8 +6,7 @@ desc "Update CKEditor Library, VERSION is required."
6
6
  task "update-ckeditor" do
7
7
  files = SourceFile.new
8
8
  files.fetch ENV['VERSION']
9
+ files.destination_root = "vendor/assets"
9
10
  files.move
10
- files.fix_css
11
- files.fix_js
12
11
  files.cleanup
13
12
  end
@@ -1,3 +1,3 @@
1
1
  //= require ckeditor/basepath
2
2
  //= require ckeditor/ckeditor
3
- //= require ckeditor/adapters/jquery
3
+ //= require ckeditor/jquery
@@ -5,18 +5,17 @@ class SourceFile < Thor
5
5
  source_root 'tmp'
6
6
 
7
7
  desc "fetch VERSION", "fetch source files from http://ckeditor.com/"
8
- def fetch(version)
9
- download_url = file_url(version)
10
- extract_path = self.class.source_root
11
- archive_file = "#{extract_path}/#{filename(version)}"
8
+ def fetch version
9
+ download_url = file_url version
10
+ archive_file = "#{source_root}/#{filename(version)}"
12
11
 
13
12
  in_root do
14
- say_status(" fetch", archive_file, :green)
15
- get(download_url, archive_file)
16
- if File.exist?(archive_file)
17
- FileUtils.mkdir_p(extract_path)
18
- extract(archive_file, extract_path)
19
- FileUtils.rm_rf(archive_file)
13
+ say_status " fetch", archive_file, :green
14
+ get download_url, archive_file
15
+ if File.exist? archive_file
16
+ FileUtils.mkdir_p source_root
17
+ extract archive_file, source_root
18
+ FileUtils.rm_rf archive_file
20
19
  end
21
20
  end
22
21
 
@@ -24,117 +23,77 @@ class SourceFile < Thor
24
23
  gsub_file "ckeditor-rails/version.rb", /VERSION\s=\s"(\d|\.)+"$/ do |match|
25
24
  %Q{VERSION = "#{version}"}
26
25
  end
27
- end if File.exist?(extract_path)
26
+ end if File.exist? source_root
28
27
  end
29
28
 
30
- desc "move", "move source files to vendor/assets"
29
+ desc "move", "move source files"
31
30
  def move
32
- self.destination_root = "vendor/assets"
33
-
34
- copy_file "ckeditor/adapters/jquery.js", "javascripts/ckeditor/adapters/jquery.js"
35
- copy_file "ckeditor/ckeditor.js", "javascripts/ckeditor/ckeditor.js"
36
- copy_file "ckeditor/ckeditor_basic.js", "javascripts/ckeditor/ckeditor_basic.js"
37
- copy_file "ckeditor/config.js", "javascripts/ckeditor/config.js"
38
- copy_file "ckeditor/contents.css", "stylesheets/ckeditor/contents.css"
39
-
40
- directory "ckeditor/images", "images/ckeditor/images"
41
- directory "ckeditor/lang", "javascripts/ckeditor/lang"
42
-
43
- copy_file "ckeditor/LICENSE.html", "javascripts/ckeditor/LICENSE.html"
44
-
45
- directory "ckeditor/plugins", "javascripts/ckeditor/plugins"
46
- move_image_files_of_plugins
47
-
48
- copy_image_files_of_skin(%w{kama office2003 v2})
49
-
50
- directory "ckeditor/themes", "javascripts/ckeditor/themes"
51
- end
52
-
53
- desc "fix_css", "fix some css caused precompilation error"
54
- def fix_css
55
- self.destination_root = "vendor/assets"
56
- inside destination_root do
57
- skin_names = %w{kama office2003 v2}
58
- skin_names.each do |name|
59
- gsub_file "stylesheets/ckeditor/skins/#{name}/dialog.css", /\+margin/, "margin"
60
- gsub_file "stylesheets/ckeditor/skins/#{name}/editor.css", /filter\:\;/, ""
31
+ FileUtils.rm_rf destination_root
32
+
33
+ [
34
+ ['js', 'javascripts'],
35
+ ['css', 'stylesheets'],
36
+ ].each do |(type, asset_path)|
37
+ Dir["#{source_root}/ckeditor/*.#{type}"].each do |file|
38
+ file = File.basename file
39
+ copy_file "ckeditor/#{file}", "#{asset_path}/ckeditor/#{file}"
61
40
  end
62
- gsub_file "stylesheets/ckeditor/skins/office2003/editor.css", /\!height\:28px\;\!line-height\:28px\;/, ""
63
- gsub_file "javascripts/ckeditor/plugins/uicolor/yui/assets/yui.css", /\*html/, "* html"
64
41
  end
65
- end
66
-
67
- desc 'fix_js', 'fix some js caused execution error'
68
- def fix_js
69
- self.destination_root = "vendor/assets"
70
- inside destination_root do
71
- # Change the way IE detected to avoid compilation bug in production
72
- %w{ckeditor ckeditor_basic}.each do |name|
73
- gsub_file "javascripts/ckeditor/#{name}.js", "/*@cc_on!@*/false", "b.indexOf('msie')>-1"
74
- end
75
- end
76
- end
77
42
 
78
- desc "convert", "convert css to sass file by sass-convert"
79
- def convert
80
- self.destination_root = "vendor/assets"
81
- inside destination_root do
82
- skin_names = %w{kama office2003 v2}
83
- skin_names.each do |name|
84
- path = "stylesheets/ckeditor/skins/#{name}"
85
- run("sass-convert -F css -T sass #{path}/dialog.css #{path}/dialog.css.sass")
86
- run("sass-convert -F css -T sass #{path}/editor.css #{path}/editor.css.sass")
87
- run("sass-convert -F css -T sass #{path}/templates.css #{path}/templates.css.sass")
88
- remove_file "#{path}/dialog.css"
89
- remove_file "#{path}/editor.css"
90
- remove_file "#{path}/templates.css"
91
- end
92
- end
43
+ copy_file "ckeditor/LICENSE.md", "javascripts/ckeditor/LICENSE.md"
44
+ directory "ckeditor/lang", "javascripts/ckeditor/lang"
45
+ copy_plugins
46
+ copy_skins
93
47
  end
94
48
 
95
49
  desc "clean", "clean up useless files"
96
50
  def cleanup
97
- self.destination_root = "vendor/assets"
98
- FileUtils.rm_rf(self.class.source_root)
51
+ FileUtils.rm_rf source_root
99
52
  end
100
53
 
101
54
  protected
102
55
 
103
- def file_url(version)
56
+ def file_url version
104
57
  "http://download.cksource.com/CKEditor/CKEditor/CKEditor%20#{version}/#{filename(version)}"
105
58
  end
106
59
 
107
- def filename(version)
108
- "ckeditor_#{version}.tar.gz"
60
+ def filename version
61
+ "ckeditor_#{version}_full.tar.gz"
109
62
  end
110
63
 
111
- def extract(file_path, output_path)
112
- system("tar --exclude=*.php --exclude=*.asp -C '#{output_path}' -xzf '#{file_path}' ckeditor")
64
+ def extract file_path, output_path
65
+ system "tar -x -f '#{file_path}' -C '#{output_path}' ckeditor"
113
66
  end
114
67
 
115
- def move_image_files_of_plugins
116
- files = Dir.glob("#{destination_root}/javascripts/ckeditor/plugins/*/*/*")
117
- files.each do |file|
118
- if file =~ /\.(png|gif)$/
119
- filename = file.sub("#{destination_root}/javascripts/", '')
120
- destination_path = filename.sub(/\/\w+\.\w+$/, '')
121
- in_root do
122
- FileUtils.mkdir_p("#{destination_root}/images/#{destination_path}")
123
- FileUtils.mv(file, "#{destination_root}/images/#{filename}")
124
- end
125
- end
68
+ def copy_plugins
69
+ Dir["#{source_root}/ckeditor/plugins/*"].each do |plugin|
70
+ copy_all "plugins/#{File.basename plugin}"
126
71
  end
127
72
  end
128
73
 
129
- def copy_image_files_of_skin(skin_names = %w{kama office2003 v2})
130
- skin_names.each do |name|
131
- copy_file "ckeditor/skins/#{name}/dialog.css", "stylesheets/ckeditor/skins/#{name}/dialog.css"
132
- copy_file "ckeditor/skins/#{name}/editor.css", "stylesheets/ckeditor/skins/#{name}/editor.css"
133
- copy_file "ckeditor/skins/#{name}/icons.png", "images/ckeditor/skins/#{name}/icons.png"
134
- copy_file "ckeditor/skins/#{name}/icons_rtl.png", "images/ckeditor/skins/#{name}/icons_rtl.png"
135
- directory "ckeditor/skins/#{name}/images", "images/ckeditor/skins/#{name}/images"
136
- copy_file "ckeditor/skins/#{name}/skin.js", "javascripts/ckeditor/skins/#{name}/skin.js"
137
- copy_file "ckeditor/skins/#{name}/templates.css", "stylesheets/ckeditor/skins/#{name}/templates.css"
74
+ def copy_skins
75
+ Dir["#{source_root}/ckeditor/skins/*"].each do |skin|
76
+ copy_all "skins/#{File.basename skin}"
138
77
  end
139
78
  end
79
+
80
+ def copy_all path
81
+ copy_type path, 'css', 'stylesheets'
82
+ copy_type path, 'js', 'javascripts'
83
+ copy_type path, 'png', 'images'
84
+ copy_type path, 'gif', 'images'
85
+ copy_type path, 'jpg', 'images'
86
+ end
87
+
88
+ def copy_type path, type, asset_path
89
+ files = Dir["#{source_root}/ckeditor/#{path}/**/*.#{type}"]
90
+ files.each do |file|
91
+ file = file.sub /^#{Regexp.escape source_root}\//, ''
92
+ copy_file file, "#{asset_path}/#{file}"
93
+ end
94
+ end
95
+
96
+ def source_root
97
+ self.class.source_root
98
+ end
140
99
  end
@@ -1,6 +1,6 @@
1
1
  module Ckeditor
2
2
  module Rails
3
- VERSION = "3.6.4.1"
4
- EDITOR_VERSION = "3.6.4"
3
+ VERSION = "4.0"
4
+ EDITOR_VERSION = "4.0"
5
5
  end
6
6
  end
@@ -0,0 +1 @@
1
+ require 'ckeditor-rails'
@@ -1,8 +1,3 @@
1
- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
2
- "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
3
- <!--
4
- == BEGIN TEXT ONLY VERSION ==
5
-
6
1
  Software License Agreement
7
2
  ==========================
8
3
 
@@ -28,10 +23,12 @@ You are not required to, but if you want to explicitly declare the
28
23
  license you have chosen to be bound to when using, reproducing,
29
24
  modifying and distributing this software, just include a text file
30
25
  titled "legal.txt" in your version of this software, indicating your
31
- license choice.
26
+ license choice. In any case, your choice will not restrict any
27
+ recipient of your version of this software to use, reproduce, modify
28
+ and distribute this software under any of the above licenses.
32
29
 
33
30
  Sources of Intellectual Property Included in CKEditor
34
- =====================================================
31
+ -----------------------------------------------------
35
32
 
36
33
  Where not otherwise indicated, all CKEditor content is authored by
37
34
  CKSource engineers and consists of CKSource-owned intellectual
@@ -39,24 +36,26 @@ property. In some specific instances, CKEditor will incorporate work
39
36
  done by developers outside of CKSource with their express permission.
40
37
 
41
38
  Trademarks
42
- ==========
39
+ ----------
43
40
 
44
41
  CKEditor is a trademark of CKSource - Frederico Knabben. All other brand
45
42
  and product names are trademarks, registered trademarks or service
46
43
  marks of their respective holders.
47
44
 
45
+ ---
46
+
48
47
  Appendix A: The GPL License
49
- ===========================
48
+ ---------------------------
50
49
 
51
- GNU GENERAL PUBLIC LICENSE
52
- Version 2, June 1991
50
+ GNU GENERAL PUBLIC LICENSE
51
+ Version 2, June 1991
53
52
 
54
53
  Copyright (C) 1989, 1991 Free Software Foundation, Inc.,
55
54
  51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
56
55
  Everyone is permitted to copy and distribute verbatim copies
57
56
  of this license document, but changing it is not allowed.
58
57
 
59
- Preamble
58
+ Preamble
60
59
 
61
60
  The licenses for most software are designed to take away your
62
61
  freedom to share and change it. By contrast, the GNU General Public
@@ -106,8 +105,8 @@ patent must be licensed for everyone's free use or not licensed at all.
106
105
  The precise terms and conditions for copying, distribution and
107
106
  modification follow.
108
107
 
109
- GNU GENERAL PUBLIC LICENSE
110
- TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
108
+ GNU GENERAL PUBLIC LICENSE
109
+ TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
111
110
 
112
111
  0. This License applies to any program or other work which contains
113
112
  a notice placed by the copyright holder saying it may be distributed
@@ -305,7 +304,7 @@ make exceptions for this. Our decision will be guided by the two goals
305
304
  of preserving the free status of all derivatives of our free software and
306
305
  of promoting the sharing and reuse of software generally.
307
306
 
308
- NO WARRANTY
307
+ NO WARRANTY
309
308
 
310
309
  11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY
311
310
  FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN
@@ -327,14 +326,14 @@ YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER
327
326
  PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE
328
327
  POSSIBILITY OF SUCH DAMAGES.
329
328
 
330
- END OF TERMS AND CONDITIONS
329
+ END OF TERMS AND CONDITIONS
331
330
 
332
331
 
333
332
  Appendix B: The LGPL License
334
- ============================
333
+ ----------------------------
335
334
 
336
- GNU LESSER GENERAL PUBLIC LICENSE
337
- Version 2.1, February 1999
335
+ GNU LESSER GENERAL PUBLIC LICENSE
336
+ Version 2.1, February 1999
338
337
 
339
338
  Copyright (C) 1991, 1999 Free Software Foundation, Inc.
340
339
  59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
@@ -345,7 +344,7 @@ Appendix B: The LGPL License
345
344
  as the successor of the GNU Library Public License, version 2, hence
346
345
  the version number 2.1.]
347
346
 
348
- Preamble
347
+ Preamble
349
348
 
350
349
  The licenses for most software are designed to take away your
351
350
  freedom to share and change it. By contrast, the GNU General Public
@@ -447,8 +446,8 @@ modification follow. Pay close attention to the difference between a
447
446
  former contains code derived from the library, whereas the latter must
448
447
  be combined with the library in order to run.
449
448
 
450
- GNU LESSER GENERAL PUBLIC LICENSE
451
- TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
449
+ GNU LESSER GENERAL PUBLIC LICENSE
450
+ TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
452
451
 
453
452
  0. This License Agreement applies to any software library or other
454
453
  program which contains a notice placed by the copyright holder or
@@ -767,7 +766,7 @@ decision will be guided by the two goals of preserving the free status
767
766
  of all derivatives of our free software and of promoting the sharing
768
767
  and reuse of software generally.
769
768
 
770
- NO WARRANTY
769
+ NO WARRANTY
771
770
 
772
771
  15. BECAUSE THE LIBRARY IS LICENSED FREE OF CHARGE, THERE IS NO
773
772
  WARRANTY FOR THE LIBRARY, TO THE EXTENT PERMITTED BY APPLICABLE LAW.
@@ -790,16 +789,14 @@ FAILURE OF THE LIBRARY TO OPERATE WITH ANY OTHER SOFTWARE), EVEN IF
790
789
  SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH
791
790
  DAMAGES.
792
791
 
793
- END OF TERMS AND CONDITIONS
792
+ END OF TERMS AND CONDITIONS
794
793
 
795
794
 
796
795
  Appendix C: The MPL License
797
- ===========================
796
+ ---------------------------
798
797
 
799
- MOZILLA PUBLIC LICENSE
800
- Version 1.1
801
-
802
- ===============
798
+ MOZILLA PUBLIC LICENSE
799
+ Version 1.1
803
800
 
804
801
  1. Definitions.
805
802
 
@@ -1265,63 +1262,3 @@ EXHIBIT A -Mozilla Public License.
1265
1262
  the notices in the Source Code files of the Original Code. You should
1266
1263
  use the text of this Exhibit A rather than the text found in the
1267
1264
  Original Code Source Code for Your Modifications.]
1268
-
1269
- == END TEXT ONLY VERSION ==
1270
- -->
1271
- <html xmlns="http://www.w3.org/1999/xhtml">
1272
- <head>
1273
- <title>License - CKEditor</title>
1274
- </head>
1275
- <body>
1276
- <h1>
1277
- Software License Agreement
1278
- </h1>
1279
- <p>
1280
- <strong>CKEditor&trade;</strong> - The text editor for Internet&trade; - <a href="http://ckeditor.com">
1281
- http://ckeditor.com</a><br />
1282
- Copyright &copy; 2003-2012, <a href="http://cksource.com/">CKSource</a> - Frederico Knabben. All rights reserved.
1283
- </p>
1284
- <p>
1285
- Licensed under the terms of any of the following licenses at your choice:
1286
- </p>
1287
- <ul>
1288
- <li><a href="http://www.gnu.org/licenses/gpl.html">GNU General Public License</a> Version
1289
- 2 or later (the "GPL");</li>
1290
- <li><a href="http://www.gnu.org/licenses/lgpl.html">GNU Lesser General Public License</a>
1291
- Version 2.1 or later (the "LGPL");</li>
1292
- <li><a href="http://www.mozilla.org/MPL/MPL-1.1.html">Mozilla Public License</a> Version
1293
- 1.1 or later (the "MPL").</li>
1294
- </ul>
1295
- <p>
1296
- You are not required to, but if you want to explicitly declare the license you have
1297
- chosen to be bound to when using, reproducing, modifying and distributing this software,
1298
- just include a text file titled "LEGAL" in your version of this software, indicating
1299
- your license choice. In any case, your choice will not restrict any recipient of
1300
- your version of this software to use, reproduce, modify and distribute this software
1301
- under any of the above licenses.
1302
- </p>
1303
- <h2>
1304
- Sources of Intellectual Property Included in CKEditor
1305
- </h2>
1306
- <p>
1307
- Where not otherwise indicated, all CKEditor content is authored by CKSource engineers
1308
- and consists of CKSource-owned intellectual property. In some specific instances,
1309
- CKEditor will incorporate work done by developers outside of CKSource with their
1310
- express permission.
1311
- </p>
1312
- <p>
1313
- <a href="http://developer.yahoo.com/yui/yuitest/">YUI Test</a>: At _source/tests/yuitest.js
1314
- can be found part of the source code of YUI, which is licensed under the terms of
1315
- the <a href="http://developer.yahoo.com/yui/license.txt">BSD License</a>. YUI is
1316
- Copyright &copy; 2008, Yahoo! Inc.
1317
- </p>
1318
- <h2>
1319
- Trademarks
1320
- </h2>
1321
- <p>
1322
- CKEditor is a trademark of CKSource - Frederico Knabben. All other brand and product
1323
- names are trademarks, registered trademarks or service marks of their respective
1324
- holders.
1325
- </p>
1326
- </body>
1327
- </html>