drg_default_html_editor 0.4.15
Sign up to get free protection for your applications and to get access to all the features.
- 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,280 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
<!--
|
3
|
+
Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
|
4
|
+
For licensing, see LICENSE.md or http://ckeditor.com/license
|
5
|
+
-->
|
6
|
+
<html>
|
7
|
+
<head>
|
8
|
+
<meta charset="utf-8">
|
9
|
+
<title>Output for Flash — CKEditor Sample</title>
|
10
|
+
<script src="../../../ckeditor.js"></script>
|
11
|
+
<script src="../../../samples/sample.js"></script>
|
12
|
+
<script src="assets/outputforflash/swfobject.js"></script>
|
13
|
+
<link href="../../../samples/sample.css" rel="stylesheet">
|
14
|
+
<meta name="ckeditor-sample-required-plugins" content="sourcearea">
|
15
|
+
<meta name="ckeditor-sample-name" content="Output for Flash">
|
16
|
+
<meta name="ckeditor-sample-group" content="Advanced Samples">
|
17
|
+
<meta name="ckeditor-sample-description" content="Configuring CKEditor to produce HTML code that can be used with Adobe Flash.">
|
18
|
+
<style>
|
19
|
+
|
20
|
+
.alert
|
21
|
+
{
|
22
|
+
background: #ffa84c;
|
23
|
+
padding: 10px 15px;
|
24
|
+
font-weight: bold;
|
25
|
+
display: block;
|
26
|
+
margin-bottom: 20px;
|
27
|
+
}
|
28
|
+
|
29
|
+
</style>
|
30
|
+
</head>
|
31
|
+
<body>
|
32
|
+
<h1 class="samples">
|
33
|
+
<a href="../../../samples/index.html">CKEditor Samples</a> » Producing Flash Compliant HTML Output
|
34
|
+
</h1>
|
35
|
+
<div class="description">
|
36
|
+
<p>
|
37
|
+
This sample shows how to configure CKEditor to output
|
38
|
+
HTML code that can be used with
|
39
|
+
<a class="samples" href="http://www.adobe.com/livedocs/flash/9.0/main/wwhelp/wwhimpl/common/html/wwhelp.htm?context=LiveDocs_Parts&file=00000922.html">
|
40
|
+
Adobe Flash</a>.
|
41
|
+
The code will contain a subset of standard HTML elements like <code><b></code>,
|
42
|
+
<code><i></code>, and <code><p></code> as well as HTML attributes.
|
43
|
+
</p>
|
44
|
+
<p>
|
45
|
+
To add a CKEditor instance outputting Flash compliant HTML code, load the editor using a standard
|
46
|
+
JavaScript call, and define CKEditor features to use HTML elements and attributes.
|
47
|
+
</p>
|
48
|
+
<p>
|
49
|
+
For details on how to create this setup check the source code of this sample page.
|
50
|
+
</p>
|
51
|
+
</div>
|
52
|
+
<p>
|
53
|
+
To see how it works, create some content in the editing area of CKEditor on the left
|
54
|
+
and send it to the Flash object on the right side of the page by using the
|
55
|
+
<strong>Send to Flash</strong> button.
|
56
|
+
</p>
|
57
|
+
<table style="width: 100%; border-spacing: 0; border-collapse:collapse;">
|
58
|
+
<tr>
|
59
|
+
<td style="width: 100%">
|
60
|
+
<textarea cols="80" id="editor1" name="editor1" rows="10"><p><b><font size="18" style="font-size:18px;">Flash and HTML</font></b></p><p>&nbsp;</p><p>It is possible to have <a href="http://ckeditor.com">CKEditor</a> creating content that will be later loaded inside <b>Flash</b> objects and animations.</p><p>&nbsp;</p><p>Flash has a few limitations when dealing with HTML:</p><p>&nbsp;</p><ul><li>It has limited support on tags.</li><li>There is no margin between block elements, like paragraphs.</li></ul></textarea>
|
61
|
+
<script>
|
62
|
+
|
63
|
+
if ( document.location.protocol == 'file:' )
|
64
|
+
alert( 'Warning: This samples does not work when loaded from local filesystem' +
|
65
|
+
'due to security restrictions implemented in Flash.' +
|
66
|
+
'\n\nPlease load the sample from a web server instead.' );
|
67
|
+
|
68
|
+
var editor = CKEDITOR.replace( 'editor1', {
|
69
|
+
/*
|
70
|
+
* Ensure that htmlwriter plugin, which is required for this sample, is loaded.
|
71
|
+
*/
|
72
|
+
extraPlugins: 'htmlwriter',
|
73
|
+
|
74
|
+
height: 290,
|
75
|
+
width: '100%',
|
76
|
+
toolbar: [
|
77
|
+
[ 'Source', '-', 'Bold', 'Italic', 'Underline', '-', 'BulletedList', '-', 'Link', 'Unlink' ],
|
78
|
+
[ 'JustifyLeft', 'JustifyCenter', 'JustifyRight', 'JustifyBlock' ],
|
79
|
+
'/',
|
80
|
+
[ 'Font', 'FontSize' ],
|
81
|
+
[ 'TextColor', '-', 'About' ]
|
82
|
+
],
|
83
|
+
|
84
|
+
/*
|
85
|
+
* Style sheet for the contents
|
86
|
+
*/
|
87
|
+
contentsCss: 'body {color:#000; background-color#FFF; font-family: Arial; font-size:80%;} p, ol, ul {margin-top: 0px; margin-bottom: 0px;}',
|
88
|
+
|
89
|
+
/*
|
90
|
+
* Quirks doctype
|
91
|
+
*/
|
92
|
+
docType: '<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">',
|
93
|
+
|
94
|
+
/*
|
95
|
+
* Core styles.
|
96
|
+
*/
|
97
|
+
coreStyles_bold: { element: 'b' },
|
98
|
+
coreStyles_italic: { element: 'i' },
|
99
|
+
coreStyles_underline: { element: 'u' },
|
100
|
+
|
101
|
+
/*
|
102
|
+
* Font face.
|
103
|
+
*/
|
104
|
+
|
105
|
+
// Define the way font elements will be applied to the document. The "font"
|
106
|
+
// element will be used.
|
107
|
+
font_style: {
|
108
|
+
element: 'font',
|
109
|
+
attributes: { 'face': '#(family)' }
|
110
|
+
},
|
111
|
+
|
112
|
+
/*
|
113
|
+
* Font sizes.
|
114
|
+
*/
|
115
|
+
|
116
|
+
// The CSS part of the font sizes isn't used by Flash, it is there to get the
|
117
|
+
// font rendered correctly in CKEditor.
|
118
|
+
fontSize_sizes: '8px/8;9px/9;10px/10;11px/11;12px/12;14px/14;16px/16;18px/18;20px/20;22px/22;24px/24;26px/26;28px/28;36px/36;48px/48;72px/72',
|
119
|
+
fontSize_style: {
|
120
|
+
element: 'font',
|
121
|
+
attributes: { 'size': '#(size)' },
|
122
|
+
styles: { 'font-size': '#(size)px' }
|
123
|
+
} ,
|
124
|
+
|
125
|
+
/*
|
126
|
+
* Font colors.
|
127
|
+
*/
|
128
|
+
colorButton_enableMore: true,
|
129
|
+
|
130
|
+
colorButton_foreStyle: {
|
131
|
+
element: 'font',
|
132
|
+
attributes: { 'color': '#(color)' }
|
133
|
+
},
|
134
|
+
|
135
|
+
colorButton_backStyle: {
|
136
|
+
element: 'font',
|
137
|
+
styles: { 'background-color': '#(color)' }
|
138
|
+
},
|
139
|
+
|
140
|
+
on: { 'instanceReady': configureFlashOutput }
|
141
|
+
});
|
142
|
+
|
143
|
+
/*
|
144
|
+
* Adjust the behavior of the dataProcessor to match the
|
145
|
+
* requirements of Flash
|
146
|
+
*/
|
147
|
+
function configureFlashOutput( ev ) {
|
148
|
+
var editor = ev.editor,
|
149
|
+
dataProcessor = editor.dataProcessor,
|
150
|
+
htmlFilter = dataProcessor && dataProcessor.htmlFilter;
|
151
|
+
|
152
|
+
// Out self closing tags the HTML4 way, like <br>.
|
153
|
+
dataProcessor.writer.selfClosingEnd = '>';
|
154
|
+
|
155
|
+
// Make output formatting match Flash expectations
|
156
|
+
var dtd = CKEDITOR.dtd;
|
157
|
+
for ( var e in CKEDITOR.tools.extend( {}, dtd.$nonBodyContent, dtd.$block, dtd.$listItem, dtd.$tableContent ) ) {
|
158
|
+
dataProcessor.writer.setRules( e, {
|
159
|
+
indent: false,
|
160
|
+
breakBeforeOpen: false,
|
161
|
+
breakAfterOpen: false,
|
162
|
+
breakBeforeClose: false,
|
163
|
+
breakAfterClose: false
|
164
|
+
});
|
165
|
+
}
|
166
|
+
dataProcessor.writer.setRules( 'br', {
|
167
|
+
indent: false,
|
168
|
+
breakBeforeOpen: false,
|
169
|
+
breakAfterOpen: false,
|
170
|
+
breakBeforeClose: false,
|
171
|
+
breakAfterClose: false
|
172
|
+
});
|
173
|
+
|
174
|
+
// Output properties as attributes, not styles.
|
175
|
+
htmlFilter.addRules( {
|
176
|
+
elements: {
|
177
|
+
$: function( element ) {
|
178
|
+
var style, match, width, height, align;
|
179
|
+
|
180
|
+
// Output dimensions of images as width and height
|
181
|
+
if ( element.name == 'img' ) {
|
182
|
+
style = element.attributes.style;
|
183
|
+
|
184
|
+
if ( style ) {
|
185
|
+
// Get the width from the style.
|
186
|
+
match = ( /(?:^|\s)width\s*:\s*(\d+)px/i ).exec( style );
|
187
|
+
width = match && match[1];
|
188
|
+
|
189
|
+
// Get the height from the style.
|
190
|
+
match = ( /(?:^|\s)height\s*:\s*(\d+)px/i ).exec( style );
|
191
|
+
height = match && match[1];
|
192
|
+
|
193
|
+
if ( width ) {
|
194
|
+
element.attributes.style = element.attributes.style.replace( /(?:^|\s)width\s*:\s*(\d+)px;?/i , '' );
|
195
|
+
element.attributes.width = width;
|
196
|
+
}
|
197
|
+
|
198
|
+
if ( height ) {
|
199
|
+
element.attributes.style = element.attributes.style.replace( /(?:^|\s)height\s*:\s*(\d+)px;?/i , '' );
|
200
|
+
element.attributes.height = height;
|
201
|
+
}
|
202
|
+
}
|
203
|
+
}
|
204
|
+
|
205
|
+
// Output alignment of paragraphs using align
|
206
|
+
if ( element.name == 'p' ) {
|
207
|
+
style = element.attributes.style;
|
208
|
+
|
209
|
+
if ( style ) {
|
210
|
+
// Get the align from the style.
|
211
|
+
match = ( /(?:^|\s)text-align\s*:\s*(\w*);?/i ).exec( style );
|
212
|
+
align = match && match[1];
|
213
|
+
|
214
|
+
if ( align ) {
|
215
|
+
element.attributes.style = element.attributes.style.replace( /(?:^|\s)text-align\s*:\s*(\w*);?/i , '' );
|
216
|
+
element.attributes.align = align;
|
217
|
+
}
|
218
|
+
}
|
219
|
+
}
|
220
|
+
|
221
|
+
if ( element.attributes.style === '' )
|
222
|
+
delete element.attributes.style;
|
223
|
+
|
224
|
+
return element;
|
225
|
+
}
|
226
|
+
}
|
227
|
+
});
|
228
|
+
}
|
229
|
+
|
230
|
+
function sendToFlash() {
|
231
|
+
var html = CKEDITOR.instances.editor1.getData() ;
|
232
|
+
|
233
|
+
// Quick fix for link color.
|
234
|
+
html = html.replace( /<a /g, '<font color="#0000FF"><u><a ' )
|
235
|
+
html = html.replace( /<\/a>/g, '</a></u></font>' )
|
236
|
+
|
237
|
+
var flash = document.getElementById( 'ckFlashContainer' ) ;
|
238
|
+
flash.setData( html ) ;
|
239
|
+
}
|
240
|
+
|
241
|
+
CKEDITOR.domReady( function() {
|
242
|
+
if ( !swfobject.hasFlashPlayerVersion( '8' ) ) {
|
243
|
+
CKEDITOR.dom.element.createFromHtml( '<span class="alert">' +
|
244
|
+
'At least Adobe Flash Player 8 is required to run this sample. ' +
|
245
|
+
'You can download it from <a href="http://get.adobe.com/flashplayer">Adobe\'s website</a>.' +
|
246
|
+
'</span>' ).insertBefore( editor.element );
|
247
|
+
}
|
248
|
+
|
249
|
+
swfobject.embedSWF(
|
250
|
+
'assets/outputforflash/outputforflash.swf',
|
251
|
+
'ckFlashContainer',
|
252
|
+
'550',
|
253
|
+
'400',
|
254
|
+
'8',
|
255
|
+
{ wmode: 'transparent' }
|
256
|
+
);
|
257
|
+
});
|
258
|
+
|
259
|
+
</script>
|
260
|
+
<p>
|
261
|
+
<input type="button" value="Send to Flash" onclick="sendToFlash();">
|
262
|
+
</p>
|
263
|
+
</td>
|
264
|
+
<td style="vertical-align: top; padding-left: 20px">
|
265
|
+
<div id="ckFlashContainer"></div>
|
266
|
+
</td>
|
267
|
+
</tr>
|
268
|
+
</table>
|
269
|
+
<div id="footer">
|
270
|
+
<hr>
|
271
|
+
<p>
|
272
|
+
CKEditor - The text editor for the Internet - <a class="samples" href="http://ckeditor.com/">http://ckeditor.com</a>
|
273
|
+
</p>
|
274
|
+
<p id="copy">
|
275
|
+
Copyright © 2003-2014, <a class="samples" href="http://cksource.com/">CKSource</a> - Frederico
|
276
|
+
Knabben. All rights reserved.
|
277
|
+
</p>
|
278
|
+
</div>
|
279
|
+
</body>
|
280
|
+
</html>
|
@@ -0,0 +1,221 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
<!--
|
3
|
+
Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
|
4
|
+
For licensing, see LICENSE.md or http://ckeditor.com/license
|
5
|
+
-->
|
6
|
+
<html>
|
7
|
+
<head>
|
8
|
+
<meta charset="utf-8">
|
9
|
+
<title>HTML Compliant Output — CKEditor Sample</title>
|
10
|
+
<script src="../../../ckeditor.js"></script>
|
11
|
+
<script src="../../../samples/sample.js"></script>
|
12
|
+
<link href="../../../samples/sample.css" rel="stylesheet">
|
13
|
+
<meta name="ckeditor-sample-required-plugins" content="sourcearea">
|
14
|
+
<meta name="ckeditor-sample-name" content="Output HTML">
|
15
|
+
<meta name="ckeditor-sample-group" content="Advanced Samples">
|
16
|
+
<meta name="ckeditor-sample-description" content="Configuring CKEditor to produce legacy HTML 4 code.">
|
17
|
+
</head>
|
18
|
+
<body>
|
19
|
+
<h1 class="samples">
|
20
|
+
<a href="../../../samples/index.html">CKEditor Samples</a> » Producing HTML Compliant Output
|
21
|
+
</h1>
|
22
|
+
<div class="description">
|
23
|
+
<p>
|
24
|
+
This sample shows how to configure CKEditor to output valid
|
25
|
+
<a class="samples" href="http://www.w3.org/TR/html401/">HTML 4.01</a> code.
|
26
|
+
Traditional HTML elements like <code><b></code>,
|
27
|
+
<code><i></code>, and <code><font></code> are used in place of
|
28
|
+
<code><strong></code>, <code><em></code>, and CSS styles.
|
29
|
+
</p>
|
30
|
+
<p>
|
31
|
+
To add a CKEditor instance outputting legacy HTML 4.01 code, load the editor using a standard
|
32
|
+
JavaScript call, and define CKEditor features to use the HTML compliant elements and attributes.
|
33
|
+
</p>
|
34
|
+
<p>
|
35
|
+
A snippet of the configuration code can be seen below; check the source of this page for
|
36
|
+
full definition:
|
37
|
+
</p>
|
38
|
+
<pre class="samples">
|
39
|
+
CKEDITOR.replace( '<em>textarea_id</em>', {
|
40
|
+
coreStyles_bold: { element: 'b' },
|
41
|
+
coreStyles_italic: { element: 'i' },
|
42
|
+
|
43
|
+
fontSize_style: {
|
44
|
+
element: 'font',
|
45
|
+
attributes: { 'size': '#(size)' }
|
46
|
+
}
|
47
|
+
|
48
|
+
...
|
49
|
+
});</pre>
|
50
|
+
</div>
|
51
|
+
<form action="../../../samples/sample_posteddata.php" method="post">
|
52
|
+
<p>
|
53
|
+
<label for="editor1">
|
54
|
+
Editor 1:
|
55
|
+
</label>
|
56
|
+
<textarea cols="80" id="editor1" name="editor1" rows="10"><p>This is some <b>sample text</b>. You are using <a href="http://ckeditor.com/">CKEditor</a>.</p></textarea>
|
57
|
+
<script>
|
58
|
+
|
59
|
+
CKEDITOR.replace( 'editor1', {
|
60
|
+
/*
|
61
|
+
* Ensure that htmlwriter plugin, which is required for this sample, is loaded.
|
62
|
+
*/
|
63
|
+
extraPlugins: 'htmlwriter',
|
64
|
+
|
65
|
+
/*
|
66
|
+
* Style sheet for the contents
|
67
|
+
*/
|
68
|
+
contentsCss: 'body {color:#000; background-color#:FFF;}',
|
69
|
+
|
70
|
+
/*
|
71
|
+
* Simple HTML5 doctype
|
72
|
+
*/
|
73
|
+
docType: '<!DOCTYPE HTML>',
|
74
|
+
|
75
|
+
/*
|
76
|
+
* Allowed content rules which beside limiting allowed HTML
|
77
|
+
* will also take care of transforming styles to attributes
|
78
|
+
* (currently only for img - see transformation rules defined below).
|
79
|
+
*
|
80
|
+
* Read more: http://docs.ckeditor.com/#!/guide/dev_advanced_content_filter
|
81
|
+
*/
|
82
|
+
allowedContent:
|
83
|
+
'h1 h2 h3 p pre[align]; ' +
|
84
|
+
'blockquote code kbd samp var del ins cite q b i u strike ul ol li hr table tbody tr td th caption; ' +
|
85
|
+
'img[!src,alt,align,width,height]; font[!face]; font[!family]; font[!color]; font[!size]; font{!background-color}; a[!href]; a[!name]',
|
86
|
+
|
87
|
+
/*
|
88
|
+
* Core styles.
|
89
|
+
*/
|
90
|
+
coreStyles_bold: { element: 'b' },
|
91
|
+
coreStyles_italic: { element: 'i' },
|
92
|
+
coreStyles_underline: { element: 'u' },
|
93
|
+
coreStyles_strike: { element: 'strike' },
|
94
|
+
|
95
|
+
/*
|
96
|
+
* Font face.
|
97
|
+
*/
|
98
|
+
|
99
|
+
// Define the way font elements will be applied to the document.
|
100
|
+
// The "font" element will be used.
|
101
|
+
font_style: {
|
102
|
+
element: 'font',
|
103
|
+
attributes: { 'face': '#(family)' }
|
104
|
+
},
|
105
|
+
|
106
|
+
/*
|
107
|
+
* Font sizes.
|
108
|
+
*/
|
109
|
+
fontSize_sizes: 'xx-small/1;x-small/2;small/3;medium/4;large/5;x-large/6;xx-large/7',
|
110
|
+
fontSize_style: {
|
111
|
+
element: 'font',
|
112
|
+
attributes: { 'size': '#(size)' }
|
113
|
+
},
|
114
|
+
|
115
|
+
/*
|
116
|
+
* Font colors.
|
117
|
+
*/
|
118
|
+
|
119
|
+
colorButton_foreStyle: {
|
120
|
+
element: 'font',
|
121
|
+
attributes: { 'color': '#(color)' }
|
122
|
+
},
|
123
|
+
|
124
|
+
colorButton_backStyle: {
|
125
|
+
element: 'font',
|
126
|
+
styles: { 'background-color': '#(color)' }
|
127
|
+
},
|
128
|
+
|
129
|
+
/*
|
130
|
+
* Styles combo.
|
131
|
+
*/
|
132
|
+
stylesSet: [
|
133
|
+
{ name: 'Computer Code', element: 'code' },
|
134
|
+
{ name: 'Keyboard Phrase', element: 'kbd' },
|
135
|
+
{ name: 'Sample Text', element: 'samp' },
|
136
|
+
{ name: 'Variable', element: 'var' },
|
137
|
+
{ name: 'Deleted Text', element: 'del' },
|
138
|
+
{ name: 'Inserted Text', element: 'ins' },
|
139
|
+
{ name: 'Cited Work', element: 'cite' },
|
140
|
+
{ name: 'Inline Quotation', element: 'q' }
|
141
|
+
],
|
142
|
+
|
143
|
+
on: {
|
144
|
+
pluginsLoaded: configureTransformations,
|
145
|
+
loaded: configureHtmlWriter
|
146
|
+
}
|
147
|
+
});
|
148
|
+
|
149
|
+
/*
|
150
|
+
* Add missing content transformations.
|
151
|
+
*/
|
152
|
+
function configureTransformations( evt ) {
|
153
|
+
var editor = evt.editor;
|
154
|
+
|
155
|
+
editor.dataProcessor.htmlFilter.addRules( {
|
156
|
+
attributes: {
|
157
|
+
style: function( value, element ) {
|
158
|
+
// Return #RGB for background and border colors
|
159
|
+
return CKEDITOR.tools.convertRgbToHex( value );
|
160
|
+
}
|
161
|
+
}
|
162
|
+
} );
|
163
|
+
|
164
|
+
// Default automatic content transformations do not yet take care of
|
165
|
+
// align attributes on blocks, so we need to add our own transformation rules.
|
166
|
+
function alignToAttribute( element ) {
|
167
|
+
if ( element.styles[ 'text-align' ] ) {
|
168
|
+
element.attributes.align = element.styles[ 'text-align' ];
|
169
|
+
delete element.styles[ 'text-align' ];
|
170
|
+
}
|
171
|
+
}
|
172
|
+
editor.filter.addTransformations( [
|
173
|
+
[ { element: 'p', right: alignToAttribute } ],
|
174
|
+
[ { element: 'h1', right: alignToAttribute } ],
|
175
|
+
[ { element: 'h2', right: alignToAttribute } ],
|
176
|
+
[ { element: 'h3', right: alignToAttribute } ],
|
177
|
+
[ { element: 'pre', right: alignToAttribute } ]
|
178
|
+
] );
|
179
|
+
}
|
180
|
+
|
181
|
+
/*
|
182
|
+
* Adjust the behavior of htmlWriter to make it output HTML like FCKeditor.
|
183
|
+
*/
|
184
|
+
function configureHtmlWriter( evt ) {
|
185
|
+
var editor = evt.editor,
|
186
|
+
dataProcessor = editor.dataProcessor;
|
187
|
+
|
188
|
+
// Out self closing tags the HTML4 way, like <br>.
|
189
|
+
dataProcessor.writer.selfClosingEnd = '>';
|
190
|
+
|
191
|
+
// Make output formatting behave similar to FCKeditor.
|
192
|
+
var dtd = CKEDITOR.dtd;
|
193
|
+
for ( var e in CKEDITOR.tools.extend( {}, dtd.$nonBodyContent, dtd.$block, dtd.$listItem, dtd.$tableContent ) ) {
|
194
|
+
dataProcessor.writer.setRules( e, {
|
195
|
+
indent: true,
|
196
|
+
breakBeforeOpen: true,
|
197
|
+
breakAfterOpen: false,
|
198
|
+
breakBeforeClose: !dtd[ e ][ '#' ],
|
199
|
+
breakAfterClose: true
|
200
|
+
});
|
201
|
+
}
|
202
|
+
}
|
203
|
+
|
204
|
+
</script>
|
205
|
+
</p>
|
206
|
+
<p>
|
207
|
+
<input type="submit" value="Submit">
|
208
|
+
</p>
|
209
|
+
</form>
|
210
|
+
<div id="footer">
|
211
|
+
<hr>
|
212
|
+
<p>
|
213
|
+
CKEditor - The text editor for the Internet - <a class="samples" href="http://ckeditor.com/">http://ckeditor.com</a>
|
214
|
+
</p>
|
215
|
+
<p id="copy">
|
216
|
+
Copyright © 2003-2014, <a class="samples" href="http://cksource.com/">CKSource</a> - Frederico
|
217
|
+
Knabben. All rights reserved.
|
218
|
+
</p>
|
219
|
+
</div>
|
220
|
+
</body>
|
221
|
+
</html>
|