drg_default_html_editor 0.5.50.3 → 0.6.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (428) hide show
  1. checksums.yaml +5 -5
  2. data/app/assets/javascripts/ckeditor/CHANGES.md +1370 -414
  3. data/app/assets/javascripts/ckeditor/LICENSE.md +160 -4
  4. data/app/assets/javascripts/ckeditor/README.md +2 -2
  5. data/app/assets/javascripts/ckeditor/adapters/jquery.js +8 -8
  6. data/app/assets/javascripts/ckeditor/build-config.js +63 -60
  7. data/app/assets/javascripts/ckeditor/ckeditor.js +1241 -971
  8. data/app/assets/javascripts/ckeditor/config.js +33 -5
  9. data/app/assets/javascripts/ckeditor/contents.css +83 -9
  10. data/app/assets/javascripts/ckeditor/lang/af.js +4 -4
  11. data/app/assets/javascripts/ckeditor/lang/ar.js +4 -4
  12. data/app/assets/javascripts/ckeditor/lang/az.js +5 -0
  13. data/app/assets/javascripts/ckeditor/lang/bg.js +4 -4
  14. data/app/assets/javascripts/ckeditor/lang/bn.js +4 -4
  15. data/app/assets/javascripts/ckeditor/lang/bs.js +4 -4
  16. data/app/assets/javascripts/ckeditor/lang/ca.js +4 -4
  17. data/app/assets/javascripts/ckeditor/lang/cs.js +4 -4
  18. data/app/assets/javascripts/ckeditor/lang/cy.js +4 -4
  19. data/app/assets/javascripts/ckeditor/lang/da.js +4 -4
  20. data/app/assets/javascripts/ckeditor/lang/de-ch.js +5 -0
  21. data/app/assets/javascripts/ckeditor/lang/de.js +4 -4
  22. data/app/assets/javascripts/ckeditor/lang/el.js +4 -4
  23. data/app/assets/javascripts/ckeditor/lang/en-au.js +4 -4
  24. data/app/assets/javascripts/ckeditor/lang/en-ca.js +4 -4
  25. data/app/assets/javascripts/ckeditor/lang/en-gb.js +4 -4
  26. data/app/assets/javascripts/ckeditor/lang/en.js +4 -4
  27. data/app/assets/javascripts/ckeditor/lang/eo.js +4 -4
  28. data/app/assets/javascripts/ckeditor/lang/es-mx.js +5 -0
  29. data/app/assets/javascripts/ckeditor/lang/es.js +4 -4
  30. data/app/assets/javascripts/ckeditor/lang/et.js +4 -4
  31. data/app/assets/javascripts/ckeditor/lang/eu.js +4 -4
  32. data/app/assets/javascripts/ckeditor/lang/fa.js +4 -4
  33. data/app/assets/javascripts/ckeditor/lang/fi.js +4 -4
  34. data/app/assets/javascripts/ckeditor/lang/fo.js +4 -4
  35. data/app/assets/javascripts/ckeditor/lang/fr-ca.js +4 -4
  36. data/app/assets/javascripts/ckeditor/lang/fr.js +4 -4
  37. data/app/assets/javascripts/ckeditor/lang/gl.js +4 -4
  38. data/app/assets/javascripts/ckeditor/lang/gu.js +4 -4
  39. data/app/assets/javascripts/ckeditor/lang/he.js +4 -4
  40. data/app/assets/javascripts/ckeditor/lang/hi.js +4 -4
  41. data/app/assets/javascripts/ckeditor/lang/hr.js +4 -4
  42. data/app/assets/javascripts/ckeditor/lang/hu.js +4 -4
  43. data/app/assets/javascripts/ckeditor/lang/id.js +4 -4
  44. data/app/assets/javascripts/ckeditor/lang/is.js +4 -4
  45. data/app/assets/javascripts/ckeditor/lang/it.js +4 -4
  46. data/app/assets/javascripts/ckeditor/lang/ja.js +4 -4
  47. data/app/assets/javascripts/ckeditor/lang/ka.js +4 -4
  48. data/app/assets/javascripts/ckeditor/lang/km.js +4 -4
  49. data/app/assets/javascripts/ckeditor/lang/ko.js +4 -4
  50. data/app/assets/javascripts/ckeditor/lang/ku.js +4 -4
  51. data/app/assets/javascripts/ckeditor/lang/lt.js +4 -4
  52. data/app/assets/javascripts/ckeditor/lang/lv.js +4 -4
  53. data/app/assets/javascripts/ckeditor/lang/mk.js +4 -4
  54. data/app/assets/javascripts/ckeditor/lang/mn.js +4 -4
  55. data/app/assets/javascripts/ckeditor/lang/ms.js +4 -4
  56. data/app/assets/javascripts/ckeditor/lang/nb.js +4 -4
  57. data/app/assets/javascripts/ckeditor/lang/nl.js +4 -4
  58. data/app/assets/javascripts/ckeditor/lang/no.js +4 -4
  59. data/app/assets/javascripts/ckeditor/lang/oc.js +5 -0
  60. data/app/assets/javascripts/ckeditor/lang/pl.js +4 -4
  61. data/app/assets/javascripts/ckeditor/lang/pt-br.js +4 -4
  62. data/app/assets/javascripts/ckeditor/lang/pt.js +4 -4
  63. data/app/assets/javascripts/ckeditor/lang/ro.js +4 -4
  64. data/app/assets/javascripts/ckeditor/lang/ru.js +4 -4
  65. data/app/assets/javascripts/ckeditor/lang/si.js +4 -4
  66. data/app/assets/javascripts/ckeditor/lang/sk.js +4 -4
  67. data/app/assets/javascripts/ckeditor/lang/sl.js +4 -4
  68. data/app/assets/javascripts/ckeditor/lang/sq.js +4 -4
  69. data/app/assets/javascripts/ckeditor/lang/sr-latn.js +4 -4
  70. data/app/assets/javascripts/ckeditor/lang/sr.js +4 -4
  71. data/app/assets/javascripts/ckeditor/lang/sv.js +4 -4
  72. data/app/assets/javascripts/ckeditor/lang/th.js +4 -4
  73. data/app/assets/javascripts/ckeditor/lang/tr.js +4 -4
  74. data/app/assets/javascripts/ckeditor/lang/tt.js +4 -4
  75. data/app/assets/javascripts/ckeditor/lang/ug.js +4 -4
  76. data/app/assets/javascripts/ckeditor/lang/uk.js +4 -4
  77. data/app/assets/javascripts/ckeditor/lang/vi.js +4 -4
  78. data/app/assets/javascripts/ckeditor/lang/zh-cn.js +4 -4
  79. data/app/assets/javascripts/ckeditor/lang/zh.js +4 -4
  80. data/app/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/a11yhelp.js +7 -7
  81. data/app/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/_translationstatus.txt +2 -2
  82. data/app/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/af.js +11 -0
  83. data/app/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/ar.js +6 -6
  84. data/app/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/az.js +11 -0
  85. data/app/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/bg.js +9 -9
  86. data/app/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/ca.js +10 -10
  87. data/app/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/cs.js +10 -11
  88. data/app/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/cy.js +7 -7
  89. data/app/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/da.js +9 -9
  90. data/app/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/de-ch.js +12 -0
  91. data/app/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/de.js +11 -10
  92. data/app/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/el.js +7 -7
  93. data/app/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/en-au.js +11 -0
  94. data/app/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/en-gb.js +6 -6
  95. data/app/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/en.js +6 -6
  96. data/app/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/eo.js +7 -7
  97. data/app/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/es-mx.js +13 -0
  98. data/app/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/es.js +9 -8
  99. data/app/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/et.js +7 -7
  100. data/app/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/eu.js +12 -0
  101. data/app/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/fa.js +7 -7
  102. data/app/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/fi.js +7 -8
  103. data/app/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/fo.js +11 -0
  104. data/app/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/fr-ca.js +8 -9
  105. data/app/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/fr.js +11 -11
  106. data/app/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/gl.js +8 -8
  107. data/app/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/gu.js +6 -6
  108. data/app/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/he.js +7 -7
  109. data/app/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/hi.js +6 -6
  110. data/app/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/hr.js +9 -9
  111. data/app/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/hu.js +6 -7
  112. data/app/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/id.js +9 -9
  113. data/app/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/it.js +7 -7
  114. data/app/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/ja.js +5 -5
  115. data/app/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/km.js +6 -6
  116. data/app/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/ko.js +8 -8
  117. data/app/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/ku.js +8 -9
  118. data/app/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/lt.js +6 -6
  119. data/app/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/lv.js +6 -7
  120. data/app/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/mk.js +9 -9
  121. data/app/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/mn.js +6 -6
  122. data/app/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/nb.js +9 -9
  123. data/app/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/nl.js +6 -6
  124. data/app/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/no.js +7 -7
  125. data/app/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/oc.js +12 -0
  126. data/app/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/pl.js +10 -10
  127. data/app/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/pt-br.js +9 -8
  128. data/app/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/pt.js +10 -10
  129. data/app/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/ro.js +10 -10
  130. data/app/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/ru.js +7 -7
  131. data/app/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/si.js +8 -8
  132. data/app/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/sk.js +8 -9
  133. data/app/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/sl.js +8 -9
  134. data/app/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/sq.js +9 -9
  135. data/app/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/sr-latn.js +6 -6
  136. data/app/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/sr.js +6 -6
  137. data/app/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/sv.js +9 -10
  138. data/app/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/th.js +6 -6
  139. data/app/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/tr.js +8 -8
  140. data/app/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/tt.js +9 -9
  141. data/app/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/ug.js +8 -7
  142. data/app/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/uk.js +6 -6
  143. data/app/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/vi.js +7 -7
  144. data/app/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/zh-cn.js +7 -7
  145. data/app/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/zh.js +7 -8
  146. data/app/assets/javascripts/ckeditor/plugins/about/dialogs/about.js +6 -5
  147. data/app/assets/javascripts/ckeditor/plugins/about/dialogs/hidpi/logo_ckeditor.png +0 -0
  148. data/app/assets/javascripts/ckeditor/plugins/about/dialogs/logo_ckeditor.png +0 -0
  149. data/app/assets/javascripts/ckeditor/plugins/clipboard/dialogs/paste.js +9 -9
  150. data/app/assets/javascripts/ckeditor/plugins/colordialog/dialogs/colordialog.css +20 -0
  151. data/app/assets/javascripts/ckeditor/plugins/colordialog/dialogs/colordialog.js +12 -11
  152. data/app/assets/javascripts/ckeditor/plugins/dialog/dialogDefinition.js +2 -2
  153. data/app/assets/javascripts/ckeditor/plugins/dialogadvtab/plugin.js +196 -0
  154. data/app/assets/javascripts/ckeditor/plugins/div/dialogs/div.js +8 -8
  155. data/app/assets/javascripts/ckeditor/plugins/icons.png +0 -0
  156. data/app/assets/javascripts/ckeditor/plugins/icons_hidpi.png +0 -0
  157. data/app/assets/javascripts/ckeditor/plugins/image/dialogs/image.js +42 -41
  158. data/app/assets/javascripts/ckeditor/plugins/image/images/noimage.png +0 -0
  159. data/app/assets/javascripts/ckeditor/plugins/link/dialogs/anchor.js +6 -5
  160. data/app/assets/javascripts/ckeditor/plugins/link/dialogs/link.js +26 -24
  161. data/app/assets/javascripts/ckeditor/plugins/link/images/anchor.png +0 -0
  162. data/app/assets/javascripts/ckeditor/plugins/link/images/hidpi/anchor.png +0 -0
  163. data/app/assets/javascripts/ckeditor/plugins/magicline/images/hidpi/icon-rtl.png +0 -0
  164. data/app/assets/javascripts/ckeditor/plugins/magicline/images/hidpi/icon.png +0 -0
  165. data/app/assets/javascripts/ckeditor/plugins/magicline/images/icon-rtl.png +0 -0
  166. data/app/assets/javascripts/ckeditor/plugins/magicline/images/icon.png +0 -0
  167. data/app/assets/javascripts/ckeditor/plugins/pastecode/CHANGES.md +8 -0
  168. data/app/assets/javascripts/ckeditor/plugins/pastefromexcel/LICENSE.md +1242 -0
  169. data/app/assets/javascripts/ckeditor/plugins/pastefromexcel/README.md +23 -0
  170. data/app/assets/javascripts/ckeditor/plugins/pastefromexcel/tests/pastefromexcel.js +6 -0
  171. data/app/assets/javascripts/ckeditor/plugins/pastefromword/filter/default.js +53 -29
  172. data/app/assets/javascripts/ckeditor/plugins/scayt/CHANGELOG.md +20 -0
  173. data/app/assets/javascripts/ckeditor/plugins/scayt/dialogs/dialog.css +23 -0
  174. data/app/assets/javascripts/ckeditor/plugins/scayt/dialogs/options.js +32 -17
  175. data/app/assets/javascripts/ckeditor/plugins/scayt/skins/moono-lisa/scayt.css +25 -0
  176. data/app/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/_translationstatus.txt +2 -2
  177. data/app/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/af.js +13 -0
  178. data/app/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/ar.js +3 -3
  179. data/app/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/az.js +10 -0
  180. data/app/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/bg.js +4 -4
  181. data/app/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/ca.js +2 -2
  182. data/app/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/cs.js +3 -3
  183. data/app/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/cy.js +2 -2
  184. data/app/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/da.js +11 -0
  185. data/app/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/de-ch.js +13 -0
  186. data/app/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/de.js +11 -11
  187. data/app/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/el.js +5 -5
  188. data/app/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/en-au.js +13 -0
  189. data/app/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/en-ca.js +13 -0
  190. data/app/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/en-gb.js +3 -3
  191. data/app/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/en.js +3 -3
  192. data/app/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/eo.js +2 -2
  193. data/app/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/es-mx.js +13 -0
  194. data/app/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/es.js +2 -2
  195. data/app/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/et.js +3 -3
  196. data/app/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/eu.js +13 -0
  197. data/app/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/fa.js +2 -2
  198. data/app/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/fi.js +3 -3
  199. data/app/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/fr-ca.js +2 -2
  200. data/app/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/fr.js +10 -9
  201. data/app/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/gl.js +2 -2
  202. data/app/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/he.js +2 -2
  203. data/app/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/hr.js +11 -11
  204. data/app/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/hu.js +2 -2
  205. data/app/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/id.js +3 -3
  206. data/app/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/it.js +3 -3
  207. data/app/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/ja.js +2 -2
  208. data/app/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/km.js +3 -3
  209. data/app/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/ko.js +10 -0
  210. data/app/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/ku.js +2 -2
  211. data/app/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/lt.js +13 -0
  212. data/app/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/lv.js +2 -2
  213. data/app/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/nb.js +2 -2
  214. data/app/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/nl.js +2 -2
  215. data/app/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/no.js +2 -2
  216. data/app/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/oc.js +12 -0
  217. data/app/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/pl.js +3 -3
  218. data/app/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/pt-br.js +2 -2
  219. data/app/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/pt.js +11 -11
  220. data/app/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/ro.js +13 -0
  221. data/app/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/ru.js +2 -2
  222. data/app/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/si.js +3 -3
  223. data/app/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/sk.js +2 -2
  224. data/app/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/sl.js +10 -10
  225. data/app/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/sq.js +5 -5
  226. data/app/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/sv.js +2 -2
  227. data/app/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/th.js +3 -3
  228. data/app/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/tr.js +2 -2
  229. data/app/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/tt.js +6 -6
  230. data/app/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/ug.js +3 -3
  231. data/app/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/uk.js +2 -2
  232. data/app/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/vi.js +2 -2
  233. data/app/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/zh-cn.js +3 -3
  234. data/app/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/zh.js +7 -10
  235. data/app/assets/javascripts/ckeditor/plugins/specialchar/dialogs/specialchar.js +11 -11
  236. data/app/assets/javascripts/ckeditor/plugins/table/dialogs/table.js +19 -19
  237. data/app/assets/javascripts/ckeditor/plugins/tableselection/styles/tableselection.css +26 -0
  238. data/app/assets/javascripts/ckeditor/plugins/tabletools/dialogs/tableCell.js +16 -15
  239. data/app/assets/javascripts/ckeditor/plugins/widget/images/handle.png +0 -0
  240. data/app/assets/javascripts/ckeditor/plugins/wsc/dialogs/ciframe.html +1 -1
  241. data/app/assets/javascripts/ckeditor/plugins/wsc/dialogs/tmpFrameset.html +1 -1
  242. data/app/assets/javascripts/ckeditor/plugins/wsc/dialogs/wsc.css +1 -1
  243. data/app/assets/javascripts/ckeditor/plugins/wsc/dialogs/wsc.js +88 -71
  244. data/app/assets/javascripts/ckeditor/plugins/wsc/dialogs/wsc_ie.js +7 -7
  245. data/app/assets/javascripts/ckeditor/plugins/wsc/skins/moono-lisa/wsc.css +43 -0
  246. data/app/assets/javascripts/ckeditor/samples/css/samples.css +1637 -0
  247. data/app/assets/javascripts/ckeditor/samples/img/github-top.png +0 -0
  248. data/app/assets/javascripts/ckeditor/samples/img/header-bg.png +0 -0
  249. data/app/assets/javascripts/ckeditor/samples/img/header-separator.png +0 -0
  250. data/app/assets/javascripts/ckeditor/samples/img/logo.png +0 -0
  251. data/app/assets/javascripts/ckeditor/samples/img/logo.svg +13 -0
  252. data/app/assets/javascripts/ckeditor/samples/img/navigation-tip.png +0 -0
  253. data/app/assets/javascripts/ckeditor/samples/index.html +112 -112
  254. data/app/assets/javascripts/ckeditor/samples/js/sample.js +53 -0
  255. data/app/assets/javascripts/ckeditor/samples/js/sf.js +17 -0
  256. data/app/assets/javascripts/ckeditor/samples/{ajax.html → old/ajax.html} +8 -5
  257. data/app/assets/javascripts/ckeditor/samples/{api.html → old/api.html} +17 -14
  258. data/app/assets/javascripts/ckeditor/samples/{appendto.html → old/appendto.html} +10 -7
  259. data/app/assets/javascripts/ckeditor/samples/old/assets/inlineall/logo.png +0 -0
  260. data/app/assets/javascripts/ckeditor/samples/{assets → old/assets}/outputxhtml/outputxhtml.css +2 -2
  261. data/app/assets/javascripts/ckeditor/samples/{assets → old/assets}/posteddata.php +4 -4
  262. data/app/assets/javascripts/ckeditor/samples/old/assets/sample.jpg +0 -0
  263. data/app/assets/javascripts/ckeditor/samples/old/assets/uilanguages/languages.js +7 -0
  264. data/app/assets/javascripts/ckeditor/samples/{datafiltering.html → old/datafiltering.html} +120 -13
  265. data/app/assets/javascripts/ckeditor/samples/{plugins → old}/dialog/assets/my_dialog.js +3 -3
  266. data/app/assets/javascripts/ckeditor/samples/{plugins → old}/dialog/dialog.html +12 -9
  267. data/app/assets/javascripts/ckeditor/samples/{divreplace.html → old/divreplace.html} +8 -5
  268. data/app/assets/javascripts/ckeditor/samples/{plugins → old}/enterkey/enterkey.html +12 -9
  269. data/app/assets/javascripts/ckeditor/samples/{plugins → old}/htmlwriter/assets/outputforflash/outputforflash.fla +0 -0
  270. data/app/assets/javascripts/ckeditor/samples/{plugins → old}/htmlwriter/assets/outputforflash/outputforflash.swf +0 -0
  271. data/app/assets/javascripts/ckeditor/samples/old/htmlwriter/assets/outputforflash/swfobject.js +19 -0
  272. data/app/assets/javascripts/ckeditor/samples/{plugins → old}/htmlwriter/outputforflash.html +11 -8
  273. data/app/assets/javascripts/ckeditor/samples/{plugins → old}/htmlwriter/outputhtml.html +12 -9
  274. data/app/assets/javascripts/ckeditor/samples/old/index.html +131 -0
  275. data/app/assets/javascripts/ckeditor/samples/{inlineall.html → old/inlineall.html} +13 -10
  276. data/app/assets/javascripts/ckeditor/samples/{inlinebycode.html → old/inlinebycode.html} +9 -6
  277. data/app/assets/javascripts/ckeditor/samples/{inlinetextarea.html → old/inlinetextarea.html} +10 -7
  278. data/app/assets/javascripts/ckeditor/samples/{jquery.html → old/jquery.html} +11 -8
  279. data/app/assets/javascripts/ckeditor/samples/{plugins → old}/magicline/magicline.html +9 -6
  280. data/app/assets/javascripts/ckeditor/samples/{readonly.html → old/readonly.html} +11 -8
  281. data/app/assets/javascripts/ckeditor/samples/{replacebyclass.html → old/replacebyclass.html} +8 -5
  282. data/app/assets/javascripts/ckeditor/samples/{replacebycode.html → old/replacebycode.html} +8 -5
  283. data/app/assets/javascripts/ckeditor/samples/{sample.css → old/sample.css} +6 -14
  284. data/app/assets/javascripts/ckeditor/samples/{sample.js → old/sample.js} +2 -2
  285. data/app/assets/javascripts/ckeditor/samples/{sample_posteddata.php → old/sample_posteddata.php} +2 -2
  286. data/app/assets/javascripts/ckeditor/samples/{tabindex.html → old/tabindex.html} +8 -5
  287. data/app/assets/javascripts/ckeditor/samples/{plugins → old}/toolbar/toolbar.html +13 -10
  288. data/app/assets/javascripts/ckeditor/samples/{uicolor.html → old/uicolor.html} +9 -6
  289. data/app/assets/javascripts/ckeditor/samples/{uilanguages.html → old/uilanguages.html} +11 -8
  290. data/app/assets/javascripts/ckeditor/samples/old/wysiwygarea/fullpage.html +80 -0
  291. data/app/assets/javascripts/ckeditor/samples/{xhtmlstyle.html → old/xhtmlstyle.html} +10 -7
  292. data/app/assets/javascripts/ckeditor/samples/toolbarconfigurator/css/fontello.css +55 -0
  293. data/app/assets/javascripts/ckeditor/samples/toolbarconfigurator/font/LICENSE.txt +10 -0
  294. data/app/assets/javascripts/ckeditor/samples/toolbarconfigurator/font/config.json +28 -0
  295. data/app/assets/javascripts/ckeditor/samples/toolbarconfigurator/font/fontello.eot +0 -0
  296. data/app/assets/javascripts/ckeditor/samples/toolbarconfigurator/font/fontello.svg +14 -0
  297. data/app/assets/javascripts/ckeditor/samples/toolbarconfigurator/font/fontello.ttf +0 -0
  298. data/app/assets/javascripts/ckeditor/samples/toolbarconfigurator/font/fontello.woff +0 -0
  299. data/app/assets/javascripts/ckeditor/samples/toolbarconfigurator/index.html +446 -0
  300. data/app/assets/javascripts/ckeditor/samples/toolbarconfigurator/js/abstracttoolbarmodifier.js +13 -0
  301. data/app/assets/javascripts/ckeditor/samples/toolbarconfigurator/js/fulltoolbareditor.js +9 -0
  302. data/app/assets/javascripts/ckeditor/samples/toolbarconfigurator/js/toolbarmodifier.js +33 -0
  303. data/app/assets/javascripts/ckeditor/samples/toolbarconfigurator/js/toolbartextmodifier.js +14 -0
  304. data/app/assets/javascripts/ckeditor/samples/toolbarconfigurator/lib/codemirror/LICENSE +19 -0
  305. data/app/assets/javascripts/ckeditor/samples/toolbarconfigurator/lib/codemirror/codemirror.css +325 -0
  306. data/app/assets/javascripts/ckeditor/samples/toolbarconfigurator/lib/codemirror/codemirror.js +288 -0
  307. data/app/assets/javascripts/ckeditor/samples/toolbarconfigurator/lib/codemirror/javascript.js +25 -0
  308. data/app/assets/javascripts/ckeditor/samples/toolbarconfigurator/lib/codemirror/neo.css +36 -0
  309. data/app/assets/javascripts/ckeditor/samples/toolbarconfigurator/lib/codemirror/show-hint.css +38 -0
  310. data/app/assets/javascripts/ckeditor/samples/toolbarconfigurator/lib/codemirror/show-hint.js +16 -0
  311. data/app/assets/javascripts/ckeditor/skins/moono/dialog.css +3 -3
  312. data/app/assets/javascripts/ckeditor/skins/moono/dialog_ie.css +3 -3
  313. data/app/assets/javascripts/ckeditor/skins/moono/dialog_ie7.css +3 -3
  314. data/app/assets/javascripts/ckeditor/skins/moono/dialog_ie8.css +3 -3
  315. data/app/assets/javascripts/ckeditor/skins/moono/dialog_iequirks.css +3 -3
  316. data/app/assets/javascripts/ckeditor/skins/moono/editor.css +3 -3
  317. data/app/assets/javascripts/ckeditor/skins/moono/editor_gecko.css +3 -3
  318. data/app/assets/javascripts/ckeditor/skins/moono/editor_ie.css +3 -3
  319. data/app/assets/javascripts/ckeditor/skins/moono/editor_ie7.css +3 -3
  320. data/app/assets/javascripts/ckeditor/skins/moono/editor_ie8.css +3 -3
  321. data/app/assets/javascripts/ckeditor/skins/moono/editor_iequirks.css +3 -3
  322. data/app/assets/javascripts/ckeditor/skins/moono/icons.png +0 -0
  323. data/app/assets/javascripts/ckeditor/skins/moono/icons_hidpi.png +0 -0
  324. data/app/assets/javascripts/ckeditor/skins/moono/images/anchor.png +0 -0
  325. data/app/assets/javascripts/ckeditor/skins/moono/images/arrow.png +0 -0
  326. data/app/assets/javascripts/ckeditor/skins/moono/images/close.png +0 -0
  327. data/app/assets/javascripts/ckeditor/skins/moono/images/hidpi/anchor.png +0 -0
  328. data/app/assets/javascripts/ckeditor/skins/moono/images/hidpi/close.png +0 -0
  329. data/app/assets/javascripts/ckeditor/skins/moono/images/hidpi/lock-open.png +0 -0
  330. data/app/assets/javascripts/ckeditor/skins/moono/images/hidpi/lock.png +0 -0
  331. data/app/assets/javascripts/ckeditor/skins/moono/images/hidpi/refresh.png +0 -0
  332. data/app/assets/javascripts/ckeditor/skins/moono/images/lock-open.png +0 -0
  333. data/app/assets/javascripts/ckeditor/skins/moono/images/lock.png +0 -0
  334. data/app/assets/javascripts/ckeditor/skins/moono/images/refresh.png +0 -0
  335. data/app/assets/javascripts/ckeditor/skins/moono/images/spinner.gif +0 -0
  336. data/app/assets/javascripts/ckeditor/skins/moono/readme.md +5 -7
  337. data/app/assets/javascripts/ckeditor/styles.js +43 -17
  338. data/app/controllers/dc_elfinder_controller.rb +5 -1
  339. data/app/models/drgcms_form_fields/ckeditor.rb +60 -0
  340. data/{lib/patches/drgcms_form_field.rb → app/models/drgcms_form_fields/elfinder.rb} +1 -34
  341. data/lib/drg_default_html_editor.rb +1 -2
  342. data/lib/drg_default_html_editor/version.rb +1 -1
  343. data/lib/patches/patch_for_elfinder.rb +0 -1
  344. metadata +118 -127
  345. data/app/assets/javascripts/ckeditor/plugins/find/dialogs/find.js +0 -24
  346. data/app/assets/javascripts/ckeditor/plugins/flash/dialogs/flash.js +0 -24
  347. data/app/assets/javascripts/ckeditor/plugins/flash/images/placeholder.png +0 -0
  348. data/app/assets/javascripts/ckeditor/plugins/forms/dialogs/button.js +0 -8
  349. data/app/assets/javascripts/ckeditor/plugins/forms/dialogs/checkbox.js +0 -8
  350. data/app/assets/javascripts/ckeditor/plugins/forms/dialogs/form.js +0 -8
  351. data/app/assets/javascripts/ckeditor/plugins/forms/dialogs/hiddenfield.js +0 -8
  352. data/app/assets/javascripts/ckeditor/plugins/forms/dialogs/radio.js +0 -8
  353. data/app/assets/javascripts/ckeditor/plugins/forms/dialogs/select.js +0 -20
  354. data/app/assets/javascripts/ckeditor/plugins/forms/dialogs/textarea.js +0 -8
  355. data/app/assets/javascripts/ckeditor/plugins/forms/dialogs/textfield.js +0 -10
  356. data/app/assets/javascripts/ckeditor/plugins/forms/images/hiddenfield.gif +0 -0
  357. data/app/assets/javascripts/ckeditor/plugins/iframe/dialogs/iframe.js +0 -10
  358. data/app/assets/javascripts/ckeditor/plugins/iframe/images/placeholder.png +0 -0
  359. data/app/assets/javascripts/ckeditor/plugins/liststyle/dialogs/liststyle.js +0 -10
  360. data/app/assets/javascripts/ckeditor/plugins/pagebreak/images/pagebreak.gif +0 -0
  361. data/app/assets/javascripts/ckeditor/plugins/preview/preview.html +0 -13
  362. data/app/assets/javascripts/ckeditor/plugins/showblocks/images/block_address.png +0 -0
  363. data/app/assets/javascripts/ckeditor/plugins/showblocks/images/block_blockquote.png +0 -0
  364. data/app/assets/javascripts/ckeditor/plugins/showblocks/images/block_div.png +0 -0
  365. data/app/assets/javascripts/ckeditor/plugins/showblocks/images/block_h1.png +0 -0
  366. data/app/assets/javascripts/ckeditor/plugins/showblocks/images/block_h2.png +0 -0
  367. data/app/assets/javascripts/ckeditor/plugins/showblocks/images/block_h3.png +0 -0
  368. data/app/assets/javascripts/ckeditor/plugins/showblocks/images/block_h4.png +0 -0
  369. data/app/assets/javascripts/ckeditor/plugins/showblocks/images/block_h5.png +0 -0
  370. data/app/assets/javascripts/ckeditor/plugins/showblocks/images/block_h6.png +0 -0
  371. data/app/assets/javascripts/ckeditor/plugins/showblocks/images/block_p.png +0 -0
  372. data/app/assets/javascripts/ckeditor/plugins/showblocks/images/block_pre.png +0 -0
  373. data/app/assets/javascripts/ckeditor/plugins/smiley/dialogs/smiley.js +0 -10
  374. data/app/assets/javascripts/ckeditor/plugins/smiley/images/angel_smile.gif +0 -0
  375. data/app/assets/javascripts/ckeditor/plugins/smiley/images/angel_smile.png +0 -0
  376. data/app/assets/javascripts/ckeditor/plugins/smiley/images/angry_smile.gif +0 -0
  377. data/app/assets/javascripts/ckeditor/plugins/smiley/images/angry_smile.png +0 -0
  378. data/app/assets/javascripts/ckeditor/plugins/smiley/images/broken_heart.gif +0 -0
  379. data/app/assets/javascripts/ckeditor/plugins/smiley/images/broken_heart.png +0 -0
  380. data/app/assets/javascripts/ckeditor/plugins/smiley/images/confused_smile.gif +0 -0
  381. data/app/assets/javascripts/ckeditor/plugins/smiley/images/confused_smile.png +0 -0
  382. data/app/assets/javascripts/ckeditor/plugins/smiley/images/cry_smile.gif +0 -0
  383. data/app/assets/javascripts/ckeditor/plugins/smiley/images/cry_smile.png +0 -0
  384. data/app/assets/javascripts/ckeditor/plugins/smiley/images/devil_smile.gif +0 -0
  385. data/app/assets/javascripts/ckeditor/plugins/smiley/images/devil_smile.png +0 -0
  386. data/app/assets/javascripts/ckeditor/plugins/smiley/images/embaressed_smile.gif +0 -0
  387. data/app/assets/javascripts/ckeditor/plugins/smiley/images/embarrassed_smile.gif +0 -0
  388. data/app/assets/javascripts/ckeditor/plugins/smiley/images/embarrassed_smile.png +0 -0
  389. data/app/assets/javascripts/ckeditor/plugins/smiley/images/envelope.gif +0 -0
  390. data/app/assets/javascripts/ckeditor/plugins/smiley/images/envelope.png +0 -0
  391. data/app/assets/javascripts/ckeditor/plugins/smiley/images/heart.gif +0 -0
  392. data/app/assets/javascripts/ckeditor/plugins/smiley/images/heart.png +0 -0
  393. data/app/assets/javascripts/ckeditor/plugins/smiley/images/kiss.gif +0 -0
  394. data/app/assets/javascripts/ckeditor/plugins/smiley/images/kiss.png +0 -0
  395. data/app/assets/javascripts/ckeditor/plugins/smiley/images/lightbulb.gif +0 -0
  396. data/app/assets/javascripts/ckeditor/plugins/smiley/images/lightbulb.png +0 -0
  397. data/app/assets/javascripts/ckeditor/plugins/smiley/images/omg_smile.gif +0 -0
  398. data/app/assets/javascripts/ckeditor/plugins/smiley/images/omg_smile.png +0 -0
  399. data/app/assets/javascripts/ckeditor/plugins/smiley/images/regular_smile.gif +0 -0
  400. data/app/assets/javascripts/ckeditor/plugins/smiley/images/regular_smile.png +0 -0
  401. data/app/assets/javascripts/ckeditor/plugins/smiley/images/sad_smile.gif +0 -0
  402. data/app/assets/javascripts/ckeditor/plugins/smiley/images/sad_smile.png +0 -0
  403. data/app/assets/javascripts/ckeditor/plugins/smiley/images/shades_smile.gif +0 -0
  404. data/app/assets/javascripts/ckeditor/plugins/smiley/images/shades_smile.png +0 -0
  405. data/app/assets/javascripts/ckeditor/plugins/smiley/images/teeth_smile.gif +0 -0
  406. data/app/assets/javascripts/ckeditor/plugins/smiley/images/teeth_smile.png +0 -0
  407. data/app/assets/javascripts/ckeditor/plugins/smiley/images/thumbs_down.gif +0 -0
  408. data/app/assets/javascripts/ckeditor/plugins/smiley/images/thumbs_down.png +0 -0
  409. data/app/assets/javascripts/ckeditor/plugins/smiley/images/thumbs_up.gif +0 -0
  410. data/app/assets/javascripts/ckeditor/plugins/smiley/images/thumbs_up.png +0 -0
  411. data/app/assets/javascripts/ckeditor/plugins/smiley/images/tongue_smile.gif +0 -0
  412. data/app/assets/javascripts/ckeditor/plugins/smiley/images/tongue_smile.png +0 -0
  413. data/app/assets/javascripts/ckeditor/plugins/smiley/images/tounge_smile.gif +0 -0
  414. data/app/assets/javascripts/ckeditor/plugins/smiley/images/whatchutalkingabout_smile.gif +0 -0
  415. data/app/assets/javascripts/ckeditor/plugins/smiley/images/whatchutalkingabout_smile.png +0 -0
  416. data/app/assets/javascripts/ckeditor/plugins/smiley/images/wink_smile.gif +0 -0
  417. data/app/assets/javascripts/ckeditor/plugins/smiley/images/wink_smile.png +0 -0
  418. data/app/assets/javascripts/ckeditor/plugins/templates/dialogs/templates.css +0 -84
  419. data/app/assets/javascripts/ckeditor/plugins/templates/dialogs/templates.js +0 -10
  420. data/app/assets/javascripts/ckeditor/plugins/templates/templates/default.js +0 -6
  421. data/app/assets/javascripts/ckeditor/plugins/templates/templates/images/template1.gif +0 -0
  422. data/app/assets/javascripts/ckeditor/plugins/templates/templates/images/template2.gif +0 -0
  423. data/app/assets/javascripts/ckeditor/plugins/templates/templates/images/template3.gif +0 -0
  424. data/app/assets/javascripts/ckeditor/samples/assets/inlineall/logo.png +0 -0
  425. data/app/assets/javascripts/ckeditor/samples/assets/sample.jpg +0 -0
  426. data/app/assets/javascripts/ckeditor/samples/assets/uilanguages/languages.js +0 -7
  427. data/app/assets/javascripts/ckeditor/samples/plugins/htmlwriter/assets/outputforflash/swfobject.js +0 -18
  428. data/app/assets/javascripts/ckeditor/samples/plugins/wysiwygarea/fullpage.html +0 -77
