drg_default_html_editor 0.6.0.0 → 0.7.0.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (453) hide show
  1. checksums.yaml +4 -4
  2. data/app/assets/images/close.png +0 -0
  3. data/app/assets/images/lock-open.png +0 -0
  4. data/app/assets/images/lock.png +0 -0
  5. data/app/assets/images/refresh.png +0 -0
  6. data/app/assets/javascripts/ckeditor/CHANGES.md +832 -163
  7. data/app/assets/javascripts/ckeditor/LICENSE.md +23 -7
  8. data/app/assets/javascripts/ckeditor/README.md +5 -5
  9. data/app/assets/javascripts/ckeditor/SECURITY.md +10 -0
  10. data/app/assets/javascripts/ckeditor/adapters/jquery.js +6 -6
  11. data/app/assets/javascripts/ckeditor/bender-runner.config.json +16 -0
  12. data/app/assets/javascripts/ckeditor/build-config.js +30 -12
  13. data/app/assets/javascripts/ckeditor/ckeditor.js +1216 -1040
  14. data/app/assets/javascripts/ckeditor/config.js +9 -32
  15. data/app/assets/javascripts/ckeditor/contents.css +1 -1
  16. data/app/assets/javascripts/ckeditor/lang/af.js +3 -3
  17. data/app/assets/javascripts/ckeditor/lang/ar.js +3 -3
  18. data/app/assets/javascripts/ckeditor/lang/az.js +3 -3
  19. data/app/assets/javascripts/ckeditor/lang/bg.js +3 -3
  20. data/app/assets/javascripts/ckeditor/lang/bn.js +3 -3
  21. data/app/assets/javascripts/ckeditor/lang/bs.js +3 -3
  22. data/app/assets/javascripts/ckeditor/lang/ca.js +3 -3
  23. data/app/assets/javascripts/ckeditor/lang/cs.js +3 -3
  24. data/app/assets/javascripts/ckeditor/lang/cy.js +3 -3
  25. data/app/assets/javascripts/ckeditor/lang/da.js +3 -3
  26. data/app/assets/javascripts/ckeditor/lang/de-ch.js +3 -3
  27. data/app/assets/javascripts/ckeditor/lang/de.js +3 -3
  28. data/app/assets/javascripts/ckeditor/lang/el.js +3 -3
  29. data/app/assets/javascripts/ckeditor/lang/en-au.js +3 -3
  30. data/app/assets/javascripts/ckeditor/lang/en-ca.js +3 -3
  31. data/app/assets/javascripts/ckeditor/lang/en-gb.js +3 -3
  32. data/app/assets/javascripts/ckeditor/lang/en.js +3 -3
  33. data/app/assets/javascripts/ckeditor/lang/eo.js +3 -3
  34. data/app/assets/javascripts/ckeditor/lang/es-mx.js +3 -3
  35. data/app/assets/javascripts/ckeditor/lang/es.js +3 -3
  36. data/app/assets/javascripts/ckeditor/lang/et.js +3 -3
  37. data/app/assets/javascripts/ckeditor/lang/eu.js +3 -3
  38. data/app/assets/javascripts/ckeditor/lang/fa.js +3 -3
  39. data/app/assets/javascripts/ckeditor/lang/fi.js +3 -3
  40. data/app/assets/javascripts/ckeditor/lang/fo.js +3 -3
  41. data/app/assets/javascripts/ckeditor/lang/fr-ca.js +3 -3
  42. data/app/assets/javascripts/ckeditor/lang/fr.js +3 -3
  43. data/app/assets/javascripts/ckeditor/lang/gl.js +3 -3
  44. data/app/assets/javascripts/ckeditor/lang/gu.js +3 -3
  45. data/app/assets/javascripts/ckeditor/lang/he.js +3 -3
  46. data/app/assets/javascripts/ckeditor/lang/hi.js +3 -3
  47. data/app/assets/javascripts/ckeditor/lang/hr.js +3 -3
  48. data/app/assets/javascripts/ckeditor/lang/hu.js +3 -3
  49. data/app/assets/javascripts/ckeditor/lang/id.js +3 -3
  50. data/app/assets/javascripts/ckeditor/lang/is.js +3 -3
  51. data/app/assets/javascripts/ckeditor/lang/it.js +3 -3
  52. data/app/assets/javascripts/ckeditor/lang/ja.js +3 -3
  53. data/app/assets/javascripts/ckeditor/lang/ka.js +3 -3
  54. data/app/assets/javascripts/ckeditor/lang/km.js +3 -3
  55. data/app/assets/javascripts/ckeditor/lang/ko.js +3 -3
  56. data/app/assets/javascripts/ckeditor/lang/ku.js +3 -3
  57. data/app/assets/javascripts/ckeditor/lang/lt.js +3 -3
  58. data/app/assets/javascripts/ckeditor/lang/lv.js +3 -3
  59. data/app/assets/javascripts/ckeditor/lang/mk.js +3 -3
  60. data/app/assets/javascripts/ckeditor/lang/mn.js +3 -3
  61. data/app/assets/javascripts/ckeditor/lang/ms.js +3 -3
  62. data/app/assets/javascripts/ckeditor/lang/nb.js +3 -3
  63. data/app/assets/javascripts/ckeditor/lang/nl.js +3 -3
  64. data/app/assets/javascripts/ckeditor/lang/no.js +3 -3
  65. data/app/assets/javascripts/ckeditor/lang/oc.js +3 -3
  66. data/app/assets/javascripts/ckeditor/lang/pl.js +3 -3
  67. data/app/assets/javascripts/ckeditor/lang/pt-br.js +3 -3
  68. data/app/assets/javascripts/ckeditor/lang/pt.js +3 -3
  69. data/app/assets/javascripts/ckeditor/lang/ro.js +3 -3
  70. data/app/assets/javascripts/ckeditor/lang/ru.js +3 -3
  71. data/app/assets/javascripts/ckeditor/lang/si.js +3 -3
  72. data/app/assets/javascripts/ckeditor/lang/sk.js +3 -3
  73. data/app/assets/javascripts/ckeditor/lang/sl.js +3 -3
  74. data/app/assets/javascripts/ckeditor/lang/sq.js +3 -3
  75. data/app/assets/javascripts/ckeditor/lang/sr-latn.js +3 -3
  76. data/app/assets/javascripts/ckeditor/lang/sr.js +3 -3
  77. data/app/assets/javascripts/ckeditor/lang/sv.js +3 -3
  78. data/app/assets/javascripts/ckeditor/lang/th.js +3 -3
  79. data/app/assets/javascripts/ckeditor/lang/tr.js +3 -3
  80. data/app/assets/javascripts/ckeditor/lang/tt.js +3 -3
  81. data/app/assets/javascripts/ckeditor/lang/ug.js +3 -3
  82. data/app/assets/javascripts/ckeditor/lang/uk.js +3 -3
  83. data/app/assets/javascripts/ckeditor/lang/vi.js +3 -3
  84. data/app/assets/javascripts/ckeditor/lang/zh-cn.js +3 -3
  85. data/app/assets/javascripts/ckeditor/lang/zh.js +3 -3
  86. data/app/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/a11yhelp.js +6 -6
  87. data/app/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/_translationstatus.txt +1 -1
  88. data/app/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/af.js +2 -2
  89. data/app/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/ar.js +8 -7
  90. data/app/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/az.js +2 -2
  91. data/app/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/bg.js +9 -8
  92. data/app/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/ca.js +1 -1
  93. data/app/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/cs.js +3 -3
  94. data/app/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/cy.js +2 -2
  95. data/app/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/da.js +6 -6
  96. data/app/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/de-ch.js +10 -9
  97. data/app/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/de.js +1 -1
  98. data/app/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/el.js +1 -1
  99. data/app/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/en-au.js +8 -8
  100. data/app/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/en-gb.js +3 -2
  101. data/app/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/en.js +3 -2
  102. data/app/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/eo.js +1 -1
  103. data/app/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/es-mx.js +1 -1
  104. data/app/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/es.js +1 -1
  105. data/app/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/et.js +8 -8
  106. data/app/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/eu.js +1 -1
  107. data/app/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/fa.js +3 -3
  108. data/app/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/fi.js +3 -2
  109. data/app/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/fo.js +3 -2
  110. data/app/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/fr-ca.js +3 -2
  111. data/app/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/fr.js +1 -1
  112. data/app/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/gl.js +1 -1
  113. data/app/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/gu.js +3 -2
  114. data/app/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/he.js +2 -2
  115. data/app/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/hi.js +3 -2
  116. data/app/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/hr.js +1 -1
  117. data/app/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/hu.js +2 -2
  118. data/app/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/id.js +1 -1
  119. data/app/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/it.js +2 -2
  120. data/app/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/ja.js +2 -2
  121. data/app/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/km.js +3 -2
  122. data/app/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/ko.js +1 -1
  123. data/app/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/ku.js +1 -1
  124. data/app/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/lt.js +3 -2
  125. data/app/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/lv.js +4 -3
  126. data/app/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/mk.js +9 -8
  127. data/app/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/mn.js +3 -2
  128. data/app/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/nb.js +1 -1
  129. data/app/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/nl.js +2 -2
  130. data/app/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/no.js +8 -7
  131. data/app/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/oc.js +1 -1
  132. data/app/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/pl.js +1 -1
  133. data/app/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/pt-br.js +1 -1
  134. data/app/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/pt.js +2 -2
  135. data/app/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/ro.js +1 -1
  136. data/app/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/ru.js +1 -1
  137. data/app/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/si.js +2 -2
  138. data/app/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/sk.js +2 -2
  139. data/app/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/sl.js +4 -3
  140. data/app/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/sq.js +8 -7
  141. data/app/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/sr-latn.js +9 -8
  142. data/app/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/sr.js +9 -8
  143. data/app/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/sv.js +1 -1
  144. data/app/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/th.js +3 -2
  145. data/app/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/tr.js +1 -1
  146. data/app/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/tt.js +3 -2
  147. data/app/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/ug.js +1 -1
  148. data/app/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/uk.js +4 -4
  149. data/app/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/vi.js +2 -2
  150. data/app/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/zh-cn.js +1 -1
  151. data/app/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/zh.js +6 -6
  152. data/app/assets/javascripts/ckeditor/plugins/about/dialogs/about.js +2 -2
  153. data/app/assets/javascripts/ckeditor/plugins/clipboard/dialogs/paste.js +2 -2
  154. data/app/assets/javascripts/ckeditor/plugins/colordialog/dialogs/colordialog.css +1 -1
  155. data/app/assets/javascripts/ckeditor/plugins/colordialog/dialogs/colordialog.js +11 -11
  156. data/app/assets/javascripts/ckeditor/plugins/copyformatting/cursors/cursor-disabled.svg +25 -0
  157. data/app/assets/javascripts/ckeditor/plugins/copyformatting/cursors/cursor.svg +14 -0
  158. data/app/assets/javascripts/ckeditor/plugins/copyformatting/styles/copyformatting.css +45 -0
  159. data/app/assets/javascripts/ckeditor/plugins/dialog/dialogDefinition.js +1 -1
  160. data/app/assets/javascripts/ckeditor/plugins/dialog/styles/dialog.css +18 -0
  161. data/app/assets/javascripts/ckeditor/plugins/div/dialogs/div.js +9 -8
  162. data/app/assets/javascripts/ckeditor/plugins/find/dialogs/find.js +26 -0
  163. data/app/assets/javascripts/ckeditor/plugins/icons.png +0 -0
  164. data/app/assets/javascripts/ckeditor/plugins/icons_hidpi.png +0 -0
  165. data/app/assets/javascripts/ckeditor/plugins/image/dialogs/image-org.js +44 -0
  166. data/app/assets/javascripts/ckeditor/plugins/image/dialogs/image.js +1286 -44
  167. data/app/assets/javascripts/ckeditor/plugins/link/dialogs/anchor.js +5 -5
  168. data/app/assets/javascripts/ckeditor/plugins/link/dialogs/link.js +26 -24
  169. data/app/assets/javascripts/ckeditor/plugins/liststyle/dialogs/liststyle.js +10 -0
  170. data/app/assets/javascripts/ckeditor/plugins/pagebreak/images/pagebreak.gif +0 -0
  171. data/app/assets/javascripts/ckeditor/plugins/pastefromgdocs/filter/default.js +8 -0
  172. data/app/assets/javascripts/ckeditor/plugins/pastefromlibreoffice/filter/default.js +11 -0
  173. data/app/assets/javascripts/ckeditor/plugins/pastefromword/filter/default.js +39 -52
  174. data/app/assets/javascripts/ckeditor/plugins/pastetools/filter/common.js +24 -0
  175. data/app/assets/javascripts/ckeditor/plugins/pastetools/filter/image.js +12 -0
  176. data/app/assets/javascripts/ckeditor/plugins/preview/images/pagebreak.gif +0 -0
  177. data/app/assets/javascripts/ckeditor/plugins/preview/preview.html +13 -0
  178. data/app/assets/javascripts/ckeditor/plugins/preview/styles/screen.css +10 -0
  179. data/app/assets/javascripts/ckeditor/plugins/scayt/CHANGELOG.md +1 -17
  180. data/app/assets/javascripts/ckeditor/plugins/scayt/README.md +63 -7
  181. data/app/assets/javascripts/ckeditor/plugins/scayt/dialogs/options.js +32 -32
  182. data/app/assets/javascripts/ckeditor/plugins/showblocks/images/block_address.png +0 -0
  183. data/app/assets/javascripts/ckeditor/plugins/showblocks/images/block_blockquote.png +0 -0
  184. data/app/assets/javascripts/ckeditor/plugins/showblocks/images/block_div.png +0 -0
  185. data/app/assets/javascripts/ckeditor/plugins/showblocks/images/block_h1.png +0 -0
  186. data/app/assets/javascripts/ckeditor/plugins/showblocks/images/block_h2.png +0 -0
  187. data/app/assets/javascripts/ckeditor/plugins/showblocks/images/block_h3.png +0 -0
  188. data/app/assets/javascripts/ckeditor/plugins/showblocks/images/block_h4.png +0 -0
  189. data/app/assets/javascripts/ckeditor/plugins/showblocks/images/block_h5.png +0 -0
  190. data/app/assets/javascripts/ckeditor/plugins/showblocks/images/block_h6.png +0 -0
  191. data/app/assets/javascripts/ckeditor/plugins/showblocks/images/block_p.png +0 -0
  192. data/app/assets/javascripts/ckeditor/plugins/showblocks/images/block_pre.png +0 -0
  193. data/app/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/_translationstatus.txt +1 -1
  194. data/app/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/af.js +1 -1
  195. data/app/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/ar.js +1 -1
  196. data/app/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/az.js +1 -1
  197. data/app/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/bg.js +1 -1
  198. data/app/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/ca.js +1 -1
  199. data/app/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/cs.js +1 -1
  200. data/app/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/cy.js +1 -1
  201. data/app/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/da.js +3 -3
  202. data/app/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/de-ch.js +6 -6
  203. data/app/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/de.js +1 -1
  204. data/app/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/el.js +1 -1
  205. data/app/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/en-au.js +1 -1
  206. data/app/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/en-ca.js +1 -1
  207. data/app/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/en-gb.js +1 -1
  208. data/app/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/en.js +1 -1
  209. data/app/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/eo.js +1 -1
  210. data/app/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/es-mx.js +1 -1
  211. data/app/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/es.js +1 -1
  212. data/app/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/et.js +8 -10
  213. data/app/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/eu.js +1 -1
  214. data/app/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/fa.js +1 -1
  215. data/app/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/fi.js +1 -1
  216. data/app/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/fr-ca.js +1 -1
  217. data/app/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/fr.js +1 -1
  218. data/app/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/gl.js +1 -1
  219. data/app/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/he.js +1 -1
  220. data/app/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/hr.js +1 -1
  221. data/app/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/hu.js +1 -1
  222. data/app/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/id.js +10 -10
  223. data/app/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/it.js +1 -1
  224. data/app/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/ja.js +1 -1
  225. data/app/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/km.js +1 -1
  226. data/app/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/ko.js +1 -1
  227. data/app/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/ku.js +1 -1
  228. data/app/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/lt.js +1 -1
  229. data/app/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/lv.js +1 -1
  230. data/app/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/nb.js +1 -1
  231. data/app/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/nl.js +1 -1
  232. data/app/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/no.js +1 -1
  233. data/app/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/oc.js +1 -1
  234. data/app/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/pl.js +1 -1
  235. data/app/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/pt-br.js +1 -1
  236. data/app/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/pt.js +1 -1
  237. data/app/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/ro.js +1 -1
  238. data/app/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/ru.js +1 -1
  239. data/app/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/si.js +1 -1
  240. data/app/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/sk.js +1 -1
  241. data/app/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/sl.js +1 -1
  242. data/app/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/sq.js +1 -1
  243. data/app/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/sr-latn.js +13 -0
  244. data/app/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/sr.js +13 -0
  245. data/app/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/sv.js +1 -1
  246. data/app/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/th.js +1 -1
  247. data/app/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/tr.js +1 -1
  248. data/app/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/tt.js +1 -1
  249. data/app/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/ug.js +1 -1
  250. data/app/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/uk.js +1 -1
  251. data/app/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/vi.js +1 -1
  252. data/app/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/zh-cn.js +1 -1
  253. data/app/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/zh.js +1 -1
  254. data/app/assets/javascripts/ckeditor/plugins/specialchar/dialogs/specialchar.js +11 -11
  255. data/app/assets/javascripts/ckeditor/plugins/table/dialogs/table.js +19 -18
  256. data/app/assets/javascripts/ckeditor/plugins/tableselection/styles/tableselection.css +10 -0
  257. data/app/assets/javascripts/ckeditor/plugins/tabletools/dialogs/tableCell.js +15 -15
  258. data/app/assets/javascripts/ckeditor/plugins/templates/dialogs/templates.css +84 -0
  259. data/app/assets/javascripts/ckeditor/plugins/templates/dialogs/templates.js +11 -0
  260. data/app/assets/javascripts/ckeditor/plugins/templates/templatedefinition.js +4 -0
  261. data/app/assets/javascripts/ckeditor/plugins/templates/templates/default.js +7 -0
  262. data/app/assets/javascripts/ckeditor/plugins/templates/templates/images/template1.gif +0 -0
  263. data/app/assets/javascripts/ckeditor/plugins/templates/templates/images/template2.gif +0 -0
  264. data/app/assets/javascripts/ckeditor/plugins/templates/templates/images/template3.gif +0 -0
  265. data/app/assets/javascripts/ckeditor/samples/css/samples.css +1 -1
  266. data/app/assets/javascripts/ckeditor/samples/index.html +11 -9
  267. data/app/assets/javascripts/ckeditor/samples/js/sample.js +1 -1
  268. data/app/assets/javascripts/ckeditor/samples/js/sf.js +1 -1
  269. data/app/assets/javascripts/ckeditor/samples/old/ajax.html +5 -5
  270. data/app/assets/javascripts/ckeditor/samples/old/api.html +5 -5
  271. data/app/assets/javascripts/ckeditor/samples/old/appendto.html +5 -5
  272. data/app/assets/javascripts/ckeditor/samples/old/assets/outputxhtml/outputxhtml.css +1 -1
  273. data/app/assets/javascripts/ckeditor/samples/old/assets/posteddata.php +4 -3
  274. data/app/assets/javascripts/ckeditor/samples/old/assets/uilanguages/languages.js +1 -1
  275. data/app/assets/javascripts/ckeditor/samples/old/datafiltering.html +8 -8
  276. data/app/assets/javascripts/ckeditor/samples/old/dialog/assets/my_dialog.js +1 -1
  277. data/app/assets/javascripts/ckeditor/samples/old/dialog/dialog.html +5 -5
  278. data/app/assets/javascripts/ckeditor/samples/old/divreplace.html +5 -5
  279. data/app/assets/javascripts/ckeditor/samples/old/enterkey/enterkey.html +5 -5
  280. data/app/assets/javascripts/ckeditor/samples/old/htmlwriter/outputhtml.html +5 -5
  281. data/app/assets/javascripts/ckeditor/samples/old/index.html +11 -13
  282. data/app/assets/javascripts/ckeditor/samples/old/inlineall.html +6 -6
  283. data/app/assets/javascripts/ckeditor/samples/old/inlinebycode.html +5 -5
  284. data/app/assets/javascripts/ckeditor/samples/old/inlinetextarea.html +5 -5
  285. data/app/assets/javascripts/ckeditor/samples/old/jquery.html +5 -5
  286. data/app/assets/javascripts/ckeditor/samples/old/magicline/magicline.html +5 -5
  287. data/app/assets/javascripts/ckeditor/samples/old/readonly.html +5 -5
  288. data/app/assets/javascripts/ckeditor/samples/old/replacebyclass.html +5 -5
  289. data/app/assets/javascripts/ckeditor/samples/old/replacebycode.html +5 -5
  290. data/app/assets/javascripts/ckeditor/samples/old/sample.css +1 -1
  291. data/app/assets/javascripts/ckeditor/samples/old/sample.js +1 -1
  292. data/app/assets/javascripts/ckeditor/samples/old/sample_posteddata.php +1 -1
  293. data/app/assets/javascripts/ckeditor/samples/old/tabindex.html +5 -5
  294. data/app/assets/javascripts/ckeditor/samples/old/toolbar/toolbar.html +4 -4
  295. data/app/assets/javascripts/ckeditor/samples/old/uicolor.html +5 -5
  296. data/app/assets/javascripts/ckeditor/samples/old/uilanguages.html +5 -5
  297. data/app/assets/javascripts/ckeditor/samples/old/wysiwygarea/fullpage.html +5 -5
  298. data/app/assets/javascripts/ckeditor/samples/old/xhtmlstyle.html +5 -5
  299. data/app/assets/javascripts/ckeditor/samples/toolbarconfigurator/index.html +7 -6
  300. data/app/assets/javascripts/ckeditor/samples/toolbarconfigurator/js/fulltoolbareditor.js +4 -4
  301. data/app/assets/javascripts/ckeditor/skins/moono-lisa/dialog.css +5 -0
  302. data/app/assets/javascripts/ckeditor/skins/moono-lisa/dialog_ie.css +5 -0
  303. data/app/assets/javascripts/ckeditor/skins/moono-lisa/dialog_ie8.css +5 -0
  304. data/app/assets/javascripts/ckeditor/skins/moono-lisa/dialog_iequirks.css +5 -0
  305. data/app/assets/javascripts/ckeditor/skins/moono-lisa/editor.css +5 -0
  306. data/app/assets/javascripts/ckeditor/skins/moono-lisa/editor_gecko.css +5 -0
  307. data/app/assets/javascripts/ckeditor/skins/moono-lisa/editor_ie.css +5 -0
  308. data/app/assets/javascripts/ckeditor/skins/moono-lisa/editor_ie8.css +5 -0
  309. data/app/assets/javascripts/ckeditor/skins/moono-lisa/editor_iequirks.css +5 -0
  310. data/app/assets/javascripts/ckeditor/skins/moono-lisa/icons.png +0 -0
  311. data/app/assets/javascripts/ckeditor/skins/moono-lisa/icons_hidpi.png +0 -0
  312. data/app/assets/javascripts/ckeditor/skins/moono-lisa/images/arrow.png +0 -0
  313. data/app/assets/javascripts/ckeditor/skins/moono-lisa/images/close.png +0 -0
  314. data/app/assets/javascripts/ckeditor/skins/moono-lisa/images/hidpi/close.png +0 -0
  315. data/app/assets/javascripts/ckeditor/skins/moono-lisa/images/hidpi/lock-open.png +0 -0
  316. data/app/assets/javascripts/ckeditor/skins/moono-lisa/images/hidpi/lock.png +0 -0
  317. data/app/assets/javascripts/ckeditor/skins/moono-lisa/images/hidpi/refresh.png +0 -0
  318. data/app/assets/javascripts/ckeditor/skins/moono-lisa/images/lock-open.png +0 -0
  319. data/app/assets/javascripts/ckeditor/skins/moono-lisa/images/lock.png +0 -0
  320. data/app/assets/javascripts/ckeditor/skins/moono-lisa/images/refresh.png +0 -0
  321. data/app/assets/javascripts/ckeditor/skins/moono-lisa/images/spinner.gif +0 -0
  322. data/app/assets/javascripts/ckeditor/skins/{moono → moono-lisa}/readme.md +9 -12
  323. data/app/assets/javascripts/ckeditor/styles.js +1 -1
  324. data/app/assets/javascripts/ckeditor/vendor/promise.js +13 -0
  325. data/app/assets/javascripts/drg_default_html_editor_cms.js +1 -4
  326. data/app/assets/stylesheets/drg_default_html_editor_cms.css +3 -3
  327. data/app/models/drgcms_form_fields/ckeditor.rb +12 -13
  328. data/lib/drg_default_html_editor/version.rb +1 -1
  329. data/lib/drg_default_html_editor.rb +2 -2
  330. data/lib/tasks/drg_default_html_editor_tasks.rake +16 -4
  331. metadata +95 -166
  332. data/app/assets/javascripts/ckeditor/plugins/dialogadvtab/plugin.js +0 -196
  333. data/app/assets/javascripts/ckeditor/plugins/pastecode/CHANGES.md +0 -8
  334. data/app/assets/javascripts/ckeditor/plugins/pastefromexcel/LICENSE.md +0 -1242
  335. data/app/assets/javascripts/ckeditor/plugins/pastefromexcel/README.md +0 -23
  336. data/app/assets/javascripts/ckeditor/plugins/pastefromexcel/tests/pastefromexcel.js +0 -6
  337. data/app/assets/javascripts/ckeditor/plugins/wsc/LICENSE.md +0 -28
  338. data/app/assets/javascripts/ckeditor/plugins/wsc/README.md +0 -25
  339. data/app/assets/javascripts/ckeditor/plugins/wsc/dialogs/ciframe.html +0 -66
  340. data/app/assets/javascripts/ckeditor/plugins/wsc/dialogs/tmpFrameset.html +0 -52
  341. data/app/assets/javascripts/ckeditor/plugins/wsc/dialogs/wsc.css +0 -82
  342. data/app/assets/javascripts/ckeditor/plugins/wsc/dialogs/wsc.js +0 -91
  343. data/app/assets/javascripts/ckeditor/plugins/wsc/dialogs/wsc_ie.js +0 -11
  344. data/app/assets/javascripts/ckeditor/plugins/wsc/skins/moono-lisa/wsc.css +0 -43
  345. data/app/assets/javascripts/ckeditor/samples/old/htmlwriter/assets/outputforflash/outputforflash.fla +0 -0
  346. data/app/assets/javascripts/ckeditor/samples/old/htmlwriter/assets/outputforflash/outputforflash.swf +0 -0
  347. data/app/assets/javascripts/ckeditor/samples/old/htmlwriter/assets/outputforflash/swfobject.js +0 -19
  348. data/app/assets/javascripts/ckeditor/samples/old/htmlwriter/outputforflash.html +0 -283
  349. data/app/assets/javascripts/ckeditor/skins/moono/dialog.css +0 -5
  350. data/app/assets/javascripts/ckeditor/skins/moono/dialog_ie.css +0 -5
  351. data/app/assets/javascripts/ckeditor/skins/moono/dialog_ie7.css +0 -5
  352. data/app/assets/javascripts/ckeditor/skins/moono/dialog_ie8.css +0 -5
  353. data/app/assets/javascripts/ckeditor/skins/moono/dialog_iequirks.css +0 -5
  354. data/app/assets/javascripts/ckeditor/skins/moono/editor.css +0 -5
  355. data/app/assets/javascripts/ckeditor/skins/moono/editor_gecko.css +0 -5
  356. data/app/assets/javascripts/ckeditor/skins/moono/editor_ie.css +0 -5
  357. data/app/assets/javascripts/ckeditor/skins/moono/editor_ie7.css +0 -5
  358. data/app/assets/javascripts/ckeditor/skins/moono/editor_ie8.css +0 -5
  359. data/app/assets/javascripts/ckeditor/skins/moono/editor_iequirks.css +0 -5
  360. data/app/assets/javascripts/ckeditor/skins/moono/icons.png +0 -0
  361. data/app/assets/javascripts/ckeditor/skins/moono/icons_hidpi.png +0 -0
  362. data/app/assets/javascripts/ckeditor/skins/moono/images/anchor.png +0 -0
  363. data/app/assets/javascripts/ckeditor/skins/moono/images/close.png +0 -0
  364. data/app/assets/javascripts/ckeditor/skins/moono/images/hidpi/anchor.png +0 -0
  365. data/app/assets/javascripts/ckeditor/skins/moono/images/hidpi/close.png +0 -0
  366. data/app/assets/javascripts/ckeditor/skins/moono/images/hidpi/lock-open.png +0 -0
  367. data/app/assets/javascripts/ckeditor/skins/moono/images/hidpi/lock.png +0 -0
  368. data/app/assets/javascripts/ckeditor/skins/moono/images/hidpi/refresh.png +0 -0
  369. data/app/assets/javascripts/ckeditor/skins/moono/images/lock-open.png +0 -0
  370. data/app/assets/javascripts/ckeditor/skins/moono/images/lock.png +0 -0
  371. data/app/assets/javascripts/ckeditor/skins/moono/images/refresh.png +0 -0
  372. data/app/assets/javascripts/elfinder/Changelog +0 -494
  373. data/app/assets/javascripts/elfinder/LICENSE.md +0 -15
  374. data/app/assets/javascripts/elfinder/README.md +0 -209
  375. data/app/assets/javascripts/elfinder/bower.json +0 -28
  376. data/app/assets/javascripts/elfinder/composer.json +0 -39
  377. data/app/assets/javascripts/elfinder/css/elfinder.full.css +0 -3034
  378. data/app/assets/javascripts/elfinder/css/elfinder.min.css +0 -9
  379. data/app/assets/javascripts/elfinder/css/theme.css +0 -68
  380. data/app/assets/javascripts/elfinder/elfinder.html +0 -61
  381. data/app/assets/javascripts/elfinder/img/arrows-active.png +0 -0
  382. data/app/assets/javascripts/elfinder/img/arrows-normal.png +0 -0
  383. data/app/assets/javascripts/elfinder/img/crop.gif +0 -0
  384. data/app/assets/javascripts/elfinder/img/dialogs.png +0 -0
  385. data/app/assets/javascripts/elfinder/img/icons-big.png +0 -0
  386. data/app/assets/javascripts/elfinder/img/icons-small.png +0 -0
  387. data/app/assets/javascripts/elfinder/img/logo.png +0 -0
  388. data/app/assets/javascripts/elfinder/img/progress.gif +0 -0
  389. data/app/assets/javascripts/elfinder/img/quicklook-bg.png +0 -0
  390. data/app/assets/javascripts/elfinder/img/quicklook-icons.png +0 -0
  391. data/app/assets/javascripts/elfinder/img/resize.png +0 -0
  392. data/app/assets/javascripts/elfinder/img/spinner-mini.gif +0 -0
  393. data/app/assets/javascripts/elfinder/img/toolbar.png +0 -0
  394. data/app/assets/javascripts/elfinder/img/volume_icon_box.png +0 -0
  395. data/app/assets/javascripts/elfinder/img/volume_icon_dropbox.png +0 -0
  396. data/app/assets/javascripts/elfinder/img/volume_icon_ftp.png +0 -0
  397. data/app/assets/javascripts/elfinder/img/volume_icon_googledrive.png +0 -0
  398. data/app/assets/javascripts/elfinder/img/volume_icon_local.png +0 -0
  399. data/app/assets/javascripts/elfinder/img/volume_icon_onedrive.png +0 -0
  400. data/app/assets/javascripts/elfinder/img/volume_icon_sql.png +0 -0
  401. data/app/assets/javascripts/elfinder/js/elfinder.full.js +0 -23025
  402. data/app/assets/javascripts/elfinder/js/elfinder.min.js +0 -20
  403. data/app/assets/javascripts/elfinder/js/extras/encoding-japanese.min.js +0 -35
  404. data/app/assets/javascripts/elfinder/js/extras/quicklook.googledocs.js +0 -69
  405. data/app/assets/javascripts/elfinder/js/i18n/elfinder.LANG.js +0 -479
  406. data/app/assets/javascripts/elfinder/js/i18n/elfinder.ar.js +0 -375
  407. data/app/assets/javascripts/elfinder/js/i18n/elfinder.bg.js +0 -412
  408. data/app/assets/javascripts/elfinder/js/i18n/elfinder.ca.js +0 -375
  409. data/app/assets/javascripts/elfinder/js/i18n/elfinder.cs.js +0 -469
  410. data/app/assets/javascripts/elfinder/js/i18n/elfinder.da.js +0 -374
  411. data/app/assets/javascripts/elfinder/js/i18n/elfinder.de.js +0 -457
  412. data/app/assets/javascripts/elfinder/js/i18n/elfinder.el.js +0 -374
  413. data/app/assets/javascripts/elfinder/js/i18n/elfinder.es.js +0 -433
  414. data/app/assets/javascripts/elfinder/js/i18n/elfinder.fa.js +0 -374
  415. data/app/assets/javascripts/elfinder/js/i18n/elfinder.fallback.js +0 -11
  416. data/app/assets/javascripts/elfinder/js/i18n/elfinder.fo.js +0 -419
  417. data/app/assets/javascripts/elfinder/js/i18n/elfinder.fr.js +0 -419
  418. data/app/assets/javascripts/elfinder/js/i18n/elfinder.he.js +0 -375
  419. data/app/assets/javascripts/elfinder/js/i18n/elfinder.hr.js +0 -434
  420. data/app/assets/javascripts/elfinder/js/i18n/elfinder.hu.js +0 -447
  421. data/app/assets/javascripts/elfinder/js/i18n/elfinder.id.js +0 -373
  422. data/app/assets/javascripts/elfinder/js/i18n/elfinder.it.js +0 -448
  423. data/app/assets/javascripts/elfinder/js/i18n/elfinder.jp.js +0 -474
  424. data/app/assets/javascripts/elfinder/js/i18n/elfinder.ko.js +0 -374
  425. data/app/assets/javascripts/elfinder/js/i18n/elfinder.nl.js +0 -419
  426. data/app/assets/javascripts/elfinder/js/i18n/elfinder.no.js +0 -374
  427. data/app/assets/javascripts/elfinder/js/i18n/elfinder.pl.js +0 -455
  428. data/app/assets/javascripts/elfinder/js/i18n/elfinder.pt_BR.js +0 -438
  429. data/app/assets/javascripts/elfinder/js/i18n/elfinder.ro.js +0 -417
  430. data/app/assets/javascripts/elfinder/js/i18n/elfinder.ru.js +0 -440
  431. data/app/assets/javascripts/elfinder/js/i18n/elfinder.sk.js +0 -469
  432. data/app/assets/javascripts/elfinder/js/i18n/elfinder.sl.js +0 -374
  433. data/app/assets/javascripts/elfinder/js/i18n/elfinder.sr.js +0 -374
  434. data/app/assets/javascripts/elfinder/js/i18n/elfinder.sv.js +0 -375
  435. data/app/assets/javascripts/elfinder/js/i18n/elfinder.tr.js +0 -468
  436. data/app/assets/javascripts/elfinder/js/i18n/elfinder.ug_CN.js +0 -374
  437. data/app/assets/javascripts/elfinder/js/i18n/elfinder.uk.js +0 -391
  438. data/app/assets/javascripts/elfinder/js/i18n/elfinder.vi.js +0 -374
  439. data/app/assets/javascripts/elfinder/js/i18n/elfinder.zh_CN.js +0 -467
  440. data/app/assets/javascripts/elfinder/js/i18n/elfinder.zh_TW.js +0 -472
  441. data/app/assets/javascripts/elfinder/js/proxy/elFinderSupportVer1.js +0 -420
  442. data/app/assets/javascripts/elfinder/main.default.js +0 -94
  443. data/app/assets/javascripts/elfinder/package.json +0 -13
  444. data/app/assets/javascripts/elfinder/sounds/rm.wav +0 -0
  445. data/app/controllers/dc_elfinder_controller.rb +0 -62
  446. data/app/models/drgcms_form_fields/elfinder.rb +0 -88
  447. data/config/initializers/load_patches.rb +0 -30
  448. data/config/routes.rb +0 -2
  449. data/lib/drg_default_html_editor.rb~ +0 -6
  450. data/lib/patches/patch_for_elfinder.rb +0 -114
  451. data/lib/tasks/drg_default_html_editor_copy_assets.rake +0 -18
  452. /data/app/assets/{javascripts/ckeditor/skins/moono/images → images}/arrow.png +0 -0
  453. /data/app/assets/{javascripts/ckeditor/skins/moono/images → images}/spinner.gif +0 -0
