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,33 @@
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
+
6
+ // Tool scripts for the sample pages.
7
+ // This file can be ignored and is not required to make use of CKEditor.
8
+
9
+ (function() {
10
+ // Check for sample compliance.
11
+ CKEDITOR.on( 'instanceReady', function( ev ) {
12
+ var editor = ev.editor,
13
+ meta = CKEDITOR.document.$.getElementsByName( 'ckeditor-sample-required-plugins' ),
14
+ requires = meta.length ? CKEDITOR.dom.element.get( meta[ 0 ] ).getAttribute( 'content' ).split( ',' ) : [],
15
+ missing = [];
16
+
17
+ if ( requires.length ) {
18
+ for ( var i = 0; i < requires.length; i++ ) {
19
+ if ( !editor.plugins[ requires[ i ] ] )
20
+ missing.push( '<code>' + requires[ i ] + '</code>' );
21
+ }
22
+
23
+ if ( missing.length ) {
24
+ var warn = CKEDITOR.dom.element.createFromHtml(
25
+ '<div class="warning">' +
26
+ '<span>To fully experience this demo, the ' + missing.join( ', ' ) + ' plugin' + ( missing.length > 1 ? 's are' : ' is' ) + ' required.</span>' +
27
+ '</div>'
28
+ );
29
+ warn.insertBefore( editor.container );
30
+ }
31
+ }
32
+ });
33
+ })();
@@ -0,0 +1,16 @@
1
+ <?php /* <body><pre>
2
+
3
+ -------------------------------------------------------------------------------------------
4
+ CKEditor - Posted Data
5
+
6
+ We are sorry, but your Web server does not support the PHP language used in this script.
7
+
8
+ Please note that CKEditor can be used with any other server-side language than just PHP.
9
+ To save the content created with CKEditor you need to read the POST data on the server
10
+ side and write it to a file or the database.
11
+
12
+ Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved.
13
+ For licensing, see LICENSE.md or <a href="http://ckeditor.com/license">http://ckeditor.com/license</a>
14
+ -------------------------------------------------------------------------------------------
15
+
16
+ </pre><div style="display:none"></body> */ include "assets/posteddata.php"; ?>
@@ -0,0 +1,75 @@
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>TAB Key-Based Navigation &mdash; CKEditor Sample</title>
9
+ <meta charset="utf-8">
10
+ <script src="../ckeditor.js"></script>
11
+ <link href="sample.css" rel="stylesheet">
12
+ <style>
13
+
14
+ .cke_focused,
15
+ .cke_editable.cke_focused
16
+ {
17
+ outline: 3px dotted blue !important;
18
+ *border: 3px dotted blue !important; /* For IE7 */
19
+ }
20
+
21
+ </style>
22
+ <script>
23
+
24
+ CKEDITOR.on( 'instanceReady', function( evt ) {
25
+ var editor = evt.editor;
26
+ editor.setData( 'This editor has it\'s tabIndex set to <strong>' + editor.tabIndex + '</strong>' );
27
+
28
+ // Apply focus class name.
29
+ editor.on( 'focus', function() {
30
+ editor.container.addClass( 'cke_focused' );
31
+ });
32
+ editor.on( 'blur', function() {
33
+ editor.container.removeClass( 'cke_focused' );
34
+ });
35
+
36
+ // Put startup focus on the first editor in tab order.
37
+ if ( editor.tabIndex == 1 )
38
+ editor.focus();
39
+ });
40
+
41
+ </script>
42
+ </head>
43
+ <body>
44
+ <h1 class="samples">
45
+ <a href="index.html">CKEditor Samples</a> &raquo; TAB Key-Based Navigation
46
+ </h1>
47
+ <div class="description">
48
+ <p>
49
+ This sample shows how tab key navigation among editor instances is
50
+ affected by the <code>tabIndex</code> attribute from
51
+ the original page element. Use TAB key to move between the editors.
52
+ </p>
53
+ </div>
54
+ <p>
55
+ <textarea class="ckeditor" cols="80" id="editor4" rows="10" tabindex="1"></textarea>
56
+ </p>
57
+ <div class="ckeditor" contenteditable="true" id="editor1" tabindex="4"></div>
58
+ <p>
59
+ <textarea class="ckeditor" cols="80" id="editor2" rows="10" tabindex="2"></textarea>
60
+ </p>
61
+ <p>
62
+ <textarea class="ckeditor" cols="80" id="editor3" rows="10" tabindex="3"></textarea>
63
+ </p>
64
+ <div id="footer">
65
+ <hr>
66
+ <p>
67
+ CKEditor - The text editor for the Internet - <a class="samples" href="http://ckeditor.com/">http://ckeditor.com</a>
68
+ </p>
69
+ <p id="copy">
70
+ Copyright &copy; 2003-2013, <a class="samples" href="http://cksource.com/">CKSource</a> - Frederico
71
+ Knabben. All rights reserved.
72
+ </p>
73
+ </div>
74
+ </body>
75
+ </html>
@@ -0,0 +1,69 @@
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>UI Color Picker &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; UI Color
16
+ </h1>
17
+ <div class="description">
18
+ <p>
19
+ This sample shows how to automatically replace <code>&lt;textarea&gt;</code> elements
20
+ with a CKEditor instance with an option to change the color of its user interface.<br>
21
+ <strong>Note:</strong>The UI skin color feature depends on the CKEditor skin
22
+ compatibility. The Moono and Kama skins are examples of skins that work with it.
23
+ </p>
24
+ </div>
25
+ <form action="sample_posteddata.php" method="post">
26
+ <p>
27
+ This editor instance has a UI color value defined in configuration to change the skin color,
28
+ To specify the color of the user interface, set the <code>uiColor</code> property:
29
+ </p>
30
+ <pre class="samples">
31
+ CKEDITOR.replace( '<em>textarea_id</em>', {
32
+ <strong>uiColor: '#14B8C4'</strong>
33
+ });</pre>
34
+ <p>
35
+ Note that <code><em>textarea_id</em></code> in the code above is the <code>id</code> attribute of
36
+ the <code>&lt;textarea&gt;</code> element to be replaced.
37
+ </p>
38
+ <p>
39
+ <textarea cols="80" id="editor1" name="editor1" rows="10">&lt;p&gt;This is some &lt;strong&gt;sample text&lt;/strong&gt;. You are using &lt;a href="http://ckeditor.com/"&gt;CKEditor&lt;/a&gt;.&lt;/p&gt;</textarea>
40
+ <script>
41
+
42
+ // Replace the <textarea id="editor"> with an CKEditor
43
+ // instance, using default configurations.
44
+ CKEDITOR.replace( 'editor1', {
45
+ uiColor: '#14B8C4',
46
+ toolbar: [
47
+ [ 'Bold', 'Italic', '-', 'NumberedList', 'BulletedList', '-', 'Link', 'Unlink' ],
48
+ [ 'FontSize', 'TextColor', 'BGColor' ]
49
+ ]
50
+ });
51
+
52
+ </script>
53
+ </p>
54
+ <p>
55
+ <input type="submit" value="Submit">
56
+ </p>
57
+ </form>
58
+ <div id="footer">
59
+ <hr>
60
+ <p>
61
+ CKEditor - The text editor for the Internet - <a class="samples" href="http://ckeditor.com/">http://ckeditor.com</a>
62
+ </p>
63
+ <p id="copy">
64
+ Copyright &copy; 2003-2013, <a class="samples" href="http://cksource.com/">CKSource</a> - Frederico
65
+ Knabben. All rights reserved.
66
+ </p>
67
+ </div>
68
+ </body>
69
+ </html>
@@ -0,0 +1,119 @@
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>User Interface Globalization &mdash; CKEditor Sample</title>
9
+ <meta charset="utf-8">
10
+ <script src="../ckeditor.js"></script>
11
+ <script src="assets/uilanguages/languages.js"></script>
12
+ <link rel="stylesheet" href="sample.css">
13
+ </head>
14
+ <body>
15
+ <h1 class="samples">
16
+ <a href="index.html">CKEditor Samples</a> &raquo; User Interface Languages
17
+ </h1>
18
+ <div class="description">
19
+ <p>
20
+ This sample shows how to automatically replace <code>&lt;textarea&gt;</code> elements
21
+ with a CKEditor instance with an option to change the language of its user interface.
22
+ </p>
23
+ <p>
24
+ It pulls the language list from CKEditor <code>_languages.js</code> file that contains the list of supported languages and creates
25
+ a drop-down list that lets the user change the UI language.
26
+ </p>
27
+ <p>
28
+ By default, CKEditor automatically localizes the editor to the language of the user.
29
+ The UI language can be controlled with two configuration options:
30
+ <code><a class="samples" href="http://docs.ckeditor.com/#!/api/CKEDITOR.config-cfg-language">language</a></code> and
31
+ <code><a class="samples" href="http://docs.ckeditor.com/#!/api/CKEDITOR.config-cfg-defaultLanguage">
32
+ defaultLanguage</a></code>. The <code>defaultLanguage</code> setting specifies the
33
+ default CKEditor language to be used when a localization suitable for user's settings is not available.
34
+ </p>
35
+ <p>
36
+ To specify the user interface language that will be used no matter what language is
37
+ specified in user's browser or operating system, set the <code>language</code> property:
38
+ </p>
39
+ <pre class="samples">
40
+ CKEDITOR.replace( '<em>textarea_id</em>', {
41
+ // Load the German interface.
42
+ <strong>language: 'de'</strong>
43
+ });</pre>
44
+ <p>
45
+ Note that <code><em>textarea_id</em></code> in the code above is the <code>id</code> attribute of
46
+ the <code>&lt;textarea&gt;</code> element to be replaced.
47
+ </p>
48
+ </div>
49
+ <form action="sample_posteddata.php" method="post">
50
+ <p>
51
+ Available languages (<span id="count"> </span> languages!):<br>
52
+ <script>
53
+
54
+ document.write( '<select disabled="disabled" id="languages" onchange="createEditor( this.value );">' );
55
+
56
+ // Get the language list from the _languages.js file.
57
+ for ( var i = 0 ; i < window.CKEDITOR_LANGS.length ; i++ ) {
58
+ document.write(
59
+ '<option value="' + window.CKEDITOR_LANGS[i].code + '">' +
60
+ window.CKEDITOR_LANGS[i].name +
61
+ '</option>' );
62
+ }
63
+
64
+ document.write( '</select>' );
65
+
66
+ </script>
67
+ <br>
68
+ <span style="color: #888888">
69
+ (You may see strange characters if your system does not support the selected language)
70
+ </span>
71
+ </p>
72
+ <p>
73
+ <textarea cols="80" id="editor1" name="editor1" rows="10">&lt;p&gt;This is some &lt;strong&gt;sample text&lt;/strong&gt;. You are using &lt;a href="http://ckeditor.com/"&gt;CKEditor&lt;/a&gt;.&lt;/p&gt;</textarea>
74
+ <script>
75
+
76
+ // Set the number of languages.
77
+ document.getElementById( 'count' ).innerHTML = window.CKEDITOR_LANGS.length;
78
+
79
+ var editor;
80
+
81
+ function createEditor( languageCode ) {
82
+ if ( editor )
83
+ editor.destroy();
84
+
85
+ // Replace the <textarea id="editor"> with an CKEditor
86
+ // instance, using default configurations.
87
+ editor = CKEDITOR.replace( 'editor1', {
88
+ language: languageCode,
89
+
90
+ on: {
91
+ instanceReady: function() {
92
+ // Wait for the editor to be ready to set
93
+ // the language combo.
94
+ var languages = document.getElementById( 'languages' );
95
+ languages.value = this.langCode;
96
+ languages.disabled = false;
97
+ }
98
+ }
99
+ });
100
+ }
101
+
102
+ // At page startup, load the default language:
103
+ createEditor( '' );
104
+
105
+ </script>
106
+ </p>
107
+ </form>
108
+ <div id="footer">
109
+ <hr>
110
+ <p>
111
+ CKEditor - The text editor for the Internet - <a class="samples" href="http://ckeditor.com/">http://ckeditor.com</a>
112
+ </p>
113
+ <p id="copy">
114
+ Copyright &copy; 2003-2013, <a class="samples" href="http://cksource.com/">CKSource</a> - Frederico
115
+ Knabben. All rights reserved.
116
+ </p>
117
+ </div>
118
+ </body>
119
+ </html>
@@ -0,0 +1,231 @@
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>XHTML Compliant Output &mdash; CKEditor Sample</title>
9
+ <meta charset="utf-8">
10
+ <meta name="ckeditor-sample-required-plugins" content="sourcearea">
11
+ <script src="../ckeditor.js"></script>
12
+ <script src="../samples/sample.js"></script>
13
+ <link href="sample.css" rel="stylesheet">
14
+ </head>
15
+ <body>
16
+ <h1 class="samples">
17
+ <a href="index.html">CKEditor Samples</a> &raquo; Producing XHTML Compliant Output
18
+ </h1>
19
+ <div class="description">
20
+ <p>
21
+ This sample shows how to configure CKEditor to output valid
22
+ <a class="samples" href="http://www.w3.org/TR/xhtml11/">XHTML 1.1</a> code.
23
+ Deprecated elements (<code>&lt;font&gt;</code>, <code>&lt;u&gt;</code>) or attributes
24
+ (<code>size</code>, <code>face</code>) will be replaced with XHTML compliant code.
25
+ </p>
26
+ <p>
27
+ To add a CKEditor instance outputting valid XHTML code, load the editor using a standard
28
+ JavaScript call and define CKEditor features to use the XHTML compliant elements and styles.
29
+ </p>
30
+ <p>
31
+ A snippet of the configuration code can be seen below; check the source of this page for
32
+ full definition:
33
+ </p>
34
+ <pre class="samples">
35
+ CKEDITOR.replace( '<em>textarea_id</em>', {
36
+ contentsCss: 'assets/outputxhtml.css',
37
+
38
+ coreStyles_bold: {
39
+ element: 'span',
40
+ attributes: { 'class': 'Bold' }
41
+ },
42
+ coreStyles_italic: {
43
+ element: 'span',
44
+ attributes: { 'class': 'Italic' }
45
+ },
46
+
47
+ ...
48
+ });</pre>
49
+ </div>
50
+ <form action="sample_posteddata.php" method="post">
51
+ <p>
52
+ <label for="editor1">
53
+ Editor 1:
54
+ </label>
55
+ <textarea cols="80" id="editor1" name="editor1" rows="10">&lt;p&gt;This is some &lt;span class="Bold"&gt;sample text&lt;/span&gt;. You are using &lt;a href="http://ckeditor.com/"&gt;CKEditor&lt;/a&gt;.&lt;/p&gt;</textarea>
56
+ <script>
57
+
58
+ CKEDITOR.replace( 'editor1', {
59
+ /*
60
+ * Style sheet for the contents
61
+ */
62
+ contentsCss: 'assets/outputxhtml/outputxhtml.css',
63
+
64
+ /*
65
+ * Special allowed content rules for spans used by
66
+ * font face, size, and color buttons.
67
+ *
68
+ * Note: all rules have been written separately so
69
+ * it was possible to specify required classes.
70
+ */
71
+ extraAllowedContent: 'span(!FontColor1);span(!FontColor2);span(!FontColor3);' +
72
+ 'span(!FontColor1BG);span(!FontColor2BG);span(!FontColor3BG);' +
73
+ 'span(!FontComic);span(!FontCourier);span(!FontTimes);' +
74
+ 'span(!FontSmaller);span(!FontLarger);span(!FontSmall);span(!FontBig);span(!FontDouble)',
75
+
76
+ /*
77
+ * Core styles.
78
+ */
79
+ coreStyles_bold: {
80
+ element: 'span',
81
+ attributes: { 'class': 'Bold' }
82
+ },
83
+ coreStyles_italic: {
84
+ element: 'span',
85
+ attributes: { 'class': 'Italic' }
86
+ },
87
+ coreStyles_underline: {
88
+ element: 'span',
89
+ attributes: { 'class': 'Underline' }
90
+ },
91
+ coreStyles_strike: {
92
+ element: 'span',
93
+ attributes: { 'class': 'StrikeThrough' },
94
+ overrides: 'strike'
95
+ },
96
+ coreStyles_subscript: {
97
+ element: 'span',
98
+ attributes: { 'class': 'Subscript' },
99
+ overrides: 'sub'
100
+ },
101
+ coreStyles_superscript: {
102
+ element: 'span',
103
+ attributes: { 'class': 'Superscript' },
104
+ overrides: 'sup'
105
+ },
106
+
107
+ /*
108
+ * Font face.
109
+ */
110
+
111
+ // List of fonts available in the toolbar combo. Each font definition is
112
+ // separated by a semi-colon (;). We are using class names here, so each font
113
+ // is defined by {Combo Label}/{Class Name}.
114
+ font_names: 'Comic Sans MS/FontComic;Courier New/FontCourier;Times New Roman/FontTimes',
115
+
116
+ // Define the way font elements will be applied to the document. The "span"
117
+ // element will be used. When a font is selected, the font name defined in the
118
+ // above list is passed to this definition with the name "Font", being it
119
+ // injected in the "class" attribute.
120
+ // We must also instruct the editor to replace span elements that are used to
121
+ // set the font (Overrides).
122
+ font_style: {
123
+ element: 'span',
124
+ attributes: { 'class': '#(family)' },
125
+ overrides: [
126
+ {
127
+ element: 'span',
128
+ attributes: {
129
+ 'class': /^Font(?:Comic|Courier|Times)$/
130
+ }
131
+ }
132
+ ]
133
+ },
134
+
135
+ /*
136
+ * Font sizes.
137
+ */
138
+ fontSize_sizes: 'Smaller/FontSmaller;Larger/FontLarger;8pt/FontSmall;14pt/FontBig;Double Size/FontDouble',
139
+ fontSize_style: {
140
+ element: 'span',
141
+ attributes: { 'class': '#(size)' },
142
+ overrides: [
143
+ {
144
+ element: 'span',
145
+ attributes: {
146
+ 'class': /^Font(?:Smaller|Larger|Small|Big|Double)$/
147
+ }
148
+ }
149
+ ]
150
+ } ,
151
+
152
+ /*
153
+ * Font colors.
154
+ */
155
+ colorButton_enableMore: false,
156
+
157
+ colorButton_colors: 'FontColor1/FF9900,FontColor2/0066CC,FontColor3/F00',
158
+ colorButton_foreStyle: {
159
+ element: 'span',
160
+ attributes: { 'class': '#(color)' },
161
+ overrides: [
162
+ {
163
+ element: 'span',
164
+ attributes: {
165
+ 'class': /^FontColor(?:1|2|3)$/
166
+ }
167
+ }
168
+ ]
169
+ },
170
+
171
+ colorButton_backStyle: {
172
+ element: 'span',
173
+ attributes: { 'class': '#(color)BG' },
174
+ overrides: [
175
+ {
176
+ element: 'span',
177
+ attributes: {
178
+ 'class': /^FontColor(?:1|2|3)BG$/
179
+ }
180
+ }
181
+ ]
182
+ },
183
+
184
+ /*
185
+ * Indentation.
186
+ */
187
+ indentClasses: [ 'Indent1', 'Indent2', 'Indent3' ],
188
+
189
+ /*
190
+ * Paragraph justification.
191
+ */
192
+ justifyClasses: [ 'JustifyLeft', 'JustifyCenter', 'JustifyRight', 'JustifyFull' ],
193
+
194
+ /*
195
+ * Styles combo.
196
+ */
197
+ stylesSet: [
198
+ { name: 'Strong Emphasis', element: 'strong' },
199
+ { name: 'Emphasis', element: 'em' },
200
+
201
+ { name: 'Computer Code', element: 'code' },
202
+ { name: 'Keyboard Phrase', element: 'kbd' },
203
+ { name: 'Sample Text', element: 'samp' },
204
+ { name: 'Variable', element: 'var' },
205
+
206
+ { name: 'Deleted Text', element: 'del' },
207
+ { name: 'Inserted Text', element: 'ins' },
208
+
209
+ { name: 'Cited Work', element: 'cite' },
210
+ { name: 'Inline Quotation', element: 'q' }
211
+ ]
212
+ });
213
+
214
+ </script>
215
+ </p>
216
+ <p>
217
+ <input type="submit" value="Submit">
218
+ </p>
219
+ </form>
220
+ <div id="footer">
221
+ <hr>
222
+ <p>
223
+ CKEditor - The text editor for the Internet - <a class="samples" href="http://ckeditor.com/">http://ckeditor.com</a>
224
+ </p>
225
+ <p id="copy">
226
+ Copyright &copy; 2003-2013, <a class="samples" href="http://cksource.com/">CKSource</a> - Frederico
227
+ Knabben. All rights reserved.
228
+ </p>
229
+ </div>
230
+ </body>
231
+ </html>