drg_default_html_editor 0.5.50.3 → 0.7.0.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (543) hide show
  1. checksums.yaml +5 -5
  2. data/app/assets/images/arrow.png +0 -0
  3. data/app/assets/images/close.png +0 -0
  4. data/app/assets/images/lock-open.png +0 -0
  5. data/app/assets/images/lock.png +0 -0
  6. data/app/assets/images/refresh.png +0 -0
  7. data/app/assets/images/spinner.gif +0 -0
  8. data/app/assets/javascripts/ckeditor/CHANGES.md +2040 -415
  9. data/app/assets/javascripts/ckeditor/LICENSE.md +180 -8
  10. data/app/assets/javascripts/ckeditor/README.md +5 -5
  11. data/app/assets/javascripts/ckeditor/SECURITY.md +10 -0
  12. data/app/assets/javascripts/ckeditor/adapters/jquery.js +8 -8
  13. data/app/assets/javascripts/ckeditor/bender-runner.config.json +16 -0
  14. data/app/assets/javascripts/ckeditor/build-config.js +68 -47
  15. data/app/assets/javascripts/ckeditor/ckeditor.js +1420 -974
  16. data/app/assets/javascripts/ckeditor/config.js +7 -2
  17. data/app/assets/javascripts/ckeditor/contents.css +83 -9
  18. data/app/assets/javascripts/ckeditor/lang/af.js +4 -4
  19. data/app/assets/javascripts/ckeditor/lang/ar.js +4 -4
  20. data/app/assets/javascripts/ckeditor/lang/az.js +5 -0
  21. data/app/assets/javascripts/ckeditor/lang/bg.js +4 -4
  22. data/app/assets/javascripts/ckeditor/lang/bn.js +4 -4
  23. data/app/assets/javascripts/ckeditor/lang/bs.js +4 -4
  24. data/app/assets/javascripts/ckeditor/lang/ca.js +4 -4
  25. data/app/assets/javascripts/ckeditor/lang/cs.js +4 -4
  26. data/app/assets/javascripts/ckeditor/lang/cy.js +4 -4
  27. data/app/assets/javascripts/ckeditor/lang/da.js +4 -4
  28. data/app/assets/javascripts/ckeditor/lang/de-ch.js +5 -0
  29. data/app/assets/javascripts/ckeditor/lang/de.js +4 -4
  30. data/app/assets/javascripts/ckeditor/lang/el.js +4 -4
  31. data/app/assets/javascripts/ckeditor/lang/en-au.js +4 -4
  32. data/app/assets/javascripts/ckeditor/lang/en-ca.js +4 -4
  33. data/app/assets/javascripts/ckeditor/lang/en-gb.js +4 -4
  34. data/app/assets/javascripts/ckeditor/lang/en.js +4 -4
  35. data/app/assets/javascripts/ckeditor/lang/eo.js +4 -4
  36. data/app/assets/javascripts/ckeditor/lang/es-mx.js +5 -0
  37. data/app/assets/javascripts/ckeditor/lang/es.js +4 -4
  38. data/app/assets/javascripts/ckeditor/lang/et.js +4 -4
  39. data/app/assets/javascripts/ckeditor/lang/eu.js +4 -4
  40. data/app/assets/javascripts/ckeditor/lang/fa.js +4 -4
  41. data/app/assets/javascripts/ckeditor/lang/fi.js +4 -4
  42. data/app/assets/javascripts/ckeditor/lang/fo.js +4 -4
  43. data/app/assets/javascripts/ckeditor/lang/fr-ca.js +4 -4
  44. data/app/assets/javascripts/ckeditor/lang/fr.js +4 -4
  45. data/app/assets/javascripts/ckeditor/lang/gl.js +4 -4
  46. data/app/assets/javascripts/ckeditor/lang/gu.js +4 -4
  47. data/app/assets/javascripts/ckeditor/lang/he.js +4 -4
  48. data/app/assets/javascripts/ckeditor/lang/hi.js +4 -4
  49. data/app/assets/javascripts/ckeditor/lang/hr.js +4 -4
  50. data/app/assets/javascripts/ckeditor/lang/hu.js +4 -4
  51. data/app/assets/javascripts/ckeditor/lang/id.js +4 -4
  52. data/app/assets/javascripts/ckeditor/lang/is.js +4 -4
  53. data/app/assets/javascripts/ckeditor/lang/it.js +4 -4
  54. data/app/assets/javascripts/ckeditor/lang/ja.js +4 -4
  55. data/app/assets/javascripts/ckeditor/lang/ka.js +4 -4
  56. data/app/assets/javascripts/ckeditor/lang/km.js +4 -4
  57. data/app/assets/javascripts/ckeditor/lang/ko.js +4 -4
  58. data/app/assets/javascripts/ckeditor/lang/ku.js +4 -4
  59. data/app/assets/javascripts/ckeditor/lang/lt.js +4 -4
  60. data/app/assets/javascripts/ckeditor/lang/lv.js +4 -4
  61. data/app/assets/javascripts/ckeditor/lang/mk.js +4 -4
  62. data/app/assets/javascripts/ckeditor/lang/mn.js +4 -4
  63. data/app/assets/javascripts/ckeditor/lang/ms.js +4 -4
  64. data/app/assets/javascripts/ckeditor/lang/nb.js +4 -4
  65. data/app/assets/javascripts/ckeditor/lang/nl.js +4 -4
  66. data/app/assets/javascripts/ckeditor/lang/no.js +4 -4
  67. data/app/assets/javascripts/ckeditor/lang/oc.js +5 -0
  68. data/app/assets/javascripts/ckeditor/lang/pl.js +4 -4
  69. data/app/assets/javascripts/ckeditor/lang/pt-br.js +4 -4
  70. data/app/assets/javascripts/ckeditor/lang/pt.js +4 -4
  71. data/app/assets/javascripts/ckeditor/lang/ro.js +4 -4
  72. data/app/assets/javascripts/ckeditor/lang/ru.js +4 -4
  73. data/app/assets/javascripts/ckeditor/lang/si.js +4 -4
  74. data/app/assets/javascripts/ckeditor/lang/sk.js +4 -4
  75. data/app/assets/javascripts/ckeditor/lang/sl.js +4 -4
  76. data/app/assets/javascripts/ckeditor/lang/sq.js +4 -4
  77. data/app/assets/javascripts/ckeditor/lang/sr-latn.js +4 -4
  78. data/app/assets/javascripts/ckeditor/lang/sr.js +4 -4
  79. data/app/assets/javascripts/ckeditor/lang/sv.js +4 -4
  80. data/app/assets/javascripts/ckeditor/lang/th.js +4 -4
  81. data/app/assets/javascripts/ckeditor/lang/tr.js +4 -4
  82. data/app/assets/javascripts/ckeditor/lang/tt.js +4 -4
  83. data/app/assets/javascripts/ckeditor/lang/ug.js +4 -4
  84. data/app/assets/javascripts/ckeditor/lang/uk.js +4 -4
  85. data/app/assets/javascripts/ckeditor/lang/vi.js +4 -4
  86. data/app/assets/javascripts/ckeditor/lang/zh-cn.js +4 -4
  87. data/app/assets/javascripts/ckeditor/lang/zh.js +4 -4
  88. data/app/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/a11yhelp.js +7 -7
  89. data/app/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/_translationstatus.txt +2 -2
  90. data/app/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/af.js +11 -0
  91. data/app/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/ar.js +10 -9
  92. data/app/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/az.js +11 -0
  93. data/app/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/bg.js +8 -7
  94. data/app/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/ca.js +10 -10
  95. data/app/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/cs.js +10 -11
  96. data/app/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/cy.js +7 -7
  97. data/app/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/da.js +9 -9
  98. data/app/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/de-ch.js +13 -0
  99. data/app/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/de.js +11 -10
  100. data/app/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/el.js +7 -7
  101. data/app/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/en-au.js +11 -0
  102. data/app/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/en-gb.js +7 -6
  103. data/app/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/en.js +7 -6
  104. data/app/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/eo.js +7 -7
  105. data/app/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/es-mx.js +13 -0
  106. data/app/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/es.js +9 -8
  107. data/app/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/et.js +9 -9
  108. data/app/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/eu.js +12 -0
  109. data/app/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/fa.js +7 -7
  110. data/app/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/fi.js +8 -8
  111. data/app/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/fo.js +12 -0
  112. data/app/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/fr-ca.js +8 -8
  113. data/app/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/fr.js +11 -11
  114. data/app/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/gl.js +8 -8
  115. data/app/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/gu.js +7 -6
  116. data/app/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/he.js +7 -7
  117. data/app/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/hi.js +7 -6
  118. data/app/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/hr.js +9 -9
  119. data/app/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/hu.js +6 -7
  120. data/app/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/id.js +9 -9
  121. data/app/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/it.js +7 -7
  122. data/app/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/ja.js +5 -5
  123. data/app/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/km.js +7 -6
  124. data/app/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/ko.js +8 -8
  125. data/app/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/ku.js +8 -9
  126. data/app/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/lt.js +7 -6
  127. data/app/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/lv.js +7 -7
  128. data/app/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/mk.js +10 -9
  129. data/app/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/mn.js +7 -6
  130. data/app/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/nb.js +9 -9
  131. data/app/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/nl.js +6 -6
  132. data/app/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/no.js +10 -9
  133. data/app/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/oc.js +12 -0
  134. data/app/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/pl.js +10 -10
  135. data/app/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/pt-br.js +9 -8
  136. data/app/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/pt.js +10 -10
  137. data/app/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/ro.js +10 -10
  138. data/app/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/ru.js +7 -7
  139. data/app/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/si.js +8 -8
  140. data/app/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/sk.js +8 -9
  141. data/app/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/sl.js +9 -9
  142. data/app/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/sq.js +10 -9
  143. data/app/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/sr-latn.js +10 -9
  144. data/app/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/sr.js +10 -9
  145. data/app/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/sv.js +9 -10
  146. data/app/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/th.js +7 -6
  147. data/app/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/tr.js +8 -8
  148. data/app/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/tt.js +10 -9
  149. data/app/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/ug.js +8 -7
  150. data/app/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/uk.js +8 -8
  151. data/app/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/vi.js +7 -7
  152. data/app/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/zh-cn.js +7 -7
  153. data/app/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/zh.js +7 -8
  154. data/app/assets/javascripts/ckeditor/plugins/about/dialogs/about.js +6 -5
  155. data/app/assets/javascripts/ckeditor/plugins/about/dialogs/hidpi/logo_ckeditor.png +0 -0
  156. data/app/assets/javascripts/ckeditor/plugins/about/dialogs/logo_ckeditor.png +0 -0
  157. data/app/assets/javascripts/ckeditor/plugins/clipboard/dialogs/paste.js +9 -9
  158. data/app/assets/javascripts/ckeditor/plugins/colordialog/dialogs/colordialog.css +20 -0
  159. data/app/assets/javascripts/ckeditor/plugins/colordialog/dialogs/colordialog.js +12 -11
  160. data/app/assets/javascripts/ckeditor/plugins/copyformatting/cursors/cursor-disabled.svg +25 -0
  161. data/app/assets/javascripts/ckeditor/plugins/copyformatting/cursors/cursor.svg +14 -0
  162. data/app/assets/javascripts/ckeditor/plugins/copyformatting/styles/copyformatting.css +45 -0
  163. data/app/assets/javascripts/ckeditor/plugins/dialog/dialogDefinition.js +2 -2
  164. data/app/assets/javascripts/ckeditor/plugins/dialog/styles/dialog.css +18 -0
  165. data/app/assets/javascripts/ckeditor/plugins/div/dialogs/div.js +9 -8
  166. data/app/assets/javascripts/ckeditor/plugins/find/dialogs/find.js +24 -22
  167. data/app/assets/javascripts/ckeditor/plugins/icons.png +0 -0
  168. data/app/assets/javascripts/ckeditor/plugins/icons_hidpi.png +0 -0
  169. data/app/assets/javascripts/ckeditor/plugins/image/dialogs/image-org.js +44 -0
  170. data/app/assets/javascripts/ckeditor/plugins/image/dialogs/image.js +1286 -43
  171. data/app/assets/javascripts/ckeditor/plugins/image/images/noimage.png +0 -0
  172. data/app/assets/javascripts/ckeditor/plugins/link/dialogs/anchor.js +6 -5
  173. data/app/assets/javascripts/ckeditor/plugins/link/dialogs/link.js +28 -24
  174. data/app/assets/javascripts/ckeditor/plugins/link/images/anchor.png +0 -0
  175. data/app/assets/javascripts/ckeditor/plugins/link/images/hidpi/anchor.png +0 -0
  176. data/app/assets/javascripts/ckeditor/plugins/liststyle/dialogs/liststyle.js +8 -8
  177. data/app/assets/javascripts/ckeditor/plugins/magicline/images/hidpi/icon-rtl.png +0 -0
  178. data/app/assets/javascripts/ckeditor/plugins/magicline/images/hidpi/icon.png +0 -0
  179. data/app/assets/javascripts/ckeditor/plugins/magicline/images/icon-rtl.png +0 -0
  180. data/app/assets/javascripts/ckeditor/plugins/magicline/images/icon.png +0 -0
  181. data/app/assets/javascripts/ckeditor/plugins/pagebreak/images/pagebreak.gif +0 -0
  182. data/app/assets/javascripts/ckeditor/plugins/pastefromgdocs/filter/default.js +8 -0
  183. data/app/assets/javascripts/ckeditor/plugins/pastefromlibreoffice/filter/default.js +11 -0
  184. data/app/assets/javascripts/ckeditor/plugins/pastefromword/filter/default.js +40 -29
  185. data/app/assets/javascripts/ckeditor/plugins/pastetools/filter/common.js +24 -0
  186. data/app/assets/javascripts/ckeditor/plugins/pastetools/filter/image.js +12 -0
  187. data/app/assets/javascripts/ckeditor/plugins/preview/images/pagebreak.gif +0 -0
  188. data/app/assets/javascripts/ckeditor/plugins/preview/styles/screen.css +10 -0
  189. data/app/assets/javascripts/ckeditor/plugins/scayt/CHANGELOG.md +4 -0
  190. data/app/assets/javascripts/ckeditor/plugins/scayt/README.md +63 -7
  191. data/app/assets/javascripts/ckeditor/plugins/scayt/dialogs/dialog.css +23 -0
  192. data/app/assets/javascripts/ckeditor/plugins/scayt/dialogs/options.js +32 -17
  193. data/app/assets/javascripts/ckeditor/plugins/scayt/skins/moono-lisa/scayt.css +25 -0
  194. data/app/assets/javascripts/ckeditor/plugins/showblocks/images/block_address.png +0 -0
  195. data/app/assets/javascripts/ckeditor/plugins/showblocks/images/block_blockquote.png +0 -0
  196. data/app/assets/javascripts/ckeditor/plugins/showblocks/images/block_div.png +0 -0
  197. data/app/assets/javascripts/ckeditor/plugins/showblocks/images/block_h1.png +0 -0
  198. data/app/assets/javascripts/ckeditor/plugins/showblocks/images/block_h2.png +0 -0
  199. data/app/assets/javascripts/ckeditor/plugins/showblocks/images/block_h3.png +0 -0
  200. data/app/assets/javascripts/ckeditor/plugins/showblocks/images/block_h4.png +0 -0
  201. data/app/assets/javascripts/ckeditor/plugins/showblocks/images/block_h5.png +0 -0
  202. data/app/assets/javascripts/ckeditor/plugins/showblocks/images/block_h6.png +0 -0
  203. data/app/assets/javascripts/ckeditor/plugins/showblocks/images/block_p.png +0 -0
  204. data/app/assets/javascripts/ckeditor/plugins/showblocks/images/block_pre.png +0 -0
  205. data/app/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/_translationstatus.txt +2 -2
  206. data/app/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/af.js +13 -0
  207. data/app/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/ar.js +3 -3
  208. data/app/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/az.js +10 -0
  209. data/app/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/bg.js +4 -4
  210. data/app/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/ca.js +2 -2
  211. data/app/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/cs.js +3 -3
  212. data/app/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/cy.js +2 -2
  213. data/app/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/da.js +11 -0
  214. data/app/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/de-ch.js +13 -0
  215. data/app/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/de.js +11 -11
  216. data/app/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/el.js +5 -5
  217. data/app/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/en-au.js +13 -0
  218. data/app/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/en-ca.js +13 -0
  219. data/app/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/en-gb.js +3 -3
  220. data/app/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/en.js +3 -3
  221. data/app/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/eo.js +2 -2
  222. data/app/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/es-mx.js +13 -0
  223. data/app/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/es.js +2 -2
  224. data/app/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/et.js +9 -11
  225. data/app/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/eu.js +13 -0
  226. data/app/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/fa.js +2 -2
  227. data/app/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/fi.js +3 -3
  228. data/app/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/fr-ca.js +2 -2
  229. data/app/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/fr.js +10 -9
  230. data/app/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/gl.js +2 -2
  231. data/app/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/he.js +2 -2
  232. data/app/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/hr.js +11 -11
  233. data/app/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/hu.js +2 -2
  234. data/app/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/id.js +11 -11
  235. data/app/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/it.js +3 -3
  236. data/app/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/ja.js +2 -2
  237. data/app/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/km.js +3 -3
  238. data/app/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/ko.js +10 -0
  239. data/app/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/ku.js +2 -2
  240. data/app/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/lt.js +13 -0
  241. data/app/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/lv.js +2 -2
  242. data/app/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/nb.js +2 -2
  243. data/app/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/nl.js +2 -2
  244. data/app/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/no.js +2 -2
  245. data/app/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/oc.js +12 -0
  246. data/app/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/pl.js +3 -3
  247. data/app/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/pt-br.js +2 -2
  248. data/app/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/pt.js +11 -11
  249. data/app/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/ro.js +13 -0
  250. data/app/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/ru.js +2 -2
  251. data/app/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/si.js +3 -3
  252. data/app/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/sk.js +2 -2
  253. data/app/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/sl.js +10 -10
  254. data/app/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/sq.js +5 -5
  255. data/app/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/sr-latn.js +13 -0
  256. data/app/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/sr.js +13 -0
  257. data/app/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/sv.js +2 -2
  258. data/app/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/th.js +3 -3
  259. data/app/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/tr.js +2 -2
  260. data/app/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/tt.js +6 -6
  261. data/app/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/ug.js +3 -3
  262. data/app/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/uk.js +2 -2
  263. data/app/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/vi.js +2 -2
  264. data/app/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/zh-cn.js +3 -3
  265. data/app/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/zh.js +7 -10
  266. data/app/assets/javascripts/ckeditor/plugins/specialchar/dialogs/specialchar.js +12 -12
  267. data/app/assets/javascripts/ckeditor/plugins/table/dialogs/table.js +20 -19
  268. data/app/assets/javascripts/ckeditor/plugins/tableselection/styles/tableselection.css +36 -0
  269. data/app/assets/javascripts/ckeditor/plugins/tabletools/dialogs/tableCell.js +16 -15
  270. data/app/assets/javascripts/ckeditor/plugins/templates/dialogs/templates.css +2 -2
  271. data/app/assets/javascripts/ckeditor/plugins/templates/dialogs/templates.js +9 -8
  272. data/app/assets/javascripts/ckeditor/plugins/templates/templatedefinition.js +4 -0
  273. data/app/assets/javascripts/ckeditor/plugins/templates/templates/default.js +5 -4
  274. data/app/assets/javascripts/ckeditor/plugins/templates/templates/images/template1.gif +0 -0
  275. data/app/assets/javascripts/ckeditor/plugins/templates/templates/images/template2.gif +0 -0
  276. data/app/assets/javascripts/ckeditor/plugins/templates/templates/images/template3.gif +0 -0
  277. data/app/assets/javascripts/ckeditor/plugins/widget/images/handle.png +0 -0
  278. data/app/assets/javascripts/ckeditor/samples/css/samples.css +1637 -0
  279. data/app/assets/javascripts/ckeditor/samples/img/github-top.png +0 -0
  280. data/app/assets/javascripts/ckeditor/samples/img/header-bg.png +0 -0
  281. data/app/assets/javascripts/ckeditor/samples/img/header-separator.png +0 -0
  282. data/app/assets/javascripts/ckeditor/samples/img/logo.png +0 -0
  283. data/app/assets/javascripts/ckeditor/samples/img/logo.svg +13 -0
  284. data/app/assets/javascripts/ckeditor/samples/img/navigation-tip.png +0 -0
  285. data/app/assets/javascripts/ckeditor/samples/index.html +115 -113
  286. data/app/assets/javascripts/ckeditor/samples/js/sample.js +53 -0
  287. data/app/assets/javascripts/ckeditor/samples/js/sf.js +17 -0
  288. data/app/assets/javascripts/ckeditor/samples/{ajax.html → old/ajax.html} +10 -7
  289. data/app/assets/javascripts/ckeditor/samples/{api.html → old/api.html} +19 -16
  290. data/app/assets/javascripts/ckeditor/samples/{appendto.html → old/appendto.html} +12 -9
  291. data/app/assets/javascripts/ckeditor/samples/old/assets/inlineall/logo.png +0 -0
  292. data/app/assets/javascripts/ckeditor/samples/{assets → old/assets}/outputxhtml/outputxhtml.css +2 -2
  293. data/app/assets/javascripts/ckeditor/samples/{assets → old/assets}/posteddata.php +6 -5
  294. data/app/assets/javascripts/ckeditor/samples/old/assets/sample.jpg +0 -0
  295. data/app/assets/javascripts/ckeditor/samples/old/assets/uilanguages/languages.js +7 -0
  296. data/app/assets/javascripts/ckeditor/samples/{datafiltering.html → old/datafiltering.html} +125 -18
  297. data/app/assets/javascripts/ckeditor/samples/{plugins → old}/dialog/assets/my_dialog.js +3 -3
  298. data/app/assets/javascripts/ckeditor/samples/{plugins → old}/dialog/dialog.html +14 -11
  299. data/app/assets/javascripts/ckeditor/samples/{divreplace.html → old/divreplace.html} +10 -7
  300. data/app/assets/javascripts/ckeditor/samples/{plugins → old}/enterkey/enterkey.html +14 -11
  301. data/app/assets/javascripts/ckeditor/samples/{plugins → old}/htmlwriter/outputhtml.html +14 -11
  302. data/app/assets/javascripts/ckeditor/samples/old/index.html +129 -0
  303. data/app/assets/javascripts/ckeditor/samples/{inlineall.html → old/inlineall.html} +16 -13
  304. data/app/assets/javascripts/ckeditor/samples/{inlinebycode.html → old/inlinebycode.html} +11 -8
  305. data/app/assets/javascripts/ckeditor/samples/{inlinetextarea.html → old/inlinetextarea.html} +12 -9
  306. data/app/assets/javascripts/ckeditor/samples/{jquery.html → old/jquery.html} +13 -10
  307. data/app/assets/javascripts/ckeditor/samples/{plugins → old}/magicline/magicline.html +11 -8
  308. data/app/assets/javascripts/ckeditor/samples/{readonly.html → old/readonly.html} +13 -10
  309. data/app/assets/javascripts/ckeditor/samples/{replacebyclass.html → old/replacebyclass.html} +10 -7
  310. data/app/assets/javascripts/ckeditor/samples/{replacebycode.html → old/replacebycode.html} +10 -7
  311. data/app/assets/javascripts/ckeditor/samples/{sample.css → old/sample.css} +6 -14
  312. data/app/assets/javascripts/ckeditor/samples/{sample.js → old/sample.js} +2 -2
  313. data/app/assets/javascripts/ckeditor/samples/{sample_posteddata.php → old/sample_posteddata.php} +2 -2
  314. data/app/assets/javascripts/ckeditor/samples/{tabindex.html → old/tabindex.html} +10 -7
  315. data/app/assets/javascripts/ckeditor/samples/{plugins → old}/toolbar/toolbar.html +15 -12
  316. data/app/assets/javascripts/ckeditor/samples/{uicolor.html → old/uicolor.html} +11 -8
  317. data/app/assets/javascripts/ckeditor/samples/{uilanguages.html → old/uilanguages.html} +13 -10
  318. data/app/assets/javascripts/ckeditor/samples/old/wysiwygarea/fullpage.html +80 -0
  319. data/app/assets/javascripts/ckeditor/samples/{xhtmlstyle.html → old/xhtmlstyle.html} +12 -9
  320. data/app/assets/javascripts/ckeditor/samples/toolbarconfigurator/css/fontello.css +55 -0
  321. data/app/assets/javascripts/ckeditor/samples/toolbarconfigurator/font/LICENSE.txt +10 -0
  322. data/app/assets/javascripts/ckeditor/samples/toolbarconfigurator/font/config.json +28 -0
  323. data/app/assets/javascripts/ckeditor/samples/toolbarconfigurator/font/fontello.eot +0 -0
  324. data/app/assets/javascripts/ckeditor/samples/toolbarconfigurator/font/fontello.svg +14 -0
  325. data/app/assets/javascripts/ckeditor/samples/toolbarconfigurator/font/fontello.ttf +0 -0
  326. data/app/assets/javascripts/ckeditor/samples/toolbarconfigurator/font/fontello.woff +0 -0
  327. data/app/assets/javascripts/ckeditor/samples/toolbarconfigurator/index.html +447 -0
  328. data/app/assets/javascripts/ckeditor/samples/toolbarconfigurator/js/abstracttoolbarmodifier.js +13 -0
  329. data/app/assets/javascripts/ckeditor/samples/toolbarconfigurator/js/fulltoolbareditor.js +9 -0
  330. data/app/assets/javascripts/ckeditor/samples/toolbarconfigurator/js/toolbarmodifier.js +33 -0
  331. data/app/assets/javascripts/ckeditor/samples/toolbarconfigurator/js/toolbartextmodifier.js +14 -0
  332. data/app/assets/javascripts/ckeditor/samples/toolbarconfigurator/lib/codemirror/LICENSE +19 -0
  333. data/app/assets/javascripts/ckeditor/samples/toolbarconfigurator/lib/codemirror/codemirror.css +325 -0
  334. data/app/assets/javascripts/ckeditor/samples/toolbarconfigurator/lib/codemirror/codemirror.js +288 -0
  335. data/app/assets/javascripts/ckeditor/samples/toolbarconfigurator/lib/codemirror/javascript.js +25 -0
  336. data/app/assets/javascripts/ckeditor/samples/toolbarconfigurator/lib/codemirror/neo.css +36 -0
  337. data/app/assets/javascripts/ckeditor/samples/toolbarconfigurator/lib/codemirror/show-hint.css +38 -0
  338. data/app/assets/javascripts/ckeditor/samples/toolbarconfigurator/lib/codemirror/show-hint.js +16 -0
  339. data/app/assets/javascripts/ckeditor/skins/moono-lisa/dialog.css +5 -0
  340. data/app/assets/javascripts/ckeditor/skins/moono-lisa/dialog_ie.css +5 -0
  341. data/app/assets/javascripts/ckeditor/skins/moono-lisa/dialog_ie8.css +5 -0
  342. data/app/assets/javascripts/ckeditor/skins/moono-lisa/dialog_iequirks.css +5 -0
  343. data/app/assets/javascripts/ckeditor/skins/moono-lisa/editor.css +5 -0
  344. data/app/assets/javascripts/ckeditor/skins/moono-lisa/editor_gecko.css +5 -0
  345. data/app/assets/javascripts/ckeditor/skins/moono-lisa/editor_ie.css +5 -0
  346. data/app/assets/javascripts/ckeditor/skins/moono-lisa/editor_ie8.css +5 -0
  347. data/app/assets/javascripts/ckeditor/skins/moono-lisa/editor_iequirks.css +5 -0
  348. data/app/assets/javascripts/ckeditor/skins/moono-lisa/icons.png +0 -0
  349. data/app/assets/javascripts/ckeditor/skins/moono-lisa/icons_hidpi.png +0 -0
  350. data/app/assets/javascripts/ckeditor/skins/moono-lisa/images/arrow.png +0 -0
  351. data/app/assets/javascripts/ckeditor/skins/moono-lisa/images/close.png +0 -0
  352. data/app/assets/javascripts/ckeditor/skins/moono-lisa/images/hidpi/close.png +0 -0
  353. data/app/assets/javascripts/ckeditor/skins/moono-lisa/images/hidpi/lock-open.png +0 -0
  354. data/app/assets/javascripts/ckeditor/skins/moono-lisa/images/hidpi/lock.png +0 -0
  355. data/app/assets/javascripts/ckeditor/skins/moono-lisa/images/hidpi/refresh.png +0 -0
  356. data/app/assets/javascripts/ckeditor/skins/moono-lisa/images/lock-open.png +0 -0
  357. data/app/assets/javascripts/ckeditor/skins/moono-lisa/images/lock.png +0 -0
  358. data/app/assets/javascripts/ckeditor/skins/moono-lisa/images/refresh.png +0 -0
  359. data/app/assets/javascripts/ckeditor/skins/moono-lisa/images/spinner.gif +0 -0
  360. data/app/assets/javascripts/ckeditor/skins/{moono → moono-lisa}/readme.md +11 -16
  361. data/app/assets/javascripts/ckeditor/styles.js +43 -17
  362. data/app/assets/javascripts/ckeditor/vendor/promise.js +13 -0
  363. data/app/assets/javascripts/drg_default_html_editor_cms.js +1 -4
  364. data/app/assets/stylesheets/drg_default_html_editor_cms.css +3 -3
  365. data/app/{controllers/dc_elfinder_controller.rb → models/drgcms_form_fields/ckeditor.rb} +33 -32
  366. data/lib/drg_default_html_editor/version.rb +1 -1
  367. data/lib/drg_default_html_editor.rb +2 -3
  368. data/lib/tasks/drg_default_html_editor_tasks.rake +16 -4
  369. metadata +169 -249
  370. data/app/assets/javascripts/ckeditor/plugins/flash/dialogs/flash.js +0 -24
  371. data/app/assets/javascripts/ckeditor/plugins/flash/images/placeholder.png +0 -0
  372. data/app/assets/javascripts/ckeditor/plugins/forms/dialogs/button.js +0 -8
  373. data/app/assets/javascripts/ckeditor/plugins/forms/dialogs/checkbox.js +0 -8
  374. data/app/assets/javascripts/ckeditor/plugins/forms/dialogs/form.js +0 -8
  375. data/app/assets/javascripts/ckeditor/plugins/forms/dialogs/hiddenfield.js +0 -8
  376. data/app/assets/javascripts/ckeditor/plugins/forms/dialogs/radio.js +0 -8
  377. data/app/assets/javascripts/ckeditor/plugins/forms/dialogs/select.js +0 -20
  378. data/app/assets/javascripts/ckeditor/plugins/forms/dialogs/textarea.js +0 -8
  379. data/app/assets/javascripts/ckeditor/plugins/forms/dialogs/textfield.js +0 -10
  380. data/app/assets/javascripts/ckeditor/plugins/forms/images/hiddenfield.gif +0 -0
  381. data/app/assets/javascripts/ckeditor/plugins/iframe/dialogs/iframe.js +0 -10
  382. data/app/assets/javascripts/ckeditor/plugins/iframe/images/placeholder.png +0 -0
  383. data/app/assets/javascripts/ckeditor/plugins/smiley/dialogs/smiley.js +0 -10
  384. data/app/assets/javascripts/ckeditor/plugins/smiley/images/angel_smile.gif +0 -0
  385. data/app/assets/javascripts/ckeditor/plugins/smiley/images/angel_smile.png +0 -0
  386. data/app/assets/javascripts/ckeditor/plugins/smiley/images/angry_smile.gif +0 -0
  387. data/app/assets/javascripts/ckeditor/plugins/smiley/images/angry_smile.png +0 -0
  388. data/app/assets/javascripts/ckeditor/plugins/smiley/images/broken_heart.gif +0 -0
  389. data/app/assets/javascripts/ckeditor/plugins/smiley/images/broken_heart.png +0 -0
  390. data/app/assets/javascripts/ckeditor/plugins/smiley/images/confused_smile.gif +0 -0
  391. data/app/assets/javascripts/ckeditor/plugins/smiley/images/confused_smile.png +0 -0
  392. data/app/assets/javascripts/ckeditor/plugins/smiley/images/cry_smile.gif +0 -0
  393. data/app/assets/javascripts/ckeditor/plugins/smiley/images/cry_smile.png +0 -0
  394. data/app/assets/javascripts/ckeditor/plugins/smiley/images/devil_smile.gif +0 -0
  395. data/app/assets/javascripts/ckeditor/plugins/smiley/images/devil_smile.png +0 -0
  396. data/app/assets/javascripts/ckeditor/plugins/smiley/images/embaressed_smile.gif +0 -0
  397. data/app/assets/javascripts/ckeditor/plugins/smiley/images/embarrassed_smile.gif +0 -0
  398. data/app/assets/javascripts/ckeditor/plugins/smiley/images/embarrassed_smile.png +0 -0
  399. data/app/assets/javascripts/ckeditor/plugins/smiley/images/envelope.gif +0 -0
  400. data/app/assets/javascripts/ckeditor/plugins/smiley/images/envelope.png +0 -0
  401. data/app/assets/javascripts/ckeditor/plugins/smiley/images/heart.gif +0 -0
  402. data/app/assets/javascripts/ckeditor/plugins/smiley/images/heart.png +0 -0
  403. data/app/assets/javascripts/ckeditor/plugins/smiley/images/kiss.gif +0 -0
  404. data/app/assets/javascripts/ckeditor/plugins/smiley/images/kiss.png +0 -0
  405. data/app/assets/javascripts/ckeditor/plugins/smiley/images/lightbulb.gif +0 -0
  406. data/app/assets/javascripts/ckeditor/plugins/smiley/images/lightbulb.png +0 -0
  407. data/app/assets/javascripts/ckeditor/plugins/smiley/images/omg_smile.gif +0 -0
  408. data/app/assets/javascripts/ckeditor/plugins/smiley/images/omg_smile.png +0 -0
  409. data/app/assets/javascripts/ckeditor/plugins/smiley/images/regular_smile.gif +0 -0
  410. data/app/assets/javascripts/ckeditor/plugins/smiley/images/regular_smile.png +0 -0
  411. data/app/assets/javascripts/ckeditor/plugins/smiley/images/sad_smile.gif +0 -0
  412. data/app/assets/javascripts/ckeditor/plugins/smiley/images/sad_smile.png +0 -0
  413. data/app/assets/javascripts/ckeditor/plugins/smiley/images/shades_smile.gif +0 -0
  414. data/app/assets/javascripts/ckeditor/plugins/smiley/images/shades_smile.png +0 -0
  415. data/app/assets/javascripts/ckeditor/plugins/smiley/images/teeth_smile.gif +0 -0
  416. data/app/assets/javascripts/ckeditor/plugins/smiley/images/teeth_smile.png +0 -0
  417. data/app/assets/javascripts/ckeditor/plugins/smiley/images/thumbs_down.gif +0 -0
  418. data/app/assets/javascripts/ckeditor/plugins/smiley/images/thumbs_down.png +0 -0
  419. data/app/assets/javascripts/ckeditor/plugins/smiley/images/thumbs_up.gif +0 -0
  420. data/app/assets/javascripts/ckeditor/plugins/smiley/images/thumbs_up.png +0 -0
  421. data/app/assets/javascripts/ckeditor/plugins/smiley/images/tongue_smile.gif +0 -0
  422. data/app/assets/javascripts/ckeditor/plugins/smiley/images/tongue_smile.png +0 -0
  423. data/app/assets/javascripts/ckeditor/plugins/smiley/images/tounge_smile.gif +0 -0
  424. data/app/assets/javascripts/ckeditor/plugins/smiley/images/whatchutalkingabout_smile.gif +0 -0
  425. data/app/assets/javascripts/ckeditor/plugins/smiley/images/whatchutalkingabout_smile.png +0 -0
  426. data/app/assets/javascripts/ckeditor/plugins/smiley/images/wink_smile.gif +0 -0
  427. data/app/assets/javascripts/ckeditor/plugins/smiley/images/wink_smile.png +0 -0
  428. data/app/assets/javascripts/ckeditor/plugins/wsc/LICENSE.md +0 -28
  429. data/app/assets/javascripts/ckeditor/plugins/wsc/README.md +0 -25
  430. data/app/assets/javascripts/ckeditor/plugins/wsc/dialogs/ciframe.html +0 -66
  431. data/app/assets/javascripts/ckeditor/plugins/wsc/dialogs/tmpFrameset.html +0 -52
  432. data/app/assets/javascripts/ckeditor/plugins/wsc/dialogs/wsc.css +0 -82
  433. data/app/assets/javascripts/ckeditor/plugins/wsc/dialogs/wsc.js +0 -74
  434. data/app/assets/javascripts/ckeditor/plugins/wsc/dialogs/wsc_ie.js +0 -11
  435. data/app/assets/javascripts/ckeditor/samples/assets/inlineall/logo.png +0 -0
  436. data/app/assets/javascripts/ckeditor/samples/assets/sample.jpg +0 -0
  437. data/app/assets/javascripts/ckeditor/samples/assets/uilanguages/languages.js +0 -7
  438. data/app/assets/javascripts/ckeditor/samples/plugins/htmlwriter/assets/outputforflash/outputforflash.fla +0 -0
  439. data/app/assets/javascripts/ckeditor/samples/plugins/htmlwriter/assets/outputforflash/outputforflash.swf +0 -0
  440. data/app/assets/javascripts/ckeditor/samples/plugins/htmlwriter/assets/outputforflash/swfobject.js +0 -18
  441. data/app/assets/javascripts/ckeditor/samples/plugins/htmlwriter/outputforflash.html +0 -280
  442. data/app/assets/javascripts/ckeditor/samples/plugins/wysiwygarea/fullpage.html +0 -77
  443. data/app/assets/javascripts/ckeditor/skins/moono/dialog.css +0 -5
  444. data/app/assets/javascripts/ckeditor/skins/moono/dialog_ie.css +0 -5
  445. data/app/assets/javascripts/ckeditor/skins/moono/dialog_ie7.css +0 -5
  446. data/app/assets/javascripts/ckeditor/skins/moono/dialog_ie8.css +0 -5
  447. data/app/assets/javascripts/ckeditor/skins/moono/dialog_iequirks.css +0 -5
  448. data/app/assets/javascripts/ckeditor/skins/moono/editor.css +0 -5
  449. data/app/assets/javascripts/ckeditor/skins/moono/editor_gecko.css +0 -5
  450. data/app/assets/javascripts/ckeditor/skins/moono/editor_ie.css +0 -5
  451. data/app/assets/javascripts/ckeditor/skins/moono/editor_ie7.css +0 -5
  452. data/app/assets/javascripts/ckeditor/skins/moono/editor_ie8.css +0 -5
  453. data/app/assets/javascripts/ckeditor/skins/moono/editor_iequirks.css +0 -5
  454. data/app/assets/javascripts/ckeditor/skins/moono/icons.png +0 -0
  455. data/app/assets/javascripts/ckeditor/skins/moono/icons_hidpi.png +0 -0
  456. data/app/assets/javascripts/ckeditor/skins/moono/images/arrow.png +0 -0
  457. data/app/assets/javascripts/ckeditor/skins/moono/images/close.png +0 -0
  458. data/app/assets/javascripts/ckeditor/skins/moono/images/hidpi/close.png +0 -0
  459. data/app/assets/javascripts/ckeditor/skins/moono/images/hidpi/lock-open.png +0 -0
  460. data/app/assets/javascripts/ckeditor/skins/moono/images/hidpi/lock.png +0 -0
  461. data/app/assets/javascripts/ckeditor/skins/moono/images/hidpi/refresh.png +0 -0
  462. data/app/assets/javascripts/ckeditor/skins/moono/images/lock-open.png +0 -0
  463. data/app/assets/javascripts/ckeditor/skins/moono/images/lock.png +0 -0
  464. data/app/assets/javascripts/ckeditor/skins/moono/images/refresh.png +0 -0
  465. data/app/assets/javascripts/elfinder/Changelog +0 -494
  466. data/app/assets/javascripts/elfinder/LICENSE.md +0 -15
  467. data/app/assets/javascripts/elfinder/README.md +0 -209
  468. data/app/assets/javascripts/elfinder/bower.json +0 -28
  469. data/app/assets/javascripts/elfinder/composer.json +0 -39
  470. data/app/assets/javascripts/elfinder/css/elfinder.full.css +0 -3034
  471. data/app/assets/javascripts/elfinder/css/elfinder.min.css +0 -9
  472. data/app/assets/javascripts/elfinder/css/theme.css +0 -68
  473. data/app/assets/javascripts/elfinder/elfinder.html +0 -61
  474. data/app/assets/javascripts/elfinder/img/arrows-active.png +0 -0
  475. data/app/assets/javascripts/elfinder/img/arrows-normal.png +0 -0
  476. data/app/assets/javascripts/elfinder/img/crop.gif +0 -0
  477. data/app/assets/javascripts/elfinder/img/dialogs.png +0 -0
  478. data/app/assets/javascripts/elfinder/img/icons-big.png +0 -0
  479. data/app/assets/javascripts/elfinder/img/icons-small.png +0 -0
  480. data/app/assets/javascripts/elfinder/img/logo.png +0 -0
  481. data/app/assets/javascripts/elfinder/img/progress.gif +0 -0
  482. data/app/assets/javascripts/elfinder/img/quicklook-bg.png +0 -0
  483. data/app/assets/javascripts/elfinder/img/quicklook-icons.png +0 -0
  484. data/app/assets/javascripts/elfinder/img/resize.png +0 -0
  485. data/app/assets/javascripts/elfinder/img/spinner-mini.gif +0 -0
  486. data/app/assets/javascripts/elfinder/img/toolbar.png +0 -0
  487. data/app/assets/javascripts/elfinder/img/volume_icon_box.png +0 -0
  488. data/app/assets/javascripts/elfinder/img/volume_icon_dropbox.png +0 -0
  489. data/app/assets/javascripts/elfinder/img/volume_icon_ftp.png +0 -0
  490. data/app/assets/javascripts/elfinder/img/volume_icon_googledrive.png +0 -0
  491. data/app/assets/javascripts/elfinder/img/volume_icon_local.png +0 -0
  492. data/app/assets/javascripts/elfinder/img/volume_icon_onedrive.png +0 -0
  493. data/app/assets/javascripts/elfinder/img/volume_icon_sql.png +0 -0
  494. data/app/assets/javascripts/elfinder/js/elfinder.full.js +0 -23025
  495. data/app/assets/javascripts/elfinder/js/elfinder.min.js +0 -20
  496. data/app/assets/javascripts/elfinder/js/extras/encoding-japanese.min.js +0 -35
  497. data/app/assets/javascripts/elfinder/js/extras/quicklook.googledocs.js +0 -69
  498. data/app/assets/javascripts/elfinder/js/i18n/elfinder.LANG.js +0 -479
  499. data/app/assets/javascripts/elfinder/js/i18n/elfinder.ar.js +0 -375
  500. data/app/assets/javascripts/elfinder/js/i18n/elfinder.bg.js +0 -412
  501. data/app/assets/javascripts/elfinder/js/i18n/elfinder.ca.js +0 -375
  502. data/app/assets/javascripts/elfinder/js/i18n/elfinder.cs.js +0 -469
  503. data/app/assets/javascripts/elfinder/js/i18n/elfinder.da.js +0 -374
  504. data/app/assets/javascripts/elfinder/js/i18n/elfinder.de.js +0 -457
  505. data/app/assets/javascripts/elfinder/js/i18n/elfinder.el.js +0 -374
  506. data/app/assets/javascripts/elfinder/js/i18n/elfinder.es.js +0 -433
  507. data/app/assets/javascripts/elfinder/js/i18n/elfinder.fa.js +0 -374
  508. data/app/assets/javascripts/elfinder/js/i18n/elfinder.fallback.js +0 -11
  509. data/app/assets/javascripts/elfinder/js/i18n/elfinder.fo.js +0 -419
  510. data/app/assets/javascripts/elfinder/js/i18n/elfinder.fr.js +0 -419
  511. data/app/assets/javascripts/elfinder/js/i18n/elfinder.he.js +0 -375
  512. data/app/assets/javascripts/elfinder/js/i18n/elfinder.hr.js +0 -434
  513. data/app/assets/javascripts/elfinder/js/i18n/elfinder.hu.js +0 -447
  514. data/app/assets/javascripts/elfinder/js/i18n/elfinder.id.js +0 -373
  515. data/app/assets/javascripts/elfinder/js/i18n/elfinder.it.js +0 -448
  516. data/app/assets/javascripts/elfinder/js/i18n/elfinder.jp.js +0 -474
  517. data/app/assets/javascripts/elfinder/js/i18n/elfinder.ko.js +0 -374
  518. data/app/assets/javascripts/elfinder/js/i18n/elfinder.nl.js +0 -419
  519. data/app/assets/javascripts/elfinder/js/i18n/elfinder.no.js +0 -374
  520. data/app/assets/javascripts/elfinder/js/i18n/elfinder.pl.js +0 -455
  521. data/app/assets/javascripts/elfinder/js/i18n/elfinder.pt_BR.js +0 -438
  522. data/app/assets/javascripts/elfinder/js/i18n/elfinder.ro.js +0 -417
  523. data/app/assets/javascripts/elfinder/js/i18n/elfinder.ru.js +0 -440
  524. data/app/assets/javascripts/elfinder/js/i18n/elfinder.sk.js +0 -469
  525. data/app/assets/javascripts/elfinder/js/i18n/elfinder.sl.js +0 -374
  526. data/app/assets/javascripts/elfinder/js/i18n/elfinder.sr.js +0 -374
  527. data/app/assets/javascripts/elfinder/js/i18n/elfinder.sv.js +0 -375
  528. data/app/assets/javascripts/elfinder/js/i18n/elfinder.tr.js +0 -468
  529. data/app/assets/javascripts/elfinder/js/i18n/elfinder.ug_CN.js +0 -374
  530. data/app/assets/javascripts/elfinder/js/i18n/elfinder.uk.js +0 -391
  531. data/app/assets/javascripts/elfinder/js/i18n/elfinder.vi.js +0 -374
  532. data/app/assets/javascripts/elfinder/js/i18n/elfinder.zh_CN.js +0 -467
  533. data/app/assets/javascripts/elfinder/js/i18n/elfinder.zh_TW.js +0 -472
  534. data/app/assets/javascripts/elfinder/js/proxy/elFinderSupportVer1.js +0 -420
  535. data/app/assets/javascripts/elfinder/main.default.js +0 -94
  536. data/app/assets/javascripts/elfinder/package.json +0 -13
  537. data/app/assets/javascripts/elfinder/sounds/rm.wav +0 -0
  538. data/config/initializers/load_patches.rb +0 -30
  539. data/config/routes.rb +0 -2
  540. data/lib/drg_default_html_editor.rb~ +0 -6
  541. data/lib/patches/drgcms_form_field.rb +0 -121
  542. data/lib/patches/patch_for_elfinder.rb +0 -115
  543. data/lib/tasks/drg_default_html_editor_copy_assets.rake +0 -18