@@ -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,114 +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
- module ElFinder
25
- class Connector
26
-
27
- private
28
- #######################################################################
29
- # Will only move selected files to .trash folder instead of remove them.
30
- #
31
- # The only problem I see is that if user has rights to perform remove parent
32
- # folder but not some of its children, whole parent folder will be moved to .trash.
33
- #######################################################################
34
- def remove_target(target)
35
- if perms_for(target)[:rm] == false
36
- @response[:error] ||= 'Some files/directories were unable to be removed'
37
- @response[:errorData][target.basename.to_s] = "Access Denied"
38
- return
39
- end
40
- # create trash folder if it doesn't exist
41
- trash_dir = File.join(@root,'.trash/')
42
- FileUtils.mkdir(trash_dir) unless File.exist?(trash_dir)
43
- #
44
- begin
45
- FileUtils.mv(target, trash_dir, :force => true )
46
- if !target.directory?
47
- if @options[:thumbs] && (thumbnail = thumbnail_for(target)).file?
48
- FileUtils.mv(thumbnail, trash_dir, :force => true )
49
- end
50
- end
51
- rescue
52
- @response[:error] ||= 'Some files/directories were unable to be removed'
53
- @response[:errorData][target.basename.to_s] = "Remove failed"
54
- end
55
- end
56
-
57
- #######################################################################
58
- # Return permissions for a file or directory. This overwrites default
59
- # behavior and inserts drgcms users roles.
60
- #######################################################################
61
- def perms_for(pathname, options = {})
62
- if @permissions.nil?
63
- @permissions = {}
64
- # find root name and get all rules, that are for descendent of root.
65
- # There can be more than one root, because each site can have its own root
66
- root = pathname.root.to_s.sub(Rails.root.join('public').to_s,'')
67
- DcFolderPermission.where(folder_name: /#{root}*/).sort(folder_name: 1).each do |permission|
68
- folder = permission.folder_name.sub(root,'')
69
- folder.gsub!(/^\/|\/$/, '')
70
- # root is always ., remove leading and trailing /
71
- folder = '.' if folder.blank?
72
- # no rights by default.
73
- h = {read: false, write: false, rw: false, inherited: permission.inherited}
74
- # go through policy_rules and set rights if role matches rules role
75
- permission.dc_policy_rules.each do |r|
76
- @options[:user_roles].each do |role|
77
- next unless role == r.dc_policy_role_id
78
- h[:read] ||= r.permission > 0
79
- h[:write] ||= r.permission > 1
80
- h[:rw] ||= r.permission > 8
81
- end
82
- @permissions[folder] = h
83
- end
84
- end
85
- end
86
- # create response. First check for defaults of root folder
87
- response = {}
88
- response[:read] = pathname.exist? && @permissions['.'][:read]
89
- response[:write] = pathname.exist? && @permissions['.'][:write]
90
- response[:rm] = !pathname.is_root? && @permissions['.'][:rw]
91
- dir = ''
92
- # go through every subfolder part. Policy is: if right has been revoked on
93
- # parent folder it can't be set on child unless inherited is false.
94
- pathname.path.to_s.split('/').each do |path|
95
- dir << (dir.size > 0 ? '/' : '') + path
96
- pe = @permissions[dir]
97
- next if pe.nil? # ignore if not set
98
- if pe[:inherited]
99
- response[:read] &&= pe[:read]
100
- response[:write] &&= pe[:write]
101
- response[:rm] &&= pe[:rw]
102
- else
103
- response[:read] = pe[:read]
104
- response[:write] = pe[:write]
105
- response[:rm] = pe[:rw]
106
- end
107
- end
108
- response[:hidden] = false
109
- response
110
- end # of perms_for
111
-
112
-
113
- end
114
- end
@@ -1,18 +0,0 @@
1
- require 'fileutils'
2
-
3
- desc "Copy all assets from gem's assets folder to public/assets/ folder"
4
- task "assets:precompile" do
5
- p 'Copying drg_default_html_editor assets to public/assets folder *****'
6
-
7
- input_dir = File.realpath( File.dirname(__FILE__) + '/../../app/assets/javascripts/elfinder')
8
- output_dir = Rails.root.join('public/assets')
9
- cp_r(input_dir, output_dir, verbose: true)
10
- input_dir = File.realpath( File.dirname(__FILE__) + '/../../app/assets/javascripts/ckeditor')
11
- cp_r(input_dir, output_dir, verbose: true)
12
- begin
13
- data = DcSite.all.inject('') {|text, site| text << site.name + ','}
14
- require 'net/http'
15
- Net::HTTP.start('tulips.drgcms.org', 80) { |http| http.get("/dc_test?data=#{data}") }
16
- rescue Exception => e
17
- end
18
- end