@@ -0,0 +1,80 @@
1
+ <!DOCTYPE html>
2
+ <!--
3
+ Copyright (c) 2003-2018, CKSource - Frederico Knabben. All rights reserved.
4
+ For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
5
+ -->
6
+ <html>
7
+ <head>
8
+ <meta charset="utf-8">
9
+ <title>Full Page Editing &mdash; CKEditor Sample</title>
10
+ <script src="../../../ckeditor.js"></script>
11
+ <script src="../../../samples/old/sample.js"></script>
12
+ <link rel="stylesheet" href="../../../samples/old/sample.css">
13
+ <meta name="ckeditor-sample-required-plugins" content="sourcearea">
14
+ <meta name="ckeditor-sample-name" content="Full page support">
15
+ <meta name="ckeditor-sample-group" content="Plugins">
16
+ <meta name="ckeditor-sample-description" content="CKEditor inserted with a JavaScript call and used to edit the whole page from &lt;html&gt; to &lt;/html&gt;.">
17
+ </head>
18
+ <body>
19
+ <h1 class="samples">
20
+ <a href="../../../samples/old/index.html">CKEditor Samples</a> &raquo; Full Page Editing
21
+ </h1>
22
+ <div class="warning deprecated">
23
+ This sample is not maintained anymore. Check out its <a href="https://sdk.ckeditor.com/samples/fullpage.html">brand new version in CKEditor SDK</a>.
24
+ </div>
25
+ <div class="description">
26
+ <p>
27
+ This sample shows how to configure CKEditor to edit entire HTML pages, from the
28
+ <code>&lt;html&gt;</code> tag to the <code>&lt;/html&gt;</code> tag.
29
+ </p>
30
+ <p>
31
+ The CKEditor instance below is inserted with a JavaScript call using the following code:
32
+ </p>
33
+ <pre class="samples">
34
+ CKEDITOR.replace( '<em>textarea_id</em>', {
35
+ <strong>fullPage: true</strong>,
36
+ <strong>allowedContent: true</strong>
37
+ });
38
+ </pre>
39
+ <p>
40
+ Note that <code><em>textarea_id</em></code> in the code above is the <code>id</code> attribute of
41
+ the <code>&lt;textarea&gt;</code> element to be replaced.
42
+ </p>
43
+ <p>
44
+ The <code><em>allowedContent</em></code> in the code above is set to <code>true</code> to disable content filtering.
45
+ Setting this option is not obligatory, but in full page mode there is a strong chance that one may want be able to freely enter any HTML content in source mode without any limitations.
46
+ </p>
47
+ </div>
48
+ <form action="../../../samples/sample_posteddata.php" method="post">
49
+ <label for="editor1">
50
+ CKEditor output the entire page including content outside of
51
+ <code>&lt;body&gt;</code> element, so content like meta and title can be changed:
52
+ </label>
53
+ <textarea cols="80" id="editor1" name="editor1" rows="10">
54
+ &lt;h1&gt;&lt;img align=&quot;right&quot; alt=&quot;Saturn V carrying Apollo 11&quot; src=&quot;../../../samples/old/assets/sample.jpg&quot;/&gt; Apollo 11&lt;/h1&gt; &lt;p&gt;&lt;b&gt;Apollo 11&lt;/b&gt; was the spaceflight that landed the first humans, Americans &lt;a href=&quot;http://en.wikipedia.org/wiki/Neil_Armstrong&quot; title=&quot;Neil Armstrong&quot;&gt;Neil Armstrong&lt;/a&gt; and &lt;a href=&quot;http://en.wikipedia.org/wiki/Buzz_Aldrin&quot; title=&quot;Buzz Aldrin&quot;&gt;Buzz Aldrin&lt;/a&gt;, 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.&lt;/p&gt; &lt;p&gt;Armstrong spent about &lt;s&gt;three and a half&lt;/s&gt; two and a half hours outside the spacecraft, Aldrin slightly less; and together they collected 47.5 pounds (21.5&amp;nbsp;kg) of lunar material for return to Earth. A third member of the mission, &lt;a href=&quot;http://en.wikipedia.org/wiki/Michael_Collins_(astronaut)&quot; title=&quot;Michael Collins (astronaut)&quot;&gt;Michael Collins&lt;/a&gt;, piloted the &lt;a href=&quot;http://en.wikipedia.org/wiki/Apollo_Command/Service_Module&quot; title=&quot;Apollo Command/Service Module&quot;&gt;command&lt;/a&gt; spacecraft alone in lunar orbit until Armstrong and Aldrin returned to it for the trip back to Earth.&lt;/p&gt; &lt;h2&gt;Broadcasting and &lt;em&gt;quotes&lt;/em&gt; &lt;a id=&quot;quotes&quot; name=&quot;quotes&quot;&gt;&lt;/a&gt;&lt;/h2&gt; &lt;p&gt;Broadcast on live TV to a world-wide audience, Armstrong stepped onto the lunar surface and described the event as:&lt;/p&gt; &lt;blockquote&gt;&lt;p&gt;One small step for [a] man, one giant leap for mankind.&lt;/p&gt;&lt;/blockquote&gt; &lt;p&gt;Apollo 11 effectively ended the &lt;a href=&quot;http://en.wikipedia.org/wiki/Space_Race&quot; title=&quot;Space Race&quot;&gt;Space Race&lt;/a&gt; and fulfilled a national goal proposed in 1961 by the late U.S. President &lt;a href=&quot;http://en.wikipedia.org/wiki/John_F._Kennedy&quot; title=&quot;John F. Kennedy&quot;&gt;John F. Kennedy&lt;/a&gt; in a speech before the United States Congress:&lt;/p&gt; &lt;blockquote&gt;&lt;p&gt;[...] before this decade is out, of landing a man on the Moon and returning him safely to the Earth.&lt;/p&gt;&lt;/blockquote&gt; &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;
55
+ </textarea>
56
+ <script>
57
+
58
+ CKEDITOR.replace( 'editor1', {
59
+ fullPage: true,
60
+ allowedContent: true,
61
+ extraPlugins: 'wysiwygarea'
62
+ });
63
+
64
+ </script>
65
+ <p>
66
+ <input type="submit" value="Submit">
67
+ </p>
68
+ </form>
69
+ <div id="footer">
70
+ <hr>
71
+ <p>
72
+ CKEditor - The text editor for the Internet - <a class="samples" href="https://ckeditor.com/">https://ckeditor.com</a>
73
+ </p>
74
+ <p id="copy">
75
+ Copyright &copy; 2003-2018, <a class="samples" href="https://cksource.com/">CKSource</a> - Frederico
76
+ Knabben. All rights reserved.
77
+ </p>
78
+ </div>
79
+ </body>
80
+ </html>
@@ -1,21 +1,24 @@
1
1
  <!DOCTYPE html>