@@ -1,420 +0,0 @@
1
- "use strict";
2
- /**
3
- * elFinder transport to support old protocol.
4
- *
5
- * @example
6
- * $('selector').elfinder({
7
- * ....
8
- * transport : new elFinderSupportVer1()
9
- * })
10
- *
11
- * @author Dmitry (dio) Levashov
12
- **/
13
- window.elFinderSupportVer1 = function(upload) {
14
- var self = this,
15
- dateObj, today, yesterday,
16
- getDateString = function(date) {
17
- return date.replace('Today', today).replace('Yesterday', yesterday);
18
- };
19
-
20
- dateObj = new Date();
21
- today = dateObj.getFullYear() + '/' + (dateObj.getMonth() + 1) + '/' + dateObj.getDate();
22
- dateObj = new Date(Date.now() - 86400000);
23
- yesterday = dateObj.getFullYear() + '/' + (dateObj.getMonth() + 1) + '/' + dateObj.getDate();
24
-
25
- this.upload = upload || 'auto';
26
-
27
- this.init = function(fm) {
28
- this.fm = fm;
29
- this.fm.parseUploadData = function(text) {
30
- var data;
31
-
32
- if (!$.trim(text)) {
33
- return {error : ['errResponse', 'errDataEmpty']};
34
- }
35
-
36
- try {
37
- data = JSON.parse(text);
38
- } catch (e) {
39
- return {error : ['errResponse', 'errDataNotJSON']}
40
- }
41
-
42
- return self.normalize('upload', data);
43
- }
44
- }
45
-
46
-
47
- this.send = function(opts) {
48
- var self = this,
49
- fm = this.fm,
50
- dfrd = $.Deferred(),
51
- cmd = opts.data.cmd,
52
- args = [],
53
- _opts = {},
54
- data,
55
- xhr;
56
-
57
- dfrd.abort = function() {
58
- if (xhr.state() == 'pending') {
59
- xhr.quiet = true;
60
- xhr.abort();
61
- }
62
- }
63
-
64
- switch (cmd) {
65
- case 'open':
66
- opts.data.tree = 1;
67
- break;
68
- case 'parents':
69
- case 'tree':
70
- return dfrd.resolve({tree : []});
71
- break;
72
- case 'get':
73
- opts.data.cmd = 'read';
74
- opts.data.current = fm.file(opts.data.target).phash;
75
- break;
76
- case 'put':
77
- opts.data.cmd = 'edit';
78
- opts.data.current = fm.file(opts.data.target).phash;
79
- break;
80
- case 'archive':
81
- case 'rm':
82
- opts.data.current = fm.file(opts.data.targets[0]).phash;
83
- break;
84
- case 'extract':
85
- case 'rename':
86
- case 'resize':
87
- opts.data.current = fm.file(opts.data.target).phash;
88
- break;
89
- case 'duplicate':
90
- _opts = $.extend(true, {}, opts);
91
-
92
- $.each(opts.data.targets, function(i, hash) {
93
- $.ajax($.extend(_opts, {data : {cmd : 'duplicate', target : hash, current : fm.file(hash).phash}}))
94
- .error(function(error) {
95
- fm.error(fm.res('error', 'connect'));
96
- })
97
- .done(function(data) {
98
- data = self.normalize('duplicate', data);
99
- if (data.error) {
100
- fm.error(data.error);
101
- } else if (data.added) {
102
- fm.trigger('add', {added : data.added});
103
- }
104
- })
105
- });
106
- return dfrd.resolve({})
107
- break;
108
-
109
- case 'mkdir':
110
- case 'mkfile':
111
- opts.data.current = opts.data.target;
112
- break;
113
- case 'paste':
114
- opts.data.current = opts.data.dst;
115
- if (! opts.data.tree) {
116
- $.each(opts.data.targets, function(i, h) {
117
- if (fm.file(h) && fm.file(h).mime === 'directory') {
118
- opts.data.tree = '1';
119
- return false;
120
- }
121
- });
122
- }
123
- break;
124
-
125
- case 'size':
126
- return dfrd.resolve({error : fm.res('error', 'cmdsupport')});
127
- break;
128
- case 'search':
129
- return dfrd.resolve({error : fm.res('error', 'cmdsupport')});
130
- break;
131
-
132
- case 'file':
133
- opts.data.cmd = 'open';
134
- opts.data.current = fm.file(opts.data.target).phash;
135
- break;
136
- }
137
- // cmd = opts.data.cmd
138
-
139
- xhr = $.ajax(opts)
140
- .fail(function(error) {
141
- dfrd.reject(error)
142
- })
143
- .done(function(raw) {
144
- data = self.normalize(cmd, raw);
145
-
146
- if (cmd == 'paste') {
147
- if (! data.error && ! data.added.length && ! data.removed.length && ! data.changed.length) {
148
- data.error = [opts.data.cut? 'errMove' : 'errCopy', fm.i18n('items'), 'errExists', fm.file(opts.data.targets[0]).name];
149
- }
150
- if (! data.error) {
151
- fm.sync();
152
- }
153
- }
154
- dfrd.resolve(data);
155
- })
156
-
157
- return dfrd;
158
- }
159
-
160
- // fix old connectors errors messages as possible
161
- // this.errors = {
162
- // 'Unknown command' : 'Unknown command.',
163
- // 'Invalid backend configuration' : 'Invalid backend configuration.',
164
- // 'Access denied' : 'Access denied.',
165
- // 'PHP JSON module not installed' : 'PHP JSON module not installed.',
166
- // 'File not found' : 'File not found.',
167
- // 'Invalid name' : 'Invalid file name.',
168
- // 'File or folder with the same name already exists' : 'File named "$1" already exists in this location.',
169
- // 'Not allowed file type' : 'Not allowed file type.',
170
- // 'File exceeds the maximum allowed filesize' : 'File exceeds maximum allowed size.',
171
- // 'Unable to copy into itself' : 'Unable to copy "$1" into itself.',
172
- // 'Unable to create archive' : 'Unable to create archive.',
173
- // 'Unable to extract files from archive' : 'Unable to extract files from "$1".'
174
- // }
175
-
176
- this.normalize = function(cmd, data) {
177
- var self = this,
178
- fm = this.fm,
179
- files = {},
180
- filter = function(file) { return file && file.hash && file.name && file.mime ? file : null; },
181
- getDirs = function(items) {
182
- return $.map(items, function(i) {
183
- return i && i.mime && i.mime === 'directory'? i : null;
184
- });
185
- },
186
- getTreeDiff = function(files) {
187
- var dirs = getDirs(files);
188
- treeDiff = fm.diff(dirs, null, ['date', 'ts']);
189
- if (treeDiff.added.length) {
190
- treeDiff.added = getDirs(treeDiff.added);
191
- }
192
- if (treeDiff.changed.length) {
193
- treeDiff.changed = getDirs(treeDiff.changed);
194
- }
195
- if (treeDiff.removed.length) {
196
- var removed = [];
197
- $.each(treeDiff.removed, function(i, h) {
198
- var item;
199
- if ((item = fm.file(h)) && item.mime === 'directory') {
200
- removed.push(h);
201
- }
202
- });
203
- treeDiff.removed = removed;
204
- }
205
- return treeDiff;
206
- },
207
- phash, diff, isCwd, treeDiff;
208
-
209
- if ((cmd == 'tmb' || cmd == 'get')) {
210
- return data;
211
- }
212
-
213
- // if (data.error) {
214
- // $.each(data.error, function(i, msg) {
215
- // if (self.errors[msg]) {
216
- // data.error[i] = self.errors[msg];
217
- // }
218
- // });
219
- // }
220
-
221
- if (cmd == 'upload' && data.error && data.cwd) {
222
- data.warning = $.extend({}, data.error);
223
- data.error = false;
224
- }
225
-
226
-
227
- if (data.error) {
228
- return data;
229
- }
230
-
231
- if (cmd == 'put') {
232
-
233
- phash = fm.file(data.target.hash).phash;
234
- return {changed : [this.normalizeFile(data.target, phash)]};
235
- }
236
-
237
- phash = data.cwd.hash;
238
-
239
- isCwd = (phash == fm.cwd().hash);
240
-
241
- if (data.tree) {
242
- $.each(this.normalizeTree(data.tree), function(i, file) {
243
- files[file.hash] = file;
244
- });
245
- }
246
-
247
- $.each(data.cdc||[], function(i, file) {
248
- var hash = file.hash,
249
- mcts;
250
-
251
- if (files[hash]) {
252
- if (file.date) {
253
- mcts = Date.parse(getDateString(file.date));
254
- if (mcts && !isNaN(mcts)) {
255
- files[hash].ts = Math.floor(mcts / 1000);
256
- } else {
257
- files[hash].date = file.date || fm.formatDate(file);
258
- }
259
- }
260
- files[hash].locked = file.hash == phash ? true : file.rm === void(0) ? false : !file.rm;
261
- } else {
262
- files[hash] = self.normalizeFile(file, phash, data.tmb);
263
- }
264
- });
265
-
266
- if (!data.tree) {
267
- $.each(fm.files(), function(hash, file) {
268
- if (!files[hash] && file.phash != phash && file.mime == 'directory') {
269
- files[hash] = file;
270
- }
271
- });
272
- }
273
-
274
- if (cmd == 'open') {
275
- return {
276
- cwd : files[phash] || this.normalizeFile(data.cwd),
277
- files : $.map(files, function(f) { return f }),
278
- options : self.normalizeOptions(data),
279
- init : !!data.params,
280
- debug : data.debug
281
- };
282
- }
283
-
284
- if (isCwd) {
285
- diff = fm.diff($.map(files, filter));
286
- } else {
287
- if (data.tree) {
288
- diff = getTreeDiff(files);
289
- } else {
290
- diff = {
291
- added : [],
292
- removed : [],
293
- changed : []
294
- };
295
- }
296
- }
297
-
298
- return $.extend({
299
- current : data.cwd.hash,
300
- error : data.error,
301
- warning : data.warning,
302
- options : {tmb : !!data.tmb}
303
- }, diff);
304
-
305
- }
306
-
307
- /**
308
- * Convert old api tree into plain array of dirs
309
- *
310
- * @param Object root dir
311
- * @return Array
312
- */
313
- this.normalizeTree = function(root) {
314
- var self = this,
315
- result = [],
316
- traverse = function(dirs, phash) {
317
- var i, dir;
318
-
319
- for (i = 0; i < dirs.length; i++) {
320
- dir = dirs[i];
321
- result.push(self.normalizeFile(dir, phash))
322
- dir.dirs.length && traverse(dir.dirs, dir.hash);
323
- }
324
- };
325
-
326
- traverse([root]);
327
-
328
- return result;
329
- }
330
-
331
- /**
332
- * Convert file info from old api format into new one
333
- *
334
- * @param Object file
335
- * @param String parent dir hash
336
- * @return Object
337
- */
338
- this.normalizeFile = function(file, phash, tmb) {
339
- var mime = file.mime || 'directory',
340
- size = mime == 'directory' && !file.linkTo ? 0 : file.size,
341
- mcts = file.date? Date.parse(getDateString(file.date)) : void 0,
342
- info = {
343
- url : file.url,
344
- hash : file.hash,
345
- phash : phash,
346
- name : file.name,
347
- mime : mime,
348
- ts : file.ts,
349
- size : size,
350
- read : file.read,
351
- write : file.write,
352
- locked : !phash ? true : file.rm === void(0) ? false : !file.rm
353
- };
354
-
355
- if (! info.ts) {
356
- if (mcts && !isNaN(mcts)) {
357
- info.ts = Math.floor(mcts / 1000);
358
- } else {
359
- info.date = file.date || this.fm.formatDate(file);
360
- }
361
- }
362
-
363
- if (file.mime == 'application/x-empty' || file.mime == 'inode/x-empty') {
364
- info.mime = 'text/plain';
365
- }
366
-
367
- if (file.linkTo) {
368
- info.alias = file.linkTo;
369
- }
370
-
371
- if (file.linkTo) {
372
- info.linkTo = file.linkTo;
373
- }
374
-
375
- if (file.tmb) {
376
- info.tmb = file.tmb;
377
- } else if (info.mime.indexOf('image/') === 0 && tmb) {
378
- info.tmb = 1;
379
-
380
- }
381
-
382
- if (file.dirs && file.dirs.length) {
383
- info.dirs = true;
384
- }
385
- if (file.dim) {
386
- info.dim = file.dim;
387
- }
388
- if (file.resize) {
389
- info.resize = file.resize;
390
- }
391
- return info;
392
- }
393
-
394
- this.normalizeOptions = function(data) {
395
- var opts = {
396
- path : data.cwd.rel,
397
- disabled : $.merge((data.disabled || []), [ 'search', 'netmount', 'zipdl' ]),
398
- tmb : !!data.tmb,
399
- copyOverwrite : true
400
- };
401
-
402
- if (data.params) {
403
- opts.api = 1;
404
- opts.url = data.params.url;
405
- opts.archivers = {
406
- create : data.params.archives || [],
407
- extract : data.params.extract || []
408
- }
409
- }
410
-
411
- if (opts.path.indexOf('/') !== -1) {
412
- opts.separator = '/';
413
- } else if (opts.path.indexOf('\\') !== -1) {
414
- opts.separator = '\\';
415
- }
416
- return opts;
417
- }
418
-
419
-
420
- };
@@ -1,94 +0,0 @@
1
- "use strict";
2
- /**
3
- * elFinder client options and main script for RequireJS
4
- *
5
- * Rename "main.default.js" to "main.js" and edit it if you need configure elFInder options or any things. And use that in elfinder.html.
6
- * e.g. `<script data-main="./main.js" src="./require.js"></script>`
7
- **/
8
- (function(){
9
- var // jQuery and jQueryUI version
10
- jqver = '3.1.1',
11
- uiver = '1.12.1',
12
-
13
- // Detect language (optional)
14
- lang = (function() {
15
- var locq = window.location.search,
16
- fullLang, locm, lang;
17
- if (locq && (locm = locq.match(/lang=([a-zA-Z_-]+)/))) {
18
- // detection by url query (?lang=xx)
19
- fullLang = locm[1];
20
- } else {
21
- // detection by browser language
22
- fullLang = (navigator.browserLanguage || navigator.language || navigator.userLanguage);
23
- }
24
- lang = fullLang.substr(0,2);
25
- if (lang === 'ja') lang = 'jp';
26
- else if (lang === 'pt') lang = 'pt_BR';
27
- else if (lang === 'ug') lang = 'ug_CN';
28
- else if (lang === 'zh') lang = (fullLang.substr(0,5) === 'zh-TW')? 'zh_TW' : 'zh_CN';
29
- return lang;
30
- })(),
31
-
32
- // elFinder options (REQUIRED)
33
- // Documentation for client options:
34
- // https://github.com/Studio-42/elFinder/wiki/Client-configuration-options
35
- opts = {
36
- url : 'php/connector.minimal.php', // connector URL (REQUIRED)
37
- lang: lang // auto detected language (optional)
38
- },
39
-
40
- // Start elFinder (REQUIRED)
41
- start = function(elFinder) {
42
- // load jQueryUI CSS
43
- elFinder.prototype.loadCss('//cdnjs.cloudflare.com/ajax/libs/jqueryui/'+uiver+'/themes/smoothness/jquery-ui.css');
44
-
45
- $(function() {
46
- // Optional for Japanese decoder "extras/encoding-japanese.min"
47
- if (window.Encoding && Encoding.convert) {
48
- elFinder.prototype._options.rawStringDecoder = function(s) {
49
- return Encoding.convert(s,{to:'UNICODE',type:'string'});
50
- };
51
- }
52
- // Make elFinder (REQUIRED)
53
- $('#elfinder').elfinder(opts);
54
- });
55
- },
56
-
57
- // JavaScript loader (REQUIRED)
58
- load = function() {
59
- require(
60
- [
61
- 'elfinder'
62
- , (lang !== 'en')? 'elfinder.lang' : null // load detected language
63
- // , 'extras/quicklook.googledocs' // optional preview for GoogleApps contents on the GoogleDrive volume
64
- // , (lang === 'jp')? 'extras/encoding-japanese.min' : null // optional Japanese decoder for archive preview
65
- ],
66
- start,
67
- function(error) {
68
- alert(error.message);
69
- }
70
- );
71
- },
72
-
73
- // is IE8? for determine the jQuery version to use (optional)
74
- ie8 = (typeof window.addEventListener === 'undefined' && typeof document.getElementsByClassName === 'undefined');
75
-
76
- // config of RequireJS (REQUIRED)
77
- require.config({
78
- baseUrl : 'js',
79
- paths : {
80
- 'jquery' : '//cdnjs.cloudflare.com/ajax/libs/jquery/'+(ie8? '1.12.4' : jqver)+'/jquery.min',
81
- 'jquery-ui': '//cdnjs.cloudflare.com/ajax/libs/jqueryui/'+uiver+'/jquery-ui.min',
82
- 'elfinder' : 'elfinder.min',
83
- 'elfinder.lang': [
84
- 'i18n/elfinder.'+lang,
85
- 'i18n/elfinder.fallback'
86
- ]
87
- },
88
- waitSeconds : 10 // optional
89
- });
90
-
91
- // load JavaScripts (REQUIRED)
92
- load();
93
-
94
- })();
@@ -1,13 +0,0 @@
1
- {
2
- "name": "elfinder",
3
- "version": "2.1.20",
4
- "description": "Open-source file manager for web, written in JavaScript using jQuery and jQuery UI.",
5
- "author": "Studio-42 (https://github.com/Studio-42/elFinder)",
6
- "license": "3-clauses BSD",
7
- "bugs": "https://github.com/Studio-42/elFinder/issues",
8
- "homepage": "http://elfinder.org/",
9
- "repository": {
10
- "type": "git",
11
- "url": "https://github.com/Studio-42/elFinder.git"
12
- }
13
- }
@@ -1,30 +0,0 @@
1
- #--
2
- # Copyright (c) 2014+ Damjan Rems
3
- #
4
- # Permission is hereby granted, free of charge, to any person obtaining
5
- # a copy of this software and associated documentation files (the
6
- # "Software"), to deal in the Software without restriction, including
7
- # without limitation the rights to use, copy, modify, merge, publish,
8
- # distribute, sublicense, and/or sell copies of the Software, and to
9
- # permit persons to whom the Software is furnished to do so, subject to
10
- # the following conditions:
11
- #
12
- # The above copyright notice and this permission notice shall be
13
- # included in all copies or substantial portions of the Software.
14
- #
15
- # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
16
- # EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
17
- # MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
18
- # NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
19
- # LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
20
- # OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
21
- # WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
22
- #++
23
-
24
- #require 'patches/drgcms_form_field.rb'
25
-
26
- patches_path = File.expand_path("../../../lib/patches", __FILE__)
27
- # Add to DrgCms patches paths
28
- DrgCms::add_patches_path(patches_path)
29
- # Load initialy
30
- Dir["#{patches_path}/**/*.rb"].each { |file| require file }
data/config/routes.rb DELETED
@@ -1,2 +0,0 @@
1
- Rails.application.routes.draw do
2
- end
@@ -1,6 +0,0 @@
1
- require "drg_default_html_editor/engine"
2
- require 'el_finder'
3
- require 'drg_default_html_editor/version'
4
-
5
- module DrgDefaultHtmlEditor
6
- end
@@ -1,121 +0,0 @@
1
- #--
2
- # Copyright (c) 2012+ Damjan Rems
3
- #
4
- # Permission is hereby granted, free of charge, to any person obtaining
5
- # a copy of this software and associated documentation files (the
6
- # "Software"), to deal in the Software without restriction, including
7
- # without limitation the rights to use, copy, modify, merge, publish,
8
- # distribute, sublicense, and/or sell copies of the Software, and to
9
- # permit persons to whom the Software is furnished to do so, subject to
10
- # the following conditions:
11
- #
12
- # The above copyright notice and this permission notice shall be
13
- # included in all copies or substantial portions of the Software.
14
- #
15
- # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
16
- # EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
17
- # MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
18
- # NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
19
- # LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
20
- # OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
21
- # WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
22
- #++
23
- DrgcmsFormFields rescue nil
24
-
25
- module DrgcmsFormFields
26
- ###########################################################################
27
- # Class for creating ElFinder file manager enabled form field.
28
- ###########################################################################
29
- class Elfinder < DrgcmsField
30
-
31
- ###########################################################################
32
- # Return code required to render elfinder DRG CMS form field.
33
- ###########################################################################
34
- def render
35
- return ro_standard if @readonly
36
- set_initial_value
37
- #
38
- record = record_text_for(@yaml['name'])
39
- @js << <<EOJS
40
-
41
- $('##{record}_#{@yaml['name']}').dblclick(function(){
42
- $('##{record}_div_#{@yaml['name']}').show();
43
- var f = $('##{record}_div_#{@yaml['name']}').elfinder({
44
- url : '/elfinder',
45
- transport : new elFinderSupportVer1(),
46
- rememberLastDir: true,
47
- height: 490,
48
- docked: false,
49
- dialog: { width: 400, modal: true },
50
- lang: '#{I18n.locale}',
51
- getFileCallback : function(files) {
52
- console.log(files);
53
- $('##{record}_#{@yaml['name']}').val(files.url);
54
- $('##{record}_div_#{@yaml['name']}').hide();
55
- },
56
- });
57
- });
58
- EOJS
59
-
60
- @html << @parent.text_field(record, @yaml['name'], @yaml['html'])
61
- unless @record[@yaml['name']].blank? or @parent.dc_dont?(@yaml['preview'], false)
62
- @html <<
63
- %Q[<span class="dc-image-preview">
64
- #{@parent.image_tag(@record[@yaml['name']], title: t('drgcms.img_large') ) unless @record[@yaml['name']].match('<i ')}
65
- </span><div id="dc-image-preview"></div>]
66
- end
67
- @html << "<div id='#{record}_div_#{@yaml['name']}'></div>"
68
-
69
- self
70
- end
71
-
72
- ###########################################################################
73
- # Return html url code required for FileManager icon on CMS menu.
74
- ###########################################################################
75
- def self.file_manager_url(parent)
76
- url = "/assets/elfinder/elfinder.html?CKEditorFuncNum=1&langCode=#{I18n.locale}"
77
-
78
- parent.link_to( parent.fa_icon('archive lg',
79
- title: parent.t('drgcms.file_manager')),
80
- '#',
81
- { onclick: "window.open('#{url}',
82
- '#{parent.t('drgcms.file_manager')}',
83
- 'width=700,height=500')"} )
84
- end
85
-
86
- end
87
-
88
- ###########################################################################
89
- # Class for creating ckeditor DRG CMS form field.
90
- ###########################################################################
91
- class Ckeditor < DrgcmsFormFields::DrgcmsField
92
-
93
- ###########################################################################
94
- # Return code required to render ckeditor DRG CMS form field.
95
- ###########################################################################
96
- def render
97
- return ro_standard if @readonly
98
- set_initial_value
99
- # read configuration from site settings
100
- ck_config = '/assets/ckeditor_config.js'
101
- ck_css = '/assets/ckeditor_css.css'
102
- ck = @parent.dc_get_site ? @parent.dc_get_site.params['ckeditor'] : nil # site might not be available yet
103
- if ck
104
- ck_config = ck['config_file'] if ck['config_file']
105
- ck_css = ck['css_file'] if ck['css_file']
106
- end
107
- #
108
- @yaml['options'] ||= ''
109
- @yaml['options'] << ", customConfig: '#{ck_config}'"
110
- @yaml['options'] << ", contentsCss: '#{ck_css}'" unless ck_css.blank?
111
- @yaml['options'] << ", language: '#{I18n.locale}'" unless @yaml['options'].match('language:')
112
-
113
- options = @yaml['options'] ? ",{#{@yaml['options']}}" : ''
114
- record = record_text_for(@yaml['name'])
115
- @html << @parent.text_area(record, @yaml['name'], @yaml['html'])
116
- @js << "CKEDITOR.replace( '#{record}_#{@yaml['name']}'#{options} );"
117
- self
118
- end
119
- end
120
-
121
- end