ckeditor 4.0.4 → 4.0.6

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