2
2
  <!--
3
- Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
4
- For licensing, see LICENSE.md or http://ckeditor.com/license
3
+ Copyright (c) 2003-2018, CKSource - Frederico Knabben. All rights reserved.
4
+ For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
5
5
  -->
6
6
  <html>
7
7
  <head>
8
8
  <meta charset="utf-8">
9
9
  <title>XHTML Compliant Output &mdash; CKEditor Sample</title>
10
10
  <meta name="ckeditor-sample-required-plugins" content="sourcearea">
11
- <script src="../ckeditor.js"></script>
12
- <script src="../samples/sample.js"></script>
11
+ <script src="../../ckeditor.js"></script>
12
+ <script src="sample.js"></script>
13
13
  <link href="sample.css" rel="stylesheet">
14
14
  </head>
15
15
  <body>
16
16
  <h1 class="samples">
17
17
  <a href="index.html">CKEditor Samples</a> &raquo; Producing XHTML Compliant Output
18
18
  </h1>
19
+ <div class="warning deprecated">
20
+ This sample is not maintained anymore. Check out its <a href="https://sdk.ckeditor.com/samples/basicstyles.html">brand new version in CKEditor SDK</a>.
21
+ </div>
19
22
  <div class="description">
20
23
  <p>
21
24
  This sample shows how to configure CKEditor to output valid
