qwerty 0.0.1.pre → 0.0.3.pre
Sign up to get free protection for your applications and to get access to all the features.
- data/README.rdoc +20 -6
- data/app/controllers/documents_controller.rb +20 -1
- data/app/controllers/qwerty_admin/base_controller.rb +5 -4
- data/app/controllers/qwerty_base_controller.rb +6 -3
- data/app/helpers/documents_helper.rb +1 -1
- data/app/models/document.rb +8 -3
- data/app/views/cms/show.html.erb +4 -0
- data/app/views/kaminari/twitter/_first_page.html.erb +13 -0
- data/app/views/kaminari/twitter/_gap.html.erb +11 -0
- data/app/views/kaminari/twitter/_last_page.html.erb +3 -0
- data/app/views/kaminari/twitter/_next_page.html.erb +3 -0
- data/app/views/kaminari/twitter/_page.html.erb +5 -0
- data/app/views/kaminari/twitter/_paginator.html.erb +17 -0
- data/app/views/kaminari/twitter/_prev_page.html.erb +12 -0
- data/app/views/layouts/qwerty_admin.html.erb +0 -1
- data/app/views/qwerty_admin/documents/_document.html.erb +4 -2
- data/app/views/qwerty_admin/documents/_form.html.erb +1 -1
- data/app/views/qwerty_admin/documents/index.html.erb +3 -3
- data/app/views/qwerty_admin/documents/show.html.erb +6 -2
- data/app/views/qwerty_admin/nodes/_node.html.erb +2 -2
- data/config/routes.rb +2 -2
- data/db/migrate/20110909144300_create_documents.rb +1 -1
- data/lib/generators/qwerty/copy_views/copy_views_generator.rb +10 -0
- data/lib/generators/qwerty/create_document_views/create_document_views_generator.rb +18 -0
- data/lib/generators/qwerty/create_document_views/templates/show.html.erb +22 -0
- data/lib/generators/qwerty/install/install_generator.rb +24 -0
- data/lib/generators/qwerty/install/templates/README +30 -0
- data/lib/generators/qwerty/install/templates/qwerty.rb +34 -0
- data/lib/generators/qwerty/install/templates/sitemap.rb +39 -0
- data/lib/qwerty/engine.rb +0 -1
- data/lib/qwerty/version.rb +1 -1
- data/lib/qwerty.rb +40 -3
- data/lib/tasks/qwerty_tasks.rake +9 -2
- data/test/dummy/app/views/cms/blog.html.erb +10 -0
- data/test/dummy/config/sitemap.rb +4 -4
- data/test/dummy/db/schema.rb +1 -15
- data/test/dummy/log/development.log +31645 -0
- data/test/dummy/tmp/dragonfly/cache/meta/08/583d3580bdba862155e60de9a00668e59daf9a +0 -0
- data/test/dummy/tmp/dragonfly/cache/meta/09/828a2e2227c8ee400355ae1a23ad2bd790141d +0 -0
- data/test/dummy/tmp/dragonfly/cache/meta/0d/3d65cfd83d3144d664a407c58772a9af580f2c +0 -0
- data/test/dummy/tmp/dragonfly/cache/meta/1f/f07ad344a1cb0b8ec31186f4dc9db0839ad627 +0 -0
- data/test/dummy/tmp/dragonfly/cache/meta/31/2c7a5054f251c184a219299e46d5dd6f0730cd +0 -0
- data/test/dummy/tmp/dragonfly/cache/meta/33/fd8b6a50207f556064a867cd45a5a913fc39e6 +0 -0
- data/test/dummy/tmp/dragonfly/cache/meta/36/a1e2bafc0b1be17cdfbcc85af2c1ddbdc97274 +0 -0
- data/test/dummy/tmp/dragonfly/cache/meta/51/d20274bbbbb01e6fa7dcdd39776bfb0a001dda +0 -0
- data/test/dummy/tmp/dragonfly/cache/meta/5b/4beef5209ea5ca056828b4b61d413f586dc689 +0 -0
- data/test/dummy/tmp/dragonfly/cache/meta/5e/f7d5756119e2b71e82ea878824891efc8d4e98 +0 -0
- data/test/dummy/tmp/dragonfly/cache/meta/64/41ffd938beeeae87f4cb84ed8cc2dc89d7ebc0 +0 -0
- data/test/dummy/tmp/dragonfly/cache/meta/66/4c2f6718656261fba53eae83feecda49a4fe27 +0 -0
- data/test/dummy/tmp/dragonfly/cache/meta/66/f44aba1428593600ff0e47ea6aa54362e39a59 +0 -0
- data/test/dummy/tmp/dragonfly/cache/meta/6c/e61baa71dc8133c47f88feebb2dc25158461f0 +0 -0
- data/test/dummy/tmp/dragonfly/cache/meta/6d/d387d4d65cd8d6d331d45659f28626df019f06 +0 -0
- data/test/dummy/tmp/dragonfly/cache/meta/75/868cd14b8d420dcd4ef44afcd20722ad7a1c3f +0 -0
- data/test/dummy/tmp/dragonfly/cache/meta/77/08cd91d09e6cc0e0393e02a0fb2e0205cf34af +0 -0
- data/test/dummy/tmp/dragonfly/cache/meta/77/89d929429830411758a64c37875ee16224640d +0 -0
- data/test/dummy/tmp/dragonfly/cache/meta/7c/14b32e4e029b0200d54b210b4148be0349e72c +0 -0
- data/test/dummy/tmp/dragonfly/cache/meta/7f/0b8b6f8f34b458916f99a528f4cab40107490d +0 -0
- data/test/dummy/tmp/dragonfly/cache/meta/80/5841ac20acdd8dd41460c8346294abc5c4dd8f +0 -0
- data/test/dummy/tmp/dragonfly/cache/meta/81/5c4edaf06b6f561037f8424878bc479644cfe2 +0 -0
- data/test/dummy/tmp/dragonfly/cache/meta/87/6f1ac29d9a3be64d8ec07d988ee2f7e9210a8c +0 -0
- data/test/dummy/tmp/dragonfly/cache/meta/9b/1e5d2a62e4e1c014350ded8b89e08731e51e12 +0 -0
- data/test/dummy/tmp/dragonfly/cache/meta/a0/ca7d61a5e5763e257e13dcbc2b0f11abfd607c +0 -0
- data/test/dummy/tmp/dragonfly/cache/meta/a6/415b21bb312e94f5386bebaf0b9dd96f102a4c +0 -0
- data/test/dummy/tmp/dragonfly/cache/meta/ae/67c778b4cac5a750af11726e141b1c44969772 +0 -0
- data/test/dummy/tmp/dragonfly/cache/meta/bc/3d6a023e30186fa647759d74acd8538ec159d9 +0 -0
- data/test/dummy/tmp/dragonfly/cache/meta/c2/630081ff80175138d240306b29a05a5557fe32 +0 -0
- data/test/dummy/tmp/dragonfly/cache/meta/df/91db539ca547413619d0dadb1e773568d66321 +0 -0
- data/test/dummy/tmp/dragonfly/cache/meta/e7/6a8134e4f01b53cb7ab6551c68f0c44faac748 +0 -0
- data/test/dummy/tmp/dragonfly/cache/meta/ee/fe74949a8c2a0bbc077385a12944d9f98a12e0 +0 -0
- data/test/dummy/tmp/dragonfly/cache/meta/ef/f08311365a487d92cc4a5a33a327b00fa4a576 +0 -0
- data/test/dummy/tmp/dragonfly/cache/meta/f9/67ac04386c59253bd80f4034d18af166cc5691 +0 -0
- data/test/dummy/tmp/dragonfly/cache/meta/ff/d5f8f0d3f33df0282fc5c47f8761d3f328806c +0 -0
- metadata +67 -324
- data/app/assets/javascripts/ckeditor/CHANGES.html +0 -1433
- data/app/assets/javascripts/ckeditor/INSTALL.html +0 -92
- data/app/assets/javascripts/ckeditor/LICENSE.html +0 -1327
- data/app/assets/javascripts/ckeditor/adapters/jquery.js +0 -6
- data/app/assets/javascripts/ckeditor/ckeditor.js +0 -149
- data/app/assets/javascripts/ckeditor/ckeditor.pack +0 -211
- data/app/assets/javascripts/ckeditor/ckeditor_basic.js +0 -8
- data/app/assets/javascripts/ckeditor/ckeditor_basic_source.js +0 -20
- data/app/assets/javascripts/ckeditor/ckeditor_source.js +0 -35
- data/app/assets/javascripts/ckeditor/config.js +0 -78
- data/app/assets/javascripts/ckeditor/contents.css +0 -25
- data/app/assets/javascripts/ckeditor/filebrowser/images/gal_add.jpg +0 -0
- data/app/assets/javascripts/ckeditor/filebrowser/images/gal_add.png +0 -0
- data/app/assets/javascripts/ckeditor/filebrowser/images/gal_del.png +0 -0
- data/app/assets/javascripts/ckeditor/filebrowser/images/gal_more.gif +0 -0
- data/app/assets/javascripts/ckeditor/filebrowser/images/preloader.gif +0 -0
- data/app/assets/javascripts/ckeditor/filebrowser/images/thumbs/ckfnothumb.gif +0 -0
- data/app/assets/javascripts/ckeditor/filebrowser/images/thumbs/mp3.gif +0 -0
- data/app/assets/javascripts/ckeditor/filebrowser/images/thumbs/pdf.gif +0 -0
- data/app/assets/javascripts/ckeditor/filebrowser/images/thumbs/rar.gif +0 -0
- data/app/assets/javascripts/ckeditor/filebrowser/images/thumbs/swf.gif +0 -0
- data/app/assets/javascripts/ckeditor/filebrowser/images/thumbs/xls.gif +0 -0
- data/app/assets/javascripts/ckeditor/filebrowser/javascripts/application.js +0 -222
- data/app/assets/javascripts/ckeditor/filebrowser/javascripts/fileuploader.js +0 -1301
- data/app/assets/javascripts/ckeditor/filebrowser/javascripts/jquery.js +0 -18
- data/app/assets/javascripts/ckeditor/filebrowser/javascripts/jquery.tmpl.js +0 -10
- data/app/assets/javascripts/ckeditor/filebrowser/javascripts/rails.js +0 -363
- data/app/assets/javascripts/ckeditor/filebrowser/stylesheets/uploader.css +0 -117
- data/app/assets/javascripts/ckeditor/images/spacer.gif +0 -0
- data/app/assets/javascripts/ckeditor/lang/_languages.js +0 -6
- data/app/assets/javascripts/ckeditor/lang/_translationstatus.txt +0 -61
- data/app/assets/javascripts/ckeditor/lang/af.js +0 -6
- data/app/assets/javascripts/ckeditor/lang/ar.js +0 -6
- data/app/assets/javascripts/ckeditor/lang/bg.js +0 -6
- data/app/assets/javascripts/ckeditor/lang/bn.js +0 -6
- data/app/assets/javascripts/ckeditor/lang/bs.js +0 -6
- data/app/assets/javascripts/ckeditor/lang/ca.js +0 -6
- data/app/assets/javascripts/ckeditor/lang/cs.js +0 -6
- data/app/assets/javascripts/ckeditor/lang/cy.js +0 -6
- data/app/assets/javascripts/ckeditor/lang/da.js +0 -6
- data/app/assets/javascripts/ckeditor/lang/de.js +0 -6
- data/app/assets/javascripts/ckeditor/lang/el.js +0 -6
- data/app/assets/javascripts/ckeditor/lang/en-au.js +0 -6
- data/app/assets/javascripts/ckeditor/lang/en-ca.js +0 -6
- data/app/assets/javascripts/ckeditor/lang/en-gb.js +0 -6
- data/app/assets/javascripts/ckeditor/lang/en.js +0 -6
- data/app/assets/javascripts/ckeditor/lang/eo.js +0 -6
- data/app/assets/javascripts/ckeditor/lang/es.js +0 -6
- data/app/assets/javascripts/ckeditor/lang/et.js +0 -6
- data/app/assets/javascripts/ckeditor/lang/eu.js +0 -6
- data/app/assets/javascripts/ckeditor/lang/fa.js +0 -6
- data/app/assets/javascripts/ckeditor/lang/fi.js +0 -6
- data/app/assets/javascripts/ckeditor/lang/fo.js +0 -6
- data/app/assets/javascripts/ckeditor/lang/fr-ca.js +0 -6
- data/app/assets/javascripts/ckeditor/lang/fr.js +0 -6
- data/app/assets/javascripts/ckeditor/lang/gl.js +0 -6
- data/app/assets/javascripts/ckeditor/lang/gu.js +0 -6
- data/app/assets/javascripts/ckeditor/lang/he.js +0 -6
- data/app/assets/javascripts/ckeditor/lang/hi.js +0 -6
- data/app/assets/javascripts/ckeditor/lang/hr.js +0 -6
- data/app/assets/javascripts/ckeditor/lang/hu.js +0 -6
- data/app/assets/javascripts/ckeditor/lang/is.js +0 -6
- data/app/assets/javascripts/ckeditor/lang/it.js +0 -6
- data/app/assets/javascripts/ckeditor/lang/ja.js +0 -6
- data/app/assets/javascripts/ckeditor/lang/ka.js +0 -6
- data/app/assets/javascripts/ckeditor/lang/km.js +0 -6
- data/app/assets/javascripts/ckeditor/lang/ko.js +0 -6
- data/app/assets/javascripts/ckeditor/lang/lt.js +0 -6
- data/app/assets/javascripts/ckeditor/lang/lv.js +0 -6
- data/app/assets/javascripts/ckeditor/lang/mn.js +0 -6
- data/app/assets/javascripts/ckeditor/lang/ms.js +0 -6
- data/app/assets/javascripts/ckeditor/lang/nb.js +0 -6
- data/app/assets/javascripts/ckeditor/lang/nl.js +0 -6
- data/app/assets/javascripts/ckeditor/lang/no.js +0 -6
- data/app/assets/javascripts/ckeditor/lang/pl.js +0 -6
- data/app/assets/javascripts/ckeditor/lang/pt-br.js +0 -6
- data/app/assets/javascripts/ckeditor/lang/pt.js +0 -6
- data/app/assets/javascripts/ckeditor/lang/ro.js +0 -6
- data/app/assets/javascripts/ckeditor/lang/ru.js +0 -6
- data/app/assets/javascripts/ckeditor/lang/sk.js +0 -6
- data/app/assets/javascripts/ckeditor/lang/sl.js +0 -6
- data/app/assets/javascripts/ckeditor/lang/sr-latn.js +0 -6
- data/app/assets/javascripts/ckeditor/lang/sr.js +0 -6
- data/app/assets/javascripts/ckeditor/lang/sv.js +0 -6
- data/app/assets/javascripts/ckeditor/lang/th.js +0 -6
- data/app/assets/javascripts/ckeditor/lang/tr.js +0 -6
- data/app/assets/javascripts/ckeditor/lang/uk.js +0 -6
- data/app/assets/javascripts/ckeditor/lang/vi.js +0 -6
- data/app/assets/javascripts/ckeditor/lang/zh-cn.js +0 -6
- data/app/assets/javascripts/ckeditor/lang/zh.js +0 -6
- data/app/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/a11yhelp.js +0 -7
- data/app/assets/javascripts/ckeditor/plugins/a11yhelp/lang/en.js +0 -6
- data/app/assets/javascripts/ckeditor/plugins/a11yhelp/lang/he.js +0 -6
- data/app/assets/javascripts/ckeditor/plugins/about/dialogs/about.js +0 -6
- data/app/assets/javascripts/ckeditor/plugins/about/dialogs/logo_ckeditor.png +0 -0
- data/app/assets/javascripts/ckeditor/plugins/adobeair/plugin.js +0 -6
- data/app/assets/javascripts/ckeditor/plugins/ajax/plugin.js +0 -6
- data/app/assets/javascripts/ckeditor/plugins/attachment/dialogs/attachment.js +0 -1
- data/app/assets/javascripts/ckeditor/plugins/attachment/images/attachment.png +0 -0
- data/app/assets/javascripts/ckeditor/plugins/attachment/lang/en.js +0 -10
- data/app/assets/javascripts/ckeditor/plugins/attachment/lang/ru.js +0 -10
- data/app/assets/javascripts/ckeditor/plugins/attachment/lang/uk.js +0 -10
- data/app/assets/javascripts/ckeditor/plugins/attachment/plugin.js +0 -1
- data/app/assets/javascripts/ckeditor/plugins/autogrow/plugin.js +0 -6
- data/app/assets/javascripts/ckeditor/plugins/bbcode/plugin.js +0 -9
- data/app/assets/javascripts/ckeditor/plugins/clipboard/dialogs/paste.js +0 -7
- data/app/assets/javascripts/ckeditor/plugins/colordialog/dialogs/colordialog.js +0 -7
- data/app/assets/javascripts/ckeditor/plugins/devtools/lang/en.js +0 -6
- data/app/assets/javascripts/ckeditor/plugins/devtools/plugin.js +0 -6
- data/app/assets/javascripts/ckeditor/plugins/dialog/dialogDefinition.js +0 -4
- data/app/assets/javascripts/ckeditor/plugins/div/dialogs/div.js +0 -8
- data/app/assets/javascripts/ckeditor/plugins/docprops/dialogs/docprops.js +0 -10
- data/app/assets/javascripts/ckeditor/plugins/docprops/plugin.js +0 -6
- data/app/assets/javascripts/ckeditor/plugins/embed/dialogs/embed.js +0 -1
- data/app/assets/javascripts/ckeditor/plugins/embed/images/embed.png +0 -0
- data/app/assets/javascripts/ckeditor/plugins/embed/lang/en.js +0 -9
- data/app/assets/javascripts/ckeditor/plugins/embed/lang/ru.js +0 -9
- data/app/assets/javascripts/ckeditor/plugins/embed/lang/uk.js +0 -9
- data/app/assets/javascripts/ckeditor/plugins/embed/plugin.js +0 -1
- data/app/assets/javascripts/ckeditor/plugins/find/dialogs/find.js +0 -10
- data/app/assets/javascripts/ckeditor/plugins/flash/dialogs/flash.js +0 -9
- data/app/assets/javascripts/ckeditor/plugins/flash/images/placeholder.png +0 -0
- data/app/assets/javascripts/ckeditor/plugins/forms/dialogs/button.js +0 -6
- data/app/assets/javascripts/ckeditor/plugins/forms/dialogs/checkbox.js +0 -6
- data/app/assets/javascripts/ckeditor/plugins/forms/dialogs/form.js +0 -6
- data/app/assets/javascripts/ckeditor/plugins/forms/dialogs/hiddenfield.js +0 -6
- data/app/assets/javascripts/ckeditor/plugins/forms/dialogs/radio.js +0 -6
- data/app/assets/javascripts/ckeditor/plugins/forms/dialogs/select.js +0 -9
- data/app/assets/javascripts/ckeditor/plugins/forms/dialogs/textarea.js +0 -6
- data/app/assets/javascripts/ckeditor/plugins/forms/dialogs/textfield.js +0 -6
- data/app/assets/javascripts/ckeditor/plugins/forms/images/hiddenfield.gif +0 -0
- data/app/assets/javascripts/ckeditor/plugins/iframe/dialogs/iframe.js +0 -7
- data/app/assets/javascripts/ckeditor/plugins/iframe/images/placeholder.png +0 -0
- data/app/assets/javascripts/ckeditor/plugins/iframedialog/plugin.js +0 -6
- data/app/assets/javascripts/ckeditor/plugins/image/dialogs/image.js +0 -13
- data/app/assets/javascripts/ckeditor/plugins/link/dialogs/anchor.js +0 -6
- data/app/assets/javascripts/ckeditor/plugins/link/dialogs/link.js +0 -12
- data/app/assets/javascripts/ckeditor/plugins/link/images/anchor.gif +0 -0
- data/app/assets/javascripts/ckeditor/plugins/liststyle/dialogs/liststyle.js +0 -7
- data/app/assets/javascripts/ckeditor/plugins/pagebreak/images/pagebreak.gif +0 -0
- data/app/assets/javascripts/ckeditor/plugins/pastefromword/filter/default.js +0 -11
- data/app/assets/javascripts/ckeditor/plugins/pastetext/dialogs/pastetext.js +0 -6
- data/app/assets/javascripts/ckeditor/plugins/placeholder/dialogs/placeholder.js +0 -6
- data/app/assets/javascripts/ckeditor/plugins/placeholder/lang/en.js +0 -6
- data/app/assets/javascripts/ckeditor/plugins/placeholder/lang/he.js +0 -6
- data/app/assets/javascripts/ckeditor/plugins/placeholder/placeholder.gif +0 -0
- data/app/assets/javascripts/ckeditor/plugins/placeholder/plugin.js +0 -6
- data/app/assets/javascripts/ckeditor/plugins/scayt/dialogs/options.js +0 -8
- data/app/assets/javascripts/ckeditor/plugins/scayt/dialogs/toolbar.css +0 -6
- data/app/assets/javascripts/ckeditor/plugins/showblocks/images/block_address.png +0 -0
- data/app/assets/javascripts/ckeditor/plugins/showblocks/images/block_blockquote.png +0 -0
- data/app/assets/javascripts/ckeditor/plugins/showblocks/images/block_div.png +0 -0
- data/app/assets/javascripts/ckeditor/plugins/showblocks/images/block_h1.png +0 -0
- data/app/assets/javascripts/ckeditor/plugins/showblocks/images/block_h2.png +0 -0
- data/app/assets/javascripts/ckeditor/plugins/showblocks/images/block_h3.png +0 -0
- data/app/assets/javascripts/ckeditor/plugins/showblocks/images/block_h4.png +0 -0
- data/app/assets/javascripts/ckeditor/plugins/showblocks/images/block_h5.png +0 -0
- data/app/assets/javascripts/ckeditor/plugins/showblocks/images/block_h6.png +0 -0
- data/app/assets/javascripts/ckeditor/plugins/showblocks/images/block_p.png +0 -0
- data/app/assets/javascripts/ckeditor/plugins/showblocks/images/block_pre.png +0 -0
- data/app/assets/javascripts/ckeditor/plugins/smiley/dialogs/smiley.js +0 -7
- data/app/assets/javascripts/ckeditor/plugins/smiley/images/angel_smile.gif +0 -0
- data/app/assets/javascripts/ckeditor/plugins/smiley/images/angry_smile.gif +0 -0
- data/app/assets/javascripts/ckeditor/plugins/smiley/images/broken_heart.gif +0 -0
- data/app/assets/javascripts/ckeditor/plugins/smiley/images/confused_smile.gif +0 -0
- data/app/assets/javascripts/ckeditor/plugins/smiley/images/cry_smile.gif +0 -0
- data/app/assets/javascripts/ckeditor/plugins/smiley/images/devil_smile.gif +0 -0
- data/app/assets/javascripts/ckeditor/plugins/smiley/images/embaressed_smile.gif +0 -0
- data/app/assets/javascripts/ckeditor/plugins/smiley/images/envelope.gif +0 -0
- data/app/assets/javascripts/ckeditor/plugins/smiley/images/heart.gif +0 -0
- data/app/assets/javascripts/ckeditor/plugins/smiley/images/kiss.gif +0 -0
- data/app/assets/javascripts/ckeditor/plugins/smiley/images/lightbulb.gif +0 -0
- data/app/assets/javascripts/ckeditor/plugins/smiley/images/omg_smile.gif +0 -0
- data/app/assets/javascripts/ckeditor/plugins/smiley/images/regular_smile.gif +0 -0
- data/app/assets/javascripts/ckeditor/plugins/smiley/images/sad_smile.gif +0 -0
- data/app/assets/javascripts/ckeditor/plugins/smiley/images/shades_smile.gif +0 -0
- data/app/assets/javascripts/ckeditor/plugins/smiley/images/teeth_smile.gif +0 -0
- data/app/assets/javascripts/ckeditor/plugins/smiley/images/thumbs_down.gif +0 -0
- data/app/assets/javascripts/ckeditor/plugins/smiley/images/thumbs_up.gif +0 -0
- data/app/assets/javascripts/ckeditor/plugins/smiley/images/tounge_smile.gif +0 -0
- data/app/assets/javascripts/ckeditor/plugins/smiley/images/whatchutalkingabout_smile.gif +0 -0
- data/app/assets/javascripts/ckeditor/plugins/smiley/images/wink_smile.gif +0 -0
- data/app/assets/javascripts/ckeditor/plugins/specialchar/dialogs/specialchar.js +0 -7
- data/app/assets/javascripts/ckeditor/plugins/specialchar/lang/en.js +0 -6
- data/app/assets/javascripts/ckeditor/plugins/styles/styles/default.js +0 -6
- data/app/assets/javascripts/ckeditor/plugins/stylesheetparser/plugin.js +0 -6
- data/app/assets/javascripts/ckeditor/plugins/table/dialogs/table.js +0 -9
- data/app/assets/javascripts/ckeditor/plugins/tableresize/plugin.js +0 -7
- data/app/assets/javascripts/ckeditor/plugins/tabletools/dialogs/tableCell.js +0 -8
- data/app/assets/javascripts/ckeditor/plugins/templates/dialogs/templates.js +0 -7
- data/app/assets/javascripts/ckeditor/plugins/templates/templates/default.js +0 -6
- data/app/assets/javascripts/ckeditor/plugins/templates/templates/images/template1.gif +0 -0
- data/app/assets/javascripts/ckeditor/plugins/templates/templates/images/template2.gif +0 -0
- data/app/assets/javascripts/ckeditor/plugins/templates/templates/images/template3.gif +0 -0
- data/app/assets/javascripts/ckeditor/plugins/uicolor/dialogs/uicolor.js +0 -7
- data/app/assets/javascripts/ckeditor/plugins/uicolor/lang/en.js +0 -6
- data/app/assets/javascripts/ckeditor/plugins/uicolor/lang/he.js +0 -6
- data/app/assets/javascripts/ckeditor/plugins/uicolor/plugin.js +0 -6
- data/app/assets/javascripts/ckeditor/plugins/uicolor/uicolor.gif +0 -0
- data/app/assets/javascripts/ckeditor/plugins/uicolor/yui/assets/hue_bg.png +0 -0
- data/app/assets/javascripts/ckeditor/plugins/uicolor/yui/assets/hue_thumb.png +0 -0
- data/app/assets/javascripts/ckeditor/plugins/uicolor/yui/assets/picker_mask.png +0 -0
- data/app/assets/javascripts/ckeditor/plugins/uicolor/yui/assets/picker_thumb.png +0 -0
- data/app/assets/javascripts/ckeditor/plugins/uicolor/yui/assets/yui.css +0 -6
- data/app/assets/javascripts/ckeditor/plugins/uicolor/yui/yui.js +0 -76
- data/app/assets/javascripts/ckeditor/plugins/wsc/dialogs/ciframe.html +0 -49
- data/app/assets/javascripts/ckeditor/plugins/wsc/dialogs/tmpFrameset.html +0 -52
- data/app/assets/javascripts/ckeditor/plugins/wsc/dialogs/wsc.css +0 -6
- data/app/assets/javascripts/ckeditor/plugins/wsc/dialogs/wsc.js +0 -7
- data/app/assets/javascripts/ckeditor/plugins/xml/plugin.js +0 -6
- data/app/assets/javascripts/ckeditor/skins/kama/dialog.css +0 -10
- data/app/assets/javascripts/ckeditor/skins/kama/editor.css +0 -13
- data/app/assets/javascripts/ckeditor/skins/kama/icons.png +0 -0
- data/app/assets/javascripts/ckeditor/skins/kama/icons_rtl.png +0 -0
- data/app/assets/javascripts/ckeditor/skins/kama/images/dialog_sides.gif +0 -0
- data/app/assets/javascripts/ckeditor/skins/kama/images/dialog_sides.png +0 -0
- data/app/assets/javascripts/ckeditor/skins/kama/images/dialog_sides_rtl.png +0 -0
- data/app/assets/javascripts/ckeditor/skins/kama/images/mini.gif +0 -0
- data/app/assets/javascripts/ckeditor/skins/kama/images/noimage.png +0 -0
- data/app/assets/javascripts/ckeditor/skins/kama/images/sprites.png +0 -0
- data/app/assets/javascripts/ckeditor/skins/kama/images/sprites_ie6.png +0 -0
- data/app/assets/javascripts/ckeditor/skins/kama/images/toolbar_start.gif +0 -0
- data/app/assets/javascripts/ckeditor/skins/kama/skin.js +0 -7
- data/app/assets/javascripts/ckeditor/skins/kama/templates.css +0 -6
- data/app/assets/javascripts/ckeditor/skins/office2003/dialog.css +0 -9
- data/app/assets/javascripts/ckeditor/skins/office2003/editor.css +0 -14
- data/app/assets/javascripts/ckeditor/skins/office2003/icons.png +0 -0
- data/app/assets/javascripts/ckeditor/skins/office2003/icons_rtl.png +0 -0
- data/app/assets/javascripts/ckeditor/skins/office2003/images/dialog_sides.gif +0 -0
- data/app/assets/javascripts/ckeditor/skins/office2003/images/dialog_sides.png +0 -0
- data/app/assets/javascripts/ckeditor/skins/office2003/images/dialog_sides_rtl.png +0 -0
- data/app/assets/javascripts/ckeditor/skins/office2003/images/mini.gif +0 -0
- data/app/assets/javascripts/ckeditor/skins/office2003/images/noimage.png +0 -0
- data/app/assets/javascripts/ckeditor/skins/office2003/images/sprites.png +0 -0
- data/app/assets/javascripts/ckeditor/skins/office2003/images/sprites_ie6.png +0 -0
- data/app/assets/javascripts/ckeditor/skins/office2003/skin.js +0 -6
- data/app/assets/javascripts/ckeditor/skins/office2003/templates.css +0 -6
- data/app/assets/javascripts/ckeditor/skins/v2/dialog.css +0 -9
- data/app/assets/javascripts/ckeditor/skins/v2/editor.css +0 -13
- data/app/assets/javascripts/ckeditor/skins/v2/icons.png +0 -0
- data/app/assets/javascripts/ckeditor/skins/v2/icons_rtl.png +0 -0
- data/app/assets/javascripts/ckeditor/skins/v2/images/dialog_sides.gif +0 -0
- data/app/assets/javascripts/ckeditor/skins/v2/images/dialog_sides.png +0 -0
- data/app/assets/javascripts/ckeditor/skins/v2/images/dialog_sides_rtl.png +0 -0
- data/app/assets/javascripts/ckeditor/skins/v2/images/mini.gif +0 -0
- data/app/assets/javascripts/ckeditor/skins/v2/images/noimage.png +0 -0
- data/app/assets/javascripts/ckeditor/skins/v2/images/sprites.png +0 -0
- data/app/assets/javascripts/ckeditor/skins/v2/images/sprites_ie6.png +0 -0
- data/app/assets/javascripts/ckeditor/skins/v2/images/toolbar_start.gif +0 -0
- data/app/assets/javascripts/ckeditor/skins/v2/skin.js +0 -6
- data/app/assets/javascripts/ckeditor/skins/v2/templates.css +0 -6
- data/app/assets/javascripts/ckeditor/themes/default/theme.js +0 -8
- data/app/models/ckeditor/asset.rb +0 -4
- data/app/models/ckeditor/attachment_file.rb +0 -15
- data/app/models/ckeditor/picture.rb +0 -13
- data/config/initializers/ckeditor.rb +0 -18
- data/db/migrate/20110919190859_create_ckeditor_assets.rb +0 -26
- data/test/dummy/public/ckeditor_assets/attachments/2/p1010062.jpg +0 -0
- data/test/dummy/public/ckeditor_assets/pictures/1/content_member_9440972.jpeg +0 -0
- data/test/dummy/public/ckeditor_assets/pictures/1/original_member_9440972.jpeg +0 -0
- data/test/dummy/public/ckeditor_assets/pictures/1/thumb_member_9440972.jpeg +0 -0
- data/test/dummy/public/ckeditor_assets/pictures/3/content_p1010062.jpg +0 -0
- data/test/dummy/public/ckeditor_assets/pictures/3/original_p1010062.jpg +0 -0
- data/test/dummy/public/ckeditor_assets/pictures/3/thumb_p1010062.jpg +0 -0
- data/test/dummy/tmp/pids/server.pid +0 -1
@@ -1,211 +0,0 @@
|
|
1
|
-
/*
|
2
|
-
* CKPackager - Sample Package file
|
3
|
-
*/
|
4
|
-
|
5
|
-
header :
|
6
|
-
'/*' + '\n' +
|
7
|
-
'Copyright (c) 2003-2011, CKSource - Frederico Knabben. All rights reserved.' + '\n' +
|
8
|
-
'For licensing, see LICENSE.html or http://ckeditor.com/license' + '\n' +
|
9
|
-
'*/' + '\n' +
|
10
|
-
'\n',
|
11
|
-
|
12
|
-
noCheck : false,
|
13
|
-
|
14
|
-
constants :
|
15
|
-
{
|
16
|
-
'CKEDITOR.ELEMENT_MODE_NONE' : 0,
|
17
|
-
'CKEDITOR.ELEMENT_MODE_REPLACE' : 1,
|
18
|
-
'CKEDITOR.ELEMENT_MODE_APPENDTO' : 2,
|
19
|
-
'CKEDITOR.CTRL' : 0x110000,
|
20
|
-
'CKEDITOR.SHIFT' : 0x220000,
|
21
|
-
'CKEDITOR.ALT' : 0x440000,
|
22
|
-
'CKEDITOR.NODE_ELEMENT' : 1,
|
23
|
-
'CKEDITOR.NODE_DOCUMENT' : 9,
|
24
|
-
'CKEDITOR.NODE_TEXT' : 3,
|
25
|
-
'CKEDITOR.NODE_COMMENT' : 8,
|
26
|
-
'CKEDITOR.NODE_DOCUMENT_FRAGMENT' : 11,
|
27
|
-
'CKEDITOR.POSITION_IDENTICAL' : 0,
|
28
|
-
'CKEDITOR.POSITION_DISCONNECTED' : 1,
|
29
|
-
'CKEDITOR.POSITION_FOLLOWING' : 2,
|
30
|
-
'CKEDITOR.POSITION_PRECEDING' : 4,
|
31
|
-
'CKEDITOR.POSITION_IS_CONTAINED' : 8,
|
32
|
-
'CKEDITOR.POSITION_CONTAINS' : 16,
|
33
|
-
'CKEDITOR.ENTER_P' : 1,
|
34
|
-
'CKEDITOR.ENTER_BR' : 2,
|
35
|
-
'CKEDITOR.ENTER_DIV' : 3,
|
36
|
-
'CKEDITOR.TRISTATE_ON' : 1,
|
37
|
-
'CKEDITOR.TRISTATE_OFF' : 2,
|
38
|
-
'CKEDITOR.TRISTATE_DISABLED' : 0,
|
39
|
-
'CKEDITOR.POSITION_AFTER_START' : 1,
|
40
|
-
'CKEDITOR.POSITION_BEFORE_END' : 2,
|
41
|
-
'CKEDITOR.POSITION_BEFORE_START' : 3,
|
42
|
-
'CKEDITOR.POSITION_AFTER_END' : 4,
|
43
|
-
'CKEDITOR.ENLARGE_ELEMENT' : 1,
|
44
|
-
'CKEDITOR.ENLARGE_BLOCK_CONTENTS' : 2,
|
45
|
-
'CKEDITOR.ENLARGE_LIST_ITEM_CONTENTS' : 3,
|
46
|
-
'CKEDITOR.START' : 1,
|
47
|
-
'CKEDITOR.END' : 2,
|
48
|
-
'CKEDITOR.STARTEND' : 3,
|
49
|
-
'CKEDITOR.SHRINK_ELEMENT' : 1,
|
50
|
-
'CKEDITOR.SHRINK_TEXT' : 2,
|
51
|
-
'CKEDITOR.UI_BUTTON' : '\'button\'',
|
52
|
-
'CKEDITOR.DIALOG_RESIZE_NONE' : 0,
|
53
|
-
'CKEDITOR.DIALOG_RESIZE_WIDTH' : 1,
|
54
|
-
'CKEDITOR.DIALOG_RESIZE_HEIGHT' : 2,
|
55
|
-
'CKEDITOR.DIALOG_RESIZE_BOTH' : 3,
|
56
|
-
'CKEDITOR.VALIDATE_OR' : 1,
|
57
|
-
'CKEDITOR.VALIDATE_AND' : 2,
|
58
|
-
'CKEDITOR.STYLE_BLOCK' : 1,
|
59
|
-
'CKEDITOR.STYLE_INLINE' : 2,
|
60
|
-
'CKEDITOR.STYLE_OBJECT' : 3,
|
61
|
-
'CKEDITOR.UI_PANELBUTTON' : '\'panelbutton\'',
|
62
|
-
'CKEDITOR.SELECTION_NONE' : 1,
|
63
|
-
'CKEDITOR.SELECTION_TEXT' : 2,
|
64
|
-
'CKEDITOR.SELECTION_ELEMENT' : 3,
|
65
|
-
'CKEDITOR.UI_RICHCOMBO' : '\'richcombo\'',
|
66
|
-
'CKEDITOR.UI_MENUBUTTON' : '\'menubutton\'',
|
67
|
-
'CKEDITOR.UI_PANEL' : '\'panel\''
|
68
|
-
},
|
69
|
-
|
70
|
-
packages :
|
71
|
-
[
|
72
|
-
{
|
73
|
-
output : 'ckeditor_basic.js',
|
74
|
-
wrap : true,
|
75
|
-
files :
|
76
|
-
[
|
77
|
-
'_source/core/ckeditor_base.js',
|
78
|
-
'_source/core/event.js',
|
79
|
-
'_source/core/editor_basic.js',
|
80
|
-
'_source/core/env.js',
|
81
|
-
'_source/core/ckeditor_basic.js'
|
82
|
-
]
|
83
|
-
},
|
84
|
-
|
85
|
-
{
|
86
|
-
output : 'ckeditor.js',
|
87
|
-
wrap : true,
|
88
|
-
files :
|
89
|
-
[
|
90
|
-
'_source/core/ckeditor_base.js',
|
91
|
-
'_source/core/event.js',
|
92
|
-
'_source/core/editor_basic.js',
|
93
|
-
'_source/core/env.js',
|
94
|
-
'_source/core/ckeditor_basic.js',
|
95
|
-
'_source/core/dom.js',
|
96
|
-
'_source/core/tools.js',
|
97
|
-
'_source/core/dtd.js',
|
98
|
-
'_source/core/dom/event.js',
|
99
|
-
'_source/core/dom/domobject.js',
|
100
|
-
'_source/core/dom/window.js',
|
101
|
-
'_source/core/dom/document.js',
|
102
|
-
'_source/core/dom/node.js',
|
103
|
-
'_source/core/dom/nodelist.js',
|
104
|
-
'_source/core/dom/element.js',
|
105
|
-
'_source/core/command.js',
|
106
|
-
'_source/core/config.js',
|
107
|
-
'_source/core/focusmanager.js',
|
108
|
-
'_source/core/lang.js',
|
109
|
-
'_source/core/scriptloader.js',
|
110
|
-
'_source/core/resourcemanager.js',
|
111
|
-
'_source/core/plugins.js',
|
112
|
-
'_source/core/skins.js',
|
113
|
-
'_source/core/themes.js',
|
114
|
-
'_source/core/ui.js',
|
115
|
-
'_source/core/editor.js',
|
116
|
-
'_source/core/htmlparser.js',
|
117
|
-
'_source/core/htmlparser/comment.js',
|
118
|
-
'_source/core/htmlparser/text.js',
|
119
|
-
'_source/core/htmlparser/cdata.js',
|
120
|
-
'_source/core/htmlparser/fragment.js',
|
121
|
-
'_source/core/htmlparser/element.js',
|
122
|
-
'_source/core/htmlparser/filter.js',
|
123
|
-
'_source/core/htmlparser/basicwriter.js',
|
124
|
-
'_source/core/ckeditor.js',
|
125
|
-
'_source/core/dom/comment.js',
|
126
|
-
'_source/core/dom/elementpath.js',
|
127
|
-
'_source/core/dom/text.js',
|
128
|
-
'_source/core/dom/documentfragment.js',
|
129
|
-
'_source/core/dom/walker.js',
|
130
|
-
'_source/core/dom/range.js',
|
131
|
-
'_source/core/dom/rangelist.js',
|
132
|
-
'_source/core/_bootstrap.js',
|
133
|
-
'_source/skins/kama/skin.js',
|
134
|
-
// '_source/lang/en.js',
|
135
|
-
'_source/plugins/about/plugin.js',
|
136
|
-
'_source/plugins/a11yhelp/plugin.js',
|
137
|
-
'_source/plugins/basicstyles/plugin.js',
|
138
|
-
'_source/plugins/bidi/plugin.js',
|
139
|
-
'_source/plugins/blockquote/plugin.js',
|
140
|
-
'_source/plugins/button/plugin.js',
|
141
|
-
'_source/plugins/clipboard/plugin.js',
|
142
|
-
'_source/plugins/colorbutton/plugin.js',
|
143
|
-
'_source/plugins/colordialog/plugin.js',
|
144
|
-
'_source/plugins/contextmenu/plugin.js',
|
145
|
-
'_source/plugins/dialogadvtab/plugin.js',
|
146
|
-
'_source/plugins/div/plugin.js',
|
147
|
-
'_source/plugins/elementspath/plugin.js',
|
148
|
-
'_source/plugins/enterkey/plugin.js',
|
149
|
-
'_source/plugins/entities/plugin.js',
|
150
|
-
'_source/plugins/filebrowser/plugin.js',
|
151
|
-
'_source/plugins/find/plugin.js',
|
152
|
-
'_source/plugins/flash/plugin.js',
|
153
|
-
'_source/plugins/font/plugin.js',
|
154
|
-
'_source/plugins/format/plugin.js',
|
155
|
-
'_source/plugins/forms/plugin.js',
|
156
|
-
'_source/plugins/horizontalrule/plugin.js',
|
157
|
-
'_source/plugins/htmldataprocessor/plugin.js',
|
158
|
-
'_source/plugins/iframe/plugin.js',
|
159
|
-
'_source/plugins/image/plugin.js',
|
160
|
-
'_source/plugins/indent/plugin.js',
|
161
|
-
'_source/plugins/justify/plugin.js',
|
162
|
-
'_source/plugins/keystrokes/plugin.js',
|
163
|
-
'_source/plugins/link/plugin.js',
|
164
|
-
'_source/plugins/list/plugin.js',
|
165
|
-
'_source/plugins/liststyle/plugin.js',
|
166
|
-
'_source/plugins/maximize/plugin.js',
|
167
|
-
'_source/plugins/newpage/plugin.js',
|
168
|
-
'_source/plugins/pagebreak/plugin.js',
|
169
|
-
'_source/plugins/pastefromword/plugin.js',
|
170
|
-
'_source/plugins/pastetext/plugin.js',
|
171
|
-
'_source/plugins/popup/plugin.js',
|
172
|
-
'_source/plugins/preview/plugin.js',
|
173
|
-
'_source/plugins/print/plugin.js',
|
174
|
-
'_source/plugins/removeformat/plugin.js',
|
175
|
-
'_source/plugins/resize/plugin.js',
|
176
|
-
'_source/plugins/save/plugin.js',
|
177
|
-
'_source/plugins/scayt/plugin.js',
|
178
|
-
'_source/plugins/smiley/plugin.js',
|
179
|
-
'_source/plugins/showblocks/plugin.js',
|
180
|
-
'_source/plugins/showborders/plugin.js',
|
181
|
-
'_source/plugins/sourcearea/plugin.js',
|
182
|
-
'_source/plugins/stylescombo/plugin.js',
|
183
|
-
'_source/plugins/table/plugin.js',
|
184
|
-
'_source/plugins/tabletools/plugin.js',
|
185
|
-
'_source/plugins/specialchar/plugin.js',
|
186
|
-
'_source/plugins/tab/plugin.js',
|
187
|
-
'_source/plugins/templates/plugin.js',
|
188
|
-
'_source/plugins/toolbar/plugin.js',
|
189
|
-
'_source/plugins/undo/plugin.js',
|
190
|
-
'_source/plugins/wysiwygarea/plugin.js',
|
191
|
-
'_source/plugins/wsc/plugin.js',
|
192
|
-
'_source/plugins/dialog/plugin.js',
|
193
|
-
'_source/plugins/styles/plugin.js',
|
194
|
-
'_source/plugins/domiterator/plugin.js',
|
195
|
-
'_source/plugins/panelbutton/plugin.js',
|
196
|
-
'_source/plugins/floatpanel/plugin.js',
|
197
|
-
'_source/plugins/menu/plugin.js',
|
198
|
-
'_source/plugins/editingblock/plugin.js',
|
199
|
-
'_source/plugins/selection/plugin.js',
|
200
|
-
'_source/plugins/fakeobjects/plugin.js',
|
201
|
-
'_source/plugins/richcombo/plugin.js',
|
202
|
-
'_source/plugins/htmlwriter/plugin.js',
|
203
|
-
'_source/plugins/menubutton/plugin.js',
|
204
|
-
'_source/plugins/dialogui/plugin.js',
|
205
|
-
'_source/plugins/panel/plugin.js',
|
206
|
-
'_source/plugins/listblock/plugin.js',
|
207
|
-
'_source/themes/default/theme.js'
|
208
|
-
]
|
209
|
-
}
|
210
|
-
|
211
|
-
]
|
@@ -1,8 +0,0 @@
|
|
1
|
-
/*
|
2
|
-
Copyright (c) 2003-2011, CKSource - Frederico Knabben. All rights reserved.
|
3
|
-
For licensing, see LICENSE.html or http://ckeditor.com/license
|
4
|
-
*/
|
5
|
-
|
6
|
-
(function(){if(window.CKEDITOR&&window.CKEDITOR.dom)return;if(!window.CKEDITOR)window.CKEDITOR=(function(){var a={timestamp:'B8DJ5M3',version:'3.6.2',revision:'7275',_:{},status:'unloaded',basePath:(function(){var d=window.CKEDITOR_BASEPATH||'';if(!d){var e=document.getElementsByTagName('script');for(var f=0;f<e.length;f++){var g=e[f].src.match(/(^|.*[\\\/])ckeditor(?:_basic)?(?:_source)?.js(?:\?.*)?$/i);if(g){d=g[1];break;}}}if(d.indexOf(':/')==-1)if(d.indexOf('/')===0)d=location.href.match(/^.*?:\/\/[^\/]*/)[0]+d;else d=location.href.match(/^[^\?]*\/(?:)/)[0]+d;if(!d)throw 'The CKEditor installation path could not be automatically detected. Please set the global variable "CKEDITOR_BASEPATH" before creating editor instances.';return d;})(),getUrl:function(d){if(d.indexOf(':/')==-1&&d.indexOf('/')!==0)d=this.basePath+d;if(this.timestamp&&d.charAt(d.length-1)!='/'&&!/[&?]t=/.test(d))d+=(d.indexOf('?')>=0?'&':'?')+'t='+this.timestamp;return d;}},b=window.CKEDITOR_GETURL;if(b){var c=a.getUrl;a.getUrl=function(d){return b.call(a,d)||c.call(a,d);};}return a;})();var a=CKEDITOR;if(!a.event){a.event=function(){};a.event.implementOn=function(b){var c=a.event.prototype;for(var d in c){if(b[d]==undefined)b[d]=c[d];}};a.event.prototype=(function(){var b=function(d){var e=d.getPrivate&&d.getPrivate()||d._||(d._={});return e.events||(e.events={});},c=function(d){this.name=d;this.listeners=[];};c.prototype={getListenerIndex:function(d){for(var e=0,f=this.listeners;e<f.length;e++){if(f[e].fn==d)return e;}return-1;}};return{on:function(d,e,f,g,h){var i=b(this),j=i[d]||(i[d]=new c(d));if(j.getListenerIndex(e)<0){var k=j.listeners;if(!f)f=this;if(isNaN(h))h=10;var l=this,m=function(o,p,q,r){var s={name:d,sender:this,editor:o,data:p,listenerData:g,stop:q,cancel:r,removeListener:function(){l.removeListener(d,e);}};e.call(f,s);return s.data;};m.fn=e;m.priority=h;for(var n=k.length-1;n>=0;n--){if(k[n].priority<=h){k.splice(n+1,0,m);return;}}k.unshift(m);}},fire:(function(){var d=false,e=function(){d=true;},f=false,g=function(){f=true;};return function(h,i,j){var k=b(this)[h],l=d,m=f;d=f=false;if(k){var n=k.listeners;if(n.length){n=n.slice(0);for(var o=0;o<n.length;o++){var p=n[o].call(this,j,i,e,g);if(typeof p!='undefined')i=p;if(d||f)break;}}}var q=f||(typeof i=='undefined'?false:i);d=l;f=m;return q;};})(),fireOnce:function(d,e,f){var g=this.fire(d,e,f);delete b(this)[d];return g;},removeListener:function(d,e){var f=b(this)[d];if(f){var g=f.getListenerIndex(e);if(g>=0)f.listeners.splice(g,1);
|
7
|
-
}},hasListeners:function(d){var e=b(this)[d];return e&&e.listeners.length>0;}};})();}if(!a.editor){a.ELEMENT_MODE_NONE=0;a.ELEMENT_MODE_REPLACE=1;a.ELEMENT_MODE_APPENDTO=2;a.editor=function(b,c,d,e){var f=this;f._={instanceConfig:b,element:c,data:e};f.elementMode=d||0;a.event.call(f);f._init();};a.editor.replace=function(b,c){var d=b;if(typeof d!='object'){d=document.getElementById(b);if(d&&d.tagName.toLowerCase() in {style:1,script:1,base:1,link:1,meta:1,title:1})d=null;if(!d){var e=0,f=document.getElementsByName(b);while((d=f[e++])&&d.tagName.toLowerCase()!='textarea'){}}if(!d)throw '[CKEDITOR.editor.replace] The element with id or name "'+b+'" was not found.';}d.style.visibility='hidden';return new a.editor(c,d,1);};a.editor.appendTo=function(b,c,d){var e=b;if(typeof e!='object'){e=document.getElementById(b);if(!e)throw '[CKEDITOR.editor.appendTo] The element with id "'+b+'" was not found.';}return new a.editor(c,e,2,d);};a.editor.prototype={_init:function(){var b=a.editor._pending||(a.editor._pending=[]);b.push(this);},fire:function(b,c){return a.event.prototype.fire.call(this,b,c,this);},fireOnce:function(b,c){return a.event.prototype.fireOnce.call(this,b,c,this);}};a.event.implementOn(a.editor.prototype,true);}if(!a.env)a.env=(function(){var b=navigator.userAgent.toLowerCase(),c=window.opera,d={ie:/*@cc_on!@*/false,opera:!!c&&c.version,webkit:b.indexOf(' applewebkit/')>-1,air:b.indexOf(' adobeair/')>-1,mac:b.indexOf('macintosh')>-1,quirks:document.compatMode=='BackCompat',mobile:b.indexOf('mobile')>-1,iOS:/(ipad|iphone|ipod)/.test(b),isCustomDomain:function(){if(!this.ie)return false;var g=document.domain,h=window.location.hostname;return g!=h&&g!='['+h+']';},secure:location.protocol=='https:'};d.gecko=navigator.product=='Gecko'&&!d.webkit&&!d.opera;var e=0;if(d.ie){e=parseFloat(b.match(/msie (\d+)/)[1]);d.ie8=!!document.documentMode;d.ie8Compat=document.documentMode==8;d.ie9Compat=document.documentMode==9;d.ie7Compat=e==7&&!document.documentMode||document.documentMode==7;d.ie6Compat=e<7||d.quirks;}if(d.gecko){var f=b.match(/rv:([\d\.]+)/);if(f){f=f[1].split('.');e=f[0]*10000+(f[1]||0)*100+ +(f[2]||0);}}if(d.opera)e=parseFloat(c.version());if(d.air)e=parseFloat(b.match(/ adobeair\/(\d+)/)[1]);if(d.webkit)e=parseFloat(b.match(/ applewebkit\/(\d+)/)[1]);d.version=e;d.isCompatible=d.iOS&&e>=534||!d.mobile&&(d.ie&&e>=6||d.gecko&&e>=10801||d.opera&&e>=9.5||d.air&&e>=1||d.webkit&&e>=522||false);d.cssClass='cke_browser_'+(d.ie?'ie':d.gecko?'gecko':d.opera?'opera':d.webkit?'webkit':'unknown');
|
8
|
-
if(d.quirks)d.cssClass+=' cke_browser_quirks';if(d.ie){d.cssClass+=' cke_browser_ie'+(d.version<7?'6':d.version>=8?document.documentMode:'7');if(d.quirks)d.cssClass+=' cke_browser_iequirks';}if(d.gecko&&e<10900)d.cssClass+=' cke_browser_gecko18';if(d.air)d.cssClass+=' cke_browser_air';return d;})();var b=a.env;var c=b.ie;if(a.status=='unloaded')(function(){a.event.implementOn(a);a.loadFullCore=function(){if(a.status!='basic_ready'){a.loadFullCore._load=1;return;}delete a.loadFullCore;var e=document.createElement('script');e.type='text/javascript';e.src=a.basePath+'ckeditor.js';document.getElementsByTagName('head')[0].appendChild(e);};a.loadFullCoreTimeout=0;a.replaceClass='ckeditor';a.replaceByClassEnabled=1;var d=function(e,f,g,h){if(b.isCompatible){if(a.loadFullCore)a.loadFullCore();var i=g(e,f,h);a.add(i);return i;}return null;};a.replace=function(e,f){return d(e,f,a.editor.replace);};a.appendTo=function(e,f,g){return d(e,f,a.editor.appendTo,g);};a.add=function(e){var f=this._.pending||(this._.pending=[]);f.push(e);};a.replaceAll=function(){var e=document.getElementsByTagName('textarea');for(var f=0;f<e.length;f++){var g=null,h=e[f];if(!h.name&&!h.id)continue;if(typeof arguments[0]=='string'){var i=new RegExp('(?:^|\\s)'+arguments[0]+'(?:$|\\s)');if(!i.test(h.className))continue;}else if(typeof arguments[0]=='function'){g={};if(arguments[0](h,g)===false)continue;}this.replace(h,g);}};(function(){var e=function(){var f=a.loadFullCore,g=a.loadFullCoreTimeout;if(a.replaceByClassEnabled)a.replaceAll(a.replaceClass);a.status='basic_ready';if(f&&f._load)f();else if(g)setTimeout(function(){if(a.loadFullCore)a.loadFullCore();},g*1000);};if(window.addEventListener)window.addEventListener('load',e,false);else if(window.attachEvent)window.attachEvent('onload',e);})();a.status='basic_loaded';})();})();
|
@@ -1,20 +0,0 @@
|
|
1
|
-
/*
|
2
|
-
Copyright (c) 2003-2011, CKSource - Frederico Knabben. All rights reserved.
|
3
|
-
For licensing, see LICENSE.html or http://ckeditor.com/license
|
4
|
-
*/
|
5
|
-
|
6
|
-
// Compressed version of core/ckeditor_base.js. See original for instructions.
|
7
|
-
/*jsl:ignore*/
|
8
|
-
if(!window.CKEDITOR)window.CKEDITOR=(function(){var a={timestamp:'',version:'3.6.2',revision:'7275',_:{},status:'unloaded',basePath:(function(){var d=window.CKEDITOR_BASEPATH||'';if(!d){var e=document.getElementsByTagName('script');for(var f=0;f<e.length;f++){var g=e[f].src.match(/(^|.*[\\\/])ckeditor(?:_basic)?(?:_source)?.js(?:\?.*)?$/i);if(g){d=g[1];break;}}}if(d.indexOf(':/')==-1)if(d.indexOf('/')===0)d=location.href.match(/^.*?:\/\/[^\/]*/)[0]+d;else d=location.href.match(/^[^\?]*\/(?:)/)[0]+d;return d;})(),getUrl:function(d){if(d.indexOf(':/')==-1&&d.indexOf('/')!==0)d=this.basePath+d;if(this.timestamp&&d.charAt(d.length-1)!='/')d+=(d.indexOf('?')>=0?'&':'?')+('t=')+this.timestamp;return d;}},b=window.CKEDITOR_GETURL;if(b){var c=a.getUrl;a.getUrl=function(d){return b.call(a,d)||c.call(a,d);};}return a;})();
|
9
|
-
/*jsl:end*/
|
10
|
-
|
11
|
-
// Uncomment the following line to have a new timestamp generated for each
|
12
|
-
// request, having clear cache load of the editor code.
|
13
|
-
// CKEDITOR.timestamp = ( new Date() ).valueOf();
|
14
|
-
|
15
|
-
// Set the script name to be loaded by the loader.
|
16
|
-
CKEDITOR._autoLoad = 'core/ckeditor_basic';
|
17
|
-
|
18
|
-
// Include the loader script.
|
19
|
-
document.write(
|
20
|
-
'<script type="text/javascript" src="' + CKEDITOR.getUrl( '_source/core/loader.js' ) + '"></script>' );
|
@@ -1,35 +0,0 @@
|
|
1
|
-
/*
|
2
|
-
Copyright (c) 2003-2011, CKSource - Frederico Knabben. All rights reserved.
|
3
|
-
For licensing, see LICENSE.html or http://ckeditor.com/license
|
4
|
-
*/
|
5
|
-
|
6
|
-
// Compressed version of core/ckeditor_base.js. See original for instructions.
|
7
|
-
/*jsl:ignore*/
|
8
|
-
if(!window.CKEDITOR)window.CKEDITOR=(function(){var a={timestamp:'',version:'3.6.2',revision:'7275',_:{},status:'unloaded',basePath:(function(){var d=window.CKEDITOR_BASEPATH||'';if(!d){var e=document.getElementsByTagName('script');for(var f=0;f<e.length;f++){var g=e[f].src.match(/(^|.*[\\\/])ckeditor(?:_basic)?(?:_source)?.js(?:\?.*)?$/i);if(g){d=g[1];break;}}}if(d.indexOf(':/')==-1)if(d.indexOf('/')===0)d=location.href.match(/^.*?:\/\/[^\/]*/)[0]+d;else d=location.href.match(/^[^\?]*\/(?:)/)[0]+d;return d;})(),getUrl:function(d){if(d.indexOf(':/')==-1&&d.indexOf('/')!==0)d=this.basePath+d;if(this.timestamp&&d.charAt(d.length-1)!='/')d+=(d.indexOf('?')>=0?'&':'?')+('t=')+this.timestamp;return d;}},b=window.CKEDITOR_GETURL;if(b){var c=a.getUrl;a.getUrl=function(d){return b.call(a,d)||c.call(a,d);};}return a;})();
|
9
|
-
/*jsl:end*/
|
10
|
-
|
11
|
-
// Uncomment the following line to have a new timestamp generated for each
|
12
|
-
// request, having clear cache load of the editor code.
|
13
|
-
// CKEDITOR.timestamp = ( new Date() ).valueOf();
|
14
|
-
|
15
|
-
if ( CKEDITOR.loader )
|
16
|
-
CKEDITOR.loader.load( 'core/ckeditor' );
|
17
|
-
else
|
18
|
-
{
|
19
|
-
// Set the script name to be loaded by the loader.
|
20
|
-
CKEDITOR._autoLoad = 'core/ckeditor';
|
21
|
-
|
22
|
-
// Include the loader script.
|
23
|
-
if ( document.body && (!document.readyState || document.readyState == 'complete') )
|
24
|
-
{
|
25
|
-
var script = document.createElement( 'script' );
|
26
|
-
script.type = 'text/javascript';
|
27
|
-
script.src = CKEDITOR.getUrl( '_source/core/loader.js' );
|
28
|
-
document.body.appendChild( script );
|
29
|
-
}
|
30
|
-
else
|
31
|
-
{
|
32
|
-
document.write(
|
33
|
-
'<script type="text/javascript" src="' + CKEDITOR.getUrl( '_source/core/loader.js' ) + '"></script>' );
|
34
|
-
}
|
35
|
-
}
|
@@ -1,78 +0,0 @@
|
|
1
|
-
/*
|
2
|
-
Copyright (c) 2003-2011, CKSource - Frederico Knabben. All rights reserved.
|
3
|
-
For licensing, see LICENSE.html or http://ckeditor.com/license
|
4
|
-
*/
|
5
|
-
|
6
|
-
CKEDITOR.editorConfig = function( config )
|
7
|
-
{
|
8
|
-
// Define changes to default configuration here. For example:
|
9
|
-
// config.language = 'fr';
|
10
|
-
// config.uiColor = '#AADC6E';
|
11
|
-
|
12
|
-
/* Filebrowser routes */
|
13
|
-
// The location of an external file browser, that should be launched when "Browse Server" button is pressed.
|
14
|
-
config.filebrowserBrowseUrl = "/ckeditor/attachment_files";
|
15
|
-
|
16
|
-
// The location of an external file browser, that should be launched when "Browse Server" button is pressed in the Flash dialog.
|
17
|
-
config.filebrowserFlashBrowseUrl = "/ckeditor/attachment_files";
|
18
|
-
|
19
|
-
// The location of a script that handles file uploads in the Flash dialog.
|
20
|
-
config.filebrowserFlashUploadUrl = "/ckeditor/attachment_files";
|
21
|
-
|
22
|
-
// The location of an external file browser, that should be launched when "Browse Server" button is pressed in the Link tab of Image dialog.
|
23
|
-
config.filebrowserImageBrowseLinkUrl = "/ckeditor/pictures";
|
24
|
-
|
25
|
-
// The location of an external file browser, that should be launched when "Browse Server" button is pressed in the Image dialog.
|
26
|
-
config.filebrowserImageBrowseUrl = "/ckeditor/pictures";
|
27
|
-
|
28
|
-
// The location of a script that handles file uploads in the Image dialog.
|
29
|
-
config.filebrowserImageUploadUrl = "/ckeditor/pictures";
|
30
|
-
|
31
|
-
// The location of a script that handles file uploads.
|
32
|
-
config.filebrowserUploadUrl = "/ckeditor/attachment_files";
|
33
|
-
|
34
|
-
// Rails CSRF token
|
35
|
-
config.filebrowserParams = function(){
|
36
|
-
var csrf_token = $('meta[name=csrf-token]').attr('content'),
|
37
|
-
csrf_param = $('meta[name=csrf-param]').attr('content'),
|
38
|
-
params = new Object();
|
39
|
-
|
40
|
-
if (csrf_param !== undefined && csrf_token !== undefined) {
|
41
|
-
params[csrf_param] = csrf_token;
|
42
|
-
}
|
43
|
-
|
44
|
-
return params;
|
45
|
-
};
|
46
|
-
|
47
|
-
/* Extra plugins */
|
48
|
-
// works only with en, ru, uk locales
|
49
|
-
config.extraPlugins = "embed,attachment";
|
50
|
-
|
51
|
-
/* Toolbars */
|
52
|
-
config.toolbar = 'Easy';
|
53
|
-
|
54
|
-
config.toolbar_Easy =
|
55
|
-
[
|
56
|
-
// ['Source','-','Preview'],
|
57
|
-
['PasteFromWord'],
|
58
|
-
// ['Undo','Redo','-','SelectAll','RemoveFormat'],
|
59
|
-
['Styles','Format']
|
60
|
-
// , ['Subscript', 'Superscript', 'TextColor'], ['Maximize','-','About'], '/',
|
61
|
-
['Bold','Italic','Underline','Strike'], ['NumberedList','BulletedList'],
|
62
|
-
// ['JustifyLeft','JustifyCenter','JustifyRight','JustifyBlock'],
|
63
|
-
['Link','Unlink'], ['Image', 'Attachment', 'Flash', 'Embed'],
|
64
|
-
['Table','SpecialChar']
|
65
|
-
];
|
66
|
-
|
67
|
-
// config.toolbar_Easy =
|
68
|
-
// [
|
69
|
-
// ['Source','-','Preview'],
|
70
|
-
// ['Cut','Copy','Paste','PasteText','PasteFromWord',],
|
71
|
-
// ['Undo','Redo','-','SelectAll','RemoveFormat'],
|
72
|
-
// ['Styles','Format'], ['Subscript', 'Superscript', 'TextColor'], ['Maximize','-','About'], '/',
|
73
|
-
// ['Bold','Italic','Underline','Strike'], ['NumberedList','BulletedList','-','Outdent','Indent','Blockquote'],
|
74
|
-
// ['JustifyLeft','JustifyCenter','JustifyRight','JustifyBlock'],
|
75
|
-
// ['Link','Unlink','Anchor'], ['Image', 'Attachment', 'Flash', 'Embed'],
|
76
|
-
// ['Table','HorizontalRule','Smiley','SpecialChar','PageBreak']
|
77
|
-
// ];
|
78
|
-
};
|
@@ -1,25 +0,0 @@
|
|
1
|
-
/*
|
2
|
-
Copyright (c) 2003-2011, CKSource - Frederico Knabben. All rights reserved.
|
3
|
-
For licensing, see LICENSE.html or http://ckeditor.com/license
|
4
|
-
*/
|
5
|
-
|
6
|
-
body
|
7
|
-
{
|
8
|
-
/* Font */
|
9
|
-
font-family: Arial, Verdana, sans-serif;
|
10
|
-
font-size: 12px;
|
11
|
-
|
12
|
-
/* Text color */
|
13
|
-
color: #222;
|
14
|
-
|
15
|
-
/* Remove the background color to make it transparent */
|
16
|
-
background-color: #fff;
|
17
|
-
}
|
18
|
-
|
19
|
-
ol,ul,dl
|
20
|
-
{
|
21
|
-
/* IE7: reset rtl list margin. (#7334) */
|
22
|
-
*margin-right:0px;
|
23
|
-
/* preserved spaces for list items with text direction other than the list. (#6249,#8049)*/
|
24
|
-
padding:0 40px;
|
25
|
-
}
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
@@ -1,222 +0,0 @@
|
|
1
|
-
(function($) {
|
2
|
-
$.QueryString = (function(a) {
|
3
|
-
if (a == "") return {};
|
4
|
-
var b = {};
|
5
|
-
for (var i = 0; i < a.length; ++i)
|
6
|
-
{
|
7
|
-
var p=a[i].split('=');
|
8
|
-
if (p.length != 2) continue;
|
9
|
-
b[p[0]] = decodeURIComponent(p[1].replace(/\+/g, " "));
|
10
|
-
}
|
11
|
-
return b;
|
12
|
-
})(window.location.search.substr(1).split('&'))
|
13
|
-
})(jQuery);
|
14
|
-
|
15
|
-
$(document).ready(function(){
|
16
|
-
$("div.gal-item div.gal-inner-holder")
|
17
|
-
.live('mouseover', function(e){
|
18
|
-
$(this).addClass('hover');
|
19
|
-
})
|
20
|
-
.live('mouseout', function(e){
|
21
|
-
$(this).removeClass('hover');
|
22
|
-
})
|
23
|
-
.live('click', function(e){
|
24
|
-
var url = $(this).parents('div.gal-item').data('url');
|
25
|
-
CKEDITOR.tools.callFunction(CKEditorFuncNum, url);
|
26
|
-
window.close();
|
27
|
-
});
|
28
|
-
|
29
|
-
$("div.gal-item a.gal-del").live('ajax:complete', function(xhr, status){
|
30
|
-
$(this).parents('div.gal-item').remove();
|
31
|
-
});
|
32
|
-
});
|
33
|
-
|
34
|
-
// Collection of all instances on page
|
35
|
-
qq.FileUploader.instances = new Object();
|
36
|
-
|
37
|
-
/**
|
38
|
-
* Class that creates upload widget with drag-and-drop and file list
|
39
|
-
* @inherits qq.FileUploaderBasic
|
40
|
-
*/
|
41
|
-
qq.FileUploaderInput = function(o){
|
42
|
-
// call parent constructor
|
43
|
-
qq.FileUploaderBasic.apply(this, arguments);
|
44
|
-
|
45
|
-
// additional options
|
46
|
-
qq.extend(this._options, {
|
47
|
-
element: null,
|
48
|
-
// if set, will be used instead of qq-upload-list in template
|
49
|
-
listElement: null,
|
50
|
-
|
51
|
-
template_id: '#fileupload_tmpl',
|
52
|
-
|
53
|
-
classes: {
|
54
|
-
// used to get elements from templates
|
55
|
-
button: 'fileupload-button',
|
56
|
-
drop: 'fileupload-drop-area',
|
57
|
-
dropActive: 'fileupload-drop-area-active',
|
58
|
-
list: 'fileupload-list',
|
59
|
-
preview: 'fileupload-preview',
|
60
|
-
|
61
|
-
file: 'fileupload-file',
|
62
|
-
spinner: 'fileupload-spinner',
|
63
|
-
size: 'fileupload-size',
|
64
|
-
cancel: 'fileupload-cancel',
|
65
|
-
|
66
|
-
// added to list item when upload completes
|
67
|
-
// used in css to hide progress spinner
|
68
|
-
success: 'fileupload-success',
|
69
|
-
fail: 'fileupload-fail'
|
70
|
-
}
|
71
|
-
});
|
72
|
-
// overwrite options with user supplied
|
73
|
-
qq.extend(this._options, o);
|
74
|
-
|
75
|
-
this._element = document.getElementById(this._options.element);
|
76
|
-
this._listElement = this._options.listElement || this._find(this._element, 'list');
|
77
|
-
|
78
|
-
this._classes = this._options.classes;
|
79
|
-
|
80
|
-
this._button = this._createUploadButton(this._find(this._element, 'button'));
|
81
|
-
|
82
|
-
//this._setupDragDrop();
|
83
|
-
|
84
|
-
qq.FileUploader.instances[this._element.id] = this;
|
85
|
-
};
|
86
|
-
|
87
|
-
// inherit from Basic Uploader
|
88
|
-
qq.extend(qq.FileUploaderInput.prototype, qq.FileUploaderBasic.prototype);
|
89
|
-
|
90
|
-
qq.extend(qq.FileUploaderInput.prototype, {
|
91
|
-
/**
|
92
|
-
* Gets one of the elements listed in this._options.classes
|
93
|
-
**/
|
94
|
-
_find: function(parent, type){
|
95
|
-
var element = qq.getByClass(parent, this._options.classes[type])[0];
|
96
|
-
if (!element){
|
97
|
-
alert(type);
|
98
|
-
throw new Error('element not found ' + type);
|
99
|
-
}
|
100
|
-
|
101
|
-
return element;
|
102
|
-
},
|
103
|
-
_setupDragDrop: function(){
|
104
|
-
var self = this,
|
105
|
-
dropArea = this._find(this._element, 'drop');
|
106
|
-
|
107
|
-
var dz = new qq.UploadDropZone({
|
108
|
-
element: dropArea,
|
109
|
-
onEnter: function(e){
|
110
|
-
qq.addClass(dropArea, self._classes.dropActive);
|
111
|
-
e.stopPropagation();
|
112
|
-
},
|
113
|
-
onLeave: function(e){
|
114
|
-
e.stopPropagation();
|
115
|
-
},
|
116
|
-
onLeaveNotDescendants: function(e){
|
117
|
-
qq.removeClass(dropArea, self._classes.dropActive);
|
118
|
-
},
|
119
|
-
onDrop: function(e){
|
120
|
-
dropArea.style.display = 'none';
|
121
|
-
qq.removeClass(dropArea, self._classes.dropActive);
|
122
|
-
self._uploadFileList(e.dataTransfer.files);
|
123
|
-
}
|
124
|
-
});
|
125
|
-
|
126
|
-
dropArea.style.display = 'none';
|
127
|
-
|
128
|
-
qq.attach(document, 'dragenter', function(e){
|
129
|
-
if (!dz._isValidFileDrag(e)) return;
|
130
|
-
|
131
|
-
dropArea.style.display = 'block';
|
132
|
-
});
|
133
|
-
qq.attach(document, 'dragleave', function(e){
|
134
|
-
if (!dz._isValidFileDrag(e)) return;
|
135
|
-
|
136
|
-
var relatedTarget = document.elementFromPoint(e.clientX, e.clientY);
|
137
|
-
// only fire when leaving document out
|
138
|
-
if ( ! relatedTarget || relatedTarget.nodeName == "HTML"){
|
139
|
-
dropArea.style.display = 'none';
|
140
|
-
}
|
141
|
-
});
|
142
|
-
},
|
143
|
-
_onSubmit: function(id, fileName){
|
144
|
-
qq.FileUploaderBasic.prototype._onSubmit.apply(this, arguments);
|
145
|
-
this._addToList(id, fileName);
|
146
|
-
},
|
147
|
-
_onProgress: function(id, fileName, loaded, total){
|
148
|
-
qq.FileUploaderBasic.prototype._onProgress.apply(this, arguments);
|
149
|
-
|
150
|
-
var item = this._getItemByFileId(id);
|
151
|
-
var size = this._find(item, 'size');
|
152
|
-
|
153
|
-
var text;
|
154
|
-
if (loaded != total){
|
155
|
-
text = Math.round(loaded / total * 100) + '% from ' + this._formatSize(total);
|
156
|
-
} else {
|
157
|
-
text = this._formatSize(total);
|
158
|
-
}
|
159
|
-
|
160
|
-
qq.setText(size, text);
|
161
|
-
},
|
162
|
-
_onComplete: function(id, fileName, result){
|
163
|
-
qq.FileUploaderBasic.prototype._onComplete.apply(this, arguments);
|
164
|
-
|
165
|
-
var item = this._getItemByFileId(id);
|
166
|
-
var asset = result.asset ? result.asset : result;
|
167
|
-
|
168
|
-
if (asset && asset.id){
|
169
|
-
qq.addClass(item, this._classes.success);
|
170
|
-
|
171
|
-
asset.size = this._formatSize(asset.size);
|
172
|
-
asset.controller = (asset.type.toLowerCase() == "ckeditor::picture" ? "pictures" : "attachment_files");
|
173
|
-
|
174
|
-
$(item).replaceWith($(this._options.template_id).tmpl(asset));
|
175
|
-
} else {
|
176
|
-
qq.addClass(item, this._classes.fail);
|
177
|
-
}
|
178
|
-
},
|
179
|
-
_addToList: function(id, fileName){
|
180
|
-
if (this._listElement) {
|
181
|
-
if (this._options.multiple === false) {
|
182
|
-
$(this._listElement).empty();
|
183
|
-
}
|
184
|
-
|
185
|
-
var asset = {
|
186
|
-
id: 0,
|
187
|
-
filename: this._formatFileName(fileName),
|
188
|
-
size: 0,
|
189
|
-
format_created_at: '',
|
190
|
-
url_content: "#",
|
191
|
-
controller: "assets",
|
192
|
-
url_thumb: "/javascripts/ckeditor/filebrowser/images/preloader.gif"
|
193
|
-
};
|
194
|
-
|
195
|
-
var item = $(this._options.template_id)
|
196
|
-
.tmpl(asset)
|
197
|
-
.attr('qqfileid', id)
|
198
|
-
.prependTo( this._listElement );
|
199
|
-
|
200
|
-
item.find('div.img').addClass('preloader');
|
201
|
-
|
202
|
-
this._bindCancelEvent(item);
|
203
|
-
}
|
204
|
-
},
|
205
|
-
_getItemByFileId: function(id){
|
206
|
-
return $(this._listElement).find('div[qqfileid=' + id +']').get(0);
|
207
|
-
},
|
208
|
-
/**
|
209
|
-
* delegate click event for cancel link
|
210
|
-
**/
|
211
|
-
_bindCancelEvent: function(element){
|
212
|
-
var self = this,
|
213
|
-
item = $(element);
|
214
|
-
|
215
|
-
item.find('a.' + this._classes.cancel).bind('click', function(e){
|
216
|
-
self._handler.cancel( item.attr('qqfileid') );
|
217
|
-
item.remove();
|
218
|
-
qq.preventDefault(e);
|
219
|
-
return false;
|
220
|
-
});
|
221
|
-
}
|
222
|
-
});
|