drg_default_html_editor 0.4.15
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +7 -0
- data/MIT-LICENSE +20 -0
- data/README.rdoc +3 -0
- data/Rakefile +40 -0
- data/app/assets/images/elfinder/arrows-active.png +0 -0
- data/app/assets/images/elfinder/arrows-normal.png +0 -0
- data/app/assets/images/elfinder/crop.gif +0 -0
- data/app/assets/images/elfinder/dialogs.png +0 -0
- data/app/assets/images/elfinder/icons-big.png +0 -0
- data/app/assets/images/elfinder/icons-small.png +0 -0
- data/app/assets/images/elfinder/progress.gif +0 -0
- data/app/assets/images/elfinder/quicklook-bg.png +0 -0
- data/app/assets/images/elfinder/quicklook-icons.png +0 -0
- data/app/assets/images/elfinder/resize.png +0 -0
- data/app/assets/images/elfinder/spinner-mini.gif +0 -0
- data/app/assets/images/elfinder/toolbar.png +0 -0
- data/app/assets/javascripts/drg_default_html_editor/ckeditor/CHANGES.md +612 -0
- data/app/assets/javascripts/drg_default_html_editor/ckeditor/LICENSE.md +1264 -0
- data/app/assets/javascripts/drg_default_html_editor/ckeditor/README.md +39 -0
- data/app/assets/javascripts/drg_default_html_editor/ckeditor/adapters/jquery.js +10 -0
- data/app/assets/javascripts/drg_default_html_editor/ckeditor/build-config.js +173 -0
- data/app/assets/javascripts/drg_default_html_editor/ckeditor/ckeditor.js +993 -0
- data/app/assets/javascripts/drg_default_html_editor/ckeditor/config.js +10 -0
- data/app/assets/javascripts/drg_default_html_editor/ckeditor/contents.css +134 -0
- data/app/assets/javascripts/drg_default_html_editor/ckeditor/lang/af.js +5 -0
- data/app/assets/javascripts/drg_default_html_editor/ckeditor/lang/ar.js +5 -0
- data/app/assets/javascripts/drg_default_html_editor/ckeditor/lang/bg.js +5 -0
- data/app/assets/javascripts/drg_default_html_editor/ckeditor/lang/bn.js +5 -0
- data/app/assets/javascripts/drg_default_html_editor/ckeditor/lang/bs.js +5 -0
- data/app/assets/javascripts/drg_default_html_editor/ckeditor/lang/ca.js +5 -0
- data/app/assets/javascripts/drg_default_html_editor/ckeditor/lang/cs.js +5 -0
- data/app/assets/javascripts/drg_default_html_editor/ckeditor/lang/cy.js +5 -0
- data/app/assets/javascripts/drg_default_html_editor/ckeditor/lang/da.js +5 -0
- data/app/assets/javascripts/drg_default_html_editor/ckeditor/lang/de.js +5 -0
- data/app/assets/javascripts/drg_default_html_editor/ckeditor/lang/el.js +5 -0
- data/app/assets/javascripts/drg_default_html_editor/ckeditor/lang/en-au.js +5 -0
- data/app/assets/javascripts/drg_default_html_editor/ckeditor/lang/en-ca.js +5 -0
- data/app/assets/javascripts/drg_default_html_editor/ckeditor/lang/en-gb.js +5 -0
- data/app/assets/javascripts/drg_default_html_editor/ckeditor/lang/en.js +5 -0
- data/app/assets/javascripts/drg_default_html_editor/ckeditor/lang/eo.js +5 -0
- data/app/assets/javascripts/drg_default_html_editor/ckeditor/lang/es.js +5 -0
- data/app/assets/javascripts/drg_default_html_editor/ckeditor/lang/et.js +5 -0
- data/app/assets/javascripts/drg_default_html_editor/ckeditor/lang/eu.js +5 -0
- data/app/assets/javascripts/drg_default_html_editor/ckeditor/lang/fa.js +5 -0
- data/app/assets/javascripts/drg_default_html_editor/ckeditor/lang/fi.js +5 -0
- data/app/assets/javascripts/drg_default_html_editor/ckeditor/lang/fo.js +5 -0
- data/app/assets/javascripts/drg_default_html_editor/ckeditor/lang/fr-ca.js +5 -0
- data/app/assets/javascripts/drg_default_html_editor/ckeditor/lang/fr.js +5 -0
- data/app/assets/javascripts/drg_default_html_editor/ckeditor/lang/gl.js +5 -0
- data/app/assets/javascripts/drg_default_html_editor/ckeditor/lang/gu.js +5 -0
- data/app/assets/javascripts/drg_default_html_editor/ckeditor/lang/he.js +5 -0
- data/app/assets/javascripts/drg_default_html_editor/ckeditor/lang/hi.js +5 -0
- data/app/assets/javascripts/drg_default_html_editor/ckeditor/lang/hr.js +5 -0
- data/app/assets/javascripts/drg_default_html_editor/ckeditor/lang/hu.js +5 -0
- data/app/assets/javascripts/drg_default_html_editor/ckeditor/lang/id.js +5 -0
- data/app/assets/javascripts/drg_default_html_editor/ckeditor/lang/is.js +5 -0
- data/app/assets/javascripts/drg_default_html_editor/ckeditor/lang/it.js +5 -0
- data/app/assets/javascripts/drg_default_html_editor/ckeditor/lang/ja.js +5 -0
- data/app/assets/javascripts/drg_default_html_editor/ckeditor/lang/ka.js +5 -0
- data/app/assets/javascripts/drg_default_html_editor/ckeditor/lang/km.js +5 -0
- data/app/assets/javascripts/drg_default_html_editor/ckeditor/lang/ko.js +5 -0
- data/app/assets/javascripts/drg_default_html_editor/ckeditor/lang/ku.js +5 -0
- data/app/assets/javascripts/drg_default_html_editor/ckeditor/lang/lt.js +5 -0
- data/app/assets/javascripts/drg_default_html_editor/ckeditor/lang/lv.js +5 -0
- data/app/assets/javascripts/drg_default_html_editor/ckeditor/lang/mk.js +5 -0
- data/app/assets/javascripts/drg_default_html_editor/ckeditor/lang/mn.js +5 -0
- data/app/assets/javascripts/drg_default_html_editor/ckeditor/lang/ms.js +5 -0
- data/app/assets/javascripts/drg_default_html_editor/ckeditor/lang/nb.js +5 -0
- data/app/assets/javascripts/drg_default_html_editor/ckeditor/lang/nl.js +5 -0
- data/app/assets/javascripts/drg_default_html_editor/ckeditor/lang/no.js +5 -0
- data/app/assets/javascripts/drg_default_html_editor/ckeditor/lang/pl.js +5 -0
- data/app/assets/javascripts/drg_default_html_editor/ckeditor/lang/pt-br.js +5 -0
- data/app/assets/javascripts/drg_default_html_editor/ckeditor/lang/pt.js +5 -0
- data/app/assets/javascripts/drg_default_html_editor/ckeditor/lang/ro.js +5 -0
- data/app/assets/javascripts/drg_default_html_editor/ckeditor/lang/ru.js +5 -0
- data/app/assets/javascripts/drg_default_html_editor/ckeditor/lang/si.js +5 -0
- data/app/assets/javascripts/drg_default_html_editor/ckeditor/lang/sk.js +5 -0
- data/app/assets/javascripts/drg_default_html_editor/ckeditor/lang/sl.js +5 -0
- data/app/assets/javascripts/drg_default_html_editor/ckeditor/lang/sq.js +5 -0
- data/app/assets/javascripts/drg_default_html_editor/ckeditor/lang/sr-latn.js +5 -0
- data/app/assets/javascripts/drg_default_html_editor/ckeditor/lang/sr.js +5 -0
- data/app/assets/javascripts/drg_default_html_editor/ckeditor/lang/sv.js +5 -0
- data/app/assets/javascripts/drg_default_html_editor/ckeditor/lang/th.js +5 -0
- data/app/assets/javascripts/drg_default_html_editor/ckeditor/lang/tr.js +5 -0
- data/app/assets/javascripts/drg_default_html_editor/ckeditor/lang/tt.js +5 -0
- data/app/assets/javascripts/drg_default_html_editor/ckeditor/lang/ug.js +5 -0
- data/app/assets/javascripts/drg_default_html_editor/ckeditor/lang/uk.js +5 -0
- data/app/assets/javascripts/drg_default_html_editor/ckeditor/lang/vi.js +5 -0
- data/app/assets/javascripts/drg_default_html_editor/ckeditor/lang/zh-cn.js +5 -0
- data/app/assets/javascripts/drg_default_html_editor/ckeditor/lang/zh.js +5 -0
- data/app/assets/javascripts/drg_default_html_editor/ckeditor/plugins/a11yhelp/dialogs/a11yhelp.js +10 -0
- data/app/assets/javascripts/drg_default_html_editor/ckeditor/plugins/a11yhelp/dialogs/lang/_translationstatus.txt +25 -0
- data/app/assets/javascripts/drg_default_html_editor/ckeditor/plugins/a11yhelp/dialogs/lang/ar.js +11 -0
- data/app/assets/javascripts/drg_default_html_editor/ckeditor/plugins/a11yhelp/dialogs/lang/bg.js +11 -0
- data/app/assets/javascripts/drg_default_html_editor/ckeditor/plugins/a11yhelp/dialogs/lang/ca.js +13 -0
- data/app/assets/javascripts/drg_default_html_editor/ckeditor/plugins/a11yhelp/dialogs/lang/cs.js +13 -0
- data/app/assets/javascripts/drg_default_html_editor/ckeditor/plugins/a11yhelp/dialogs/lang/cy.js +11 -0
- data/app/assets/javascripts/drg_default_html_editor/ckeditor/plugins/a11yhelp/dialogs/lang/da.js +11 -0
- data/app/assets/javascripts/drg_default_html_editor/ckeditor/plugins/a11yhelp/dialogs/lang/de.js +12 -0
- data/app/assets/javascripts/drg_default_html_editor/ckeditor/plugins/a11yhelp/dialogs/lang/el.js +13 -0
- data/app/assets/javascripts/drg_default_html_editor/ckeditor/plugins/a11yhelp/dialogs/lang/en-gb.js +11 -0
- data/app/assets/javascripts/drg_default_html_editor/ckeditor/plugins/a11yhelp/dialogs/lang/en.js +11 -0
- data/app/assets/javascripts/drg_default_html_editor/ckeditor/plugins/a11yhelp/dialogs/lang/eo.js +13 -0
- data/app/assets/javascripts/drg_default_html_editor/ckeditor/plugins/a11yhelp/dialogs/lang/es.js +12 -0
- data/app/assets/javascripts/drg_default_html_editor/ckeditor/plugins/a11yhelp/dialogs/lang/et.js +11 -0
- data/app/assets/javascripts/drg_default_html_editor/ckeditor/plugins/a11yhelp/dialogs/lang/fa.js +11 -0
- data/app/assets/javascripts/drg_default_html_editor/ckeditor/plugins/a11yhelp/dialogs/lang/fi.js +12 -0
- data/app/assets/javascripts/drg_default_html_editor/ckeditor/plugins/a11yhelp/dialogs/lang/fr-ca.js +12 -0
- data/app/assets/javascripts/drg_default_html_editor/ckeditor/plugins/a11yhelp/dialogs/lang/fr.js +13 -0
- data/app/assets/javascripts/drg_default_html_editor/ckeditor/plugins/a11yhelp/dialogs/lang/gl.js +12 -0
- data/app/assets/javascripts/drg_default_html_editor/ckeditor/plugins/a11yhelp/dialogs/lang/gu.js +11 -0
- data/app/assets/javascripts/drg_default_html_editor/ckeditor/plugins/a11yhelp/dialogs/lang/he.js +11 -0
- data/app/assets/javascripts/drg_default_html_editor/ckeditor/plugins/a11yhelp/dialogs/lang/hi.js +11 -0
- data/app/assets/javascripts/drg_default_html_editor/ckeditor/plugins/a11yhelp/dialogs/lang/hr.js +11 -0
- data/app/assets/javascripts/drg_default_html_editor/ckeditor/plugins/a11yhelp/dialogs/lang/hu.js +13 -0
- data/app/assets/javascripts/drg_default_html_editor/ckeditor/plugins/a11yhelp/dialogs/lang/id.js +11 -0
- data/app/assets/javascripts/drg_default_html_editor/ckeditor/plugins/a11yhelp/dialogs/lang/it.js +13 -0
- data/app/assets/javascripts/drg_default_html_editor/ckeditor/plugins/a11yhelp/dialogs/lang/ja.js +9 -0
- data/app/assets/javascripts/drg_default_html_editor/ckeditor/plugins/a11yhelp/dialogs/lang/km.js +11 -0
- data/app/assets/javascripts/drg_default_html_editor/ckeditor/plugins/a11yhelp/dialogs/lang/ko.js +10 -0
- data/app/assets/javascripts/drg_default_html_editor/ckeditor/plugins/a11yhelp/dialogs/lang/ku.js +12 -0
- data/app/assets/javascripts/drg_default_html_editor/ckeditor/plugins/a11yhelp/dialogs/lang/lt.js +11 -0
- data/app/assets/javascripts/drg_default_html_editor/ckeditor/plugins/a11yhelp/dialogs/lang/lv.js +13 -0
- data/app/assets/javascripts/drg_default_html_editor/ckeditor/plugins/a11yhelp/dialogs/lang/mk.js +11 -0
- data/app/assets/javascripts/drg_default_html_editor/ckeditor/plugins/a11yhelp/dialogs/lang/mn.js +11 -0
- data/app/assets/javascripts/drg_default_html_editor/ckeditor/plugins/a11yhelp/dialogs/lang/nb.js +12 -0
- data/app/assets/javascripts/drg_default_html_editor/ckeditor/plugins/a11yhelp/dialogs/lang/nl.js +12 -0
- data/app/assets/javascripts/drg_default_html_editor/ckeditor/plugins/a11yhelp/dialogs/lang/no.js +11 -0
- data/app/assets/javascripts/drg_default_html_editor/ckeditor/plugins/a11yhelp/dialogs/lang/pl.js +13 -0
- data/app/assets/javascripts/drg_default_html_editor/ckeditor/plugins/a11yhelp/dialogs/lang/pt-br.js +12 -0
- data/app/assets/javascripts/drg_default_html_editor/ckeditor/plugins/a11yhelp/dialogs/lang/pt.js +12 -0
- data/app/assets/javascripts/drg_default_html_editor/ckeditor/plugins/a11yhelp/dialogs/lang/ro.js +12 -0
- data/app/assets/javascripts/drg_default_html_editor/ckeditor/plugins/a11yhelp/dialogs/lang/ru.js +11 -0
- data/app/assets/javascripts/drg_default_html_editor/ckeditor/plugins/a11yhelp/dialogs/lang/si.js +10 -0
- data/app/assets/javascripts/drg_default_html_editor/ckeditor/plugins/a11yhelp/dialogs/lang/sk.js +12 -0
- data/app/assets/javascripts/drg_default_html_editor/ckeditor/plugins/a11yhelp/dialogs/lang/sl.js +12 -0
- data/app/assets/javascripts/drg_default_html_editor/ckeditor/plugins/a11yhelp/dialogs/lang/sq.js +11 -0
- data/app/assets/javascripts/drg_default_html_editor/ckeditor/plugins/a11yhelp/dialogs/lang/sr-latn.js +11 -0
- data/app/assets/javascripts/drg_default_html_editor/ckeditor/plugins/a11yhelp/dialogs/lang/sr.js +11 -0
- data/app/assets/javascripts/drg_default_html_editor/ckeditor/plugins/a11yhelp/dialogs/lang/sv.js +12 -0
- data/app/assets/javascripts/drg_default_html_editor/ckeditor/plugins/a11yhelp/dialogs/lang/th.js +11 -0
- data/app/assets/javascripts/drg_default_html_editor/ckeditor/plugins/a11yhelp/dialogs/lang/tr.js +12 -0
- data/app/assets/javascripts/drg_default_html_editor/ckeditor/plugins/a11yhelp/dialogs/lang/tt.js +11 -0
- data/app/assets/javascripts/drg_default_html_editor/ckeditor/plugins/a11yhelp/dialogs/lang/ug.js +11 -0
- data/app/assets/javascripts/drg_default_html_editor/ckeditor/plugins/a11yhelp/dialogs/lang/uk.js +12 -0
- data/app/assets/javascripts/drg_default_html_editor/ckeditor/plugins/a11yhelp/dialogs/lang/vi.js +11 -0
- data/app/assets/javascripts/drg_default_html_editor/ckeditor/plugins/a11yhelp/dialogs/lang/zh-cn.js +9 -0
- data/app/assets/javascripts/drg_default_html_editor/ckeditor/plugins/a11yhelp/dialogs/lang/zh.js +10 -0
- data/app/assets/javascripts/drg_default_html_editor/ckeditor/plugins/about/dialogs/about.js +7 -0
- data/app/assets/javascripts/drg_default_html_editor/ckeditor/plugins/about/dialogs/hidpi/logo_ckeditor.png +0 -0
- data/app/assets/javascripts/drg_default_html_editor/ckeditor/plugins/about/dialogs/logo_ckeditor.png +0 -0
- data/app/assets/javascripts/drg_default_html_editor/ckeditor/plugins/clipboard/dialogs/paste.js +11 -0
- data/app/assets/javascripts/drg_default_html_editor/ckeditor/plugins/colordialog/dialogs/colordialog.js +13 -0
- data/app/assets/javascripts/drg_default_html_editor/ckeditor/plugins/dialog/dialogDefinition.js +4 -0
- data/app/assets/javascripts/drg_default_html_editor/ckeditor/plugins/div/dialogs/div.js +9 -0
- data/app/assets/javascripts/drg_default_html_editor/ckeditor/plugins/find/dialogs/find.js +24 -0
- data/app/assets/javascripts/drg_default_html_editor/ckeditor/plugins/flash/dialogs/flash.js +24 -0
- data/app/assets/javascripts/drg_default_html_editor/ckeditor/plugins/flash/images/placeholder.png +0 -0
- data/app/assets/javascripts/drg_default_html_editor/ckeditor/plugins/forms/dialogs/button.js +8 -0
- data/app/assets/javascripts/drg_default_html_editor/ckeditor/plugins/forms/dialogs/checkbox.js +8 -0
- data/app/assets/javascripts/drg_default_html_editor/ckeditor/plugins/forms/dialogs/form.js +8 -0
- data/app/assets/javascripts/drg_default_html_editor/ckeditor/plugins/forms/dialogs/hiddenfield.js +8 -0
- data/app/assets/javascripts/drg_default_html_editor/ckeditor/plugins/forms/dialogs/radio.js +8 -0
- data/app/assets/javascripts/drg_default_html_editor/ckeditor/plugins/forms/dialogs/select.js +20 -0
- data/app/assets/javascripts/drg_default_html_editor/ckeditor/plugins/forms/dialogs/textarea.js +8 -0
- data/app/assets/javascripts/drg_default_html_editor/ckeditor/plugins/forms/dialogs/textfield.js +10 -0
- data/app/assets/javascripts/drg_default_html_editor/ckeditor/plugins/forms/images/hiddenfield.gif +0 -0
- data/app/assets/javascripts/drg_default_html_editor/ckeditor/plugins/icons.png +0 -0
- data/app/assets/javascripts/drg_default_html_editor/ckeditor/plugins/icons_hidpi.png +0 -0
- data/app/assets/javascripts/drg_default_html_editor/ckeditor/plugins/iframe/dialogs/iframe.js +10 -0
- data/app/assets/javascripts/drg_default_html_editor/ckeditor/plugins/iframe/images/placeholder.png +0 -0
- data/app/assets/javascripts/drg_default_html_editor/ckeditor/plugins/image/dialogs/image.js +43 -0
- data/app/assets/javascripts/drg_default_html_editor/ckeditor/plugins/image/images/noimage.png +0 -0
- data/app/assets/javascripts/drg_default_html_editor/ckeditor/plugins/link/dialogs/anchor.js +7 -0
- data/app/assets/javascripts/drg_default_html_editor/ckeditor/plugins/link/dialogs/link.js +26 -0
- data/app/assets/javascripts/drg_default_html_editor/ckeditor/plugins/link/images/anchor.png +0 -0
- data/app/assets/javascripts/drg_default_html_editor/ckeditor/plugins/link/images/hidpi/anchor.png +0 -0
- data/app/assets/javascripts/drg_default_html_editor/ckeditor/plugins/liststyle/dialogs/liststyle.js +10 -0
- data/app/assets/javascripts/drg_default_html_editor/ckeditor/plugins/magicline/images/hidpi/icon.png +0 -0
- data/app/assets/javascripts/drg_default_html_editor/ckeditor/plugins/magicline/images/icon.png +0 -0
- data/app/assets/javascripts/drg_default_html_editor/ckeditor/plugins/pagebreak/images/pagebreak.gif +0 -0
- data/app/assets/javascripts/drg_default_html_editor/ckeditor/plugins/pastefromword/filter/default.js +31 -0
- data/app/assets/javascripts/drg_default_html_editor/ckeditor/plugins/preview/preview.html +13 -0
- data/app/assets/javascripts/drg_default_html_editor/ckeditor/plugins/scayt/LICENSE.md +28 -0
- data/app/assets/javascripts/drg_default_html_editor/ckeditor/plugins/scayt/README.md +25 -0
- data/app/assets/javascripts/drg_default_html_editor/ckeditor/plugins/scayt/dialogs/options.js +17 -0
- data/app/assets/javascripts/drg_default_html_editor/ckeditor/plugins/scayt/dialogs/toolbar.css +71 -0
- data/app/assets/javascripts/drg_default_html_editor/ckeditor/plugins/showblocks/images/block_address.png +0 -0
- data/app/assets/javascripts/drg_default_html_editor/ckeditor/plugins/showblocks/images/block_blockquote.png +0 -0
- data/app/assets/javascripts/drg_default_html_editor/ckeditor/plugins/showblocks/images/block_div.png +0 -0
- data/app/assets/javascripts/drg_default_html_editor/ckeditor/plugins/showblocks/images/block_h1.png +0 -0
- data/app/assets/javascripts/drg_default_html_editor/ckeditor/plugins/showblocks/images/block_h2.png +0 -0
- data/app/assets/javascripts/drg_default_html_editor/ckeditor/plugins/showblocks/images/block_h3.png +0 -0
- data/app/assets/javascripts/drg_default_html_editor/ckeditor/plugins/showblocks/images/block_h4.png +0 -0
- data/app/assets/javascripts/drg_default_html_editor/ckeditor/plugins/showblocks/images/block_h5.png +0 -0
- data/app/assets/javascripts/drg_default_html_editor/ckeditor/plugins/showblocks/images/block_h6.png +0 -0
- data/app/assets/javascripts/drg_default_html_editor/ckeditor/plugins/showblocks/images/block_p.png +0 -0
- data/app/assets/javascripts/drg_default_html_editor/ckeditor/plugins/showblocks/images/block_pre.png +0 -0
- data/app/assets/javascripts/drg_default_html_editor/ckeditor/plugins/smiley/dialogs/smiley.js +10 -0
- data/app/assets/javascripts/drg_default_html_editor/ckeditor/plugins/smiley/images/angel_smile.gif +0 -0
- data/app/assets/javascripts/drg_default_html_editor/ckeditor/plugins/smiley/images/angel_smile.png +0 -0
- data/app/assets/javascripts/drg_default_html_editor/ckeditor/plugins/smiley/images/angry_smile.gif +0 -0
- data/app/assets/javascripts/drg_default_html_editor/ckeditor/plugins/smiley/images/angry_smile.png +0 -0
- data/app/assets/javascripts/drg_default_html_editor/ckeditor/plugins/smiley/images/broken_heart.gif +0 -0
- data/app/assets/javascripts/drg_default_html_editor/ckeditor/plugins/smiley/images/broken_heart.png +0 -0
- data/app/assets/javascripts/drg_default_html_editor/ckeditor/plugins/smiley/images/confused_smile.gif +0 -0
- data/app/assets/javascripts/drg_default_html_editor/ckeditor/plugins/smiley/images/confused_smile.png +0 -0
- data/app/assets/javascripts/drg_default_html_editor/ckeditor/plugins/smiley/images/cry_smile.gif +0 -0
- data/app/assets/javascripts/drg_default_html_editor/ckeditor/plugins/smiley/images/cry_smile.png +0 -0
- data/app/assets/javascripts/drg_default_html_editor/ckeditor/plugins/smiley/images/devil_smile.gif +0 -0
- data/app/assets/javascripts/drg_default_html_editor/ckeditor/plugins/smiley/images/devil_smile.png +0 -0
- data/app/assets/javascripts/drg_default_html_editor/ckeditor/plugins/smiley/images/embaressed_smile.gif +0 -0
- data/app/assets/javascripts/drg_default_html_editor/ckeditor/plugins/smiley/images/embarrassed_smile.gif +0 -0
- data/app/assets/javascripts/drg_default_html_editor/ckeditor/plugins/smiley/images/embarrassed_smile.png +0 -0
- data/app/assets/javascripts/drg_default_html_editor/ckeditor/plugins/smiley/images/envelope.gif +0 -0
- data/app/assets/javascripts/drg_default_html_editor/ckeditor/plugins/smiley/images/envelope.png +0 -0
- data/app/assets/javascripts/drg_default_html_editor/ckeditor/plugins/smiley/images/heart.gif +0 -0
- data/app/assets/javascripts/drg_default_html_editor/ckeditor/plugins/smiley/images/heart.png +0 -0
- data/app/assets/javascripts/drg_default_html_editor/ckeditor/plugins/smiley/images/kiss.gif +0 -0
- data/app/assets/javascripts/drg_default_html_editor/ckeditor/plugins/smiley/images/kiss.png +0 -0
- data/app/assets/javascripts/drg_default_html_editor/ckeditor/plugins/smiley/images/lightbulb.gif +0 -0
- data/app/assets/javascripts/drg_default_html_editor/ckeditor/plugins/smiley/images/lightbulb.png +0 -0
- data/app/assets/javascripts/drg_default_html_editor/ckeditor/plugins/smiley/images/omg_smile.gif +0 -0
- data/app/assets/javascripts/drg_default_html_editor/ckeditor/plugins/smiley/images/omg_smile.png +0 -0
- data/app/assets/javascripts/drg_default_html_editor/ckeditor/plugins/smiley/images/regular_smile.gif +0 -0
- data/app/assets/javascripts/drg_default_html_editor/ckeditor/plugins/smiley/images/regular_smile.png +0 -0
- data/app/assets/javascripts/drg_default_html_editor/ckeditor/plugins/smiley/images/sad_smile.gif +0 -0
- data/app/assets/javascripts/drg_default_html_editor/ckeditor/plugins/smiley/images/sad_smile.png +0 -0
- data/app/assets/javascripts/drg_default_html_editor/ckeditor/plugins/smiley/images/shades_smile.gif +0 -0
- data/app/assets/javascripts/drg_default_html_editor/ckeditor/plugins/smiley/images/shades_smile.png +0 -0
- data/app/assets/javascripts/drg_default_html_editor/ckeditor/plugins/smiley/images/teeth_smile.gif +0 -0
- data/app/assets/javascripts/drg_default_html_editor/ckeditor/plugins/smiley/images/teeth_smile.png +0 -0
- data/app/assets/javascripts/drg_default_html_editor/ckeditor/plugins/smiley/images/thumbs_down.gif +0 -0
- data/app/assets/javascripts/drg_default_html_editor/ckeditor/plugins/smiley/images/thumbs_down.png +0 -0
- data/app/assets/javascripts/drg_default_html_editor/ckeditor/plugins/smiley/images/thumbs_up.gif +0 -0
- data/app/assets/javascripts/drg_default_html_editor/ckeditor/plugins/smiley/images/thumbs_up.png +0 -0
- data/app/assets/javascripts/drg_default_html_editor/ckeditor/plugins/smiley/images/tongue_smile.gif +0 -0
- data/app/assets/javascripts/drg_default_html_editor/ckeditor/plugins/smiley/images/tongue_smile.png +0 -0
- data/app/assets/javascripts/drg_default_html_editor/ckeditor/plugins/smiley/images/tounge_smile.gif +0 -0
- data/app/assets/javascripts/drg_default_html_editor/ckeditor/plugins/smiley/images/whatchutalkingabout_smile.gif +0 -0
- data/app/assets/javascripts/drg_default_html_editor/ckeditor/plugins/smiley/images/whatchutalkingabout_smile.png +0 -0
- data/app/assets/javascripts/drg_default_html_editor/ckeditor/plugins/smiley/images/wink_smile.gif +0 -0
- data/app/assets/javascripts/drg_default_html_editor/ckeditor/plugins/smiley/images/wink_smile.png +0 -0
- data/app/assets/javascripts/drg_default_html_editor/ckeditor/plugins/specialchar/dialogs/lang/_translationstatus.txt +20 -0
- data/app/assets/javascripts/drg_default_html_editor/ckeditor/plugins/specialchar/dialogs/lang/ar.js +13 -0
- data/app/assets/javascripts/drg_default_html_editor/ckeditor/plugins/specialchar/dialogs/lang/bg.js +13 -0
- data/app/assets/javascripts/drg_default_html_editor/ckeditor/plugins/specialchar/dialogs/lang/ca.js +14 -0
- data/app/assets/javascripts/drg_default_html_editor/ckeditor/plugins/specialchar/dialogs/lang/cs.js +13 -0
- data/app/assets/javascripts/drg_default_html_editor/ckeditor/plugins/specialchar/dialogs/lang/cy.js +14 -0
- data/app/assets/javascripts/drg_default_html_editor/ckeditor/plugins/specialchar/dialogs/lang/de.js +13 -0
- data/app/assets/javascripts/drg_default_html_editor/ckeditor/plugins/specialchar/dialogs/lang/el.js +13 -0
- data/app/assets/javascripts/drg_default_html_editor/ckeditor/plugins/specialchar/dialogs/lang/en-gb.js +13 -0
- data/app/assets/javascripts/drg_default_html_editor/ckeditor/plugins/specialchar/dialogs/lang/en.js +13 -0
- data/app/assets/javascripts/drg_default_html_editor/ckeditor/plugins/specialchar/dialogs/lang/eo.js +12 -0
- data/app/assets/javascripts/drg_default_html_editor/ckeditor/plugins/specialchar/dialogs/lang/es.js +13 -0
- data/app/assets/javascripts/drg_default_html_editor/ckeditor/plugins/specialchar/dialogs/lang/et.js +13 -0
- data/app/assets/javascripts/drg_default_html_editor/ckeditor/plugins/specialchar/dialogs/lang/fa.js +12 -0
- data/app/assets/javascripts/drg_default_html_editor/ckeditor/plugins/specialchar/dialogs/lang/fi.js +13 -0
- data/app/assets/javascripts/drg_default_html_editor/ckeditor/plugins/specialchar/dialogs/lang/fr-ca.js +10 -0
- data/app/assets/javascripts/drg_default_html_editor/ckeditor/plugins/specialchar/dialogs/lang/fr.js +11 -0
- data/app/assets/javascripts/drg_default_html_editor/ckeditor/plugins/specialchar/dialogs/lang/gl.js +13 -0
- data/app/assets/javascripts/drg_default_html_editor/ckeditor/plugins/specialchar/dialogs/lang/he.js +12 -0
- data/app/assets/javascripts/drg_default_html_editor/ckeditor/plugins/specialchar/dialogs/lang/hr.js +13 -0
- data/app/assets/javascripts/drg_default_html_editor/ckeditor/plugins/specialchar/dialogs/lang/hu.js +12 -0
- data/app/assets/javascripts/drg_default_html_editor/ckeditor/plugins/specialchar/dialogs/lang/id.js +13 -0
- data/app/assets/javascripts/drg_default_html_editor/ckeditor/plugins/specialchar/dialogs/lang/it.js +14 -0
- data/app/assets/javascripts/drg_default_html_editor/ckeditor/plugins/specialchar/dialogs/lang/ja.js +9 -0
- data/app/assets/javascripts/drg_default_html_editor/ckeditor/plugins/specialchar/dialogs/lang/km.js +13 -0
- data/app/assets/javascripts/drg_default_html_editor/ckeditor/plugins/specialchar/dialogs/lang/ku.js +13 -0
- data/app/assets/javascripts/drg_default_html_editor/ckeditor/plugins/specialchar/dialogs/lang/lv.js +13 -0
- data/app/assets/javascripts/drg_default_html_editor/ckeditor/plugins/specialchar/dialogs/lang/nb.js +11 -0
- data/app/assets/javascripts/drg_default_html_editor/ckeditor/plugins/specialchar/dialogs/lang/nl.js +13 -0
- data/app/assets/javascripts/drg_default_html_editor/ckeditor/plugins/specialchar/dialogs/lang/no.js +11 -0
- data/app/assets/javascripts/drg_default_html_editor/ckeditor/plugins/specialchar/dialogs/lang/pl.js +12 -0
- data/app/assets/javascripts/drg_default_html_editor/ckeditor/plugins/specialchar/dialogs/lang/pt-br.js +11 -0
- data/app/assets/javascripts/drg_default_html_editor/ckeditor/plugins/specialchar/dialogs/lang/pt.js +13 -0
- data/app/assets/javascripts/drg_default_html_editor/ckeditor/plugins/specialchar/dialogs/lang/ru.js +13 -0
- data/app/assets/javascripts/drg_default_html_editor/ckeditor/plugins/specialchar/dialogs/lang/si.js +13 -0
- data/app/assets/javascripts/drg_default_html_editor/ckeditor/plugins/specialchar/dialogs/lang/sk.js +13 -0
- data/app/assets/javascripts/drg_default_html_editor/ckeditor/plugins/specialchar/dialogs/lang/sl.js +12 -0
- data/app/assets/javascripts/drg_default_html_editor/ckeditor/plugins/specialchar/dialogs/lang/sq.js +13 -0
- data/app/assets/javascripts/drg_default_html_editor/ckeditor/plugins/specialchar/dialogs/lang/sv.js +11 -0
- data/app/assets/javascripts/drg_default_html_editor/ckeditor/plugins/specialchar/dialogs/lang/th.js +13 -0
- data/app/assets/javascripts/drg_default_html_editor/ckeditor/plugins/specialchar/dialogs/lang/tr.js +12 -0
- data/app/assets/javascripts/drg_default_html_editor/ckeditor/plugins/specialchar/dialogs/lang/tt.js +13 -0
- data/app/assets/javascripts/drg_default_html_editor/ckeditor/plugins/specialchar/dialogs/lang/ug.js +13 -0
- data/app/assets/javascripts/drg_default_html_editor/ckeditor/plugins/specialchar/dialogs/lang/uk.js +12 -0
- data/app/assets/javascripts/drg_default_html_editor/ckeditor/plugins/specialchar/dialogs/lang/vi.js +14 -0
- data/app/assets/javascripts/drg_default_html_editor/ckeditor/plugins/specialchar/dialogs/lang/zh-cn.js +9 -0
- data/app/assets/javascripts/drg_default_html_editor/ckeditor/plugins/specialchar/dialogs/lang/zh.js +12 -0
- data/app/assets/javascripts/drg_default_html_editor/ckeditor/plugins/specialchar/dialogs/specialchar.js +14 -0
- data/app/assets/javascripts/drg_default_html_editor/ckeditor/plugins/table/dialogs/table.js +21 -0
- data/app/assets/javascripts/drg_default_html_editor/ckeditor/plugins/tabletools/dialogs/tableCell.js +17 -0
- data/app/assets/javascripts/drg_default_html_editor/ckeditor/plugins/templates/dialogs/templates.css +84 -0
- data/app/assets/javascripts/drg_default_html_editor/ckeditor/plugins/templates/dialogs/templates.js +10 -0
- data/app/assets/javascripts/drg_default_html_editor/ckeditor/plugins/templates/templates/default.js +6 -0
- data/app/assets/javascripts/drg_default_html_editor/ckeditor/plugins/templates/templates/images/template1.gif +0 -0
- data/app/assets/javascripts/drg_default_html_editor/ckeditor/plugins/templates/templates/images/template2.gif +0 -0
- data/app/assets/javascripts/drg_default_html_editor/ckeditor/plugins/templates/templates/images/template3.gif +0 -0
- data/app/assets/javascripts/drg_default_html_editor/ckeditor/plugins/wsc/LICENSE.md +28 -0
- data/app/assets/javascripts/drg_default_html_editor/ckeditor/plugins/wsc/README.md +25 -0
- data/app/assets/javascripts/drg_default_html_editor/ckeditor/plugins/wsc/dialogs/ciframe.html +66 -0
- data/app/assets/javascripts/drg_default_html_editor/ckeditor/plugins/wsc/dialogs/tmpFrameset.html +52 -0
- data/app/assets/javascripts/drg_default_html_editor/ckeditor/plugins/wsc/dialogs/wsc.css +82 -0
- data/app/assets/javascripts/drg_default_html_editor/ckeditor/plugins/wsc/dialogs/wsc.js +74 -0
- data/app/assets/javascripts/drg_default_html_editor/ckeditor/plugins/wsc/dialogs/wsc_ie.js +11 -0
- data/app/assets/javascripts/drg_default_html_editor/ckeditor/samples/ajax.html +82 -0
- data/app/assets/javascripts/drg_default_html_editor/ckeditor/samples/api.html +207 -0
- data/app/assets/javascripts/drg_default_html_editor/ckeditor/samples/appendto.html +56 -0
- data/app/assets/javascripts/drg_default_html_editor/ckeditor/samples/assets/inlineall/logo.png +0 -0
- data/app/assets/javascripts/drg_default_html_editor/ckeditor/samples/assets/outputxhtml/outputxhtml.css +204 -0
- data/app/assets/javascripts/drg_default_html_editor/ckeditor/samples/assets/posteddata.php +59 -0
- data/app/assets/javascripts/drg_default_html_editor/ckeditor/samples/assets/sample.jpg +0 -0
- data/app/assets/javascripts/drg_default_html_editor/ckeditor/samples/assets/uilanguages/languages.js +7 -0
- data/app/assets/javascripts/drg_default_html_editor/ckeditor/samples/datafiltering.html +401 -0
- data/app/assets/javascripts/drg_default_html_editor/ckeditor/samples/divreplace.html +141 -0
- data/app/assets/javascripts/drg_default_html_editor/ckeditor/samples/index.html +128 -0
- data/app/assets/javascripts/drg_default_html_editor/ckeditor/samples/inlineall.html +311 -0
- data/app/assets/javascripts/drg_default_html_editor/ckeditor/samples/inlinebycode.html +121 -0
- data/app/assets/javascripts/drg_default_html_editor/ckeditor/samples/inlinetextarea.html +110 -0
- data/app/assets/javascripts/drg_default_html_editor/ckeditor/samples/jquery.html +100 -0
- data/app/assets/javascripts/drg_default_html_editor/ckeditor/samples/plugins/dialog/assets/my_dialog.js +48 -0
- data/app/assets/javascripts/drg_default_html_editor/ckeditor/samples/plugins/dialog/dialog.html +187 -0
- data/app/assets/javascripts/drg_default_html_editor/ckeditor/samples/plugins/enterkey/enterkey.html +103 -0
- data/app/assets/javascripts/drg_default_html_editor/ckeditor/samples/plugins/htmlwriter/assets/outputforflash/outputforflash.fla +0 -0
- data/app/assets/javascripts/drg_default_html_editor/ckeditor/samples/plugins/htmlwriter/assets/outputforflash/outputforflash.swf +0 -0
- data/app/assets/javascripts/drg_default_html_editor/ckeditor/samples/plugins/htmlwriter/assets/outputforflash/swfobject.js +18 -0
- data/app/assets/javascripts/drg_default_html_editor/ckeditor/samples/plugins/htmlwriter/outputforflash.html +280 -0
- data/app/assets/javascripts/drg_default_html_editor/ckeditor/samples/plugins/htmlwriter/outputhtml.html +221 -0
- data/app/assets/javascripts/drg_default_html_editor/ckeditor/samples/plugins/magicline/magicline.html +206 -0
- data/app/assets/javascripts/drg_default_html_editor/ckeditor/samples/plugins/toolbar/toolbar.html +232 -0
- data/app/assets/javascripts/drg_default_html_editor/ckeditor/samples/plugins/wysiwygarea/fullpage.html +77 -0
- data/app/assets/javascripts/drg_default_html_editor/ckeditor/samples/readonly.html +73 -0
- data/app/assets/javascripts/drg_default_html_editor/ckeditor/samples/replacebyclass.html +57 -0
- data/app/assets/javascripts/drg_default_html_editor/ckeditor/samples/replacebycode.html +56 -0
- data/app/assets/javascripts/drg_default_html_editor/ckeditor/samples/sample.css +365 -0
- data/app/assets/javascripts/drg_default_html_editor/ckeditor/samples/sample.js +50 -0
- data/app/assets/javascripts/drg_default_html_editor/ckeditor/samples/sample_posteddata.php +16 -0
- data/app/assets/javascripts/drg_default_html_editor/ckeditor/samples/tabindex.html +75 -0
- data/app/assets/javascripts/drg_default_html_editor/ckeditor/samples/uicolor.html +69 -0
- data/app/assets/javascripts/drg_default_html_editor/ckeditor/samples/uilanguages.html +119 -0
- data/app/assets/javascripts/drg_default_html_editor/ckeditor/samples/xhtmlstyle.html +231 -0
- data/app/assets/javascripts/drg_default_html_editor/ckeditor/skins/moono/dialog.css +5 -0
- data/app/assets/javascripts/drg_default_html_editor/ckeditor/skins/moono/dialog_ie.css +5 -0
- data/app/assets/javascripts/drg_default_html_editor/ckeditor/skins/moono/dialog_ie7.css +5 -0
- data/app/assets/javascripts/drg_default_html_editor/ckeditor/skins/moono/dialog_ie8.css +5 -0
- data/app/assets/javascripts/drg_default_html_editor/ckeditor/skins/moono/dialog_iequirks.css +5 -0
- data/app/assets/javascripts/drg_default_html_editor/ckeditor/skins/moono/editor.css +5 -0
- data/app/assets/javascripts/drg_default_html_editor/ckeditor/skins/moono/editor_gecko.css +5 -0
- data/app/assets/javascripts/drg_default_html_editor/ckeditor/skins/moono/editor_ie.css +5 -0
- data/app/assets/javascripts/drg_default_html_editor/ckeditor/skins/moono/editor_ie7.css +5 -0
- data/app/assets/javascripts/drg_default_html_editor/ckeditor/skins/moono/editor_ie8.css +5 -0
- data/app/assets/javascripts/drg_default_html_editor/ckeditor/skins/moono/editor_iequirks.css +5 -0
- data/app/assets/javascripts/drg_default_html_editor/ckeditor/skins/moono/icons.png +0 -0
- data/app/assets/javascripts/drg_default_html_editor/ckeditor/skins/moono/icons_hidpi.png +0 -0
- data/app/assets/javascripts/drg_default_html_editor/ckeditor/skins/moono/images/arrow.png +0 -0
- data/app/assets/javascripts/drg_default_html_editor/ckeditor/skins/moono/images/close.png +0 -0
- data/app/assets/javascripts/drg_default_html_editor/ckeditor/skins/moono/images/hidpi/close.png +0 -0
- data/app/assets/javascripts/drg_default_html_editor/ckeditor/skins/moono/images/hidpi/lock-open.png +0 -0
- data/app/assets/javascripts/drg_default_html_editor/ckeditor/skins/moono/images/hidpi/lock.png +0 -0
- data/app/assets/javascripts/drg_default_html_editor/ckeditor/skins/moono/images/hidpi/refresh.png +0 -0
- data/app/assets/javascripts/drg_default_html_editor/ckeditor/skins/moono/images/lock-open.png +0 -0
- data/app/assets/javascripts/drg_default_html_editor/ckeditor/skins/moono/images/lock.png +0 -0
- data/app/assets/javascripts/drg_default_html_editor/ckeditor/skins/moono/images/refresh.png +0 -0
- data/app/assets/javascripts/drg_default_html_editor/ckeditor/skins/moono/readme.md +51 -0
- data/app/assets/javascripts/drg_default_html_editor/ckeditor/styles.js +111 -0
- data/app/assets/javascripts/drg_default_html_editor/elfinder/Changelog.txt +63 -0
- data/app/assets/javascripts/drg_default_html_editor/elfinder/README.md +118 -0
- data/app/assets/javascripts/drg_default_html_editor/elfinder/css/elfinder.min.css +9 -0
- data/app/assets/javascripts/drg_default_html_editor/elfinder/css/theme.css +49 -0
- data/app/assets/javascripts/drg_default_html_editor/elfinder/elfinder.html +56 -0
- data/app/assets/javascripts/drg_default_html_editor/elfinder/img/arrows-active.png +0 -0
- data/app/assets/javascripts/drg_default_html_editor/elfinder/img/arrows-normal.png +0 -0
- data/app/assets/javascripts/drg_default_html_editor/elfinder/img/crop.gif +0 -0
- data/app/assets/javascripts/drg_default_html_editor/elfinder/img/dialogs.png +0 -0
- data/app/assets/javascripts/drg_default_html_editor/elfinder/img/icons-big.png +0 -0
- data/app/assets/javascripts/drg_default_html_editor/elfinder/img/icons-small.png +0 -0
- data/app/assets/javascripts/drg_default_html_editor/elfinder/img/progress.gif +0 -0
- data/app/assets/javascripts/drg_default_html_editor/elfinder/img/quicklook-bg.png +0 -0
- data/app/assets/javascripts/drg_default_html_editor/elfinder/img/quicklook-icons.png +0 -0
- data/app/assets/javascripts/drg_default_html_editor/elfinder/img/resize.png +0 -0
- data/app/assets/javascripts/drg_default_html_editor/elfinder/img/spinner-mini.gif +0 -0
- data/app/assets/javascripts/drg_default_html_editor/elfinder/img/toolbar.png +0 -0
- data/app/assets/javascripts/drg_default_html_editor/elfinder/js/elfinder.min.js +25 -0
- data/app/assets/javascripts/drg_default_html_editor/elfinder/js/elfinder.min_1.js +25 -0
- data/app/assets/javascripts/drg_default_html_editor/elfinder/js/i18n/elfinder.LANG.js +348 -0
- data/app/assets/javascripts/drg_default_html_editor/elfinder/js/i18n/elfinder.ar.js +290 -0
- data/app/assets/javascripts/drg_default_html_editor/elfinder/js/i18n/elfinder.bg.js +310 -0
- data/app/assets/javascripts/drg_default_html_editor/elfinder/js/i18n/elfinder.ca.js +310 -0
- data/app/assets/javascripts/drg_default_html_editor/elfinder/js/i18n/elfinder.cs.js +285 -0
- data/app/assets/javascripts/drg_default_html_editor/elfinder/js/i18n/elfinder.de.js +280 -0
- data/app/assets/javascripts/drg_default_html_editor/elfinder/js/i18n/elfinder.es.js +291 -0
- data/app/assets/javascripts/drg_default_html_editor/elfinder/js/i18n/elfinder.fr.js +298 -0
- data/app/assets/javascripts/drg_default_html_editor/elfinder/js/i18n/elfinder.hu.js +280 -0
- data/app/assets/javascripts/drg_default_html_editor/elfinder/js/i18n/elfinder.jp.js +316 -0
- data/app/assets/javascripts/drg_default_html_editor/elfinder/js/i18n/elfinder.nl.js +342 -0
- data/app/assets/javascripts/drg_default_html_editor/elfinder/js/i18n/elfinder.no.js +280 -0
- data/app/assets/javascripts/drg_default_html_editor/elfinder/js/i18n/elfinder.pl.js +309 -0
- data/app/assets/javascripts/drg_default_html_editor/elfinder/js/i18n/elfinder.pt_BR.js +280 -0
- data/app/assets/javascripts/drg_default_html_editor/elfinder/js/i18n/elfinder.ru.js +344 -0
- data/app/assets/javascripts/drg_default_html_editor/elfinder/js/i18n/elfinder.sl.js +348 -0
- data/app/assets/javascripts/drg_default_html_editor/elfinder/js/i18n/elfinder.zh_CN.js +280 -0
- data/app/assets/javascripts/drg_default_html_editor/elfinder/js/proxy/elFinderSupportVer1.js +338 -0
- data/app/assets/javascripts/drg_default_html_editor/elfinder/php/MySQLStorage.sql +23 -0
- data/app/assets/javascripts/drg_default_html_editor/elfinder/php/connector.php +44 -0
- data/app/assets/javascripts/drg_default_html_editor/elfinder/php/elFinder.class.php +1103 -0
- data/app/assets/javascripts/drg_default_html_editor/elfinder/php/elFinderConnector.class.php +133 -0
- data/app/assets/javascripts/drg_default_html_editor/elfinder/php/elFinderVolumeDriver.class.php +3370 -0
- data/app/assets/javascripts/drg_default_html_editor/elfinder/php/elFinderVolumeLocalFileSystem.class.php +835 -0
- data/app/assets/javascripts/drg_default_html_editor/elfinder/php/elFinderVolumeMySQL.class.php +896 -0
- data/app/assets/javascripts/drg_default_html_editor/elfinder/php/mime.types +512 -0
- data/app/assets/javascripts/drg_default_html_editor_application.js +7 -0
- data/app/assets/javascripts/drg_default_html_editor_cms.js +14 -0
- data/app/assets/stylesheets/drg_default_html_editor/elfinder.min.css +9 -0
- data/app/assets/stylesheets/drg_default_html_editor_application.css +11 -0
- data/app/assets/stylesheets/drg_default_html_editor_cms.css +21 -0
- data/app/controllers/dc_elfinder_controller.rb +58 -0
- data/config/initializers/patch_drgcms_form_field.rb +96 -0
- data/config/initializers/patch_for_elfinder.rb +114 -0
- data/config/routes.rb +2 -0
- data/lib/drg_default_html_editor/engine.rb +14 -0
- data/lib/drg_default_html_editor/version.rb +3 -0
- data/lib/drg_default_html_editor.rb +6 -0
- data/lib/drg_default_html_editor.rb~ +6 -0
- data/lib/tasks/drg_default_html_editor_copy_assets.rake +10 -0
- data/lib/tasks/drg_default_html_editor_tasks.rake +4 -0
- data/test/drg_default_html_editor_test.rb +7 -0
- data/test/dummy/README.rdoc +261 -0
- data/test/dummy/Rakefile +7 -0
- data/test/dummy/app/assets/javascripts/application.js +15 -0
- data/test/dummy/app/assets/stylesheets/application.css +13 -0
- data/test/dummy/app/controllers/application_controller.rb +3 -0
- data/test/dummy/app/helpers/application_helper.rb +2 -0
- data/test/dummy/app/views/layouts/application.html.erb +14 -0
- data/test/dummy/config/application.rb +59 -0
- data/test/dummy/config/boot.rb +10 -0
- data/test/dummy/config/database.yml +25 -0
- data/test/dummy/config/environment.rb +5 -0
- data/test/dummy/config/environments/development.rb +37 -0
- data/test/dummy/config/environments/production.rb +67 -0
- data/test/dummy/config/environments/test.rb +37 -0
- data/test/dummy/config/initializers/backtrace_silencers.rb +7 -0
- data/test/dummy/config/initializers/inflections.rb +15 -0
- data/test/dummy/config/initializers/mime_types.rb +5 -0
- data/test/dummy/config/initializers/secret_token.rb +7 -0
- data/test/dummy/config/initializers/session_store.rb +8 -0
- data/test/dummy/config/initializers/wrap_parameters.rb +14 -0
- data/test/dummy/config/locales/en.yml +5 -0
- data/test/dummy/config/routes.rb +58 -0
- data/test/dummy/config.ru +4 -0
- data/test/dummy/public/404.html +26 -0
- data/test/dummy/public/422.html +26 -0
- data/test/dummy/public/500.html +25 -0
- data/test/dummy/public/favicon.ico +0 -0
- data/test/dummy/script/rails +6 -0
- data/test/integration/navigation_test.rb +10 -0
- data/test/test_helper.rb +15 -0
- metadata +574 -0
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
#coding: utf-8
|
|
2
|
+
#--
|
|
3
|
+
# Copyright (c) 2012-2013 Damjan Rems
|
|
4
|
+
#
|
|
5
|
+
# Permission is hereby granted, free of charge, to any person obtaining
|
|
6
|
+
# a copy of this software and associated documentation files (the
|
|
7
|
+
# "Software"), to deal in the Software without restriction, including
|
|
8
|
+
# without limitation the rights to use, copy, modify, merge, publish,
|
|
9
|
+
# distribute, sublicense, and/or sell copies of the Software, and to
|
|
10
|
+
# permit persons to whom the Software is furnished to do so, subject to
|
|
11
|
+
# the following conditions:
|
|
12
|
+
#
|
|
13
|
+
# The above copyright notice and this permission notice shall be
|
|
14
|
+
# included in all copies or substantial portions of the Software.
|
|
15
|
+
#
|
|
16
|
+
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
|
17
|
+
# EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
|
18
|
+
# MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
|
19
|
+
# NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
|
20
|
+
# LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
|
21
|
+
# OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
|
22
|
+
# WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
23
|
+
#++
|
|
24
|
+
##########################################################################
|
|
25
|
+
#
|
|
26
|
+
##########################################################################
|
|
27
|
+
#require 'el_finder/action'
|
|
28
|
+
|
|
29
|
+
class DcElfinderController < DcApplicationController
|
|
30
|
+
|
|
31
|
+
skip_before_filter :verify_authenticity_token # otherwise it fails on post because of protect_from_forgery
|
|
32
|
+
##########################################################################
|
|
33
|
+
# elfinder file manager connector
|
|
34
|
+
##########################################################################
|
|
35
|
+
def connector
|
|
36
|
+
site = dc_get_site
|
|
37
|
+
home_dir = File.join('/',site.files_directory)
|
|
38
|
+
# it is convenient for admin to have access to root dir directly
|
|
39
|
+
home_dir = File.join('/',home_dir.split('/')[1]) if dc_user_has_role('admin')
|
|
40
|
+
h, r = ElFinder::Connector.new(
|
|
41
|
+
:root => File.join(Rails.public_path, home_dir),
|
|
42
|
+
:url => home_dir,
|
|
43
|
+
:perms => { '.' => { :read => true, :write => true, :rm => true }},
|
|
44
|
+
:extractors => {
|
|
45
|
+
'application/zip' => ['unzip', '-qq', '-o'], # Each argument will be shellescaped (also true for archivers)
|
|
46
|
+
'application/x-gzip' => ['tar', '-xzf'],
|
|
47
|
+
},
|
|
48
|
+
:archivers => {
|
|
49
|
+
'application/zip' => ['.zip', 'zip', '-qr9'], # Note first argument is archive extension
|
|
50
|
+
'application/x-gzip' => ['.tgz', 'tar', '-czf'],
|
|
51
|
+
},
|
|
52
|
+
:user_roles => session[:user_roles]
|
|
53
|
+
).run(params)
|
|
54
|
+
headers.merge!(h)
|
|
55
|
+
render (r.empty? ? {:nothing => true} : {:text => r.to_json}), :layout => false
|
|
56
|
+
end
|
|
57
|
+
|
|
58
|
+
end
|
|
@@ -0,0 +1,96 @@
|
|
|
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
|
+
DrgcmsFormField rescue nil # force loading of drgcms_form_field.rb in development ;-)
|
|
24
|
+
|
|
25
|
+
module DrgcmsFormField
|
|
26
|
+
|
|
27
|
+
###########################################################################
|
|
28
|
+
# Create elfinder form field
|
|
29
|
+
###########################################################################
|
|
30
|
+
class Elfinder < DrgcmsField
|
|
31
|
+
|
|
32
|
+
###########################################################################
|
|
33
|
+
#
|
|
34
|
+
###########################################################################
|
|
35
|
+
def render
|
|
36
|
+
return ro_standard if @readonly
|
|
37
|
+
set_initial_value
|
|
38
|
+
#
|
|
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
|
+
height: 490,
|
|
47
|
+
docked: false,
|
|
48
|
+
dialog: { width: 400, modal: true },
|
|
49
|
+
lang: 'sl',
|
|
50
|
+
getFileCallback : function(file) {
|
|
51
|
+
file = file.replace('//','/');
|
|
52
|
+
$('#record_#{@yaml['name']}').val(file);
|
|
53
|
+
$('#record_div_#{@yaml['name']}').hide();
|
|
54
|
+
},
|
|
55
|
+
});
|
|
56
|
+
});
|
|
57
|
+
EOJS
|
|
58
|
+
|
|
59
|
+
@html << @parent.text_field('record', @yaml['name'], @yaml['html']) +
|
|
60
|
+
"<div id='record_div_#{@yaml['name']}'></div>".html_safe
|
|
61
|
+
self
|
|
62
|
+
end
|
|
63
|
+
end
|
|
64
|
+
|
|
65
|
+
###########################################################################
|
|
66
|
+
# Create ckeditor form field
|
|
67
|
+
###########################################################################
|
|
68
|
+
class Ckeditor < DrgcmsField
|
|
69
|
+
|
|
70
|
+
###########################################################################
|
|
71
|
+
#
|
|
72
|
+
###########################################################################
|
|
73
|
+
def render
|
|
74
|
+
return ro_standard if @readonly
|
|
75
|
+
set_initial_value
|
|
76
|
+
# read configuration from site settings
|
|
77
|
+
ck_config = '/assets/ckeditor_config.js'
|
|
78
|
+
ck_css = '/assets/ckeditor_css.css'
|
|
79
|
+
ck = @parent.dc_get_site ? @parent.dc_get_site.params['ck_editor'] : nil # site might not be available yet
|
|
80
|
+
if ck
|
|
81
|
+
ck_config = ck['config_file'] if ck['config_file']
|
|
82
|
+
ck_css = ck['css_file'] if ck['css_file']
|
|
83
|
+
end
|
|
84
|
+
#
|
|
85
|
+
@yaml['options'] ||= ''
|
|
86
|
+
@yaml['options'] << ", customConfig: '#{ck_config}'"
|
|
87
|
+
@yaml['options'] << ", contentsCss: '#{ck_css}'" unless ck_css.blank?
|
|
88
|
+
|
|
89
|
+
options = @yaml['options'] ? ",{#{@yaml['options']}}" : ''
|
|
90
|
+
@html << @parent.text_area('record', @yaml['name'], @yaml['html'])
|
|
91
|
+
@js << "CKEDITOR.replace( 'record_#{@yaml['name']}'#{options} );"
|
|
92
|
+
self
|
|
93
|
+
end
|
|
94
|
+
end
|
|
95
|
+
|
|
96
|
+
end
|
|
@@ -0,0 +1,114 @@
|
|
|
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
|
+
module ElFinder
|
|
24
|
+
class Connector
|
|
25
|
+
|
|
26
|
+
private
|
|
27
|
+
#######################################################################
|
|
28
|
+
# Will only move selected files to .trash folder instead of remove them.
|
|
29
|
+
#
|
|
30
|
+
# The only problem I see is that if user has rights to perform remove parent
|
|
31
|
+
# folder but not some of its children, whole parent folder will be moved to .trash.
|
|
32
|
+
#######################################################################
|
|
33
|
+
def remove_target(target)
|
|
34
|
+
if perms_for(target)[:rm] == false
|
|
35
|
+
@response[:error] ||= 'Some files/directories were unable to be removed'
|
|
36
|
+
@response[:errorData][target.basename.to_s] = "Access Denied"
|
|
37
|
+
return
|
|
38
|
+
end
|
|
39
|
+
# create trash folder if it doesn't exist
|
|
40
|
+
trash_dir = File.join(@root,'.trash/')
|
|
41
|
+
FileUtils.mkdir(trash_dir) unless File.exist?(trash_dir)
|
|
42
|
+
#
|
|
43
|
+
begin
|
|
44
|
+
FileUtils.mv(target, trash_dir, :force => true )
|
|
45
|
+
if !target.directory?
|
|
46
|
+
if @options[:thumbs] && (thumbnail = thumbnail_for(target)).file?
|
|
47
|
+
FileUtils.mv(thumbnail, trash_dir, :force => true )
|
|
48
|
+
end
|
|
49
|
+
end
|
|
50
|
+
rescue
|
|
51
|
+
@response[:error] ||= 'Some files/directories were unable to be removed'
|
|
52
|
+
@response[:errorData][target.basename.to_s] = "Remove failed"
|
|
53
|
+
end
|
|
54
|
+
end
|
|
55
|
+
|
|
56
|
+
#######################################################################
|
|
57
|
+
# Return permissions for a file or directory. This overwrites default
|
|
58
|
+
# behavior and inserts drgcms users roles.
|
|
59
|
+
#######################################################################
|
|
60
|
+
def perms_for(pathname, options = {})
|
|
61
|
+
if @permissions.nil?
|
|
62
|
+
@permissions = {}
|
|
63
|
+
# find root name and get all rules, that are for descendent of root.
|
|
64
|
+
# There can be more than one root, because each site can have its own root
|
|
65
|
+
root = pathname.root.to_s.sub(Rails.root.join('public').to_s,'')
|
|
66
|
+
DcFolderPermission.where(folder_name: /#{root}*/).sort(folder_name: 1).each do |p|
|
|
67
|
+
folder = p.folder_name.sub(root,'')
|
|
68
|
+
# root is always ., remove leading and trailing /
|
|
69
|
+
folder = '.' if folder.blank?
|
|
70
|
+
folder = folder[1..-1] if folder[0] == '/'
|
|
71
|
+
folder = folder[0..-2] if folder[-1] == '/'
|
|
72
|
+
# no rights by default.
|
|
73
|
+
h = {read: false, write: false, rw: false, inherited: p.inherited}
|
|
74
|
+
# go through policy_rules and set rights if role matches rules role
|
|
75
|
+
p.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
|
data/config/routes.rb
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
module DrgDefaultHtmlEditor
|
|
2
|
+
#########################################################################
|
|
3
|
+
# Unfortunately this looks to be the only way to duplicate all files to target
|
|
4
|
+
# directory. Add all files of interest to config.assets.precompile.
|
|
5
|
+
#########################################################################
|
|
6
|
+
class Engine < ::Rails::Engine
|
|
7
|
+
# assets_dir = File.realpath( File.dirname(__FILE__) + '/../../app/assets/javascripts/drg_default_html_editor' )
|
|
8
|
+
# initializer "drg_default_html_editor.assets_precompile" do |app|
|
|
9
|
+
# Dir[assets_dir+'/**/*.{js,css,html,png,gif,jpg}'].each do |file|
|
|
10
|
+
# app.config.assets.precompile << file.split('javascripts/').last
|
|
11
|
+
# end
|
|
12
|
+
# end
|
|
13
|
+
end
|
|
14
|
+
end
|
|
@@ -0,0 +1,10 @@
|
|
|
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/drg_default_html_editor')
|
|
8
|
+
output_dir = Rails.root.join('public/assets')
|
|
9
|
+
cp_r(input_dir, output_dir, verbose: true)
|
|
10
|
+
end
|
|
@@ -0,0 +1,261 @@
|
|
|
1
|
+
== Welcome to Rails
|
|
2
|
+
|
|
3
|
+
Rails is a web-application framework that includes everything needed to create
|
|
4
|
+
database-backed web applications according to the Model-View-Control pattern.
|
|
5
|
+
|
|
6
|
+
This pattern splits the view (also called the presentation) into "dumb"
|
|
7
|
+
templates that are primarily responsible for inserting pre-built data in between
|
|
8
|
+
HTML tags. The model contains the "smart" domain objects (such as Account,
|
|
9
|
+
Product, Person, Post) that holds all the business logic and knows how to
|
|
10
|
+
persist themselves to a database. The controller handles the incoming requests
|
|
11
|
+
(such as Save New Account, Update Product, Show Post) by manipulating the model
|
|
12
|
+
and directing data to the view.
|
|
13
|
+
|
|
14
|
+
In Rails, the model is handled by what's called an object-relational mapping
|
|
15
|
+
layer entitled Active Record. This layer allows you to present the data from
|
|
16
|
+
database rows as objects and embellish these data objects with business logic
|
|
17
|
+
methods. You can read more about Active Record in
|
|
18
|
+
link:files/vendor/rails/activerecord/README.html.
|
|
19
|
+
|
|
20
|
+
The controller and view are handled by the Action Pack, which handles both
|
|
21
|
+
layers by its two parts: Action View and Action Controller. These two layers
|
|
22
|
+
are bundled in a single package due to their heavy interdependence. This is
|
|
23
|
+
unlike the relationship between the Active Record and Action Pack that is much
|
|
24
|
+
more separate. Each of these packages can be used independently outside of
|
|
25
|
+
Rails. You can read more about Action Pack in
|
|
26
|
+
link:files/vendor/rails/actionpack/README.html.
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
== Getting Started
|
|
30
|
+
|
|
31
|
+
1. At the command prompt, create a new Rails application:
|
|
32
|
+
<tt>rails new myapp</tt> (where <tt>myapp</tt> is the application name)
|
|
33
|
+
|
|
34
|
+
2. Change directory to <tt>myapp</tt> and start the web server:
|
|
35
|
+
<tt>cd myapp; rails server</tt> (run with --help for options)
|
|
36
|
+
|
|
37
|
+
3. Go to http://localhost:3000/ and you'll see:
|
|
38
|
+
"Welcome aboard: You're riding Ruby on Rails!"
|
|
39
|
+
|
|
40
|
+
4. Follow the guidelines to start developing your application. You can find
|
|
41
|
+
the following resources handy:
|
|
42
|
+
|
|
43
|
+
* The Getting Started Guide: http://guides.rubyonrails.org/getting_started.html
|
|
44
|
+
* Ruby on Rails Tutorial Book: http://www.railstutorial.org/
|
|
45
|
+
|
|
46
|
+
|
|
47
|
+
== Debugging Rails
|
|
48
|
+
|
|
49
|
+
Sometimes your application goes wrong. Fortunately there are a lot of tools that
|
|
50
|
+
will help you debug it and get it back on the rails.
|
|
51
|
+
|
|
52
|
+
First area to check is the application log files. Have "tail -f" commands
|
|
53
|
+
running on the server.log and development.log. Rails will automatically display
|
|
54
|
+
debugging and runtime information to these files. Debugging info will also be
|
|
55
|
+
shown in the browser on requests from 127.0.0.1.
|
|
56
|
+
|
|
57
|
+
You can also log your own messages directly into the log file from your code
|
|
58
|
+
using the Ruby logger class from inside your controllers. Example:
|
|
59
|
+
|
|
60
|
+
class WeblogController < ActionController::Base
|
|
61
|
+
def destroy
|
|
62
|
+
@weblog = Weblog.find(params[:id])
|
|
63
|
+
@weblog.destroy
|
|
64
|
+
logger.info("#{Time.now} Destroyed Weblog ID ##{@weblog.id}!")
|
|
65
|
+
end
|
|
66
|
+
end
|
|
67
|
+
|
|
68
|
+
The result will be a message in your log file along the lines of:
|
|
69
|
+
|
|
70
|
+
Mon Oct 08 14:22:29 +1000 2007 Destroyed Weblog ID #1!
|
|
71
|
+
|
|
72
|
+
More information on how to use the logger is at http://www.ruby-doc.org/core/
|
|
73
|
+
|
|
74
|
+
Also, Ruby documentation can be found at http://www.ruby-lang.org/. There are
|
|
75
|
+
several books available online as well:
|
|
76
|
+
|
|
77
|
+
* Programming Ruby: http://www.ruby-doc.org/docs/ProgrammingRuby/ (Pickaxe)
|
|
78
|
+
* Learn to Program: http://pine.fm/LearnToProgram/ (a beginners guide)
|
|
79
|
+
|
|
80
|
+
These two books will bring you up to speed on the Ruby language and also on
|
|
81
|
+
programming in general.
|
|
82
|
+
|
|
83
|
+
|
|
84
|
+
== Debugger
|
|
85
|
+
|
|
86
|
+
Debugger support is available through the debugger command when you start your
|
|
87
|
+
Mongrel or WEBrick server with --debugger. This means that you can break out of
|
|
88
|
+
execution at any point in the code, investigate and change the model, and then,
|
|
89
|
+
resume execution! You need to install ruby-debug to run the server in debugging
|
|
90
|
+
mode. With gems, use <tt>sudo gem install ruby-debug</tt>. Example:
|
|
91
|
+
|
|
92
|
+
class WeblogController < ActionController::Base
|
|
93
|
+
def index
|
|
94
|
+
@posts = Post.all
|
|
95
|
+
debugger
|
|
96
|
+
end
|
|
97
|
+
end
|
|
98
|
+
|
|
99
|
+
So the controller will accept the action, run the first line, then present you
|
|
100
|
+
with a IRB prompt in the server window. Here you can do things like:
|
|
101
|
+
|
|
102
|
+
>> @posts.inspect
|
|
103
|
+
=> "[#<Post:0x14a6be8
|
|
104
|
+
@attributes={"title"=>nil, "body"=>nil, "id"=>"1"}>,
|
|
105
|
+
#<Post:0x14a6620
|
|
106
|
+
@attributes={"title"=>"Rails", "body"=>"Only ten..", "id"=>"2"}>]"
|
|
107
|
+
>> @posts.first.title = "hello from a debugger"
|
|
108
|
+
=> "hello from a debugger"
|
|
109
|
+
|
|
110
|
+
...and even better, you can examine how your runtime objects actually work:
|
|
111
|
+
|
|
112
|
+
>> f = @posts.first
|
|
113
|
+
=> #<Post:0x13630c4 @attributes={"title"=>nil, "body"=>nil, "id"=>"1"}>
|
|
114
|
+
>> f.
|
|
115
|
+
Display all 152 possibilities? (y or n)
|
|
116
|
+
|
|
117
|
+
Finally, when you're ready to resume execution, you can enter "cont".
|
|
118
|
+
|
|
119
|
+
|
|
120
|
+
== Console
|
|
121
|
+
|
|
122
|
+
The console is a Ruby shell, which allows you to interact with your
|
|
123
|
+
application's domain model. Here you'll have all parts of the application
|
|
124
|
+
configured, just like it is when the application is running. You can inspect
|
|
125
|
+
domain models, change values, and save to the database. Starting the script
|
|
126
|
+
without arguments will launch it in the development environment.
|
|
127
|
+
|
|
128
|
+
To start the console, run <tt>rails console</tt> from the application
|
|
129
|
+
directory.
|
|
130
|
+
|
|
131
|
+
Options:
|
|
132
|
+
|
|
133
|
+
* Passing the <tt>-s, --sandbox</tt> argument will rollback any modifications
|
|
134
|
+
made to the database.
|
|
135
|
+
* Passing an environment name as an argument will load the corresponding
|
|
136
|
+
environment. Example: <tt>rails console production</tt>.
|
|
137
|
+
|
|
138
|
+
To reload your controllers and models after launching the console run
|
|
139
|
+
<tt>reload!</tt>
|
|
140
|
+
|
|
141
|
+
More information about irb can be found at:
|
|
142
|
+
link:http://www.rubycentral.org/pickaxe/irb.html
|
|
143
|
+
|
|
144
|
+
|
|
145
|
+
== dbconsole
|
|
146
|
+
|
|
147
|
+
You can go to the command line of your database directly through <tt>rails
|
|
148
|
+
dbconsole</tt>. You would be connected to the database with the credentials
|
|
149
|
+
defined in database.yml. Starting the script without arguments will connect you
|
|
150
|
+
to the development database. Passing an argument will connect you to a different
|
|
151
|
+
database, like <tt>rails dbconsole production</tt>. Currently works for MySQL,
|
|
152
|
+
PostgreSQL and SQLite 3.
|
|
153
|
+
|
|
154
|
+
== Description of Contents
|
|
155
|
+
|
|
156
|
+
The default directory structure of a generated Ruby on Rails application:
|
|
157
|
+
|
|
158
|
+
|-- app
|
|
159
|
+
| |-- assets
|
|
160
|
+
| | |-- images
|
|
161
|
+
| | |-- javascripts
|
|
162
|
+
| | `-- stylesheets
|
|
163
|
+
| |-- controllers
|
|
164
|
+
| |-- helpers
|
|
165
|
+
| |-- mailers
|
|
166
|
+
| |-- models
|
|
167
|
+
| `-- views
|
|
168
|
+
| `-- layouts
|
|
169
|
+
|-- config
|
|
170
|
+
| |-- environments
|
|
171
|
+
| |-- initializers
|
|
172
|
+
| `-- locales
|
|
173
|
+
|-- db
|
|
174
|
+
|-- doc
|
|
175
|
+
|-- lib
|
|
176
|
+
| |-- assets
|
|
177
|
+
| `-- tasks
|
|
178
|
+
|-- log
|
|
179
|
+
|-- public
|
|
180
|
+
|-- script
|
|
181
|
+
|-- test
|
|
182
|
+
| |-- fixtures
|
|
183
|
+
| |-- functional
|
|
184
|
+
| |-- integration
|
|
185
|
+
| |-- performance
|
|
186
|
+
| `-- unit
|
|
187
|
+
|-- tmp
|
|
188
|
+
| `-- cache
|
|
189
|
+
| `-- assets
|
|
190
|
+
`-- vendor
|
|
191
|
+
|-- assets
|
|
192
|
+
| |-- javascripts
|
|
193
|
+
| `-- stylesheets
|
|
194
|
+
`-- plugins
|
|
195
|
+
|
|
196
|
+
app
|
|
197
|
+
Holds all the code that's specific to this particular application.
|
|
198
|
+
|
|
199
|
+
app/assets
|
|
200
|
+
Contains subdirectories for images, stylesheets, and JavaScript files.
|
|
201
|
+
|
|
202
|
+
app/controllers
|
|
203
|
+
Holds controllers that should be named like weblogs_controller.rb for
|
|
204
|
+
automated URL mapping. All controllers should descend from
|
|
205
|
+
ApplicationController which itself descends from ActionController::Base.
|
|
206
|
+
|
|
207
|
+
app/models
|
|
208
|
+
Holds models that should be named like post.rb. Models descend from
|
|
209
|
+
ActiveRecord::Base by default.
|
|
210
|
+
|
|
211
|
+
app/views
|
|
212
|
+
Holds the template files for the view that should be named like
|
|
213
|
+
weblogs/index.html.erb for the WeblogsController#index action. All views use
|
|
214
|
+
eRuby syntax by default.
|
|
215
|
+
|
|
216
|
+
app/views/layouts
|
|
217
|
+
Holds the template files for layouts to be used with views. This models the
|
|
218
|
+
common header/footer method of wrapping views. In your views, define a layout
|
|
219
|
+
using the <tt>layout :default</tt> and create a file named default.html.erb.
|
|
220
|
+
Inside default.html.erb, call <% yield %> to render the view using this
|
|
221
|
+
layout.
|
|
222
|
+
|
|
223
|
+
app/helpers
|
|
224
|
+
Holds view helpers that should be named like weblogs_helper.rb. These are
|
|
225
|
+
generated for you automatically when using generators for controllers.
|
|
226
|
+
Helpers can be used to wrap functionality for your views into methods.
|
|
227
|
+
|
|
228
|
+
config
|
|
229
|
+
Configuration files for the Rails environment, the routing map, the database,
|
|
230
|
+
and other dependencies.
|
|
231
|
+
|
|
232
|
+
db
|
|
233
|
+
Contains the database schema in schema.rb. db/migrate contains all the
|
|
234
|
+
sequence of Migrations for your schema.
|
|
235
|
+
|
|
236
|
+
doc
|
|
237
|
+
This directory is where your application documentation will be stored when
|
|
238
|
+
generated using <tt>rake doc:app</tt>
|
|
239
|
+
|
|
240
|
+
lib
|
|
241
|
+
Application specific libraries. Basically, any kind of custom code that
|
|
242
|
+
doesn't belong under controllers, models, or helpers. This directory is in
|
|
243
|
+
the load path.
|
|
244
|
+
|
|
245
|
+
public
|
|
246
|
+
The directory available for the web server. Also contains the dispatchers and the
|
|
247
|
+
default HTML files. This should be set as the DOCUMENT_ROOT of your web
|
|
248
|
+
server.
|
|
249
|
+
|
|
250
|
+
script
|
|
251
|
+
Helper scripts for automation and generation.
|
|
252
|
+
|
|
253
|
+
test
|
|
254
|
+
Unit and functional tests along with fixtures. When using the rails generate
|
|
255
|
+
command, template test files will be generated for you and placed in this
|
|
256
|
+
directory.
|
|
257
|
+
|
|
258
|
+
vendor
|
|
259
|
+
External libraries that the application depends on. Also includes the plugins
|
|
260
|
+
subdirectory. If the app has frozen rails, those gems also go here, under
|
|
261
|
+
vendor/rails/. This directory is in the load path.
|
data/test/dummy/Rakefile
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
#!/usr/bin/env rake
|
|
2
|
+
# Add your own tasks in files placed in lib/tasks ending in .rake,
|
|
3
|
+
# for example lib/tasks/capistrano.rake, and they will automatically be available to Rake.
|
|
4
|
+
|
|
5
|
+
require File.expand_path('../config/application', __FILE__)
|
|
6
|
+
|
|
7
|
+
Dummy::Application.load_tasks
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
// This is a manifest file that'll be compiled into application.js, which will include all the files
|
|
2
|
+
// listed below.
|
|
3
|
+
//
|
|
4
|
+
// Any JavaScript/Coffee file within this directory, lib/assets/javascripts, vendor/assets/javascripts,
|
|
5
|
+
// or vendor/assets/javascripts of plugins, if any, can be referenced here using a relative path.
|
|
6
|
+
//
|
|
7
|
+
// It's not advisable to add code directly here, but if you do, it'll appear at the bottom of the
|
|
8
|
+
// the compiled file.
|
|
9
|
+
//
|
|
10
|
+
// WARNING: THE FIRST BLANK LINE MARKS THE END OF WHAT'S TO BE PROCESSED, ANY BLANK LINE SHOULD
|
|
11
|
+
// GO AFTER THE REQUIRES BELOW.
|
|
12
|
+
//
|
|
13
|
+
//= require jquery
|
|
14
|
+
//= require jquery_ujs
|
|
15
|
+
//= require_tree .
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* This is a manifest file that'll be compiled into application.css, which will include all the files
|
|
3
|
+
* listed below.
|
|
4
|
+
*
|
|
5
|
+
* Any CSS and SCSS file within this directory, lib/assets/stylesheets, vendor/assets/stylesheets,
|
|
6
|
+
* or vendor/assets/stylesheets of plugins, if any, can be referenced here using a relative path.
|
|
7
|
+
*
|
|
8
|
+
* You're free to add application-wide styles to this file and they'll appear at the top of the
|
|
9
|
+
* compiled file, but it's generally better to create a new file per style scope.
|
|
10
|
+
*
|
|
11
|
+
*= require_self
|
|
12
|
+
*= require_tree .
|
|
13
|
+
*/
|