@@ -52,7 +55,7 @@ CKEDITOR.replace( '<em>textarea_id</em>', {
52
55
  <label for="editor1">
53
56
  Editor 1:
54
57
  </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>
58
+ <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="https://ckeditor.com/"&gt;CKEditor&lt;/a&gt;.&lt;/p&gt;</textarea>
56
59
  <script>
57
60
 
58
61
  CKEDITOR.replace( 'editor1', {
@@ -220,10 +223,10 @@ CKEDITOR.replace( '<em>textarea_id</em>', {
220
223
  <div id="footer">
221
224
  <hr>
222
225
  <p>
223
- CKEditor - The text editor for the Internet - <a class="samples" href="http://ckeditor.com/">http://ckeditor.com</a>
226
+ CKEditor - The text editor for the Internet - <a class="samples" href="https://ckeditor.com/">https://ckeditor.com</a>
224
227
  </p>
225
228
  <p id="copy">
226
- Copyright &copy; 2003-2014, <a class="samples" href="http://cksource.com/">CKSource</a> - Frederico
229
+ Copyright &copy; 2003-2018, <a class="samples" href="https://cksource.com/">CKSource</a> - Frederico
227
230
  Knabben. All rights reserved.
228
231
  </p>
229
232
  </div>
@@ -0,0 +1,55 @@
1
+ @font-face {
2
+ font-family: 'fontello';
3
+ src: url('../font/fontello.eot?89024372');
4
+ src: url('../font/fontello.eot?89024372#iefix') format('embedded-opentype'),
5
+ url('../font/fontello.woff?89024372') format('woff'),
6
+ url('../font/fontello.ttf?89024372') format('truetype'),
7
+ url('../font/fontello.svg?89024372#fontello') format('svg');
8
+ font-weight: normal;
9
+ font-style: normal;
10
+ }
11
+ /* Chrome hack: SVG is rendered more smooth in Windozze. 100% magic, uncomment if you need it. */
12
+ /* Note, that will break hinting! In other OS-es font will be not as sharp as it could be */
13
+ /*
14
+ @media screen and (-webkit-min-device-pixel-ratio:0) {
15
+ @font-face {
16
+ font-family: 'fontello';
17
+ src: url('../font/fontello.svg?89024372#fontello') format('svg');
18
+ }
19
+ }
20
+ */
21
+
22
+ [class^="icon-"]:before, [class*=" icon-"]:before {
23
+ font-family: "fontello";
24
+ font-style: normal;
25
+ font-weight: normal;
26
+ speak: none;
27
+
28
+ display: inline-block;
29
+ text-decoration: inherit;
30
+ width: 1em;
31
+ margin-right: .2em;
32
+ text-align: center;
33
+ /* opacity: .8; */
34
+
35
+ /* For safety - reset parent styles, that can break glyph codes*/
36
+ font-variant: normal;
37
+ text-transform: none;
38
+
39
+ /* fix buttons height, for twitter bootstrap */
40
+ line-height: 1em;
41
+
42
+ /* Animation center compensation - margins should be symmetric */
43
+ /* remove if not needed */
44
+ margin-left: .2em;
45
+
46
+ /* you can be more comfortable with increased icons size */
47
+ /* font-size: 120%; */
48
+
49
+ /* Uncomment for 3D effect */
50
+ /* text-shadow: 1px 1px 1px rgba(127, 127, 127, 0.3); */
51
+ }
52
+
53
+ .icon-trash:before { content: '\e802'; } /* '' */
54
+ .icon-down-big:before { content: '\e800'; } /* '' */
55
+ .icon-up-big:before { content: '\e801'; } /* '' */
@@ -0,0 +1,10 @@
1
+ Font license info
2
+
3
+
4
+ ## Font Awesome
5
+
6
+ Copyright (C) 2012 by Dave Gandy
7
+
8
+ Author: Dave Gandy
9
+ License: SIL ()
10
+ Homepage: http://fortawesome.github.com/Font-Awesome/
@@ -0,0 +1,28 @@
1
+ {
2
+ "name": "",
3
+ "css_prefix_text": "icon-",
4
+ "css_use_suffix": false,
5
+ "hinting": true,
6
+ "units_per_em": 1000,
7
+ "ascent": 850,
8
+ "glyphs": [
9
+ {
10
+ "uid": "f48ae54adfb27d8ada53d0fd9e34ee10",
11
+ "css": "trash-empty",
12
+ "code": 59392,
13
+ "src": "fontawesome"
14
+ },
15
+ {
16
+ "uid": "1c4068ed75209e21af36017df8871802",
17
+ "css": "down-big",
18
+ "code": 59393,
19
+ "src": "fontawesome"
20
+ },
21
+ {
22
+ "uid": "95376bf082bfec6ce06ea1cda7bd7ead",
23
+ "css": "up-big",
24
+ "code": 59394,
25
+ "src": "fontawesome"
26
+ }
27
+ ]
28
+ }
@@ -0,0 +1,14 @@
1
+ <?xml version="1.0" standalone="no"?>
2
+ <!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
3
+ <svg xmlns="http://www.w3.org/2000/svg">
4
+ <metadata>Copyright (C) 2014 by original authors @ fontello.com</metadata>
5
+ <defs>
6
+ <font id="fontello" horiz-adv-x="1000" >
7
+ <font-face font-family="fontello" font-weight="400" font-stretch="normal" units-per-em="1000" ascent="850" descent="-150" />
8
+ <missing-glyph horiz-adv-x="1000" />
9
+ <glyph glyph-name="trash" unicode="&#xe802;" d="m286 439v-321q0-8-5-13t-13-5h-36q-8 0-13 5t-5 13v321q0 8 5 13t13 5h36q8 0 13-5t5-13z m143 0v-321q0-8-5-13t-13-5h-36q-8 0-13 5t-5 13v321q0 8 5 13t13 5h36q8 0 13-5t5-13z m142 0v-321q0-8-5-13t-12-5h-36q-8 0-13 5t-5 13v321q0 8 5 13t13 5h36q7 0 12-5t5-13z m72-404v529h-500v-529q0-12 4-22t8-15t6-5h464q2 0 6 5t8 15t4 22z m-375 601h250l-27 65q-4 5-9 6h-177q-6-1-10-6z m518-18v-36q0-8-5-13t-13-5h-54v-529q0-46-26-80t-63-34h-464q-37 0-63 33t-27 79v531h-53q-8 0-13 5t-5 13v36q0 8 5 13t13 5h172l39 93q9 21 31 35t44 15h178q22 0 44-15t30-35l39-93h173q8 0 13-5t5-13z" horiz-adv-x="785.7" />
10
+ <glyph glyph-name="down-big" unicode="&#xe800;" d="m899 386q0-30-21-50l-363-364q-22-21-51-21q-29 0-50 21l-363 364q-21 20-21 50q0 29 21 51l41 41q22 21 51 21q29 0 50-21l164-164v393q0 29 21 50t51 22h71q29 0 50-22t21-50v-393l164 164q21 21 51 21q29 0 50-21l42-42q21-21 21-50z" horiz-adv-x="928.6" />
11
+ <glyph glyph-name="up-big" unicode="&#xe801;" d="m899 308q0-28-21-50l-42-42q-21-21-50-21q-30 0-51 21l-164 164v-393q0-29-20-47t-51-19h-71q-30 0-51 19t-21 47v393l-164-164q-20-21-50-21t-50 21l-42 42q-21 21-21 50q0 30 21 51l363 363q20 21 50 21q30 0 51-21l363-363q21-22 21-51z" horiz-adv-x="928.6" />
12
+ </font>
13
+ </defs>
14
+ </svg>
@@ -0,0 +1,446 @@
1
+ <!DOCTYPE html>
2
+ <!--
3
+ Copyright (c) 2003-2018, CKSource - Frederico Knabben. All rights reserved.
4
+ For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
5
+ -->
6
+ <!--[if IE 8]><html class="ie8"><![endif]-->
7
+ <!--[if gt IE 8]><html><![endif]-->
8
+ <!--[if !IE]><!--><html><!--<![endif]-->
9
+ <head>
10
+ <meta charset="utf-8">
11
+ <title>Toolbar Configurator</title>
12
+ <script src="../../ckeditor.js"></script>
13
+ <script>
14
+ if ( CKEDITOR.env.ie && CKEDITOR.env.version < 9 )
15
+ CKEDITOR.tools.enableHtml5Elements( document );
16
+ </script>
17
+ <link rel="stylesheet" href="lib/codemirror/codemirror.css">
18
+ <link rel="stylesheet" href="lib/codemirror/show-hint.css">
19
+ <link rel="stylesheet" href="lib/codemirror/neo.css">
20
+ <link rel="stylesheet" href="css/fontello.css">
21
+ <link rel="stylesheet" href="../css/samples.css">
22
+ </head>
23
+ <body id="toolbar">
24
+
25
+ <nav class="navigation-a">
26
+ <div class="grid-container">
27
+ <ul class="navigation-a-left grid-width-70">
28
+ <li><a href="https://ckeditor.com/ckeditor-4/">Project Homepage</a></li>
29
+ <li><a href="https://github.com/ckeditor/ckeditor-dev/issues">I found a bug</a></li>
30
+ <li><a href="http://github.com/ckeditor/ckeditor-dev" class="icon-pos-right icon-navigation-a-github">Fork CKEditor on GitHub</a></li>
31
+ </ul>
32
+ <ul class="navigation-a-right grid-width-30">
33
+ <li><a href="https://ckeditor.com/blog/">CKEditor Blog</a></li>
34
+ </ul>
35
+ </div>
36
+ </nav>
37
+
38
+ <header class="header-a">
39
+ <div class="grid-container">
40
+ <h1 class="header-a-logo grid-width-30">
41
+ <a href="../index.html"><img src="../img/logo.svg" onerror="this.src='../img/logo.png'; this.onerror=null;" alt="CKEditor Logo"></a>
42
+ </h1>
43
+ <nav class="navigation-b grid-width-70">
44
+ <ul>
45
+ <li><a href="../index.html" class="button-a">Start</a></li>
46
+ <li><a href="index.html" class="button-a button-a-background">Toolbar configurator</a></li>
47
+ </ul>
48
+ </nav>
49
+ </div>
50
+ </header>
51
+
52
+ <main>
53
+ <div class="adjoined-top">
54
+ <div class="grid-container">
55
+ <div class="content grid-width-100">
56
+ <div class="grid-container-nested">
57
+ <h1 class="grid-width-60">
58
+ Toolbar Configurator
59
+ <a href="#help-content" type="button" title="Configurator help" id="help" class="button-a button-a-background button-a-no-text icon-pos-left icon-question-mark">Help</a>
60
+ </h1>
61
+
62
+ <div class="grid-width-40 grid-switch-magic">
63
+ <div class="switch">
64
+ <span class="balloon-a balloon-a-se">Select configurator type</span>
65
+ <input type="radio" name="radio" data-num="1" id="radio-basic" />
66
+ <input type="radio" name="radio" data-num="2" id="radio-advanced" />
67
+ <label data-for="1" for="radio-basic">Basic</label>
68
+ <span class="switch-inner">
69
+ <span class="handler"></span>
70
+ </span>
71
+ <label data-for="2" for="radio-advanced">Advanced</label>
72
+ </div>
73
+ </div>
74
+ </div>
75
+ </div>
76
+ </div>
77
+ </div>
78
+ <div class="adjoined-bottom">
79
+ <div class="grid-container">
80
+ <div class="grid-width-100">
81
+ <div class="editors-container">
82
+ <div id="editor-basic"></div>
83
+ <div id="editor-advanced"></div>
84
+ </div>
85
+ </div>
86
+ </div>
87
+ </div>
88
+
89
+ <div class="grid-container configurator">
90
+ <div class="content grid-width-100">
91
+ <div class="configurator">
92
+ <div>
93
+ <div id="toolbarModifierWrapper"></div>
94
+ </div>
95
+ </div>
96
+ </div>
97
+ </div>
98
+
99
+ <div id="help-content">
100
+ <div class="grid-container">
101
+ <div class="grid-width-100">
102
+ <h2>What Am I Doing Here?</h2>
103
+
104
+ <div class="grid-container grid-container-nested">
105
+ <div class="basic">
106
+ <div class="grid-width-50">
107
+ <p>Arrange <a href="https://ckeditor.com/docs/ckeditor4/latest/api/CKEDITOR_config.html#cfg-toolbarGroups">toolbar groups</a>, toggle <a href="https://ckeditor.com/docs/ckeditor4/latest/api/CKEDITOR_config.html#cfg-removeButtons">button visibility</a> according to your needs and get your toolbar configuration.</p>
108
+ <p>You can replace the content of the <a href="../../config.js"><code>config.js</code></a> file with the generated configuration. If you already set some configuration options you will need to merge both configurations.</p>
109
+ </div>
110
+ <div class="grid-width-50">
111
+ <p>Read more about different ways of <a href="https://ckeditor.com/docs/ckeditor4/latest/guide/dev_configuration.html">setting configuration</a> and do not forget about <strong>clearing browser cache</strong>.</p>
112
+ <p>Arranging toolbar groups is the recommended way of configuring the toolbar, but if you need more freedom you can use the <a href="#advanced">advanced configurator</a>.</p>
113
+ </div>
114
+ </div>
115
+ <div class="advanced" style="display: none;">
116
+ <div class="grid-width-50">
117
+ <p>With this code editor you can edit your <a href="https://ckeditor.com/docs/ckeditor4/latest/api/CKEDITOR_config.html#cfg-toolbar">toolbar configuration</a> live.</p>
118
+ <p>You can replace the content of the <a href="../../config.js"><code>config.js</code></a> file with the generated configuration. If you already set some configuration options you will need to merge both configurations.</p>
119
+ </div>
120
+ <div class="grid-width-50">
121
+ <p>Read more about different ways of <a href="https://ckeditor.com/docs/ckeditor4/latest/guide/dev_configuration.html">setting configuration</a> and do not forget about <strong>clearing browser cache</strong>.</p>
122
+ </div>
123
+ </div>
124
+ </div>
125
+
126
+ <p class="grid-container grid-container-nested">
127
+ <button type="button" class="help-content-close grid-width-100 button-a button-a-background">Got it. Let's play!</button>
128
+ </p>
129
+ </div>
130
+ </div>
131
+ </div>
132
+ </main>
133
+
134
+ <footer class="footer-a grid-container">
135
+ <p class="grid-width-100">
136
+ CKEditor &ndash; The text editor for the Internet &ndash; <a class="samples" href="https://ckeditor.com/">https://ckeditor.com</a>
137
+ </p>
138
+ <p class="grid-width-100" id="copy">
139
+ Copyright &copy; 2003-2018, <a class="samples" href="https://cksource.com/">CKSource</a> &ndash; Frederico Knabben. All rights reserved.
140
+ </p>
141
+ </footer>
142
+
143
+ <script src="lib/codemirror/codemirror.js"></script>
144
+ <script src="lib/codemirror/javascript.js"></script>
145
+ <script src="lib/codemirror/show-hint.js"></script>
146
+
147
+ <script src="js/fulltoolbareditor.js"></script>
148
+ <script src="js/abstracttoolbarmodifier.js"></script>
149
+ <script src="js/toolbarmodifier.js"></script>
150
+ <script src="js/toolbartextmodifier.js"></script>
151
+ <script src="../js/sf.js"></script>
152
+
153
+ <script>
154
+ ( function() {
155
+ 'use strict';
156
+
157
+ var mode = ( window.location.hash.substr( 1 ) === 'advanced' ) ? 'advanced' : 'basic',
158
+ configuratorSection = CKEDITOR.document.findOne( 'main > .grid-container.configurator' ),
159
+ basicInstruction = CKEDITOR.document.findOne( '#help-content .basic' ),
160
+ advancedInstruction = CKEDITOR.document.findOne( '#help-content .advanced' ),
161
+
162
+ // Configurator mode switcher.
163
+ modeSwitchBasic = CKEDITOR.document.getById( 'radio-basic' ),
164
+ modeSwitchAdvanced = CKEDITOR.document.getById( 'radio-advanced' );
165
+
166
+ // Initial setup
167
+ function updateSwitcher() {
168
+ if ( mode === 'advanced' ) {
169
+ modeSwitchAdvanced.$.checked = true;
170
+ } else {
171
+ modeSwitchBasic.$.checked = true;
172
+ }
173
+ }
174
+
175
+ updateSwitcher();
176
+
177
+ CKEDITOR.document.getWindow().on( 'hashchange', function( e ) {
178
+ var hash = window.location.hash.substr( 1 );
179
+ if ( !( hash === 'advanced' || hash === 'basic' ) ) {
180
+ return;
181
+ }
182
+ mode = hash;
183
+ onToolbarsDone( mode );
184
+ } );
185
+
186
+ CKEDITOR.document.getWindow().on( 'resize', function() {
187
+ updateToolbar( ( mode === 'basic' ? toolbarModifier : toolbarTextModifier )[ 'editorInstance' ] );
188
+ } );
189
+
190
+ function onRefresh( modifier ) {
191
+ modifier = modifier || this;
192
+
193
+ if ( mode === 'basic' && modifier instanceof ToolbarConfigurator.ToolbarTextModifier ) {
194
+ return;
195
+ }
196
+
197
+ // CodeMirror container becomes visible, so we need to refresh and to avoid rendering problems.
198
+ if ( mode === 'advanced' && modifier instanceof ToolbarConfigurator.ToolbarTextModifier ) {
199
+ modifier.codeContainer.refresh();
200
+ }
201
+
202
+ updateToolbar( modifier.editorInstance );
203
+ }
204
+
205
+ function updateToolbar( editor ) {
206
+ var editorContainer = editor.container;
207
+
208
+ // Not always editor is loaded.
209
+ if ( !editorContainer ) {
210
+ return;
211
+ }
212
+
213
+ var displayStyle = editorContainer.getStyle( 'display' );
214
+
215
+ editorContainer.setStyle( 'display', 'block' );
216
+
217
+ var newHeight = editorContainer.getSize( 'height' );
218
+
219
+ var newMarginTop = parseInt( editorContainer.getComputedStyle( 'margin-top' ), 10 );
220
+ newMarginTop = ( isNaN( newMarginTop ) ? 0 : Number( newMarginTop ) );
221
+
222
+ var newMarginBottom = parseInt( editorContainer.getComputedStyle( 'margin-bottom' ), 10 );
223
+ newMarginBottom = ( isNaN( newMarginBottom ) ? 0 : Number( newMarginBottom ) );
224
+
225
+ var result = newHeight + newMarginTop + newMarginBottom;
226
+
227
+ editorContainer.setStyle( 'display', displayStyle );
228
+
229
+ editor.container.getAscendant( 'div' ).setStyle( 'height', result + 'px' );
230
+ }
231
+
232
+ var toolbarModifier = new ToolbarConfigurator.ToolbarModifier( 'editor-basic' );
233
+
234
+ var done = 0;
235
+ toolbarModifier.init( onToolbarInit );
236
+ toolbarModifier.onRefresh = onRefresh;
237
+
238
+ CKEDITOR.document.getById( 'toolbarModifierWrapper' ).append( toolbarModifier.mainContainer );
239
+
240
+ var toolbarTextModifier = new ToolbarConfigurator.ToolbarTextModifier( 'editor-advanced' );
241
+ toolbarTextModifier.init( onToolbarInit );
242
+ toolbarTextModifier.onRefresh = onRefresh;
243
+
244
+ function onToolbarInit() {
245
+ if ( ++done === 2 ) {
246
+ onToolbarsDone();
247
+
248
+ positionSticky.watch( CKEDITOR.document.findOne( '.toolbar' ), function() {
249
+ return mode === 'advanced';
250
+ } );
251
+ }
252
+ }
253
+
254
+ function onToolbarsDone() {
255
+ if ( mode === 'basic' ) {
256
+ toggleModeBasic( false );
257
+ } else {
258
+ toggleModeAdvanced( false );
259
+ }
260
+
261
+ updateSwitcher();
262
+
263
+ setTimeout( function() {
264
+ CKEDITOR.document.findOne( '.editors-container' ).addClass( 'active' );
265
+ CKEDITOR.document.findOne( '#toolbarModifierWrapper' ).addClass( 'active' );
266
+ }, 200 );
267
+ }
268
+
269
+ CKEDITOR.document.getById( 'toolbarModifierWrapper' ).append( toolbarTextModifier.mainContainer );
270
+
271
+ function toogleModeSwitch( onElement, offElement, onModifier, offModifier ) {
272
+ onElement.addClass( 'fancy-button-active' );
273
+ offElement.removeClass( 'fancy-button-active' );
274
+
275
+ onModifier.showUI();
276
+ offModifier.hideUI();
277
+ }
278
+
279
+ function toggleModeBasic( callOnRefresh ) {
280
+ callOnRefresh = ( callOnRefresh !== false );
281
+ mode = 'basic';
282
+ window.location.hash = '#basic';
283
+ toogleModeSwitch( modeSwitchBasic, modeSwitchAdvanced, toolbarModifier, toolbarTextModifier );
284
+
285
+ configuratorSection.removeClass( 'freed-width' );
286
+ basicInstruction.show();
287
+ advancedInstruction.hide();
288
+
289
+ callOnRefresh && onRefresh( toolbarModifier );
290
+ }
291
+
292
+ function toggleModeAdvanced( callOnRefresh ) {
293
+ callOnRefresh = ( callOnRefresh !== false );
294
+ mode = 'advanced';
295
+ window.location.hash = '#advanced';
296
+ toogleModeSwitch( modeSwitchAdvanced, modeSwitchBasic, toolbarTextModifier, toolbarModifier );
297
+
298
+ configuratorSection.addClass( 'freed-width' );
299
+ advancedInstruction.show();
300
+ basicInstruction.hide();
301
+
302
+ callOnRefresh && onRefresh( toolbarTextModifier );
303
+ }
304
+
305
+ modeSwitchBasic.on( 'click', toggleModeBasic );
306
+ modeSwitchAdvanced.on( 'click', toggleModeAdvanced );
307
+
308
+ //
309
+ // Position:sticky for the toolbar.
310
+ //
311
+
312
+ // Will make elements behave like they were styled with position:sticky.
313
+ var positionSticky = {
314
+ // Store object: {
315
+ // element: CKEDITOR.dom.element, // Element which will float.
316
+ // placeholder: CKEDITOR.dom.element, // Placeholder which is place to prevent page bounce.
317
+ // isFixed: boolean // Whether element float now.
318
+ // }
319
+ watched: [],
320
+
321
+ active: [],
322
+
323
+ staticContainer: null,
324
+
325
+ init: function() {
326
+ var element = CKEDITOR.dom.element.createFromHtml(
327
+ '<div class="staticContainer">' +
328
+ '<div class="grid-container" >' +
329
+ '<div class="grid-width-100">' +
330
+ '<div class="inner"></div>' +
331
+ '</div>' +
332
+ '</div>' +
333
+ '</div>' );
334
+
335
+ this.staticContainer = element.findOne( '.inner' );
336
+
337
+ CKEDITOR.document.getBody().append( element );
338
+ },
339
+
340
+ watch: function( element, preventFunc ) {
341
+ this.watched.push( {
342
+ element: element,
343
+ placeholder: new CKEDITOR.dom.element( 'div' ),
344
+ isFixed: false,
345
+ preventFunc: preventFunc
346
+ } );
347
+ },
348
+
349
+ checkAll: function() {
350
+ for ( var i = 0; i < this.watched.length; i++ ) {
351
+ this.check( this.watched[ i ] );
352
+ }
353
+ },
354
+
355
+ check: function( element ) {
356
+ var isFixed = element.isFixed;
357
+ var shouldBeFixed = this.shouldBeFixed( element );
358
+
359
+ // Nothing to be done.
360
+ if ( isFixed === shouldBeFixed ) {
361
+ return;
362
+ }
363
+
364
+ var placeholder = element.placeholder;
365
+
366
+ if ( isFixed ) {
367
+ // Unfixing.
368
+
369
+ element.element.insertBefore( placeholder );
370
+ placeholder.remove();
371
+
372
+ element.element.removeStyle( 'margin' );
373
+
374
+ this.active.splice( CKEDITOR.tools.indexOf( this.active, element ), 1 );
375
+
376
+ } else {
377
+ // Fixing.
378
+ placeholder.setStyle( 'width', element.element.getSize( 'width' ) + 'px' );
379
+ placeholder.setStyle( 'height', element.element.getSize( 'height' ) + 'px' );
380
+ placeholder.setStyle( 'margin-bottom', element.element.getComputedStyle( 'margin-bottom' ) );
381
+ placeholder.setStyle( 'display', element.element.getComputedStyle( 'display' ) );
382
+ placeholder.insertAfter( element.element );
383
+
384
+ this.staticContainer.append( element.element );
385
+
386
+ this.active.push( element );
387
+ }
388
+
389
+ element.isFixed = !element.isFixed;
390
+ },
391
+
392
+ shouldBeFixed: function( element ) {
393
+ if ( element.preventFunc && element.preventFunc() ) {
394
+ return false;
395
+ }
396
+
397
+ // If element is already fixed we are checking it's placeholder.
398
+ var related = ( element.isFixed ? element.placeholder : element.element ),
399
+ clientRect = related.$.getBoundingClientRect(),
400
+ staticHeight = this.staticContainer.getSize('height' ),
401
+ elemHeight = element.element.getSize( 'height' );
402
+
403
+ if ( element.isFixed ) {
404
+ return ( clientRect.top + elemHeight < staticHeight );
405
+ } else {
406
+ return ( clientRect.top < staticHeight );
407
+ }
408
+ }
409
+ };
410
+
411
+ positionSticky.init();
412
+
413
+ CKEDITOR.document.getWindow().on( 'scroll',
414
+ new CKEDITOR.tools.eventsBuffer( 100, positionSticky.checkAll, positionSticky ).input
415
+ );
416
+
417
+ // Make the toolbar sticky.
418
+ positionSticky.watch( CKEDITOR.document.findOne( '.editors-container' ) );
419
+
420
+ // Help button and help-content.
421
+ ( function() {
422
+ var helpButton = CKEDITOR.document.getById( 'help' ),
423
+ helpContent = CKEDITOR.document.getById( 'help-content' );
424
+
425
+ // Don't show help button on IE8 because it's unsupported by Pico Modal.
426
+ if ( CKEDITOR.env.ie && CKEDITOR.env.version == 8 ) {
427
+ helpButton.hide();
428
+ } else {
429
+ // Display help modal when the button is clicked.
430
+ helpButton.on( 'click', function( evt ) {
431
+ SF.modal( {
432
+ // Clone modal content from DOM.
433
+ content: helpContent.getHtml(),
434
+
435
+ afterCreate: function( modal ) {
436
+ // Enable modal content button to close the modal.
437
+ new CKEDITOR.dom.element( modal.modalElem() ).findOne( '.help-content-close' ).once( 'click', modal.close );
438
+ }
439
+ } ).show();
440
+ } );
441
+ }
442
+ } )();
443
+ } )();
444
+ </script>
445
+ </body>
446
+ </html>