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,121 @@
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>Inline Editing by Code &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
+ #editable
15
+ {
16
+ padding: 10px;
17
+ float: left;
18
+ }
19
+
20
+ </style>
21
+ </head>
22
+ <body>
23
+ <h1 class="samples">
24
+ <a href="index.html">CKEditor Samples</a> &raquo; Inline Editing by Code
25
+ </h1>
26
+ <div class="description">
27
+ <p>
28
+ This sample shows how to create an inline editor instance of CKEditor. It is created
29
+ with a JavaScript call using the following code:
30
+ </p>
31
+ <pre class="samples">
32
+ // This property tells CKEditor to not activate every element with contenteditable=true element.
33
+ CKEDITOR.disableAutoInline = true;
34
+
35
+ var editor = CKEDITOR.inline( document.getElementById( 'editable' ) );
36
+ </pre>
37
+ <p>
38
+ Note that <code>editable</code> in the code above is the <code>id</code>
39
+ attribute of the <code>&lt;div&gt;</code> element to be converted into an inline instance.
40
+ </p>
41
+ </div>
42
+ <div id="editable" contenteditable="true">
43
+ <h1><img alt="Saturn V carrying Apollo 11" class="right" src="assets/sample.jpg" /> Apollo 11</h1>
44
+
45
+ <p><b>Apollo 11</b> was the spaceflight that landed the first humans, Americans <a href="http://en.wikipedia.org/wiki/Neil_Armstrong" title="Neil Armstrong">Neil Armstrong</a> and <a href="http://en.wikipedia.org/wiki/Buzz_Aldrin" title="Buzz Aldrin">Buzz Aldrin</a>, on the Moon on July 20, 1969, at 20:18 UTC. Armstrong became the first to step onto the lunar surface 6 hours later on July 21 at 02:56 UTC.</p>
46
+
47
+ <p>Armstrong spent about <s>three and a half</s> two and a half hours outside the spacecraft, Aldrin slightly less; and together they collected 47.5 pounds (21.5&nbsp;kg) of lunar material for return to Earth. A third member of the mission, <a href="http://en.wikipedia.org/wiki/Michael_Collins_(astronaut)" title="Michael Collins (astronaut)">Michael Collins</a>, piloted the <a href="http://en.wikipedia.org/wiki/Apollo_Command/Service_Module" title="Apollo Command/Service Module">command</a> spacecraft alone in lunar orbit until Armstrong and Aldrin returned to it for the trip back to Earth.</p>
48
+
49
+ <h2>Broadcasting and <em>quotes</em> <a id="quotes" name="quotes"></a></h2>
50
+
51
+ <p>Broadcast on live TV to a world-wide audience, Armstrong stepped onto the lunar surface and described the event as:</p>
52
+
53
+ <blockquote>
54
+ <p>One small step for [a] man, one giant leap for mankind.</p>
55
+ </blockquote>
56
+
57
+ <p>Apollo 11 effectively ended the <a href="http://en.wikipedia.org/wiki/Space_Race" title="Space Race">Space Race</a> and fulfilled a national goal proposed in 1961 by the late U.S. President <a href="http://en.wikipedia.org/wiki/John_F._Kennedy" title="John F. Kennedy">John F. Kennedy</a> in a speech before the United States Congress:</p>
58
+
59
+ <blockquote>
60
+ <p>[...] before this decade is out, of landing a man on the Moon and returning him safely to the Earth.</p>
61
+ </blockquote>
62
+
63
+ <h2>Technical details <a id="tech-details" name="tech-details"></a></h2>
64
+
65
+ <table align="right" border="1" bordercolor="#ccc" cellpadding="5" cellspacing="0" style="border-collapse:collapse;margin:10px 0 10px 15px;">
66
+ <caption><strong>Mission crew</strong></caption>
67
+ <thead>
68
+ <tr>
69
+ <th scope="col">Position</th>
70
+ <th scope="col">Astronaut</th>
71
+ </tr>
72
+ </thead>
73
+ <tbody>
74
+ <tr>
75
+ <td>Commander</td>
76
+ <td>Neil A. Armstrong</td>
77
+ </tr>
78
+ <tr>
79
+ <td>Command Module Pilot</td>
80
+ <td>Michael Collins</td>
81
+ </tr>
82
+ <tr>
83
+ <td>Lunar Module Pilot</td>
84
+ <td>Edwin &quot;Buzz&quot; E. Aldrin, Jr.</td>
85
+ </tr>
86
+ </tbody>
87
+ </table>
88
+
89
+ <p>Launched by a <strong>Saturn V</strong> rocket from <a href="http://en.wikipedia.org/wiki/Kennedy_Space_Center" title="Kennedy Space Center">Kennedy Space Center</a> in Merritt Island, Florida on July 16, Apollo 11 was the fifth manned mission of <a href="http://en.wikipedia.org/wiki/NASA" title="NASA">NASA</a>&#39;s Apollo program. The Apollo spacecraft had three parts:</p>
90
+
91
+ <ol>
92
+ <li><strong>Command Module</strong> with a cabin for the three astronauts which was the only part which landed back on Earth</li>
93
+ <li><strong>Service Module</strong> which supported the Command Module with propulsion, electrical power, oxygen and water</li>
94
+ <li><strong>Lunar Module</strong> for landing on the Moon.</li>
95
+ </ol>
96
+
97
+ <p>After being sent to the Moon by the Saturn V&#39;s upper stage, the astronauts separated the spacecraft from it and travelled for three days until they entered into lunar orbit. Armstrong and Aldrin then moved into the Lunar Module and landed in the <a href="http://en.wikipedia.org/wiki/Mare_Tranquillitatis" title="Mare Tranquillitatis">Sea of Tranquility</a>. They stayed a total of about 21 and a half hours on the lunar surface. After lifting off in the upper part of the Lunar Module and rejoining Collins in the Command Module, they returned to Earth and landed in the <a href="http://en.wikipedia.org/wiki/Pacific_Ocean" title="Pacific Ocean">Pacific Ocean</a> on July 24.</p>
98
+
99
+ <hr />
100
+ <p style="text-align: right;"><small>Source: <a href="http://en.wikipedia.org/wiki/Apollo_11">Wikipedia.org</a></small></p>
101
+ </div>
102
+
103
+ <script>
104
+ // We need to turn off the automatic editor creation first.
105
+ CKEDITOR.disableAutoInline = true;
106
+
107
+ var editor = CKEDITOR.inline( 'editable' );
108
+ </script>
109
+ <div id="footer">
110
+ <hr>
111
+ <p contenteditable="true">
112
+ CKEditor - The text editor for the Internet - <a class="samples" href="http://ckeditor.com/">
113
+ http://ckeditor.com</a>
114
+ </p>
115
+ <p id="copy">
116
+ Copyright &copy; 2003-2013, <a class="samples" href="http://cksource.com/">CKSource</a>
117
+ - Frederico Knabben. All rights reserved.
118
+ </p>
119
+ </div>
120
+ </body>
121
+ </html>
@@ -0,0 +1,110 @@
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>Replace Textarea with Inline Editor &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
+ /* Style the CKEditor element to look like a textfield */
15
+ .cke_textarea_inline
16
+ {
17
+ padding: 10px;
18
+ height: 200px;
19
+ overflow: auto;
20
+
21
+ border: 1px solid gray;
22
+ -webkit-appearance: textfield;
23
+ }
24
+
25
+ </style>
26
+ </head>
27
+ <body>
28
+ <h1 class="samples">
29
+ <a href="index.html">CKEditor Samples</a> &raquo; Replace Textarea with Inline Editor
30
+ </h1>
31
+ <div class="description">
32
+ <p>
33
+ You can also create an inline editor from a <code>textarea</code>
34
+ element. In this case the <code>textarea</code> will be replaced
35
+ by a <code>div</code> element with inline editing enabled.
36
+ </p>
37
+ <pre class="samples">
38
+ // "article-body" is the name of a textarea element.
39
+ var editor = CKEDITOR.inline( 'article-body' );
40
+ </pre>
41
+ </div>
42
+ <form action="sample_posteddata.php" method="post">
43
+ <h2>This is a sample form with some fields</h2>
44
+ <p>
45
+ Title:<br>
46
+ <input type="text" name="title" value="Sample Form"></p>
47
+ <p>
48
+ Article Body (Textarea converted to CKEditor):<br>
49
+ <textarea name="article-body" style="height: 200px">
50
+ &lt;h2&gt;Technical details &lt;a id="tech-details" name="tech-details"&gt;&lt;/a&gt;&lt;/h2&gt;
51
+
52
+ &lt;table align="right" border="1" bordercolor="#ccc" cellpadding="5" cellspacing="0" style="border-collapse:collapse;margin:10px 0 10px 15px;"&gt;
53
+ &lt;caption&gt;&lt;strong&gt;Mission crew&lt;/strong&gt;&lt;/caption&gt;
54
+ &lt;thead&gt;
55
+ &lt;tr&gt;
56
+ &lt;th scope="col"&gt;Position&lt;/th&gt;
57
+ &lt;th scope="col"&gt;Astronaut&lt;/th&gt;
58
+ &lt;/tr&gt;
59
+ &lt;/thead&gt;
60
+ &lt;tbody&gt;
61
+ &lt;tr&gt;
62
+ &lt;td&gt;Commander&lt;/td&gt;
63
+ &lt;td&gt;Neil A. Armstrong&lt;/td&gt;
64
+ &lt;/tr&gt;
65
+ &lt;tr&gt;
66
+ &lt;td&gt;Command Module Pilot&lt;/td&gt;
67
+ &lt;td&gt;Michael Collins&lt;/td&gt;
68
+ &lt;/tr&gt;
69
+ &lt;tr&gt;
70
+ &lt;td&gt;Lunar Module Pilot&lt;/td&gt;
71
+ &lt;td&gt;Edwin &quot;Buzz&quot; E. Aldrin, Jr.&lt;/td&gt;
72
+ &lt;/tr&gt;
73
+ &lt;/tbody&gt;
74
+ &lt;/table&gt;
75
+
76
+ &lt;p&gt;Launched by a &lt;strong&gt;Saturn V&lt;/strong&gt; rocket from &lt;a href="http://en.wikipedia.org/wiki/Kennedy_Space_Center" title="Kennedy Space Center"&gt;Kennedy Space Center&lt;/a&gt; in Merritt Island, Florida on July 16, Apollo 11 was the fifth manned mission of &lt;a href="http://en.wikipedia.org/wiki/NASA" title="NASA"&gt;NASA&lt;/a&gt;&#39;s Apollo program. The Apollo spacecraft had three parts:&lt;/p&gt;
77
+
78
+ &lt;ol&gt;
79
+ &lt;li&gt;&lt;strong&gt;Command Module&lt;/strong&gt; with a cabin for the three astronauts which was the only part which landed back on Earth&lt;/li&gt;
80
+ &lt;li&gt;&lt;strong&gt;Service Module&lt;/strong&gt; which supported the Command Module with propulsion, electrical power, oxygen and water&lt;/li&gt;
81
+ &lt;li&gt;&lt;strong&gt;Lunar Module&lt;/strong&gt; for landing on the Moon.&lt;/li&gt;
82
+ &lt;/ol&gt;
83
+
84
+ &lt;p&gt;After being sent to the Moon by the Saturn V&#39;s upper stage, the astronauts separated the spacecraft from it and travelled for three days until they entered into lunar orbit. Armstrong and Aldrin then moved into the Lunar Module and landed in the &lt;a href="http://en.wikipedia.org/wiki/Mare_Tranquillitatis" title="Mare Tranquillitatis"&gt;Sea of Tranquility&lt;/a&gt;. They stayed a total of about 21 and a half hours on the lunar surface. After lifting off in the upper part of the Lunar Module and rejoining Collins in the Command Module, they returned to Earth and landed in the &lt;a href="http://en.wikipedia.org/wiki/Pacific_Ocean" title="Pacific Ocean"&gt;Pacific Ocean&lt;/a&gt; on July 24.&lt;/p&gt;
85
+
86
+ &lt;hr /&gt;
87
+ &lt;p style="text-align: right;"&gt;&lt;small&gt;Source: &lt;a href="http://en.wikipedia.org/wiki/Apollo_11"&gt;Wikipedia.org&lt;/a&gt;&lt;/small&gt;&lt;/p&gt;
88
+ </textarea>
89
+ </p>
90
+ <p>
91
+ <input type="submit" value="Submit">
92
+ </p>
93
+ </form>
94
+
95
+ <script>
96
+ CKEDITOR.inline( 'article-body' );
97
+ </script>
98
+ <div id="footer">
99
+ <hr>
100
+ <p contenteditable="true">
101
+ CKEditor - The text editor for the Internet - <a class="samples" href="http://ckeditor.com/">
102
+ http://ckeditor.com</a>
103
+ </p>
104
+ <p id="copy">
105
+ Copyright &copy; 2003-2013, <a class="samples" href="http://cksource.com/">CKSource</a>
106
+ - Frederico Knabben. All rights reserved.
107
+ </p>
108
+ </div>
109
+ </body>
110
+ </html>
@@ -0,0 +1,97 @@
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>jQuery Adapter &mdash; CKEditor Sample</title>
10
+ <script src="//ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js" ></script>
11
+ <script src="../ckeditor.js"></script>
12
+ <script src="../adapters/jquery.js"></script>
13
+ <link href="sample.css" rel="stylesheet">
14
+ <style>
15
+
16
+ #editable
17
+ {
18
+ padding: 10px;
19
+ float: left;
20
+ }
21
+
22
+ </style>
23
+ <script>
24
+
25
+ CKEDITOR.disableAutoInline = true;
26
+
27
+ $( document ).ready( function() {
28
+ $( '#editor1' ).ckeditor(); // Use CKEDITOR.replace() if element is <textarea>.
29
+ $( '#editable' ).ckeditor(); // Use CKEDITOR.inline().
30
+ } );
31
+
32
+ function setValue() {
33
+ $( '#editor1' ).val( $( 'input#val' ).val() );
34
+ }
35
+
36
+ </script>
37
+ </head>
38
+ <body>
39
+ <h1 class="samples">
40
+ <a href="index.html" id="a-test">CKEditor Samples</a> &raquo; Create Editors with jQuery
41
+ </h1>
42
+ <form action="sample_posteddata.php" method="post">
43
+ <div class="description">
44
+ <p>
45
+ This sample shows how to use the <a href="http://docs.ckeditor.com/#!/api/adapters.jQuery">jQuery adapter</a>.
46
+ Note that you have to include both CKEditor and jQuery scripts before including the adapter.
47
+ </p>
48
+ <pre class="samples">
49
+ &lt;script src="//ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"&gt;&lt;/script&gt;
50
+ &lt;script src="/ckeditor/ckeditor.js"&gt;&lt;/script&gt;
51
+ &lt;script src="/ckeditor/adapters/jquery.js"&gt;&lt;/script&gt;
52
+ </pre>
53
+ <p>Then you can replace html elements with a CKEditor instance using the <code>ckeditor()</code> method.</p>
54
+ <pre class="samples">
55
+ $( document ).ready( function() {
56
+ $( 'textarea#editor1' ).ckeditor();
57
+ } );
58
+ </pre>
59
+ </div>
60
+
61
+ <h2 class="samples">Inline Example</h2>
62
+
63
+ <div id="editable" contenteditable="true">
64
+ <p><img alt="Saturn V carrying Apollo 11" class="right" src="assets/sample.jpg"/><b>Apollo 11</b> was the spaceflight that landed the first humans, Americans <a href="http://en.wikipedia.org/wiki/Neil_Armstrong" title="Neil Armstrong">Neil Armstrong</a> and <a href="http://en.wikipedia.org/wiki/Buzz_Aldrin" title="Buzz Aldrin">Buzz Aldrin</a>, on the Moon on July 20, 1969, at 20:18 UTC. Armstrong became the first to step onto the lunar surface 6 hours later on July 21 at 02:56 UTC.</p>
65
+ <p>Armstrong spent about <s>three and a half</s> two and a half hours outside the spacecraft, Aldrin slightly less; and together they collected 47.5 pounds (21.5&nbsp;kg) of lunar material for return to Earth. A third member of the mission, <a href="http://en.wikipedia.org/wiki/Michael_Collins_(astronaut)" title="Michael Collins (astronaut)">Michael Collins</a>, piloted the <a href="http://en.wikipedia.org/wiki/Apollo_Command/Service_Module" title="Apollo Command/Service Module">command</a> spacecraft alone in lunar orbit until Armstrong and Aldrin returned to it for the trip back to Earth.
66
+ <p>Broadcast on live TV to a world-wide audience, Armstrong stepped onto the lunar surface and described the event as:</p>
67
+ <blockquote><p>One small step for [a] man, one giant leap for mankind.</p></blockquote> <p>Apollo 11 effectively ended the <a href="http://en.wikipedia.org/wiki/Space_Race" title="Space Race">Space Race</a> and fulfilled a national goal proposed in 1961 by the late U.S. President <a href="http://en.wikipedia.org/wiki/John_F._Kennedy" title="John F. Kennedy">John F. Kennedy</a> in a speech before the United States Congress:</p> <blockquote><p>[...] before this decade is out, of landing a man on the Moon and returning him safely to the Earth.</p></blockquote>
68
+ </div>
69
+
70
+ <br style="clear: both">
71
+
72
+ <h2 class="samples">Framed Example</h2>
73
+
74
+ <textarea cols="80" id="editor1" name="editor1" rows="10">
75
+ &lt;h2&gt;Technical details &lt;a id=&quot;tech-details&quot; name=&quot;tech-details&quot;&gt;&lt;/a&gt;&lt;/h2&gt; &lt;table align=&quot;right&quot; border=&quot;1&quot; bordercolor=&quot;#ccc&quot; cellpadding=&quot;5&quot; cellspacing=&quot;0&quot; style=&quot;border-collapse:collapse;margin:10px 0 10px 15px;&quot;&gt; &lt;caption&gt;&lt;strong&gt;Mission crew&lt;/strong&gt;&lt;/caption&gt; &lt;thead&gt; &lt;tr&gt; &lt;th scope=&quot;col&quot;&gt;Position&lt;/th&gt; &lt;th scope=&quot;col&quot;&gt;Astronaut&lt;/th&gt; &lt;/tr&gt; &lt;/thead&gt; &lt;tbody&gt; &lt;tr&gt; &lt;td&gt;Commander&lt;/td&gt; &lt;td&gt;Neil A. Armstrong&lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td&gt;Command Module Pilot&lt;/td&gt; &lt;td&gt;Michael Collins&lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td&gt;Lunar Module Pilot&lt;/td&gt; &lt;td&gt;Edwin &amp;quot;Buzz&amp;quot; E. Aldrin, Jr.&lt;/td&gt; &lt;/tr&gt; &lt;/tbody&gt; &lt;/table&gt; &lt;p&gt;Launched by a &lt;strong&gt;Saturn V&lt;/strong&gt; rocket from &lt;a href=&quot;http://en.wikipedia.org/wiki/Kennedy_Space_Center&quot; title=&quot;Kennedy Space Center&quot;&gt;Kennedy Space Center&lt;/a&gt; in Merritt Island, Florida on July 16, Apollo 11 was the fifth manned mission of &lt;a href=&quot;http://en.wikipedia.org/wiki/NASA&quot; title=&quot;NASA&quot;&gt;NASA&lt;/a&gt;&amp;#39;s Apollo program. The Apollo spacecraft had three parts:&lt;/p&gt; &lt;ol&gt; &lt;li&gt;&lt;strong&gt;Command Module&lt;/strong&gt; with a cabin for the three astronauts which was the only part which landed back on Earth&lt;/li&gt; &lt;li&gt;&lt;strong&gt;Service Module&lt;/strong&gt; which supported the Command Module with propulsion, electrical power, oxygen and water&lt;/li&gt; &lt;li&gt;&lt;strong&gt;Lunar Module&lt;/strong&gt; for landing on the Moon.&lt;/li&gt; &lt;/ol&gt; &lt;p&gt;After being sent to the Moon by the Saturn V&amp;#39;s upper stage, the astronauts separated the spacecraft from it and travelled for three days until they entered into lunar orbit. Armstrong and Aldrin then moved into the Lunar Module and landed in the &lt;a href=&quot;http://en.wikipedia.org/wiki/Mare_Tranquillitatis&quot; title=&quot;Mare Tranquillitatis&quot;&gt;Sea of Tranquility&lt;/a&gt;. They stayed a total of about 21 and a half hours on the lunar surface. After lifting off in the upper part of the Lunar Module and rejoining Collins in the Command Module, they returned to Earth and landed in the &lt;a href=&quot;http://en.wikipedia.org/wiki/Pacific_Ocean&quot; title=&quot;Pacific Ocean&quot;&gt;Pacific Ocean&lt;/a&gt; on July 24.&lt;/p&gt; &lt;hr/&gt; &lt;p style=&quot;text-align: right;&quot;&gt;&lt;small&gt;Source: &lt;a href=&quot;http://en.wikipedia.org/wiki/Apollo_11&quot;&gt;Wikipedia.org&lt;/a&gt;&lt;/small&gt;&lt;/p&gt;
76
+ </textarea>
77
+
78
+ <p style="overflow: hidden">
79
+ <input style="float: left" type="submit" value="Submit">
80
+ <span style="float: right">
81
+ <input type="text" id="val" value="I'm using jQuery val()!" size="30">
82
+ <input onclick="setValue();" type="button" value="Set value">
83
+ </span>
84
+ </p>
85
+ </form>
86
+ <div id="footer">
87
+ <hr>
88
+ <p>
89
+ CKEditor - The text editor for the Internet - <a class="samples" href="http://ckeditor.com/">http://ckeditor.com</a>
90
+ </p>
91
+ <p id="copy">
92
+ Copyright &copy; 2003-2013, <a class="samples" href="http://cksource.com/">CKSource</a> - Frederico
93
+ Knabben. All rights reserved.
94
+ </p>
95
+ </div>
96
+ </body>
97
+ </html>
@@ -0,0 +1,48 @@
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
+ CKEDITOR.dialog.add( 'myDialog', function( editor ) {
7
+ return {
8
+ title: 'My Dialog',
9
+ minWidth: 400,
10
+ minHeight: 200,
11
+ contents: [
12
+ {
13
+ id: 'tab1',
14
+ label: 'First Tab',
15
+ title: 'First Tab',
16
+ elements: [
17
+ {
18
+ id: 'input1',
19
+ type: 'text',
20
+ label: 'Text Field'
21
+ },
22
+ {
23
+ id: 'select1',
24
+ type: 'select',
25
+ label: 'Select Field',
26
+ items: [
27
+ [ 'option1', 'value1' ],
28
+ [ 'option2', 'value2' ]
29
+ ]
30
+ }
31
+ ]
32
+ },
33
+ {
34
+ id: 'tab2',
35
+ label: 'Second Tab',
36
+ title: 'Second Tab',
37
+ elements: [
38
+ {
39
+ id: 'button1',
40
+ type: 'button',
41
+ label: 'Button Field'
42
+ }
43
+ ]
44
+ }
45
+ ]
46
+ };
47
+ });
48
+
@@ -0,0 +1,187 @@
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>Using API to Customize Dialog Windows &mdash; CKEditor Sample</title>
9
+ <meta charset="utf-8">
10
+ <script src="../../../ckeditor.js"></script>
11
+ <link rel="stylesheet" href="../../../samples/sample.css">
12
+ <meta name="ckeditor-sample-name" content="Using the JavaScript API to customize dialog windows">
13
+ <meta name="ckeditor-sample-group" content="Advanced Samples">
14
+ <meta name="ckeditor-sample-description" content="Using the dialog windows API to customize dialog windows without changing the original editor code.">
15
+ <style>
16
+
17
+ .cke_button__mybutton_icon
18
+ {
19
+ display: none !important;
20
+ }
21
+
22
+ .cke_button__mybutton_label
23
+ {
24
+ display: inline !important;
25
+ }
26
+
27
+ </style>
28
+ <script>
29
+
30
+ CKEDITOR.on( 'instanceCreated', function( ev ){
31
+ var editor = ev.editor;
32
+
33
+ // Listen for the "pluginsLoaded" event, so we are sure that the
34
+ // "dialog" plugin has been loaded and we are able to do our
35
+ // customizations.
36
+ editor.on( 'pluginsLoaded', function() {
37
+
38
+ // If our custom dialog has not been registered, do that now.
39
+ if ( !CKEDITOR.dialog.exists( 'myDialog' ) ) {
40
+ // We need to do the following trick to find out the dialog
41
+ // definition file URL path. In the real world, you would simply
42
+ // point to an absolute path directly, like "/mydir/mydialog.js".
43
+ var href = document.location.href.split( '/' );
44
+ href.pop();
45
+ href.push( 'assets/my_dialog.js' );
46
+ href = href.join( '/' );
47
+
48
+ // Finally, register the dialog.
49
+ CKEDITOR.dialog.add( 'myDialog', href );
50
+ }
51
+
52
+ // Register the command used to open the dialog.
53
+ editor.addCommand( 'myDialogCmd', new CKEDITOR.dialogCommand( 'myDialog' ) );
54
+
55
+ // Add the a custom toolbar buttons, which fires the above
56
+ // command..
57
+ editor.ui.add( 'MyButton', CKEDITOR.UI_BUTTON, {
58
+ label: 'My Dialog',
59
+ command: 'myDialogCmd'
60
+ });
61
+ });
62
+ });
63
+
64
+ // When opening a dialog, its "definition" is created for it, for
65
+ // each editor instance. The "dialogDefinition" event is then
66
+ // fired. We should use this event to make customizations to the
67
+ // definition of existing dialogs.
68
+ CKEDITOR.on( 'dialogDefinition', function( ev ) {
69
+ // Take the dialog name and its definition from the event data.
70
+ var dialogName = ev.data.name;
71
+ var dialogDefinition = ev.data.definition;
72
+
73
+ // Check if the definition is from the dialog we're
74
+ // interested on (the "Link" dialog).
75
+ if ( dialogName == 'myDialog' && ev.editor.name == 'editor2' ) {
76
+ // Get a reference to the "Link Info" tab.
77
+ var infoTab = dialogDefinition.getContents( 'tab1' );
78
+
79
+ // Add a new text field to the "tab1" tab page.
80
+ infoTab.add( {
81
+ type: 'text',
82
+ label: 'My Custom Field',
83
+ id: 'customField',
84
+ 'default': 'Sample!',
85
+ validate: function() {
86
+ if ( ( /\d/ ).test( this.getValue() ) )
87
+ return 'My Custom Field must not contain digits';
88
+ }
89
+ });
90
+
91
+ // Remove the "select1" field from the "tab1" tab.
92
+ infoTab.remove( 'select1' );
93
+
94
+ // Set the default value for "input1" field.
95
+ var input1 = infoTab.get( 'input1' );
96
+ input1[ 'default' ] = 'www.example.com';
97
+
98
+ // Remove the "tab2" tab page.
99
+ dialogDefinition.removeContents( 'tab2' );
100
+
101
+ // Add a new tab to the "Link" dialog.
102
+ dialogDefinition.addContents( {
103
+ id: 'customTab',
104
+ label: 'My Tab',
105
+ accessKey: 'M',
106
+ elements: [
107
+ {
108
+ id: 'myField1',
109
+ type: 'text',
110
+ label: 'My Text Field'
111
+ },
112
+ {
113
+ id: 'myField2',
114
+ type: 'text',
115
+ label: 'Another Text Field'
116
+ }
117
+ ]
118
+ });
119
+
120
+ // Provide the focus handler to start initial focus in "customField" field.
121
+ dialogDefinition.onFocus = function() {
122
+ var urlField = this.getContentElement( 'tab1', 'customField' );
123
+ urlField.select();
124
+ };
125
+ }
126
+ });
127
+
128
+ var config = {
129
+ extraPlugins: 'dialog',
130
+ toolbar: [ [ 'MyButton' ] ]
131
+ };
132
+
133
+ </script>
134
+ </head>
135
+ <body>
136
+ <h1 class="samples">
137
+ <a href="../../../samples/index.html">CKEditor Samples</a> &raquo; Using CKEditor Dialog API
138
+ </h1>
139
+ <div class="description">
140
+ <p>
141
+ This sample shows how to use the
142
+ <a class="samples" href="http://docs.ckeditor.com/#!/api/CKEDITOR.dialog">CKEditor Dialog API</a>
143
+ to customize CKEditor dialog windows without changing the original editor code.
144
+ The following customizations are being done in the example below:
145
+ </p>
146
+ <p>
147
+ For details on how to create this setup check the source code of this sample page.
148
+ </p>
149
+ </div>
150
+ <p>A custom dialog is added to the editors using the <code>pluginsLoaded</code> event, from an external <a target="_blank" href="assets/my_dialog.js">dialog definition file</a>:</p>
151
+ <ol>
152
+ <li><strong>Creating a custom dialog window</strong> &ndash; "My Dialog" dialog window opened with the "My Dialog" toolbar button.</li>
153
+ <li><strong>Creating a custom button</strong> &ndash; Add button to open the dialog with "My Dialog" toolbar button.</li>
154
+ </ol>
155
+ <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>
156
+ <script>
157
+ // Replace the <textarea id="editor1"> with an CKEditor instance.
158
+ CKEDITOR.replace( 'editor1', config );
159
+ </script>
160
+ <p>The below editor modify the dialog definition of the above added dialog using the <code>dialogDefinition</code> event:</p>
161
+ <ol>
162
+ <li><strong>Adding dialog tab</strong> &ndash; Add new tab "My Tab" to dialog window.</li>
163
+ <li><strong>Removing a dialog window tab</strong> &ndash; Remove "Second Tab" page from the dialog window.</li>
164
+ <li><strong>Adding dialog window fields</strong> &ndash; Add "My Custom Field" to the dialog window.</li>
165
+ <li><strong>Removing dialog window field</strong> &ndash; Remove "Select Field" selection field from the dialog window.</li>
166
+ <li><strong>Setting default values for dialog window fields</strong> &ndash; Set default value of "Text Field" text field. </li>
167
+ <li><strong>Setup initial focus for dialog window</strong> &ndash; Put initial focus on "My Custom Field" text field. </li>
168
+ </ol>
169
+ <textarea cols="80" id="editor2" name="editor2" 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>
170
+ <script>
171
+
172
+ // Replace the <textarea id="editor1"> with an CKEditor instance.
173
+ CKEDITOR.replace( 'editor2', config );
174
+
175
+ </script>
176
+ <div id="footer">
177
+ <hr>
178
+ <p>
179
+ CKEditor - The text editor for the Internet - <a class="samples" href="http://ckeditor.com/">http://ckeditor.com</a>
180
+ </p>
181
+ <p id="copy">
182
+ Copyright &copy; 2003-2013, <a class="samples" href="http://cksource.com/">CKSource</a> - Frederico
183
+ Knabben. All rights reserved.
184
+ </p>
185
+ </div>
186
+ </body>
187
+ </html>