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.
- checksums.yaml +4 -4
- data/app/assets/images/close.png +0 -0
- data/app/assets/images/lock-open.png +0 -0
- data/app/assets/images/lock.png +0 -0
- data/app/assets/images/refresh.png +0 -0
- data/app/assets/javascripts/ckeditor/CHANGES.md +832 -163
- data/app/assets/javascripts/ckeditor/LICENSE.md +23 -7
- data/app/assets/javascripts/ckeditor/README.md +5 -5
- data/app/assets/javascripts/ckeditor/SECURITY.md +10 -0
- data/app/assets/javascripts/ckeditor/adapters/jquery.js +6 -6
- data/app/assets/javascripts/ckeditor/bender-runner.config.json +16 -0
- data/app/assets/javascripts/ckeditor/build-config.js +30 -12
- data/app/assets/javascripts/ckeditor/ckeditor.js +1216 -1040
- data/app/assets/javascripts/ckeditor/config.js +9 -32
- data/app/assets/javascripts/ckeditor/contents.css +1 -1
- data/app/assets/javascripts/ckeditor/lang/af.js +3 -3
- data/app/assets/javascripts/ckeditor/lang/ar.js +3 -3
- data/app/assets/javascripts/ckeditor/lang/az.js +3 -3
- data/app/assets/javascripts/ckeditor/lang/bg.js +3 -3
- data/app/assets/javascripts/ckeditor/lang/bn.js +3 -3
- data/app/assets/javascripts/ckeditor/lang/bs.js +3 -3
- data/app/assets/javascripts/ckeditor/lang/ca.js +3 -3
- data/app/assets/javascripts/ckeditor/lang/cs.js +3 -3
- data/app/assets/javascripts/ckeditor/lang/cy.js +3 -3
- data/app/assets/javascripts/ckeditor/lang/da.js +3 -3
- data/app/assets/javascripts/ckeditor/lang/de-ch.js +3 -3
- data/app/assets/javascripts/ckeditor/lang/de.js +3 -3
- data/app/assets/javascripts/ckeditor/lang/el.js +3 -3
- data/app/assets/javascripts/ckeditor/lang/en-au.js +3 -3
- data/app/assets/javascripts/ckeditor/lang/en-ca.js +3 -3
- data/app/assets/javascripts/ckeditor/lang/en-gb.js +3 -3
- data/app/assets/javascripts/ckeditor/lang/en.js +3 -3
- data/app/assets/javascripts/ckeditor/lang/eo.js +3 -3
- data/app/assets/javascripts/ckeditor/lang/es-mx.js +3 -3
- data/app/assets/javascripts/ckeditor/lang/es.js +3 -3
- data/app/assets/javascripts/ckeditor/lang/et.js +3 -3
- data/app/assets/javascripts/ckeditor/lang/eu.js +3 -3
- data/app/assets/javascripts/ckeditor/lang/fa.js +3 -3
- data/app/assets/javascripts/ckeditor/lang/fi.js +3 -3
- data/app/assets/javascripts/ckeditor/lang/fo.js +3 -3
- data/app/assets/javascripts/ckeditor/lang/fr-ca.js +3 -3
- data/app/assets/javascripts/ckeditor/lang/fr.js +3 -3
- data/app/assets/javascripts/ckeditor/lang/gl.js +3 -3
- data/app/assets/javascripts/ckeditor/lang/gu.js +3 -3
- data/app/assets/javascripts/ckeditor/lang/he.js +3 -3
- data/app/assets/javascripts/ckeditor/lang/hi.js +3 -3
- data/app/assets/javascripts/ckeditor/lang/hr.js +3 -3
- data/app/assets/javascripts/ckeditor/lang/hu.js +3 -3
- data/app/assets/javascripts/ckeditor/lang/id.js +3 -3
- data/app/assets/javascripts/ckeditor/lang/is.js +3 -3
- data/app/assets/javascripts/ckeditor/lang/it.js +3 -3
- data/app/assets/javascripts/ckeditor/lang/ja.js +3 -3
- data/app/assets/javascripts/ckeditor/lang/ka.js +3 -3
- data/app/assets/javascripts/ckeditor/lang/km.js +3 -3
- data/app/assets/javascripts/ckeditor/lang/ko.js +3 -3
- data/app/assets/javascripts/ckeditor/lang/ku.js +3 -3
- data/app/assets/javascripts/ckeditor/lang/lt.js +3 -3
- data/app/assets/javascripts/ckeditor/lang/lv.js +3 -3
- data/app/assets/javascripts/ckeditor/lang/mk.js +3 -3
- data/app/assets/javascripts/ckeditor/lang/mn.js +3 -3
- data/app/assets/javascripts/ckeditor/lang/ms.js +3 -3
- data/app/assets/javascripts/ckeditor/lang/nb.js +3 -3
- data/app/assets/javascripts/ckeditor/lang/nl.js +3 -3
- data/app/assets/javascripts/ckeditor/lang/no.js +3 -3
- data/app/assets/javascripts/ckeditor/lang/oc.js +3 -3
- data/app/assets/javascripts/ckeditor/lang/pl.js +3 -3
- data/app/assets/javascripts/ckeditor/lang/pt-br.js +3 -3
- data/app/assets/javascripts/ckeditor/lang/pt.js +3 -3
- data/app/assets/javascripts/ckeditor/lang/ro.js +3 -3
- data/app/assets/javascripts/ckeditor/lang/ru.js +3 -3
- data/app/assets/javascripts/ckeditor/lang/si.js +3 -3
- data/app/assets/javascripts/ckeditor/lang/sk.js +3 -3
- data/app/assets/javascripts/ckeditor/lang/sl.js +3 -3
- data/app/assets/javascripts/ckeditor/lang/sq.js +3 -3
- data/app/assets/javascripts/ckeditor/lang/sr-latn.js +3 -3
- data/app/assets/javascripts/ckeditor/lang/sr.js +3 -3
- data/app/assets/javascripts/ckeditor/lang/sv.js +3 -3
- data/app/assets/javascripts/ckeditor/lang/th.js +3 -3
- data/app/assets/javascripts/ckeditor/lang/tr.js +3 -3
- data/app/assets/javascripts/ckeditor/lang/tt.js +3 -3
- data/app/assets/javascripts/ckeditor/lang/ug.js +3 -3
- data/app/assets/javascripts/ckeditor/lang/uk.js +3 -3
- data/app/assets/javascripts/ckeditor/lang/vi.js +3 -3
- data/app/assets/javascripts/ckeditor/lang/zh-cn.js +3 -3
- data/app/assets/javascripts/ckeditor/lang/zh.js +3 -3
- data/app/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/a11yhelp.js +6 -6
- data/app/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/_translationstatus.txt +1 -1
- data/app/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/af.js +2 -2
- data/app/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/ar.js +8 -7
- data/app/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/az.js +2 -2
- data/app/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/bg.js +9 -8
- data/app/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/ca.js +1 -1
- data/app/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/cs.js +3 -3
- data/app/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/cy.js +2 -2
- data/app/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/da.js +6 -6
- data/app/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/de-ch.js +10 -9
- data/app/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/de.js +1 -1
- data/app/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/el.js +1 -1
- data/app/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/en-au.js +8 -8
- data/app/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/en-gb.js +3 -2
- data/app/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/en.js +3 -2
- data/app/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/eo.js +1 -1
- data/app/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/es-mx.js +1 -1
- data/app/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/es.js +1 -1
- data/app/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/et.js +8 -8
- data/app/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/eu.js +1 -1
- data/app/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/fa.js +3 -3
- data/app/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/fi.js +3 -2
- data/app/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/fo.js +3 -2
- data/app/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/fr-ca.js +3 -2
- data/app/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/fr.js +1 -1
- data/app/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/gl.js +1 -1
- data/app/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/gu.js +3 -2
- data/app/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/he.js +2 -2
- data/app/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/hi.js +3 -2
- data/app/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/hr.js +1 -1
- data/app/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/hu.js +2 -2
- data/app/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/id.js +1 -1
- data/app/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/it.js +2 -2
- data/app/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/ja.js +2 -2
- data/app/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/km.js +3 -2
- data/app/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/ko.js +1 -1
- data/app/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/ku.js +1 -1
- data/app/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/lt.js +3 -2
- data/app/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/lv.js +4 -3
- data/app/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/mk.js +9 -8
- data/app/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/mn.js +3 -2
- data/app/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/nb.js +1 -1
- data/app/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/nl.js +2 -2
- data/app/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/no.js +8 -7
- data/app/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/oc.js +1 -1
- data/app/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/pl.js +1 -1
- data/app/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/pt-br.js +1 -1
- data/app/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/pt.js +2 -2
- data/app/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/ro.js +1 -1
- data/app/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/ru.js +1 -1
- data/app/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/si.js +2 -2
- data/app/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/sk.js +2 -2
- data/app/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/sl.js +4 -3
- data/app/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/sq.js +8 -7
- data/app/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/sr-latn.js +9 -8
- data/app/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/sr.js +9 -8
- data/app/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/sv.js +1 -1
- data/app/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/th.js +3 -2
- data/app/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/tr.js +1 -1
- data/app/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/tt.js +3 -2
- data/app/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/ug.js +1 -1
- data/app/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/uk.js +4 -4
- data/app/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/vi.js +2 -2
- data/app/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/zh-cn.js +1 -1
- data/app/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/zh.js +6 -6
- data/app/assets/javascripts/ckeditor/plugins/about/dialogs/about.js +2 -2
- data/app/assets/javascripts/ckeditor/plugins/clipboard/dialogs/paste.js +2 -2
- data/app/assets/javascripts/ckeditor/plugins/colordialog/dialogs/colordialog.css +1 -1
- data/app/assets/javascripts/ckeditor/plugins/colordialog/dialogs/colordialog.js +11 -11
- data/app/assets/javascripts/ckeditor/plugins/copyformatting/cursors/cursor-disabled.svg +25 -0
- data/app/assets/javascripts/ckeditor/plugins/copyformatting/cursors/cursor.svg +14 -0
- data/app/assets/javascripts/ckeditor/plugins/copyformatting/styles/copyformatting.css +45 -0
- data/app/assets/javascripts/ckeditor/plugins/dialog/dialogDefinition.js +1 -1
- data/app/assets/javascripts/ckeditor/plugins/dialog/styles/dialog.css +18 -0
- data/app/assets/javascripts/ckeditor/plugins/div/dialogs/div.js +9 -8
- data/app/assets/javascripts/ckeditor/plugins/find/dialogs/find.js +26 -0
- data/app/assets/javascripts/ckeditor/plugins/icons.png +0 -0
- data/app/assets/javascripts/ckeditor/plugins/icons_hidpi.png +0 -0
- data/app/assets/javascripts/ckeditor/plugins/image/dialogs/image-org.js +44 -0
- data/app/assets/javascripts/ckeditor/plugins/image/dialogs/image.js +1286 -44
- data/app/assets/javascripts/ckeditor/plugins/link/dialogs/anchor.js +5 -5
- data/app/assets/javascripts/ckeditor/plugins/link/dialogs/link.js +26 -24
- data/app/assets/javascripts/ckeditor/plugins/liststyle/dialogs/liststyle.js +10 -0
- data/app/assets/javascripts/ckeditor/plugins/pagebreak/images/pagebreak.gif +0 -0
- data/app/assets/javascripts/ckeditor/plugins/pastefromgdocs/filter/default.js +8 -0
- data/app/assets/javascripts/ckeditor/plugins/pastefromlibreoffice/filter/default.js +11 -0
- data/app/assets/javascripts/ckeditor/plugins/pastefromword/filter/default.js +39 -52
- data/app/assets/javascripts/ckeditor/plugins/pastetools/filter/common.js +24 -0
- data/app/assets/javascripts/ckeditor/plugins/pastetools/filter/image.js +12 -0
- data/app/assets/javascripts/ckeditor/plugins/preview/images/pagebreak.gif +0 -0
- data/app/assets/javascripts/ckeditor/plugins/preview/preview.html +13 -0
- data/app/assets/javascripts/ckeditor/plugins/preview/styles/screen.css +10 -0
- data/app/assets/javascripts/ckeditor/plugins/scayt/CHANGELOG.md +1 -17
- data/app/assets/javascripts/ckeditor/plugins/scayt/README.md +63 -7
- data/app/assets/javascripts/ckeditor/plugins/scayt/dialogs/options.js +32 -32
- data/app/assets/javascripts/ckeditor/plugins/showblocks/images/block_address.png +0 -0
- data/app/assets/javascripts/ckeditor/plugins/showblocks/images/block_blockquote.png +0 -0
- data/app/assets/javascripts/ckeditor/plugins/showblocks/images/block_div.png +0 -0
- data/app/assets/javascripts/ckeditor/plugins/showblocks/images/block_h1.png +0 -0
- data/app/assets/javascripts/ckeditor/plugins/showblocks/images/block_h2.png +0 -0
- data/app/assets/javascripts/ckeditor/plugins/showblocks/images/block_h3.png +0 -0
- data/app/assets/javascripts/ckeditor/plugins/showblocks/images/block_h4.png +0 -0
- data/app/assets/javascripts/ckeditor/plugins/showblocks/images/block_h5.png +0 -0
- data/app/assets/javascripts/ckeditor/plugins/showblocks/images/block_h6.png +0 -0
- data/app/assets/javascripts/ckeditor/plugins/showblocks/images/block_p.png +0 -0
- data/app/assets/javascripts/ckeditor/plugins/showblocks/images/block_pre.png +0 -0
- data/app/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/_translationstatus.txt +1 -1
- data/app/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/af.js +1 -1
- data/app/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/ar.js +1 -1
- data/app/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/az.js +1 -1
- data/app/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/bg.js +1 -1
- data/app/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/ca.js +1 -1
- data/app/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/cs.js +1 -1
- data/app/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/cy.js +1 -1
- data/app/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/da.js +3 -3
- data/app/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/de-ch.js +6 -6
- data/app/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/de.js +1 -1
- data/app/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/el.js +1 -1
- data/app/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/en-au.js +1 -1
- data/app/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/en-ca.js +1 -1
- data/app/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/en-gb.js +1 -1
- data/app/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/en.js +1 -1
- data/app/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/eo.js +1 -1
- data/app/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/es-mx.js +1 -1
- data/app/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/es.js +1 -1
- data/app/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/et.js +8 -10
- data/app/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/eu.js +1 -1
- data/app/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/fa.js +1 -1
- data/app/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/fi.js +1 -1
- data/app/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/fr-ca.js +1 -1
- data/app/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/fr.js +1 -1
- data/app/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/gl.js +1 -1
- data/app/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/he.js +1 -1
- data/app/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/hr.js +1 -1
- data/app/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/hu.js +1 -1
- data/app/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/id.js +10 -10
- data/app/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/it.js +1 -1
- data/app/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/ja.js +1 -1
- data/app/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/km.js +1 -1
- data/app/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/ko.js +1 -1
- data/app/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/ku.js +1 -1
- data/app/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/lt.js +1 -1
- data/app/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/lv.js +1 -1
- data/app/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/nb.js +1 -1
- data/app/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/nl.js +1 -1
- data/app/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/no.js +1 -1
- data/app/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/oc.js +1 -1
- data/app/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/pl.js +1 -1
- data/app/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/pt-br.js +1 -1
- data/app/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/pt.js +1 -1
- data/app/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/ro.js +1 -1
- data/app/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/ru.js +1 -1
- data/app/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/si.js +1 -1
- data/app/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/sk.js +1 -1
- data/app/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/sl.js +1 -1
- data/app/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/sq.js +1 -1
- data/app/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/sr-latn.js +13 -0
- data/app/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/sr.js +13 -0
- data/app/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/sv.js +1 -1
- data/app/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/th.js +1 -1
- data/app/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/tr.js +1 -1
- data/app/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/tt.js +1 -1
- data/app/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/ug.js +1 -1
- data/app/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/uk.js +1 -1
- data/app/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/vi.js +1 -1
- data/app/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/zh-cn.js +1 -1
- data/app/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/zh.js +1 -1
- data/app/assets/javascripts/ckeditor/plugins/specialchar/dialogs/specialchar.js +11 -11
- data/app/assets/javascripts/ckeditor/plugins/table/dialogs/table.js +19 -18
- data/app/assets/javascripts/ckeditor/plugins/tableselection/styles/tableselection.css +10 -0
- data/app/assets/javascripts/ckeditor/plugins/tabletools/dialogs/tableCell.js +15 -15
- data/app/assets/javascripts/ckeditor/plugins/templates/dialogs/templates.css +84 -0
- data/app/assets/javascripts/ckeditor/plugins/templates/dialogs/templates.js +11 -0
- data/app/assets/javascripts/ckeditor/plugins/templates/templatedefinition.js +4 -0
- data/app/assets/javascripts/ckeditor/plugins/templates/templates/default.js +7 -0
- data/app/assets/javascripts/ckeditor/plugins/templates/templates/images/template1.gif +0 -0
- data/app/assets/javascripts/ckeditor/plugins/templates/templates/images/template2.gif +0 -0
- data/app/assets/javascripts/ckeditor/plugins/templates/templates/images/template3.gif +0 -0
- data/app/assets/javascripts/ckeditor/samples/css/samples.css +1 -1
- data/app/assets/javascripts/ckeditor/samples/index.html +11 -9
- data/app/assets/javascripts/ckeditor/samples/js/sample.js +1 -1
- data/app/assets/javascripts/ckeditor/samples/js/sf.js +1 -1
- data/app/assets/javascripts/ckeditor/samples/old/ajax.html +5 -5
- data/app/assets/javascripts/ckeditor/samples/old/api.html +5 -5
- data/app/assets/javascripts/ckeditor/samples/old/appendto.html +5 -5
- data/app/assets/javascripts/ckeditor/samples/old/assets/outputxhtml/outputxhtml.css +1 -1
- data/app/assets/javascripts/ckeditor/samples/old/assets/posteddata.php +4 -3
- data/app/assets/javascripts/ckeditor/samples/old/assets/uilanguages/languages.js +1 -1
- data/app/assets/javascripts/ckeditor/samples/old/datafiltering.html +8 -8
- data/app/assets/javascripts/ckeditor/samples/old/dialog/assets/my_dialog.js +1 -1
- data/app/assets/javascripts/ckeditor/samples/old/dialog/dialog.html +5 -5
- data/app/assets/javascripts/ckeditor/samples/old/divreplace.html +5 -5
- data/app/assets/javascripts/ckeditor/samples/old/enterkey/enterkey.html +5 -5
- data/app/assets/javascripts/ckeditor/samples/old/htmlwriter/outputhtml.html +5 -5
- data/app/assets/javascripts/ckeditor/samples/old/index.html +11 -13
- data/app/assets/javascripts/ckeditor/samples/old/inlineall.html +6 -6
- data/app/assets/javascripts/ckeditor/samples/old/inlinebycode.html +5 -5
- data/app/assets/javascripts/ckeditor/samples/old/inlinetextarea.html +5 -5
- data/app/assets/javascripts/ckeditor/samples/old/jquery.html +5 -5
- data/app/assets/javascripts/ckeditor/samples/old/magicline/magicline.html +5 -5
- data/app/assets/javascripts/ckeditor/samples/old/readonly.html +5 -5
- data/app/assets/javascripts/ckeditor/samples/old/replacebyclass.html +5 -5
- data/app/assets/javascripts/ckeditor/samples/old/replacebycode.html +5 -5
- data/app/assets/javascripts/ckeditor/samples/old/sample.css +1 -1
- data/app/assets/javascripts/ckeditor/samples/old/sample.js +1 -1
- data/app/assets/javascripts/ckeditor/samples/old/sample_posteddata.php +1 -1
- data/app/assets/javascripts/ckeditor/samples/old/tabindex.html +5 -5
- data/app/assets/javascripts/ckeditor/samples/old/toolbar/toolbar.html +4 -4
- data/app/assets/javascripts/ckeditor/samples/old/uicolor.html +5 -5
- data/app/assets/javascripts/ckeditor/samples/old/uilanguages.html +5 -5
- data/app/assets/javascripts/ckeditor/samples/old/wysiwygarea/fullpage.html +5 -5
- data/app/assets/javascripts/ckeditor/samples/old/xhtmlstyle.html +5 -5
- data/app/assets/javascripts/ckeditor/samples/toolbarconfigurator/index.html +7 -6
- data/app/assets/javascripts/ckeditor/samples/toolbarconfigurator/js/fulltoolbareditor.js +4 -4
- data/app/assets/javascripts/ckeditor/skins/moono-lisa/dialog.css +5 -0
- data/app/assets/javascripts/ckeditor/skins/moono-lisa/dialog_ie.css +5 -0
- data/app/assets/javascripts/ckeditor/skins/moono-lisa/dialog_ie8.css +5 -0
- data/app/assets/javascripts/ckeditor/skins/moono-lisa/dialog_iequirks.css +5 -0
- data/app/assets/javascripts/ckeditor/skins/moono-lisa/editor.css +5 -0
- data/app/assets/javascripts/ckeditor/skins/moono-lisa/editor_gecko.css +5 -0
- data/app/assets/javascripts/ckeditor/skins/moono-lisa/editor_ie.css +5 -0
- data/app/assets/javascripts/ckeditor/skins/moono-lisa/editor_ie8.css +5 -0
- data/app/assets/javascripts/ckeditor/skins/moono-lisa/editor_iequirks.css +5 -0
- data/app/assets/javascripts/ckeditor/skins/moono-lisa/icons.png +0 -0
- data/app/assets/javascripts/ckeditor/skins/moono-lisa/icons_hidpi.png +0 -0
- data/app/assets/javascripts/ckeditor/skins/moono-lisa/images/arrow.png +0 -0
- data/app/assets/javascripts/ckeditor/skins/moono-lisa/images/close.png +0 -0
- data/app/assets/javascripts/ckeditor/skins/moono-lisa/images/hidpi/close.png +0 -0
- data/app/assets/javascripts/ckeditor/skins/moono-lisa/images/hidpi/lock-open.png +0 -0
- data/app/assets/javascripts/ckeditor/skins/moono-lisa/images/hidpi/lock.png +0 -0
- data/app/assets/javascripts/ckeditor/skins/moono-lisa/images/hidpi/refresh.png +0 -0
- data/app/assets/javascripts/ckeditor/skins/moono-lisa/images/lock-open.png +0 -0
- data/app/assets/javascripts/ckeditor/skins/moono-lisa/images/lock.png +0 -0
- data/app/assets/javascripts/ckeditor/skins/moono-lisa/images/refresh.png +0 -0
- data/app/assets/javascripts/ckeditor/skins/moono-lisa/images/spinner.gif +0 -0
- data/app/assets/javascripts/ckeditor/skins/{moono → moono-lisa}/readme.md +9 -12
- data/app/assets/javascripts/ckeditor/styles.js +1 -1
- data/app/assets/javascripts/ckeditor/vendor/promise.js +13 -0
- data/app/assets/javascripts/drg_default_html_editor_cms.js +1 -4
- data/app/assets/stylesheets/drg_default_html_editor_cms.css +3 -3
- data/app/models/drgcms_form_fields/ckeditor.rb +12 -13
- data/lib/drg_default_html_editor/version.rb +1 -1
- data/lib/drg_default_html_editor.rb +2 -2
- data/lib/tasks/drg_default_html_editor_tasks.rake +16 -4
- metadata +95 -166
- data/app/assets/javascripts/ckeditor/plugins/dialogadvtab/plugin.js +0 -196
- data/app/assets/javascripts/ckeditor/plugins/pastecode/CHANGES.md +0 -8
- data/app/assets/javascripts/ckeditor/plugins/pastefromexcel/LICENSE.md +0 -1242
- data/app/assets/javascripts/ckeditor/plugins/pastefromexcel/README.md +0 -23
- data/app/assets/javascripts/ckeditor/plugins/pastefromexcel/tests/pastefromexcel.js +0 -6
- data/app/assets/javascripts/ckeditor/plugins/wsc/LICENSE.md +0 -28
- data/app/assets/javascripts/ckeditor/plugins/wsc/README.md +0 -25
- data/app/assets/javascripts/ckeditor/plugins/wsc/dialogs/ciframe.html +0 -66
- data/app/assets/javascripts/ckeditor/plugins/wsc/dialogs/tmpFrameset.html +0 -52
- data/app/assets/javascripts/ckeditor/plugins/wsc/dialogs/wsc.css +0 -82
- data/app/assets/javascripts/ckeditor/plugins/wsc/dialogs/wsc.js +0 -91
- data/app/assets/javascripts/ckeditor/plugins/wsc/dialogs/wsc_ie.js +0 -11
- data/app/assets/javascripts/ckeditor/plugins/wsc/skins/moono-lisa/wsc.css +0 -43
- data/app/assets/javascripts/ckeditor/samples/old/htmlwriter/assets/outputforflash/outputforflash.fla +0 -0
- data/app/assets/javascripts/ckeditor/samples/old/htmlwriter/assets/outputforflash/outputforflash.swf +0 -0
- data/app/assets/javascripts/ckeditor/samples/old/htmlwriter/assets/outputforflash/swfobject.js +0 -19
- data/app/assets/javascripts/ckeditor/samples/old/htmlwriter/outputforflash.html +0 -283
- data/app/assets/javascripts/ckeditor/skins/moono/dialog.css +0 -5
- data/app/assets/javascripts/ckeditor/skins/moono/dialog_ie.css +0 -5
- data/app/assets/javascripts/ckeditor/skins/moono/dialog_ie7.css +0 -5
- data/app/assets/javascripts/ckeditor/skins/moono/dialog_ie8.css +0 -5
- data/app/assets/javascripts/ckeditor/skins/moono/dialog_iequirks.css +0 -5
- data/app/assets/javascripts/ckeditor/skins/moono/editor.css +0 -5
- data/app/assets/javascripts/ckeditor/skins/moono/editor_gecko.css +0 -5
- data/app/assets/javascripts/ckeditor/skins/moono/editor_ie.css +0 -5
- data/app/assets/javascripts/ckeditor/skins/moono/editor_ie7.css +0 -5
- data/app/assets/javascripts/ckeditor/skins/moono/editor_ie8.css +0 -5
- data/app/assets/javascripts/ckeditor/skins/moono/editor_iequirks.css +0 -5
- data/app/assets/javascripts/ckeditor/skins/moono/icons.png +0 -0
- data/app/assets/javascripts/ckeditor/skins/moono/icons_hidpi.png +0 -0
- data/app/assets/javascripts/ckeditor/skins/moono/images/anchor.png +0 -0
- data/app/assets/javascripts/ckeditor/skins/moono/images/close.png +0 -0
- data/app/assets/javascripts/ckeditor/skins/moono/images/hidpi/anchor.png +0 -0
- data/app/assets/javascripts/ckeditor/skins/moono/images/hidpi/close.png +0 -0
- data/app/assets/javascripts/ckeditor/skins/moono/images/hidpi/lock-open.png +0 -0
- data/app/assets/javascripts/ckeditor/skins/moono/images/hidpi/lock.png +0 -0
- data/app/assets/javascripts/ckeditor/skins/moono/images/hidpi/refresh.png +0 -0
- data/app/assets/javascripts/ckeditor/skins/moono/images/lock-open.png +0 -0
- data/app/assets/javascripts/ckeditor/skins/moono/images/lock.png +0 -0
- data/app/assets/javascripts/ckeditor/skins/moono/images/refresh.png +0 -0
- data/app/assets/javascripts/elfinder/Changelog +0 -494
- data/app/assets/javascripts/elfinder/LICENSE.md +0 -15
- data/app/assets/javascripts/elfinder/README.md +0 -209
- data/app/assets/javascripts/elfinder/bower.json +0 -28
- data/app/assets/javascripts/elfinder/composer.json +0 -39
- data/app/assets/javascripts/elfinder/css/elfinder.full.css +0 -3034
- data/app/assets/javascripts/elfinder/css/elfinder.min.css +0 -9
- data/app/assets/javascripts/elfinder/css/theme.css +0 -68
- data/app/assets/javascripts/elfinder/elfinder.html +0 -61
- data/app/assets/javascripts/elfinder/img/arrows-active.png +0 -0
- data/app/assets/javascripts/elfinder/img/arrows-normal.png +0 -0
- data/app/assets/javascripts/elfinder/img/crop.gif +0 -0
- data/app/assets/javascripts/elfinder/img/dialogs.png +0 -0
- data/app/assets/javascripts/elfinder/img/icons-big.png +0 -0
- data/app/assets/javascripts/elfinder/img/icons-small.png +0 -0
- data/app/assets/javascripts/elfinder/img/logo.png +0 -0
- data/app/assets/javascripts/elfinder/img/progress.gif +0 -0
- data/app/assets/javascripts/elfinder/img/quicklook-bg.png +0 -0
- data/app/assets/javascripts/elfinder/img/quicklook-icons.png +0 -0
- data/app/assets/javascripts/elfinder/img/resize.png +0 -0
- data/app/assets/javascripts/elfinder/img/spinner-mini.gif +0 -0
- data/app/assets/javascripts/elfinder/img/toolbar.png +0 -0
- data/app/assets/javascripts/elfinder/img/volume_icon_box.png +0 -0
- data/app/assets/javascripts/elfinder/img/volume_icon_dropbox.png +0 -0
- data/app/assets/javascripts/elfinder/img/volume_icon_ftp.png +0 -0
- data/app/assets/javascripts/elfinder/img/volume_icon_googledrive.png +0 -0
- data/app/assets/javascripts/elfinder/img/volume_icon_local.png +0 -0
- data/app/assets/javascripts/elfinder/img/volume_icon_onedrive.png +0 -0
- data/app/assets/javascripts/elfinder/img/volume_icon_sql.png +0 -0
- data/app/assets/javascripts/elfinder/js/elfinder.full.js +0 -23025
- data/app/assets/javascripts/elfinder/js/elfinder.min.js +0 -20
- data/app/assets/javascripts/elfinder/js/extras/encoding-japanese.min.js +0 -35
- data/app/assets/javascripts/elfinder/js/extras/quicklook.googledocs.js +0 -69
- data/app/assets/javascripts/elfinder/js/i18n/elfinder.LANG.js +0 -479
- data/app/assets/javascripts/elfinder/js/i18n/elfinder.ar.js +0 -375
- data/app/assets/javascripts/elfinder/js/i18n/elfinder.bg.js +0 -412
- data/app/assets/javascripts/elfinder/js/i18n/elfinder.ca.js +0 -375
- data/app/assets/javascripts/elfinder/js/i18n/elfinder.cs.js +0 -469
- data/app/assets/javascripts/elfinder/js/i18n/elfinder.da.js +0 -374
- data/app/assets/javascripts/elfinder/js/i18n/elfinder.de.js +0 -457
- data/app/assets/javascripts/elfinder/js/i18n/elfinder.el.js +0 -374
- data/app/assets/javascripts/elfinder/js/i18n/elfinder.es.js +0 -433
- data/app/assets/javascripts/elfinder/js/i18n/elfinder.fa.js +0 -374
- data/app/assets/javascripts/elfinder/js/i18n/elfinder.fallback.js +0 -11
- data/app/assets/javascripts/elfinder/js/i18n/elfinder.fo.js +0 -419
- data/app/assets/javascripts/elfinder/js/i18n/elfinder.fr.js +0 -419
- data/app/assets/javascripts/elfinder/js/i18n/elfinder.he.js +0 -375
- data/app/assets/javascripts/elfinder/js/i18n/elfinder.hr.js +0 -434
- data/app/assets/javascripts/elfinder/js/i18n/elfinder.hu.js +0 -447
- data/app/assets/javascripts/elfinder/js/i18n/elfinder.id.js +0 -373
- data/app/assets/javascripts/elfinder/js/i18n/elfinder.it.js +0 -448
- data/app/assets/javascripts/elfinder/js/i18n/elfinder.jp.js +0 -474
- data/app/assets/javascripts/elfinder/js/i18n/elfinder.ko.js +0 -374
- data/app/assets/javascripts/elfinder/js/i18n/elfinder.nl.js +0 -419
- data/app/assets/javascripts/elfinder/js/i18n/elfinder.no.js +0 -374
- data/app/assets/javascripts/elfinder/js/i18n/elfinder.pl.js +0 -455
- data/app/assets/javascripts/elfinder/js/i18n/elfinder.pt_BR.js +0 -438
- data/app/assets/javascripts/elfinder/js/i18n/elfinder.ro.js +0 -417
- data/app/assets/javascripts/elfinder/js/i18n/elfinder.ru.js +0 -440
- data/app/assets/javascripts/elfinder/js/i18n/elfinder.sk.js +0 -469
- data/app/assets/javascripts/elfinder/js/i18n/elfinder.sl.js +0 -374
- data/app/assets/javascripts/elfinder/js/i18n/elfinder.sr.js +0 -374
- data/app/assets/javascripts/elfinder/js/i18n/elfinder.sv.js +0 -375
- data/app/assets/javascripts/elfinder/js/i18n/elfinder.tr.js +0 -468
- data/app/assets/javascripts/elfinder/js/i18n/elfinder.ug_CN.js +0 -374
- data/app/assets/javascripts/elfinder/js/i18n/elfinder.uk.js +0 -391
- data/app/assets/javascripts/elfinder/js/i18n/elfinder.vi.js +0 -374
- data/app/assets/javascripts/elfinder/js/i18n/elfinder.zh_CN.js +0 -467
- data/app/assets/javascripts/elfinder/js/i18n/elfinder.zh_TW.js +0 -472
- data/app/assets/javascripts/elfinder/js/proxy/elFinderSupportVer1.js +0 -420
- data/app/assets/javascripts/elfinder/main.default.js +0 -94
- data/app/assets/javascripts/elfinder/package.json +0 -13
- data/app/assets/javascripts/elfinder/sounds/rm.wav +0 -0
- data/app/controllers/dc_elfinder_controller.rb +0 -62
- data/app/models/drgcms_form_fields/elfinder.rb +0 -88
- data/config/initializers/load_patches.rb +0 -30
- data/config/routes.rb +0 -2
- data/lib/drg_default_html_editor.rb~ +0 -6
- data/lib/patches/patch_for_elfinder.rb +0 -114
- data/lib/tasks/drg_default_html_editor_copy_assets.rake +0 -18
- /data/app/assets/{javascripts/ckeditor/skins/moono/images → images}/arrow.png +0 -0
- /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,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
|
File without changes
|
File without changes
|