glebtv-ckeditor 4.0.1
Sign up to get free protection for your applications and to get access to all the features.
- data/Gemfile +4 -0
- data/MIT-LICENSE +20 -0
- data/README.rdoc +202 -0
- data/Rakefile +66 -0
- data/app/assets/javascripts/ckeditor/application.js +5 -0
- data/app/assets/javascripts/ckeditor/init.js +8 -0
- data/app/assets/stylesheets/ckeditor/application.css +6 -0
- data/app/controllers/ckeditor/application_controller.rb +32 -0
- data/app/controllers/ckeditor/attachment_files_controller.rb +24 -0
- data/app/controllers/ckeditor/pictures_controller.rb +24 -0
- data/app/views/ckeditor/attachment_files/index.html.erb +15 -0
- data/app/views/ckeditor/pictures/index.html.erb +15 -0
- data/app/views/ckeditor/shared/_asset.html.erb +20 -0
- data/app/views/ckeditor/shared/_asset_tmpl.html.erb +22 -0
- data/app/views/layouts/ckeditor/application.html.erb +31 -0
- data/app/views/rails_admin/main/_form_ckeditor.html.haml +3 -0
- data/config/locales/cs.ckeditor.yml +8 -0
- data/config/locales/en.ckeditor.yml +8 -0
- data/config/locales/es.ckeditor.yml +8 -0
- data/config/locales/fr.ckeditor.yml +8 -0
- data/config/locales/it.ckeditor.yml +8 -0
- data/config/locales/nl.ckeditor.yml +8 -0
- data/config/locales/pl.ckeditor.yml +8 -0
- data/config/locales/pt-BR.ckeditor.yml +8 -0
- data/config/locales/ru.ckeditor.yml +8 -0
- data/config/locales/sv-SE.ckeditor.yml +8 -0
- data/config/locales/uk.ckeditor.yml +8 -0
- data/config/locales/zh-CN.ckeditor.yml +8 -0
- data/config/routes.rb +4 -0
- data/lib/ckeditor.rb +81 -0
- data/lib/ckeditor/backend/carrierwave.rb +64 -0
- data/lib/ckeditor/backend/dragonfly.rb +45 -0
- data/lib/ckeditor/backend/paperclip.rb +56 -0
- data/lib/ckeditor/engine.rb +37 -0
- data/lib/ckeditor/helpers/controllers.rb +30 -0
- data/lib/ckeditor/helpers/form_builder.rb +11 -0
- data/lib/ckeditor/helpers/form_helper.rb +27 -0
- data/lib/ckeditor/helpers/view_helper.rb +22 -0
- data/lib/ckeditor/hooks/formtastic.rb +12 -0
- data/lib/ckeditor/hooks/simple_form.rb +9 -0
- data/lib/ckeditor/http.rb +89 -0
- data/lib/ckeditor/orm/active_record.rb +26 -0
- data/lib/ckeditor/orm/base.rb +46 -0
- data/lib/ckeditor/orm/mongoid.rb +43 -0
- data/lib/ckeditor/rails_admin/config/fields/types/ckeditor.rb +29 -0
- data/lib/ckeditor/utils.rb +70 -0
- data/lib/ckeditor/version.rb +6 -0
- data/lib/generators/ckeditor/install_generator.rb +83 -0
- data/lib/generators/ckeditor/templates/active_record/carrierwave/ckeditor/asset.rb +7 -0
- data/lib/generators/ckeditor/templates/active_record/carrierwave/ckeditor/attachment_file.rb +7 -0
- data/lib/generators/ckeditor/templates/active_record/carrierwave/ckeditor/picture.rb +7 -0
- data/lib/generators/ckeditor/templates/active_record/carrierwave/migration.rb +26 -0
- data/lib/generators/ckeditor/templates/active_record/dragonfly/ckeditor/asset.rb +7 -0
- data/lib/generators/ckeditor/templates/active_record/dragonfly/ckeditor/attachment_file.rb +7 -0
- data/lib/generators/ckeditor/templates/active_record/dragonfly/ckeditor/picture.rb +12 -0
- data/lib/generators/ckeditor/templates/active_record/dragonfly/migration.rb +27 -0
- data/lib/generators/ckeditor/templates/active_record/paperclip/ckeditor/asset.rb +4 -0
- data/lib/generators/ckeditor/templates/active_record/paperclip/ckeditor/attachment_file.rb +12 -0
- data/lib/generators/ckeditor/templates/active_record/paperclip/ckeditor/picture.rb +13 -0
- data/lib/generators/ckeditor/templates/active_record/paperclip/migration.rb +26 -0
- data/lib/generators/ckeditor/templates/base/carrierwave/uploaders/ckeditor_attachment_file_uploader.rb +42 -0
- data/lib/generators/ckeditor/templates/base/carrierwave/uploaders/ckeditor_picture_uploader.rb +53 -0
- data/lib/generators/ckeditor/templates/base/dragonfly/initializer.rb +26 -0
- data/lib/generators/ckeditor/templates/ckeditor.rb +18 -0
- data/lib/generators/ckeditor/templates/mongoid/carrierwave/ckeditor/asset.rb +7 -0
- data/lib/generators/ckeditor/templates/mongoid/carrierwave/ckeditor/attachment_file.rb +7 -0
- data/lib/generators/ckeditor/templates/mongoid/carrierwave/ckeditor/picture.rb +7 -0
- data/lib/generators/ckeditor/templates/mongoid/paperclip/ckeditor/asset.rb +5 -0
- data/lib/generators/ckeditor/templates/mongoid/paperclip/ckeditor/attachment_file.rb +12 -0
- data/lib/generators/ckeditor/templates/mongoid/paperclip/ckeditor/picture.rb +13 -0
- data/test/ckeditor_test.rb +13 -0
- data/test/controllers/attachment_files_controller_test.rb +63 -0
- data/test/controllers/pictures_controller_test.rb +64 -0
- data/test/dummy/Rakefile +7 -0
- data/test/dummy/app/assets/javascripts/application.js +11 -0
- data/test/dummy/app/assets/stylesheets/application.css +7 -0
- data/test/dummy/app/assets/stylesheets/scaffold.css +56 -0
- data/test/dummy/app/controllers/application_controller.rb +4 -0
- data/test/dummy/app/controllers/posts_controller.rb +83 -0
- data/test/dummy/app/helpers/application_helper.rb +2 -0
- data/test/dummy/app/helpers/posts_helper.rb +2 -0
- data/test/dummy/app/models/post.rb +17 -0
- data/test/dummy/app/views/layouts/application.html.erb +14 -0
- data/test/dummy/app/views/posts/_form.html.erb +30 -0
- data/test/dummy/app/views/posts/edit.html.erb +6 -0
- data/test/dummy/app/views/posts/index.html.erb +27 -0
- data/test/dummy/app/views/posts/new.html.erb +5 -0
- data/test/dummy/app/views/posts/show.html.erb +5 -0
- data/test/dummy/config.ru +4 -0
- data/test/dummy/config/application.rb +63 -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/ckeditor.rb +10 -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/mongoid.yml +2 -0
- data/test/dummy/config/routes.rb +6 -0
- data/test/dummy/db/migrate/20110623120047_create_posts.rb +14 -0
- data/test/dummy/public/404.html +26 -0
- data/test/dummy/public/422.html +26 -0
- data/test/dummy/public/500.html +26 -0
- data/test/dummy/public/favicon.ico +0 -0
- data/test/dummy/script/rails +6 -0
- data/test/dummy/test/fixtures/files/rails.png +0 -0
- data/test/dummy/test/fixtures/files/rails.tar.gz +0 -0
- data/test/functional/posts_controller_test.rb +41 -0
- data/test/generators/install_generator_test.rb +97 -0
- data/test/integration/navigation_test.rb +7 -0
- data/test/models/attachment_file_test.rb +22 -0
- data/test/models/picture_test.rb +21 -0
- data/test/models/utils_test.rb +19 -0
- data/test/orm/active_record.rb +1 -0
- data/test/orm/mongoid.rb +6 -0
- data/test/support/controller_hooks.rb +27 -0
- data/test/support/helpers.rb +30 -0
- data/test/support/integration_case.rb +5 -0
- data/test/support/raw_post.rb +9 -0
- data/test/support/routes.txt +4 -0
- data/test/test_helper.rb +38 -0
- data/vendor/assets/javascripts/ckeditor/CHANGES.md +56 -0
- data/vendor/assets/javascripts/ckeditor/LICENSE.md +1264 -0
- data/vendor/assets/javascripts/ckeditor/README.md +39 -0
- data/vendor/assets/javascripts/ckeditor/build-config.js +161 -0
- data/vendor/assets/javascripts/ckeditor/ckeditor.js +873 -0
- data/vendor/assets/javascripts/ckeditor/config.js.erb +69 -0
- data/vendor/assets/javascripts/ckeditor/contents.css +99 -0
- data/vendor/assets/javascripts/ckeditor/filebrowser/images/gal_add.jpg +0 -0
- data/vendor/assets/javascripts/ckeditor/filebrowser/images/gal_add.png +0 -0
- data/vendor/assets/javascripts/ckeditor/filebrowser/images/gal_del.png +0 -0
- data/vendor/assets/javascripts/ckeditor/filebrowser/images/gal_more.gif +0 -0
- data/vendor/assets/javascripts/ckeditor/filebrowser/images/preloader.gif +0 -0
- data/vendor/assets/javascripts/ckeditor/filebrowser/images/thumbs/avi.gif +0 -0
- data/vendor/assets/javascripts/ckeditor/filebrowser/images/thumbs/ckfnothumb.gif +0 -0
- data/vendor/assets/javascripts/ckeditor/filebrowser/images/thumbs/doc.gif +0 -0
- data/vendor/assets/javascripts/ckeditor/filebrowser/images/thumbs/docx.gif +0 -0
- data/vendor/assets/javascripts/ckeditor/filebrowser/images/thumbs/exe.gif +0 -0
- data/vendor/assets/javascripts/ckeditor/filebrowser/images/thumbs/gz.gif +0 -0
- data/vendor/assets/javascripts/ckeditor/filebrowser/images/thumbs/htm.gif +0 -0
- data/vendor/assets/javascripts/ckeditor/filebrowser/images/thumbs/jpg.gif +0 -0
- data/vendor/assets/javascripts/ckeditor/filebrowser/images/thumbs/mp3.gif +0 -0
- data/vendor/assets/javascripts/ckeditor/filebrowser/images/thumbs/mpg.gif +0 -0
- data/vendor/assets/javascripts/ckeditor/filebrowser/images/thumbs/pdf.gif +0 -0
- data/vendor/assets/javascripts/ckeditor/filebrowser/images/thumbs/psd.gif +0 -0
- data/vendor/assets/javascripts/ckeditor/filebrowser/images/thumbs/rar.gif +0 -0
- data/vendor/assets/javascripts/ckeditor/filebrowser/images/thumbs/swf.gif +0 -0
- data/vendor/assets/javascripts/ckeditor/filebrowser/images/thumbs/tar.gif +0 -0
- data/vendor/assets/javascripts/ckeditor/filebrowser/images/thumbs/txt.gif +0 -0
- data/vendor/assets/javascripts/ckeditor/filebrowser/images/thumbs/unknown.gif +0 -0
- data/vendor/assets/javascripts/ckeditor/filebrowser/images/thumbs/wmv.gif +0 -0
- data/vendor/assets/javascripts/ckeditor/filebrowser/images/thumbs/xls.gif +0 -0
- data/vendor/assets/javascripts/ckeditor/filebrowser/images/thumbs/xlsx.gif +0 -0
- data/vendor/assets/javascripts/ckeditor/filebrowser/images/thumbs/zip.gif +0 -0
- data/vendor/assets/javascripts/ckeditor/filebrowser/javascripts/application.js +221 -0
- data/vendor/assets/javascripts/ckeditor/filebrowser/javascripts/fileuploader.js +1301 -0
- data/vendor/assets/javascripts/ckeditor/filebrowser/javascripts/jquery.min.js +4 -0
- data/vendor/assets/javascripts/ckeditor/filebrowser/javascripts/jquery.tmpl.min.js +10 -0
- data/vendor/assets/javascripts/ckeditor/filebrowser/javascripts/rails.js +373 -0
- data/vendor/assets/javascripts/ckeditor/filebrowser/stylesheets/uploader.css.sass +102 -0
- data/vendor/assets/javascripts/ckeditor/lang/af.js +5 -0
- data/vendor/assets/javascripts/ckeditor/lang/ar.js +5 -0
- data/vendor/assets/javascripts/ckeditor/lang/bg.js +5 -0
- data/vendor/assets/javascripts/ckeditor/lang/bn.js +5 -0
- data/vendor/assets/javascripts/ckeditor/lang/bs.js +5 -0
- data/vendor/assets/javascripts/ckeditor/lang/ca.js +5 -0
- data/vendor/assets/javascripts/ckeditor/lang/cs.js +5 -0
- data/vendor/assets/javascripts/ckeditor/lang/cy.js +5 -0
- data/vendor/assets/javascripts/ckeditor/lang/da.js +5 -0
- data/vendor/assets/javascripts/ckeditor/lang/de.js +5 -0
- data/vendor/assets/javascripts/ckeditor/lang/el.js +5 -0
- data/vendor/assets/javascripts/ckeditor/lang/en-au.js +5 -0
- data/vendor/assets/javascripts/ckeditor/lang/en-ca.js +5 -0
- data/vendor/assets/javascripts/ckeditor/lang/en-gb.js +5 -0
- data/vendor/assets/javascripts/ckeditor/lang/en.js +5 -0
- data/vendor/assets/javascripts/ckeditor/lang/eo.js +5 -0
- data/vendor/assets/javascripts/ckeditor/lang/es.js +5 -0
- data/vendor/assets/javascripts/ckeditor/lang/et.js +5 -0
- data/vendor/assets/javascripts/ckeditor/lang/eu.js +5 -0
- data/vendor/assets/javascripts/ckeditor/lang/fa.js +5 -0
- data/vendor/assets/javascripts/ckeditor/lang/fi.js +5 -0
- data/vendor/assets/javascripts/ckeditor/lang/fo.js +5 -0
- data/vendor/assets/javascripts/ckeditor/lang/fr-ca.js +5 -0
- data/vendor/assets/javascripts/ckeditor/lang/fr.js +5 -0
- data/vendor/assets/javascripts/ckeditor/lang/gl.js +5 -0
- data/vendor/assets/javascripts/ckeditor/lang/gu.js +5 -0
- data/vendor/assets/javascripts/ckeditor/lang/he.js +5 -0
- data/vendor/assets/javascripts/ckeditor/lang/hi.js +5 -0
- data/vendor/assets/javascripts/ckeditor/lang/hr.js +5 -0
- data/vendor/assets/javascripts/ckeditor/lang/hu.js +5 -0
- data/vendor/assets/javascripts/ckeditor/lang/is.js +5 -0
- data/vendor/assets/javascripts/ckeditor/lang/it.js +5 -0
- data/vendor/assets/javascripts/ckeditor/lang/ja.js +5 -0
- data/vendor/assets/javascripts/ckeditor/lang/ka.js +5 -0
- data/vendor/assets/javascripts/ckeditor/lang/km.js +5 -0
- data/vendor/assets/javascripts/ckeditor/lang/ko.js +5 -0
- data/vendor/assets/javascripts/ckeditor/lang/ku.js +5 -0
- data/vendor/assets/javascripts/ckeditor/lang/lt.js +5 -0
- data/vendor/assets/javascripts/ckeditor/lang/lv.js +5 -0
- data/vendor/assets/javascripts/ckeditor/lang/mk.js +5 -0
- data/vendor/assets/javascripts/ckeditor/lang/mn.js +5 -0
- data/vendor/assets/javascripts/ckeditor/lang/ms.js +5 -0
- data/vendor/assets/javascripts/ckeditor/lang/nb.js +5 -0
- data/vendor/assets/javascripts/ckeditor/lang/nl.js +5 -0
- data/vendor/assets/javascripts/ckeditor/lang/no.js +5 -0
- data/vendor/assets/javascripts/ckeditor/lang/pl.js +5 -0
- data/vendor/assets/javascripts/ckeditor/lang/pt-br.js +5 -0
- data/vendor/assets/javascripts/ckeditor/lang/pt.js +5 -0
- data/vendor/assets/javascripts/ckeditor/lang/ro.js +5 -0
- data/vendor/assets/javascripts/ckeditor/lang/ru.js +5 -0
- data/vendor/assets/javascripts/ckeditor/lang/sk.js +5 -0
- data/vendor/assets/javascripts/ckeditor/lang/sl.js +5 -0
- data/vendor/assets/javascripts/ckeditor/lang/sr-latn.js +5 -0
- data/vendor/assets/javascripts/ckeditor/lang/sr.js +5 -0
- data/vendor/assets/javascripts/ckeditor/lang/sv.js +5 -0
- data/vendor/assets/javascripts/ckeditor/lang/th.js +5 -0
- data/vendor/assets/javascripts/ckeditor/lang/tr.js +5 -0
- data/vendor/assets/javascripts/ckeditor/lang/ug.js +5 -0
- data/vendor/assets/javascripts/ckeditor/lang/uk.js +5 -0
- data/vendor/assets/javascripts/ckeditor/lang/vi.js +5 -0
- data/vendor/assets/javascripts/ckeditor/lang/zh-cn.js +5 -0
- data/vendor/assets/javascripts/ckeditor/lang/zh.js +5 -0
- data/vendor/assets/javascripts/ckeditor/plugins/CKCss/CKCss.xml +26 -0
- data/vendor/assets/javascripts/ckeditor/plugins/CKCss/ckcss.png +0 -0
- data/vendor/assets/javascripts/ckeditor/plugins/CKCss/ckcss1.png +0 -0
- data/vendor/assets/javascripts/ckeditor/plugins/CKCss/css/styles.css +10 -0
- data/vendor/assets/javascripts/ckeditor/plugins/CKCss/dialogs/ckcss.js +3589 -0
- data/vendor/assets/javascripts/ckeditor/plugins/CKCss/lang/en.js +16 -0
- data/vendor/assets/javascripts/ckeditor/plugins/CKCss/lang/ru.js +16 -0
- data/vendor/assets/javascripts/ckeditor/plugins/CKCss/plugin.js +62 -0
- data/vendor/assets/javascripts/ckeditor/plugins/LoremIpsum/images/icon.png +0 -0
- data/vendor/assets/javascripts/ckeditor/plugins/LoremIpsum/images/icon1.png +0 -0
- data/vendor/assets/javascripts/ckeditor/plugins/LoremIpsum/plugin.js +66 -0
- data/vendor/assets/javascripts/ckeditor/plugins/MediaEmbed/icons/mediaembed.png +0 -0
- data/vendor/assets/javascripts/ckeditor/plugins/MediaEmbed/images/icon.png +0 -0
- data/vendor/assets/javascripts/ckeditor/plugins/MediaEmbed/plugin.js +64 -0
- data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/a11yhelp.js +10 -0
- data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/_translationstatus.txt +25 -0
- data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/ar.js +9 -0
- data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/bg.js +9 -0
- data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/ca.js +9 -0
- data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/cs.js +10 -0
- data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/cy.js +9 -0
- data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/da.js +9 -0
- data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/de.js +10 -0
- data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/el.js +10 -0
- data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/en.js +9 -0
- data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/eo.js +10 -0
- data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/es.js +10 -0
- data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/et.js +9 -0
- data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/fa.js +9 -0
- data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/fi.js +10 -0
- data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/fr.js +10 -0
- data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/gu.js +9 -0
- data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/he.js +9 -0
- data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/hi.js +9 -0
- data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/hr.js +9 -0
- data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/hu.js +9 -0
- data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/it.js +10 -0
- data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/ja.js +9 -0
- data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/ku.js +10 -0
- data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/lt.js +9 -0
- data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/lv.js +10 -0
- data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/mk.js +9 -0
- data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/mn.js +9 -0
- data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/nb.js +9 -0
- data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/nl.js +10 -0
- data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/no.js +9 -0
- data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/pl.js +9 -0
- data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/pt-br.js +9 -0
- data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/pt.js +9 -0
- data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/ro.js +9 -0
- data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/ru.js +9 -0
- data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/sk.js +10 -0
- data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/sl.js +9 -0
- data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/sv.js +10 -0
- data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/tr.js +10 -0
- data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/ug.js +9 -0
- data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/uk.js +9 -0
- data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/vi.js +9 -0
- data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/zh-cn.js +7 -0
- data/vendor/assets/javascripts/ckeditor/plugins/about/dialogs/about.js +6 -0
- data/vendor/assets/javascripts/ckeditor/plugins/about/dialogs/logo_ckeditor.png +0 -0
- data/vendor/assets/javascripts/ckeditor/plugins/clipboard/dialogs/paste.js +11 -0
- data/vendor/assets/javascripts/ckeditor/plugins/code/code/code.js +48 -0
- data/vendor/assets/javascripts/ckeditor/plugins/code/images/code.png +0 -0
- data/vendor/assets/javascripts/ckeditor/plugins/code/plugin.js +17 -0
- data/vendor/assets/javascripts/ckeditor/plugins/codemirror/css/codemirror.css +239 -0
- data/vendor/assets/javascripts/ckeditor/plugins/codemirror/css/sourcecodepro-regular.eot +0 -0
- data/vendor/assets/javascripts/ckeditor/plugins/codemirror/css/sourcecodepro-regular.otf +0 -0
- data/vendor/assets/javascripts/ckeditor/plugins/codemirror/css/sourcecodepro-regular.svg +242 -0
- data/vendor/assets/javascripts/ckeditor/plugins/codemirror/css/sourcecodepro-regular.ttf +0 -0
- data/vendor/assets/javascripts/ckeditor/plugins/codemirror/css/sourcecodepro-regular.woff +0 -0
- data/vendor/assets/javascripts/ckeditor/plugins/codemirror/js/codemirror.js +4553 -0
- data/vendor/assets/javascripts/ckeditor/plugins/codemirror/js/css.js +465 -0
- data/vendor/assets/javascripts/ckeditor/plugins/codemirror/js/htmlmixed.js +84 -0
- data/vendor/assets/javascripts/ckeditor/plugins/codemirror/js/javascript.js +411 -0
- data/vendor/assets/javascripts/ckeditor/plugins/codemirror/js/util/closetag.js +85 -0
- data/vendor/assets/javascripts/ckeditor/plugins/codemirror/js/util/colorize.js +29 -0
- data/vendor/assets/javascripts/ckeditor/plugins/codemirror/js/util/continuecomment.js +36 -0
- data/vendor/assets/javascripts/ckeditor/plugins/codemirror/js/util/continuelist.js +28 -0
- data/vendor/assets/javascripts/ckeditor/plugins/codemirror/js/util/dialog.css +32 -0
- data/vendor/assets/javascripts/ckeditor/plugins/codemirror/js/util/dialog.js +75 -0
- data/vendor/assets/javascripts/ckeditor/plugins/codemirror/js/util/foldcode.js +182 -0
- data/vendor/assets/javascripts/ckeditor/plugins/codemirror/js/util/formatting.js +108 -0
- data/vendor/assets/javascripts/ckeditor/plugins/codemirror/js/util/javascript-hint.js +137 -0
- data/vendor/assets/javascripts/ckeditor/plugins/codemirror/js/util/loadmode.js +51 -0
- data/vendor/assets/javascripts/ckeditor/plugins/codemirror/js/util/match-highlighter.js +46 -0
- data/vendor/assets/javascripts/ckeditor/plugins/codemirror/js/util/matchbrackets.js +63 -0
- data/vendor/assets/javascripts/ckeditor/plugins/codemirror/js/util/multiplex.js +95 -0
- data/vendor/assets/javascripts/ckeditor/plugins/codemirror/js/util/overlay.js +59 -0
- data/vendor/assets/javascripts/ckeditor/plugins/codemirror/js/util/pig-hint.js +117 -0
- data/vendor/assets/javascripts/ckeditor/plugins/codemirror/js/util/runmode-standalone.js +90 -0
- data/vendor/assets/javascripts/ckeditor/plugins/codemirror/js/util/runmode.js +52 -0
- data/vendor/assets/javascripts/ckeditor/plugins/codemirror/js/util/search.js +119 -0
- data/vendor/assets/javascripts/ckeditor/plugins/codemirror/js/util/searchcursor.js +119 -0
- data/vendor/assets/javascripts/ckeditor/plugins/codemirror/js/util/simple-hint.css +16 -0
- data/vendor/assets/javascripts/ckeditor/plugins/codemirror/js/util/simple-hint.js +102 -0
- data/vendor/assets/javascripts/ckeditor/plugins/codemirror/js/util/xml-hint.js +131 -0
- data/vendor/assets/javascripts/ckeditor/plugins/codemirror/js/xml.js +324 -0
- data/vendor/assets/javascripts/ckeditor/plugins/codemirror/lang/af.js +7 -0
- data/vendor/assets/javascripts/ckeditor/plugins/codemirror/lang/ar.js +7 -0
- data/vendor/assets/javascripts/ckeditor/plugins/codemirror/lang/bg.js +7 -0
- data/vendor/assets/javascripts/ckeditor/plugins/codemirror/lang/bn.js +7 -0
- data/vendor/assets/javascripts/ckeditor/plugins/codemirror/lang/bs.js +7 -0
- data/vendor/assets/javascripts/ckeditor/plugins/codemirror/lang/ca.js +7 -0
- data/vendor/assets/javascripts/ckeditor/plugins/codemirror/lang/cs.js +7 -0
- data/vendor/assets/javascripts/ckeditor/plugins/codemirror/lang/cy.js +7 -0
- data/vendor/assets/javascripts/ckeditor/plugins/codemirror/lang/da.js +7 -0
- data/vendor/assets/javascripts/ckeditor/plugins/codemirror/lang/de.js +7 -0
- data/vendor/assets/javascripts/ckeditor/plugins/codemirror/lang/el.js +7 -0
- data/vendor/assets/javascripts/ckeditor/plugins/codemirror/lang/en-au.js +7 -0
- data/vendor/assets/javascripts/ckeditor/plugins/codemirror/lang/en-ca.js +7 -0
- data/vendor/assets/javascripts/ckeditor/plugins/codemirror/lang/en-gb.js +7 -0
- data/vendor/assets/javascripts/ckeditor/plugins/codemirror/lang/en.js +7 -0
- data/vendor/assets/javascripts/ckeditor/plugins/codemirror/lang/eo.js +7 -0
- data/vendor/assets/javascripts/ckeditor/plugins/codemirror/lang/es.js +7 -0
- data/vendor/assets/javascripts/ckeditor/plugins/codemirror/lang/et.js +7 -0
- data/vendor/assets/javascripts/ckeditor/plugins/codemirror/lang/eu.js +7 -0
- data/vendor/assets/javascripts/ckeditor/plugins/codemirror/lang/fa.js +7 -0
- data/vendor/assets/javascripts/ckeditor/plugins/codemirror/lang/fi.js +7 -0
- data/vendor/assets/javascripts/ckeditor/plugins/codemirror/lang/fo.js +7 -0
- data/vendor/assets/javascripts/ckeditor/plugins/codemirror/lang/fr-ca.js +7 -0
- data/vendor/assets/javascripts/ckeditor/plugins/codemirror/lang/fr.js +7 -0
- data/vendor/assets/javascripts/ckeditor/plugins/codemirror/lang/gl.js +7 -0
- data/vendor/assets/javascripts/ckeditor/plugins/codemirror/lang/gu.js +7 -0
- data/vendor/assets/javascripts/ckeditor/plugins/codemirror/lang/he.js +7 -0
- data/vendor/assets/javascripts/ckeditor/plugins/codemirror/lang/hi.js +7 -0
- data/vendor/assets/javascripts/ckeditor/plugins/codemirror/lang/hr.js +7 -0
- data/vendor/assets/javascripts/ckeditor/plugins/codemirror/lang/hu.js +7 -0
- data/vendor/assets/javascripts/ckeditor/plugins/codemirror/lang/is.js +7 -0
- data/vendor/assets/javascripts/ckeditor/plugins/codemirror/lang/it.js +7 -0
- data/vendor/assets/javascripts/ckeditor/plugins/codemirror/lang/ja.js +7 -0
- data/vendor/assets/javascripts/ckeditor/plugins/codemirror/lang/ka.js +7 -0
- data/vendor/assets/javascripts/ckeditor/plugins/codemirror/lang/km.js +7 -0
- data/vendor/assets/javascripts/ckeditor/plugins/codemirror/lang/ko.js +7 -0
- data/vendor/assets/javascripts/ckeditor/plugins/codemirror/lang/ku.js +7 -0
- data/vendor/assets/javascripts/ckeditor/plugins/codemirror/lang/lt.js +7 -0
- data/vendor/assets/javascripts/ckeditor/plugins/codemirror/lang/lv.js +7 -0
- data/vendor/assets/javascripts/ckeditor/plugins/codemirror/lang/mk.js +7 -0
- data/vendor/assets/javascripts/ckeditor/plugins/codemirror/lang/mn.js +7 -0
- data/vendor/assets/javascripts/ckeditor/plugins/codemirror/lang/ms.js +7 -0
- data/vendor/assets/javascripts/ckeditor/plugins/codemirror/lang/nb.js +7 -0
- data/vendor/assets/javascripts/ckeditor/plugins/codemirror/lang/nl.js +7 -0
- data/vendor/assets/javascripts/ckeditor/plugins/codemirror/lang/no.js +7 -0
- data/vendor/assets/javascripts/ckeditor/plugins/codemirror/lang/pl.js +7 -0
- data/vendor/assets/javascripts/ckeditor/plugins/codemirror/lang/pt-br.js +7 -0
- data/vendor/assets/javascripts/ckeditor/plugins/codemirror/lang/pt.js +7 -0
- data/vendor/assets/javascripts/ckeditor/plugins/codemirror/lang/ro.js +7 -0
- data/vendor/assets/javascripts/ckeditor/plugins/codemirror/lang/ru.js +7 -0
- data/vendor/assets/javascripts/ckeditor/plugins/codemirror/lang/sk.js +7 -0
- data/vendor/assets/javascripts/ckeditor/plugins/codemirror/lang/sl.js +7 -0
- data/vendor/assets/javascripts/ckeditor/plugins/codemirror/lang/sr-latn.js +7 -0
- data/vendor/assets/javascripts/ckeditor/plugins/codemirror/lang/sr.js +7 -0
- data/vendor/assets/javascripts/ckeditor/plugins/codemirror/lang/sv.js +7 -0
- data/vendor/assets/javascripts/ckeditor/plugins/codemirror/lang/th.js +7 -0
- data/vendor/assets/javascripts/ckeditor/plugins/codemirror/lang/tr.js +7 -0
- data/vendor/assets/javascripts/ckeditor/plugins/codemirror/lang/ug.js +7 -0
- data/vendor/assets/javascripts/ckeditor/plugins/codemirror/lang/uk.js +7 -0
- data/vendor/assets/javascripts/ckeditor/plugins/codemirror/lang/vi.js +7 -0
- data/vendor/assets/javascripts/ckeditor/plugins/codemirror/lang/zh-cn.js +7 -0
- data/vendor/assets/javascripts/ckeditor/plugins/codemirror/lang/zh.js +7 -0
- data/vendor/assets/javascripts/ckeditor/plugins/codemirror/plugin.js +189 -0
- data/vendor/assets/javascripts/ckeditor/plugins/codemirror/theme/ambiance-mobile.css +6 -0
- data/vendor/assets/javascripts/ckeditor/plugins/codemirror/theme/ambiance.css +76 -0
- data/vendor/assets/javascripts/ckeditor/plugins/codemirror/theme/blackboard.css +25 -0
- data/vendor/assets/javascripts/ckeditor/plugins/codemirror/theme/cobalt.css +18 -0
- data/vendor/assets/javascripts/ckeditor/plugins/codemirror/theme/eclipse.css +25 -0
- data/vendor/assets/javascripts/ckeditor/plugins/codemirror/theme/elegant.css +10 -0
- data/vendor/assets/javascripts/ckeditor/plugins/codemirror/theme/erlang-dark.css +21 -0
- data/vendor/assets/javascripts/ckeditor/plugins/codemirror/theme/lesser-dark.css +44 -0
- data/vendor/assets/javascripts/ckeditor/plugins/codemirror/theme/monokai.css +28 -0
- data/vendor/assets/javascripts/ckeditor/plugins/codemirror/theme/neat.css +9 -0
- data/vendor/assets/javascripts/ckeditor/plugins/codemirror/theme/night.css +21 -0
- data/vendor/assets/javascripts/ckeditor/plugins/codemirror/theme/rubyblue.css +21 -0
- data/vendor/assets/javascripts/ckeditor/plugins/codemirror/theme/solarized.css +207 -0
- data/vendor/assets/javascripts/ckeditor/plugins/codemirror/theme/twilight.css +25 -0
- data/vendor/assets/javascripts/ckeditor/plugins/codemirror/theme/vibrant-ink.css +27 -0
- data/vendor/assets/javascripts/ckeditor/plugins/codemirror/theme/xq-dark.css +46 -0
- data/vendor/assets/javascripts/ckeditor/plugins/colordialog/dialogs/colordialog.js +13 -0
- data/vendor/assets/javascripts/ckeditor/plugins/dialog/dialogDefinition.js +4 -0
- data/vendor/assets/javascripts/ckeditor/plugins/div/dialogs/div.js +9 -0
- data/vendor/assets/javascripts/ckeditor/plugins/fakeobjects/images/spacer.gif +0 -0
- data/vendor/assets/javascripts/ckeditor/plugins/find/dialogs/find.js +24 -0
- data/vendor/assets/javascripts/ckeditor/plugins/flash/dialogs/flash.js +23 -0
- data/vendor/assets/javascripts/ckeditor/plugins/flash/images/placeholder.png +0 -0
- data/vendor/assets/javascripts/ckeditor/plugins/forms/dialogs/button.js +8 -0
- data/vendor/assets/javascripts/ckeditor/plugins/forms/dialogs/checkbox.js +8 -0
- data/vendor/assets/javascripts/ckeditor/plugins/forms/dialogs/form.js +8 -0
- data/vendor/assets/javascripts/ckeditor/plugins/forms/dialogs/hiddenfield.js +8 -0
- data/vendor/assets/javascripts/ckeditor/plugins/forms/dialogs/radio.js +8 -0
- data/vendor/assets/javascripts/ckeditor/plugins/forms/dialogs/select.js +20 -0
- data/vendor/assets/javascripts/ckeditor/plugins/forms/dialogs/textarea.js +8 -0
- data/vendor/assets/javascripts/ckeditor/plugins/forms/dialogs/textfield.js +10 -0
- data/vendor/assets/javascripts/ckeditor/plugins/forms/images/hiddenfield.gif +0 -0
- data/vendor/assets/javascripts/ckeditor/plugins/highslide/dialogs/hs.js +73 -0
- data/vendor/assets/javascripts/ckeditor/plugins/highslide/icon.png +0 -0
- data/vendor/assets/javascripts/ckeditor/plugins/highslide/lang/en.js +7 -0
- data/vendor/assets/javascripts/ckeditor/plugins/highslide/lang/ru.js +7 -0
- data/vendor/assets/javascripts/ckeditor/plugins/highslide/plugin.js +26 -0
- data/vendor/assets/javascripts/ckeditor/plugins/highslide/readme.txt +55 -0
- data/vendor/assets/javascripts/ckeditor/plugins/htmlbuttons/docs/install.html +93 -0
- data/vendor/assets/javascripts/ckeditor/plugins/htmlbuttons/docs/styles.css +59 -0
- data/vendor/assets/javascripts/ckeditor/plugins/htmlbuttons/icon1.png +0 -0
- data/vendor/assets/javascripts/ckeditor/plugins/htmlbuttons/icon2.png +0 -0
- data/vendor/assets/javascripts/ckeditor/plugins/htmlbuttons/icon3.png +0 -0
- data/vendor/assets/javascripts/ckeditor/plugins/htmlbuttons/plugin.js +71 -0
- data/vendor/assets/javascripts/ckeditor/plugins/icons.png +0 -0
- data/vendor/assets/javascripts/ckeditor/plugins/iframe/dialogs/iframe.js +10 -0
- data/vendor/assets/javascripts/ckeditor/plugins/iframe/images/placeholder.png +0 -0
- data/vendor/assets/javascripts/ckeditor/plugins/iframedialog/plugin.js +173 -0
- data/vendor/assets/javascripts/ckeditor/plugins/image/dialogs/image.js +41 -0
- data/vendor/assets/javascripts/ckeditor/plugins/image/images/noimage.png +0 -0
- data/vendor/assets/javascripts/ckeditor/plugins/link/dialogs/anchor.js +8 -0
- data/vendor/assets/javascripts/ckeditor/plugins/link/dialogs/link.js +36 -0
- data/vendor/assets/javascripts/ckeditor/plugins/link/images/anchor.png +0 -0
- data/vendor/assets/javascripts/ckeditor/plugins/liststyle/dialogs/liststyle.js +10 -0
- data/vendor/assets/javascripts/ckeditor/plugins/magicline/images/icon.png +0 -0
- data/vendor/assets/javascripts/ckeditor/plugins/oembed/images/icon.png +0 -0
- data/vendor/assets/javascripts/ckeditor/plugins/oembed/lang/de.js +9 -0
- data/vendor/assets/javascripts/ckeditor/plugins/oembed/lang/en.js +9 -0
- data/vendor/assets/javascripts/ckeditor/plugins/oembed/lang/fr.js +11 -0
- data/vendor/assets/javascripts/ckeditor/plugins/oembed/lang/nl.js +9 -0
- data/vendor/assets/javascripts/ckeditor/plugins/oembed/lang/ru.js +9 -0
- data/vendor/assets/javascripts/ckeditor/plugins/oembed/libs/jquery.oembed.js +781 -0
- data/vendor/assets/javascripts/ckeditor/plugins/oembed/libs/jquery.oembed.min.js +4 -0
- data/vendor/assets/javascripts/ckeditor/plugins/oembed/plugin.js +106 -0
- data/vendor/assets/javascripts/ckeditor/plugins/pagebreak/images/pagebreak.gif +0 -0
- data/vendor/assets/javascripts/ckeditor/plugins/pastefromword/filter/default.js +31 -0
- data/vendor/assets/javascripts/ckeditor/plugins/preview/preview.html +10 -0
- data/vendor/assets/javascripts/ckeditor/plugins/scayt/LICENSE.md +28 -0
- data/vendor/assets/javascripts/ckeditor/plugins/scayt/README.md +25 -0
- data/vendor/assets/javascripts/ckeditor/plugins/scayt/dialogs/options.js +19 -0
- data/vendor/assets/javascripts/ckeditor/plugins/scayt/dialogs/toolbar.css +71 -0
- data/vendor/assets/javascripts/ckeditor/plugins/showblocks/images/block_address.png +0 -0
- data/vendor/assets/javascripts/ckeditor/plugins/showblocks/images/block_blockquote.png +0 -0
- data/vendor/assets/javascripts/ckeditor/plugins/showblocks/images/block_div.png +0 -0
- data/vendor/assets/javascripts/ckeditor/plugins/showblocks/images/block_h1.png +0 -0
- data/vendor/assets/javascripts/ckeditor/plugins/showblocks/images/block_h2.png +0 -0
- data/vendor/assets/javascripts/ckeditor/plugins/showblocks/images/block_h3.png +0 -0
- data/vendor/assets/javascripts/ckeditor/plugins/showblocks/images/block_h4.png +0 -0
- data/vendor/assets/javascripts/ckeditor/plugins/showblocks/images/block_h5.png +0 -0
- data/vendor/assets/javascripts/ckeditor/plugins/showblocks/images/block_h6.png +0 -0
- data/vendor/assets/javascripts/ckeditor/plugins/showblocks/images/block_p.png +0 -0
- data/vendor/assets/javascripts/ckeditor/plugins/showblocks/images/block_pre.png +0 -0
- data/vendor/assets/javascripts/ckeditor/plugins/smiley/dialogs/smiley.js +10 -0
- data/vendor/assets/javascripts/ckeditor/plugins/smiley/images/angel_smile.gif +0 -0
- data/vendor/assets/javascripts/ckeditor/plugins/smiley/images/angry_smile.gif +0 -0
- data/vendor/assets/javascripts/ckeditor/plugins/smiley/images/broken_heart.gif +0 -0
- data/vendor/assets/javascripts/ckeditor/plugins/smiley/images/confused_smile.gif +0 -0
- data/vendor/assets/javascripts/ckeditor/plugins/smiley/images/cry_smile.gif +0 -0
- data/vendor/assets/javascripts/ckeditor/plugins/smiley/images/devil_smile.gif +0 -0
- data/vendor/assets/javascripts/ckeditor/plugins/smiley/images/embaressed_smile.gif +0 -0
- data/vendor/assets/javascripts/ckeditor/plugins/smiley/images/embarrassed_smile.gif +0 -0
- data/vendor/assets/javascripts/ckeditor/plugins/smiley/images/envelope.gif +0 -0
- data/vendor/assets/javascripts/ckeditor/plugins/smiley/images/heart.gif +0 -0
- data/vendor/assets/javascripts/ckeditor/plugins/smiley/images/kiss.gif +0 -0
- data/vendor/assets/javascripts/ckeditor/plugins/smiley/images/lightbulb.gif +0 -0
- data/vendor/assets/javascripts/ckeditor/plugins/smiley/images/omg_smile.gif +0 -0
- data/vendor/assets/javascripts/ckeditor/plugins/smiley/images/regular_smile.gif +0 -0
- data/vendor/assets/javascripts/ckeditor/plugins/smiley/images/sad_smile.gif +0 -0
- data/vendor/assets/javascripts/ckeditor/plugins/smiley/images/shades_smile.gif +0 -0
- data/vendor/assets/javascripts/ckeditor/plugins/smiley/images/teeth_smile.gif +0 -0
- data/vendor/assets/javascripts/ckeditor/plugins/smiley/images/thumbs_down.gif +0 -0
- data/vendor/assets/javascripts/ckeditor/plugins/smiley/images/thumbs_up.gif +0 -0
- data/vendor/assets/javascripts/ckeditor/plugins/smiley/images/tongue_smile.gif +0 -0
- data/vendor/assets/javascripts/ckeditor/plugins/smiley/images/tounge_smile.gif +0 -0
- data/vendor/assets/javascripts/ckeditor/plugins/smiley/images/whatchutalkingabout_smile.gif +0 -0
- data/vendor/assets/javascripts/ckeditor/plugins/smiley/images/wink_smile.gif +0 -0
- data/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/_translationstatus.txt +20 -0
- data/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/ca.js +13 -0
- data/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/cs.js +13 -0
- data/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/cy.js +14 -0
- data/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/de.js +13 -0
- data/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/el.js +13 -0
- data/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/en.js +13 -0
- data/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/eo.js +12 -0
- data/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/et.js +13 -0
- data/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/fa.js +13 -0
- data/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/fi.js +13 -0
- data/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/fr.js +11 -0
- data/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/he.js +13 -0
- data/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/hr.js +13 -0
- data/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/it.js +14 -0
- data/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/ku.js +14 -0
- data/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/lv.js +13 -0
- data/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/nb.js +11 -0
- data/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/nl.js +13 -0
- data/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/no.js +11 -0
- data/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/pt-br.js +11 -0
- data/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/sk.js +13 -0
- data/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/sv.js +11 -0
- data/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/tr.js +12 -0
- data/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/ug.js +13 -0
- data/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/zh-cn.js +9 -0
- data/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/specialchar.js +14 -0
- data/vendor/assets/javascripts/ckeditor/plugins/stylesheetparser/plugin.js +138 -0
- data/vendor/assets/javascripts/ckeditor/plugins/stylesheetparser/samples/assets/sample.css +70 -0
- data/vendor/assets/javascripts/ckeditor/plugins/stylesheetparser/samples/stylesheetparser.html +82 -0
- data/vendor/assets/javascripts/ckeditor/plugins/table/dialogs/table.js +20 -0
- data/vendor/assets/javascripts/ckeditor/plugins/tabletools/dialogs/tableCell.js +16 -0
- data/vendor/assets/javascripts/ckeditor/plugins/templates/dialogs/templates.css +84 -0
- data/vendor/assets/javascripts/ckeditor/plugins/templates/dialogs/templates.js +10 -0
- data/vendor/assets/javascripts/ckeditor/plugins/templates/templates/default.js +6 -0
- data/vendor/assets/javascripts/ckeditor/plugins/templates/templates/images/template1.gif +0 -0
- data/vendor/assets/javascripts/ckeditor/plugins/templates/templates/images/template2.gif +0 -0
- data/vendor/assets/javascripts/ckeditor/plugins/templates/templates/images/template3.gif +0 -0
- data/vendor/assets/javascripts/ckeditor/plugins/wordcount/lang/en.js +9 -0
- data/vendor/assets/javascripts/ckeditor/plugins/wordcount/lang/ru.js +9 -0
- data/vendor/assets/javascripts/ckeditor/plugins/wordcount/plugin.js +95 -0
- data/vendor/assets/javascripts/ckeditor/plugins/wsc/LICENSE.md +28 -0
- data/vendor/assets/javascripts/ckeditor/plugins/wsc/README.md +25 -0
- data/vendor/assets/javascripts/ckeditor/plugins/wsc/dialogs/ciframe.html +49 -0
- data/vendor/assets/javascripts/ckeditor/plugins/wsc/dialogs/tmpFrameset.html +52 -0
- data/vendor/assets/javascripts/ckeditor/plugins/wsc/dialogs/wsc.css +82 -0
- data/vendor/assets/javascripts/ckeditor/plugins/wsc/dialogs/wsc.js +11 -0
- data/vendor/assets/javascripts/ckeditor/samples/ajax.html +82 -0
- data/vendor/assets/javascripts/ckeditor/samples/api.html +207 -0
- data/vendor/assets/javascripts/ckeditor/samples/appendto.html +57 -0
- data/vendor/assets/javascripts/ckeditor/samples/assets/inlineall/logo.png +0 -0
- data/vendor/assets/javascripts/ckeditor/samples/assets/outputxhtml/outputxhtml.css +204 -0
- data/vendor/assets/javascripts/ckeditor/samples/assets/posteddata.php +59 -0
- data/vendor/assets/javascripts/ckeditor/samples/assets/sample.css +3 -0
- data/vendor/assets/javascripts/ckeditor/samples/assets/sample.jpg +0 -0
- data/vendor/assets/javascripts/ckeditor/samples/assets/uilanguages/languages.js +7 -0
- data/vendor/assets/javascripts/ckeditor/samples/divreplace.html +141 -0
- data/vendor/assets/javascripts/ckeditor/samples/index.html +119 -0
- data/vendor/assets/javascripts/ckeditor/samples/inlineall.html +311 -0
- data/vendor/assets/javascripts/ckeditor/samples/inlinebycode.html +122 -0
- data/vendor/assets/javascripts/ckeditor/samples/plugins/dialog/assets/my_dialog.js +48 -0
- data/vendor/assets/javascripts/ckeditor/samples/plugins/dialog/dialog.html +187 -0
- data/vendor/assets/javascripts/ckeditor/samples/plugins/enterkey/enterkey.html +103 -0
- data/vendor/assets/javascripts/ckeditor/samples/plugins/htmlwriter/assets/outputforflash/outputforflash.fla +0 -0
- data/vendor/assets/javascripts/ckeditor/samples/plugins/htmlwriter/assets/outputforflash/outputforflash.swf +0 -0
- data/vendor/assets/javascripts/ckeditor/samples/plugins/htmlwriter/assets/outputforflash/swfobject.js +18 -0
- data/vendor/assets/javascripts/ckeditor/samples/plugins/htmlwriter/outputforflash.html +280 -0
- data/vendor/assets/javascripts/ckeditor/samples/plugins/htmlwriter/outputhtml.html +237 -0
- data/vendor/assets/javascripts/ckeditor/samples/plugins/magicline/magicline.html +203 -0
- data/vendor/assets/javascripts/ckeditor/samples/plugins/toolbar/toolbar.html +200 -0
- data/vendor/assets/javascripts/ckeditor/samples/plugins/wysiwygarea/fullpage.html +71 -0
- data/vendor/assets/javascripts/ckeditor/samples/readonly.html +73 -0
- data/vendor/assets/javascripts/ckeditor/samples/replacebyclass.html +57 -0
- data/vendor/assets/javascripts/ckeditor/samples/replacebycode.html +56 -0
- data/vendor/assets/javascripts/ckeditor/samples/sample.css +333 -0
- data/vendor/assets/javascripts/ckeditor/samples/sample.js +5 -0
- data/vendor/assets/javascripts/ckeditor/samples/sample_posteddata.php +16 -0
- data/vendor/assets/javascripts/ckeditor/samples/tabindex.html +75 -0
- data/vendor/assets/javascripts/ckeditor/samples/uicolor.html +69 -0
- data/vendor/assets/javascripts/ckeditor/samples/uilanguages.html +119 -0
- data/vendor/assets/javascripts/ckeditor/samples/xhtmlstyle.html +219 -0
- data/vendor/assets/javascripts/ckeditor/skins/moono/dialog.css +5 -0
- data/vendor/assets/javascripts/ckeditor/skins/moono/dialog_ie.css +5 -0
- data/vendor/assets/javascripts/ckeditor/skins/moono/dialog_ie7.css +5 -0
- data/vendor/assets/javascripts/ckeditor/skins/moono/dialog_ie8.css +5 -0
- data/vendor/assets/javascripts/ckeditor/skins/moono/dialog_iequirks.css +687 -0
- data/vendor/assets/javascripts/ckeditor/skins/moono/dialog_opera.css +5 -0
- data/vendor/assets/javascripts/ckeditor/skins/moono/editor.css +5 -0
- data/vendor/assets/javascripts/ckeditor/skins/moono/editor_gecko.css +5 -0
- data/vendor/assets/javascripts/ckeditor/skins/moono/editor_ie.css +5 -0
- data/vendor/assets/javascripts/ckeditor/skins/moono/editor_ie7.css +5 -0
- data/vendor/assets/javascripts/ckeditor/skins/moono/editor_ie8.css +5 -0
- data/vendor/assets/javascripts/ckeditor/skins/moono/editor_iequirks.css +1389 -0
- data/vendor/assets/javascripts/ckeditor/skins/moono/icons.png +0 -0
- data/vendor/assets/javascripts/ckeditor/skins/moono/images/arrow.png +0 -0
- data/vendor/assets/javascripts/ckeditor/skins/moono/images/close.png +0 -0
- data/vendor/assets/javascripts/ckeditor/skins/moono/images/mini.png +0 -0
- data/vendor/assets/javascripts/ckeditor/skins/moono/readme.md +51 -0
- data/vendor/assets/javascripts/ckeditor/styles.js +112 -0
- metadata +736 -0
@@ -0,0 +1,48 @@
|
|
1
|
+
/**
|
2
|
+
* Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved.
|
3
|
+
* For licensing, see LICENSE.html or http://ckeditor.com/license
|
4
|
+
*/
|
5
|
+
|
6
|
+
CKEDITOR.dialog.add( 'myDialog', function( editor ) {
|
7
|
+
return {
|
8
|
+
title: 'My Dialog',
|
9
|
+
minWidth: 400,
|
10
|
+
minHeight: 200,
|
11
|
+
contents: [
|
12
|
+
{
|
13
|
+
id: 'tab1',
|
14
|
+
label: 'First Tab',
|
15
|
+
title: 'First Tab',
|
16
|
+
elements: [
|
17
|
+
{
|
18
|
+
id: 'input1',
|
19
|
+
type: 'text',
|
20
|
+
label: 'Text Field'
|
21
|
+
},
|
22
|
+
{
|
23
|
+
id: 'select1',
|
24
|
+
type: 'select',
|
25
|
+
label: 'Select Field',
|
26
|
+
items: [
|
27
|
+
[ 'option1', 'value1' ],
|
28
|
+
[ 'option2', 'value2' ]
|
29
|
+
]
|
30
|
+
}
|
31
|
+
]
|
32
|
+
},
|
33
|
+
{
|
34
|
+
id: 'tab2',
|
35
|
+
label: 'Second Tab',
|
36
|
+
title: 'Second Tab',
|
37
|
+
elements: [
|
38
|
+
{
|
39
|
+
id: 'button1',
|
40
|
+
type: 'button',
|
41
|
+
label: 'Button Field'
|
42
|
+
}
|
43
|
+
]
|
44
|
+
}
|
45
|
+
]
|
46
|
+
};
|
47
|
+
});
|
48
|
+
|
@@ -0,0 +1,187 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
<!--
|
3
|
+
Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved.
|
4
|
+
For licensing, see LICENSE.html or http://ckeditor.com/license
|
5
|
+
-->
|
6
|
+
<html>
|
7
|
+
<head>
|
8
|
+
<title>Using API to Customize Dialog Windows — CKEditor Sample</title>
|
9
|
+
<meta charset="utf-8">
|
10
|
+
<script src="../../../ckeditor.js"></script>
|
11
|
+
<link rel="stylesheet" href="../../../samples/sample.css">
|
12
|
+
<meta name="ckeditor-sample-name" content="Using the JavaScript API to customize dialog windows">
|
13
|
+
<meta name="ckeditor-sample-group" content="Advanced Samples">
|
14
|
+
<meta name="ckeditor-sample-description" content="Using the dialog windows API to customize dialog windows without changing the original editor code.">
|
15
|
+
<style>
|
16
|
+
|
17
|
+
.cke_button__mybutton_icon
|
18
|
+
{
|
19
|
+
display: none !important;
|
20
|
+
}
|
21
|
+
|
22
|
+
.cke_button__mybutton_label
|
23
|
+
{
|
24
|
+
display: inline !important;
|
25
|
+
}
|
26
|
+
|
27
|
+
</style>
|
28
|
+
<script>
|
29
|
+
|
30
|
+
CKEDITOR.on( 'instanceCreated', function( ev ){
|
31
|
+
var editor = ev.editor;
|
32
|
+
|
33
|
+
// Listen for the "pluginsLoaded" event, so we are sure that the
|
34
|
+
// "dialog" plugin has been loaded and we are able to do our
|
35
|
+
// customizations.
|
36
|
+
editor.on( 'pluginsLoaded', function() {
|
37
|
+
|
38
|
+
// If our custom dialog has not been registered, do that now.
|
39
|
+
if ( !CKEDITOR.dialog.exists( 'myDialog' ) ) {
|
40
|
+
// We need to do the following trick to find out the dialog
|
41
|
+
// definition file URL path. In the real world, you would simply
|
42
|
+
// point to an absolute path directly, like "/mydir/mydialog.js".
|
43
|
+
var href = document.location.href.split( '/' );
|
44
|
+
href.pop();
|
45
|
+
href.push( 'assets/my_dialog.js' );
|
46
|
+
href = href.join( '/' );
|
47
|
+
|
48
|
+
// Finally, register the dialog.
|
49
|
+
CKEDITOR.dialog.add( 'myDialog', href );
|
50
|
+
}
|
51
|
+
|
52
|
+
// Register the command used to open the dialog.
|
53
|
+
editor.addCommand( 'myDialogCmd', new CKEDITOR.dialogCommand( 'myDialog' ) );
|
54
|
+
|
55
|
+
// Add the a custom toolbar buttons, which fires the above
|
56
|
+
// command..
|
57
|
+
editor.ui.add( 'MyButton', CKEDITOR.UI_BUTTON, {
|
58
|
+
label: 'My Dialog',
|
59
|
+
command: 'myDialogCmd'
|
60
|
+
});
|
61
|
+
});
|
62
|
+
});
|
63
|
+
|
64
|
+
// When opening a dialog, its "definition" is created for it, for
|
65
|
+
// each editor instance. The "dialogDefinition" event is then
|
66
|
+
// fired. We should use this event to make customizations to the
|
67
|
+
// definition of existing dialogs.
|
68
|
+
CKEDITOR.on( 'dialogDefinition', function( ev ) {
|
69
|
+
// Take the dialog name and its definition from the event data.
|
70
|
+
var dialogName = ev.data.name;
|
71
|
+
var dialogDefinition = ev.data.definition;
|
72
|
+
|
73
|
+
// Check if the definition is from the dialog we're
|
74
|
+
// interested on (the "Link" dialog).
|
75
|
+
if ( dialogName == 'myDialog' && ev.editor.name == 'editor2' ) {
|
76
|
+
// Get a reference to the "Link Info" tab.
|
77
|
+
var infoTab = dialogDefinition.getContents( 'tab1' );
|
78
|
+
|
79
|
+
// Add a new text field to the "tab1" tab page.
|
80
|
+
infoTab.add( {
|
81
|
+
type: 'text',
|
82
|
+
label: 'My Custom Field',
|
83
|
+
id: 'customField',
|
84
|
+
'default': 'Sample!',
|
85
|
+
validate: function() {
|
86
|
+
if ( ( /\d/ ).test( this.getValue() ) )
|
87
|
+
return 'My Custom Field must not contain digits';
|
88
|
+
}
|
89
|
+
});
|
90
|
+
|
91
|
+
// Remove the "select1" field from the "tab1" tab.
|
92
|
+
infoTab.remove( 'select1' );
|
93
|
+
|
94
|
+
// Set the default value for "input1" field.
|
95
|
+
var input1 = infoTab.get( 'input1' );
|
96
|
+
input1[ 'default' ] = 'www.example.com';
|
97
|
+
|
98
|
+
// Remove the "tab2" tab page.
|
99
|
+
dialogDefinition.removeContents( 'tab2' );
|
100
|
+
|
101
|
+
// Add a new tab to the "Link" dialog.
|
102
|
+
dialogDefinition.addContents( {
|
103
|
+
id: 'customTab',
|
104
|
+
label: 'My Tab',
|
105
|
+
accessKey: 'M',
|
106
|
+
elements: [
|
107
|
+
{
|
108
|
+
id: 'myField1',
|
109
|
+
type: 'text',
|
110
|
+
label: 'My Text Field'
|
111
|
+
},
|
112
|
+
{
|
113
|
+
id: 'myField2',
|
114
|
+
type: 'text',
|
115
|
+
label: 'Another Text Field'
|
116
|
+
}
|
117
|
+
]
|
118
|
+
});
|
119
|
+
|
120
|
+
// Provide the focus handler to start initial focus in "customField" field.
|
121
|
+
dialogDefinition.onFocus = function() {
|
122
|
+
var urlField = this.getContentElement( 'tab1', 'customField' );
|
123
|
+
urlField.select();
|
124
|
+
};
|
125
|
+
}
|
126
|
+
});
|
127
|
+
|
128
|
+
var config = {
|
129
|
+
extraPlugins: 'dialog',
|
130
|
+
toolbar: [ [ 'MyButton' ] ]
|
131
|
+
};
|
132
|
+
|
133
|
+
</script>
|
134
|
+
</head>
|
135
|
+
<body>
|
136
|
+
<h1 class="samples">
|
137
|
+
<a href="../../../samples/index.html">CKEditor Samples</a> » Using CKEditor Dialog API
|
138
|
+
</h1>
|
139
|
+
<div class="description">
|
140
|
+
<p>
|
141
|
+
This sample shows how to use the
|
142
|
+
<a class="samples" href="http://docs.ckeditor.com/#!/api/CKEDITOR.dialog">CKEditor Dialog API</a>
|
143
|
+
to customize CKEditor dialog windows without changing the original editor code.
|
144
|
+
The following customizations are being done in the example below:
|
145
|
+
</p>
|
146
|
+
<p>
|
147
|
+
For details on how to create this setup check the source code of this sample page.
|
148
|
+
</p>
|
149
|
+
</div>
|
150
|
+
<p>A custom dialog is added to the editors using the <code>pluginsLoaded</code> event, from an external <a target="_blank" href="assets/my_dialog.js">dialog definition file</a>:</p>
|
151
|
+
<ol>
|
152
|
+
<li><strong>Creating a custom dialog window</strong> – "My Dialog" dialog window opened with the "My Dialog" toolbar button.</li>
|
153
|
+
<li><strong>Creating a custom button</strong> – Add button to open the dialog with "My Dialog" toolbar button.</li>
|
154
|
+
</ol>
|
155
|
+
<textarea cols="80" id="editor1" name="editor1" rows="10"><p>This is some <strong>sample text</strong>. You are using <a href="http://ckeditor.com/">CKEditor</a>.</p></textarea>
|
156
|
+
<script>
|
157
|
+
// Replace the <textarea id="editor1"> with an CKEditor instance.
|
158
|
+
CKEDITOR.replace( 'editor1', config );
|
159
|
+
</script>
|
160
|
+
<p>The below editor modify the dialog definition of the above added dialog using the <code>dialogDefinition</code> event:</p>
|
161
|
+
<ol>
|
162
|
+
<li><strong>Adding dialog tab</strong> – Add new tab "My Tab" to dialog window.</li>
|
163
|
+
<li><strong>Removing a dialog window tab</strong> – Remove "Second Tab" page from the dialog window.</li>
|
164
|
+
<li><strong>Adding dialog window fields</strong> – Add "My Custom Field" to the dialog window.</li>
|
165
|
+
<li><strong>Removing dialog window field</strong> – Remove "Select Field" selection field from the dialog window.</li>
|
166
|
+
<li><strong>Setting default values for dialog window fields</strong> – Set default value of "Text Field" text field. </li>
|
167
|
+
<li><strong>Setup initial focus for dialog window</strong> – Put initial focus on "My Custom Field" text field. </li>
|
168
|
+
</ol>
|
169
|
+
<textarea cols="80" id="editor2" name="editor2" rows="10"><p>This is some <strong>sample text</strong>. You are using <a href="http://ckeditor.com/">CKEditor</a>.</p></textarea>
|
170
|
+
<script>
|
171
|
+
|
172
|
+
// Replace the <textarea id="editor1"> with an CKEditor instance.
|
173
|
+
CKEDITOR.replace( 'editor2', config );
|
174
|
+
|
175
|
+
</script>
|
176
|
+
<div id="footer">
|
177
|
+
<hr>
|
178
|
+
<p>
|
179
|
+
CKEditor - The text editor for the Internet - <a class="samples" href="http://ckeditor.com/">http://ckeditor.com</a>
|
180
|
+
</p>
|
181
|
+
<p id="copy">
|
182
|
+
Copyright © 2003-2013, <a class="samples" href="http://cksource.com/">CKSource</a> - Frederico
|
183
|
+
Knabben. All rights reserved.
|
184
|
+
</p>
|
185
|
+
</div>
|
186
|
+
</body>
|
187
|
+
</html>
|
@@ -0,0 +1,103 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
<!--
|
3
|
+
Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved.
|
4
|
+
For licensing, see LICENSE.html or http://ckeditor.com/license
|
5
|
+
-->
|
6
|
+
<html>
|
7
|
+
<head>
|
8
|
+
<title>ENTER Key Configuration — CKEditor Sample</title>
|
9
|
+
<meta charset="utf-8">
|
10
|
+
<script src="../../../ckeditor.js"></script>
|
11
|
+
<link href="../../../samples/sample.css" rel="stylesheet">
|
12
|
+
<meta name="ckeditor-sample-name" content="Using the "Enter" key in CKEditor">
|
13
|
+
<meta name="ckeditor-sample-group" content="Advanced Samples">
|
14
|
+
<meta name="ckeditor-sample-description" content="Configuring the behavior of <em>Enter</em> and <em>Shift+Enter</em> keys.">
|
15
|
+
<script>
|
16
|
+
|
17
|
+
var editor;
|
18
|
+
|
19
|
+
function changeEnter() {
|
20
|
+
// If we already have an editor, let's destroy it first.
|
21
|
+
if ( editor )
|
22
|
+
editor.destroy( true );
|
23
|
+
|
24
|
+
// Create the editor again, with the appropriate settings.
|
25
|
+
editor = CKEDITOR.replace( 'editor1', {
|
26
|
+
extraPlugins: 'enterkey',
|
27
|
+
enterMode: Number( document.getElementById( 'xEnter' ).value ),
|
28
|
+
shiftEnterMode: Number( document.getElementById( 'xShiftEnter' ).value )
|
29
|
+
});
|
30
|
+
}
|
31
|
+
|
32
|
+
window.onload = changeEnter;
|
33
|
+
|
34
|
+
</script>
|
35
|
+
</head>
|
36
|
+
<body>
|
37
|
+
<h1 class="samples">
|
38
|
+
<a href="../../../samples/index.html">CKEditor Samples</a> » ENTER Key Configuration
|
39
|
+
</h1>
|
40
|
+
<div class="description">
|
41
|
+
<p>
|
42
|
+
This sample shows how to configure the <em>Enter</em> and <em>Shift+Enter</em> keys
|
43
|
+
to perform actions specified in the
|
44
|
+
<a class="samples" href="http://docs.ckeditor.com/#!/api/CKEDITOR.config-cfg-enterMode"><code>enterMode</code></a>
|
45
|
+
and <a class="samples" href="http://docs.ckeditor.com/#!/api/CKEDITOR.config-cfg-shiftEnterMode"><code>shiftEnterMode</code></a>
|
46
|
+
parameters, respectively.
|
47
|
+
You can choose from the following options:
|
48
|
+
</p>
|
49
|
+
<ul class="samples">
|
50
|
+
<li><strong><code>ENTER_P</code></strong> – new <code><p></code> paragraphs are created;</li>
|
51
|
+
<li><strong><code>ENTER_BR</code></strong> – lines are broken with <code><br></code> elements;</li>
|
52
|
+
<li><strong><code>ENTER_DIV</code></strong> – new <code><div></code> blocks are created.</li>
|
53
|
+
</ul>
|
54
|
+
<p>
|
55
|
+
The sample code below shows how to configure CKEditor to create a <code><div></code> block when <em>Enter</em> key is pressed.
|
56
|
+
</p>
|
57
|
+
<pre class="samples">
|
58
|
+
CKEDITOR.replace( '<em>textarea_id</em>', {
|
59
|
+
<strong>enterMode: CKEDITOR.ENTER_DIV</strong>
|
60
|
+
});</pre>
|
61
|
+
<p>
|
62
|
+
Note that <code><em>textarea_id</em></code> in the code above is the <code>id</code> attribute of
|
63
|
+
the <code><textarea></code> element to be replaced.
|
64
|
+
</p>
|
65
|
+
</div>
|
66
|
+
<div style="float: left; margin-right: 20px">
|
67
|
+
When <em>Enter</em> is pressed:<br>
|
68
|
+
<select id="xEnter" onchange="changeEnter();">
|
69
|
+
<option selected="selected" value="1">Create a new <P> (recommended)</option>
|
70
|
+
<option value="3">Create a new <DIV></option>
|
71
|
+
<option value="2">Break the line with a <BR></option>
|
72
|
+
</select>
|
73
|
+
</div>
|
74
|
+
<div style="float: left">
|
75
|
+
When <em>Shift+Enter</em> is pressed:<br>
|
76
|
+
<select id="xShiftEnter" onchange="changeEnter();">
|
77
|
+
<option value="1">Create a new <P></option>
|
78
|
+
<option value="3">Create a new <DIV></option>
|
79
|
+
<option selected="selected" value="2">Break the line with a <BR> (recommended)</option>
|
80
|
+
</select>
|
81
|
+
</div>
|
82
|
+
<br style="clear: both">
|
83
|
+
<form action="../../../samples/sample_posteddata.php" method="post">
|
84
|
+
<p>
|
85
|
+
<br>
|
86
|
+
<textarea cols="80" id="editor1" name="editor1" rows="10">This is some <strong>sample text</strong>. You are using <a href="http://ckeditor.com/">CKEditor</a>.</textarea>
|
87
|
+
</p>
|
88
|
+
<p>
|
89
|
+
<input type="submit" value="Submit">
|
90
|
+
</p>
|
91
|
+
</form>
|
92
|
+
<div id="footer">
|
93
|
+
<hr>
|
94
|
+
<p>
|
95
|
+
CKEditor - The text editor for the Internet - <a class="samples" href="http://ckeditor.com/">http://ckeditor.com</a>
|
96
|
+
</p>
|
97
|
+
<p id="copy">
|
98
|
+
Copyright © 2003-2013, <a class="samples" href="http://cksource.com/">CKSource</a> - Frederico
|
99
|
+
Knabben. All rights reserved.
|
100
|
+
</p>
|
101
|
+
</div>
|
102
|
+
</body>
|
103
|
+
</html>
|
Binary file
|
Binary file
|
@@ -0,0 +1,18 @@
|
|
1
|
+
var swfobject=function(){function u(){if(!s){try{var a=d.getElementsByTagName("body")[0].appendChild(d.createElement("span"));a.parentNode.removeChild(a)}catch(b){return}s=!0;for(var a=x.length,c=0;c<a;c++)x[c]()}}function L(a){s?a():x[x.length]=a}function M(a){if(typeof m.addEventListener!=i)m.addEventListener("load",a,!1);else if(typeof d.addEventListener!=i)d.addEventListener("load",a,!1);else if(typeof m.attachEvent!=i)U(m,"onload",a);else if("function"==typeof m.onload){var b=m.onload;m.onload=
|
2
|
+
function(){b();a()}}else m.onload=a}function V(){var a=d.getElementsByTagName("body")[0],b=d.createElement(r);b.setAttribute("type",y);var c=a.appendChild(b);if(c){var f=0;(function(){if(typeof c.GetVariable!=i){var g=c.GetVariable("$version");g&&(g=g.split(" ")[1].split(","),e.pv=[parseInt(g[0],10),parseInt(g[1],10),parseInt(g[2],10)])}else if(10>f){f++;setTimeout(arguments.callee,10);return}a.removeChild(b);c=null;D()})()}else D()}function D(){var a=p.length;if(0<a)for(var b=0;b<a;b++){var c=p[b].id,
|
3
|
+
f=p[b].callbackFn,g={success:!1,id:c};if(0<e.pv[0]){var d=n(c);if(d)if(z(p[b].swfVersion)&&!(e.wk&&312>e.wk))t(c,!0),f&&(g.success=!0,g.ref=E(c),f(g));else if(p[b].expressInstall&&F()){g={};g.data=p[b].expressInstall;g.width=d.getAttribute("width")||"0";g.height=d.getAttribute("height")||"0";d.getAttribute("class")&&(g.styleclass=d.getAttribute("class"));d.getAttribute("align")&&(g.align=d.getAttribute("align"));for(var h={},d=d.getElementsByTagName("param"),j=d.length,k=0;k<j;k++)"movie"!=d[k].getAttribute("name").toLowerCase()&&
|
4
|
+
(h[d[k].getAttribute("name")]=d[k].getAttribute("value"));G(g,h,c,f)}else W(d),f&&f(g)}else if(t(c,!0),f){if((c=E(c))&&typeof c.SetVariable!=i)g.success=!0,g.ref=c;f(g)}}}function E(a){var b=null;if((a=n(a))&&"OBJECT"==a.nodeName)typeof a.SetVariable!=i?b=a:(a=a.getElementsByTagName(r)[0])&&(b=a);return b}function F(){return!A&&z("6.0.65")&&(e.win||e.mac)&&!(e.wk&&312>e.wk)}function G(a,b,c,f){A=!0;H=f||null;N={success:!1,id:c};var g=n(c);if(g){"OBJECT"==g.nodeName?(w=I(g),B=null):(w=g,B=c);a.id=
|
5
|
+
O;if(typeof a.width==i||!/%$/.test(a.width)&&310>parseInt(a.width,10))a.width="310";if(typeof a.height==i||!/%$/.test(a.height)&&137>parseInt(a.height,10))a.height="137";d.title=d.title.slice(0,47)+" - Flash Player Installation";f=e.ie&&e.win?"ActiveX":"PlugIn";f="MMredirectURL="+m.location.toString().replace(/&/g,"%26")+"&MMplayerType="+f+"&MMdoctitle="+d.title;b.flashvars=typeof b.flashvars!=i?b.flashvars+("&"+f):f;e.ie&&(e.win&&4!=g.readyState)&&(f=d.createElement("div"),c+="SWFObjectNew",f.setAttribute("id",
|
6
|
+
c),g.parentNode.insertBefore(f,g),g.style.display="none",function(){g.readyState==4?g.parentNode.removeChild(g):setTimeout(arguments.callee,10)}());J(a,b,c)}}function W(a){if(e.ie&&e.win&&4!=a.readyState){var b=d.createElement("div");a.parentNode.insertBefore(b,a);b.parentNode.replaceChild(I(a),b);a.style.display="none";(function(){4==a.readyState?a.parentNode.removeChild(a):setTimeout(arguments.callee,10)})()}else a.parentNode.replaceChild(I(a),a)}function I(a){var b=d.createElement("div");if(e.win&&
|
7
|
+
e.ie)b.innerHTML=a.innerHTML;else if(a=a.getElementsByTagName(r)[0])if(a=a.childNodes)for(var c=a.length,f=0;f<c;f++)!(1==a[f].nodeType&&"PARAM"==a[f].nodeName)&&8!=a[f].nodeType&&b.appendChild(a[f].cloneNode(!0));return b}function J(a,b,c){var f,g=n(c);if(e.wk&&312>e.wk)return f;if(g)if(typeof a.id==i&&(a.id=c),e.ie&&e.win){var o="",h;for(h in a)a[h]!=Object.prototype[h]&&("data"==h.toLowerCase()?b.movie=a[h]:"styleclass"==h.toLowerCase()?o+=' class="'+a[h]+'"':"classid"!=h.toLowerCase()&&(o+=" "+
|
8
|
+
h+'="'+a[h]+'"'));h="";for(var j in b)b[j]!=Object.prototype[j]&&(h+='<param name="'+j+'" value="'+b[j]+'" />');g.outerHTML='<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"'+o+">"+h+"</object>";C[C.length]=a.id;f=n(a.id)}else{j=d.createElement(r);j.setAttribute("type",y);for(var k in a)a[k]!=Object.prototype[k]&&("styleclass"==k.toLowerCase()?j.setAttribute("class",a[k]):"classid"!=k.toLowerCase()&&j.setAttribute(k,a[k]));for(o in b)b[o]!=Object.prototype[o]&&"movie"!=o.toLowerCase()&&
|
9
|
+
(a=j,h=o,k=b[o],c=d.createElement("param"),c.setAttribute("name",h),c.setAttribute("value",k),a.appendChild(c));g.parentNode.replaceChild(j,g);f=j}return f}function P(a){var b=n(a);b&&"OBJECT"==b.nodeName&&(e.ie&&e.win?(b.style.display="none",function(){if(4==b.readyState){var c=n(a);if(c){for(var f in c)"function"==typeof c[f]&&(c[f]=null);c.parentNode.removeChild(c)}}else setTimeout(arguments.callee,10)}()):b.parentNode.removeChild(b))}function n(a){var b=null;try{b=d.getElementById(a)}catch(c){}return b}
|
10
|
+
function U(a,b,c){a.attachEvent(b,c);v[v.length]=[a,b,c]}function z(a){var b=e.pv,a=a.split(".");a[0]=parseInt(a[0],10);a[1]=parseInt(a[1],10)||0;a[2]=parseInt(a[2],10)||0;return b[0]>a[0]||b[0]==a[0]&&b[1]>a[1]||b[0]==a[0]&&b[1]==a[1]&&b[2]>=a[2]?!0:!1}function Q(a,b,c,f){if(!e.ie||!e.mac){var g=d.getElementsByTagName("head")[0];if(g){c=c&&"string"==typeof c?c:"screen";f&&(K=l=null);if(!l||K!=c)f=d.createElement("style"),f.setAttribute("type","text/css"),f.setAttribute("media",c),l=g.appendChild(f),
|
11
|
+
e.ie&&(e.win&&typeof d.styleSheets!=i&&0<d.styleSheets.length)&&(l=d.styleSheets[d.styleSheets.length-1]),K=c;e.ie&&e.win?l&&typeof l.addRule==r&&l.addRule(a,b):l&&typeof d.createTextNode!=i&&l.appendChild(d.createTextNode(a+" {"+b+"}"))}}}function t(a,b){if(R){var c=b?"visible":"hidden";s&&n(a)?n(a).style.visibility=c:Q("#"+a,"visibility:"+c)}}function S(a){return null!=/[\\\"<>\.;]/.exec(a)&&typeof encodeURIComponent!=i?encodeURIComponent(a):a}var i="undefined",r="object",y="application/x-shockwave-flash",
|
12
|
+
O="SWFObjectExprInst",m=window,d=document,q=navigator,T=!1,x=[function(){T?V():D()}],p=[],C=[],v=[],w,B,H,N,s=!1,A=!1,l,K,R=!0,e=function(){var a=typeof d.getElementById!=i&&typeof d.getElementsByTagName!=i&&typeof d.createElement!=i,b=q.userAgent.toLowerCase(),c=q.platform.toLowerCase(),f=c?/win/.test(c):/win/.test(b),c=c?/mac/.test(c):/mac/.test(b),b=/webkit/.test(b)?parseFloat(b.replace(/^.*webkit\/(\d+(\.\d+)?).*$/,"$1")):!1,g=!+"\v1",e=[0,0,0],h=null;if(typeof q.plugins!=i&&typeof q.plugins["Shockwave Flash"]==
|
13
|
+
r){if((h=q.plugins["Shockwave Flash"].description)&&!(typeof q.mimeTypes!=i&&q.mimeTypes[y]&&!q.mimeTypes[y].enabledPlugin))T=!0,g=!1,h=h.replace(/^.*\s+(\S+\s+\S+$)/,"$1"),e[0]=parseInt(h.replace(/^(.*)\..*$/,"$1"),10),e[1]=parseInt(h.replace(/^.*\.(.*)\s.*$/,"$1"),10),e[2]=/[a-zA-Z]/.test(h)?parseInt(h.replace(/^.*[a-zA-Z]+(.*)$/,"$1"),10):0}else if(typeof m.ActiveXObject!=i)try{var j=new ActiveXObject("ShockwaveFlash.ShockwaveFlash");if(j&&(h=j.GetVariable("$version")))g=!0,h=h.split(" ")[1].split(","),
|
14
|
+
e=[parseInt(h[0],10),parseInt(h[1],10),parseInt(h[2],10)]}catch(k){}return{w3:a,pv:e,wk:b,ie:g,win:f,mac:c}}();(function(){e.w3&&((typeof d.readyState!=i&&"complete"==d.readyState||typeof d.readyState==i&&(d.getElementsByTagName("body")[0]||d.body))&&u(),s||(typeof d.addEventListener!=i&&d.addEventListener("DOMContentLoaded",u,!1),e.ie&&e.win&&(d.attachEvent("onreadystatechange",function(){"complete"==d.readyState&&(d.detachEvent("onreadystatechange",arguments.callee),u())}),m==top&&function(){if(!s){try{d.documentElement.doScroll("left")}catch(a){setTimeout(arguments.callee,
|
15
|
+
0);return}u()}}()),e.wk&&function(){s||(/loaded|complete/.test(d.readyState)?u():setTimeout(arguments.callee,0))}(),M(u)))})();(function(){e.ie&&e.win&&window.attachEvent("onunload",function(){for(var a=v.length,b=0;b<a;b++)v[b][0].detachEvent(v[b][1],v[b][2]);a=C.length;for(b=0;b<a;b++)P(C[b]);for(var c in e)e[c]=null;e=null;for(var f in swfobject)swfobject[f]=null;swfobject=null})})();return{registerObject:function(a,b,c,f){if(e.w3&&a&&b){var d={};d.id=a;d.swfVersion=b;d.expressInstall=c;d.callbackFn=
|
16
|
+
f;p[p.length]=d;t(a,!1)}else f&&f({success:!1,id:a})},getObjectById:function(a){if(e.w3)return E(a)},embedSWF:function(a,b,c,d,g,o,h,j,k,m){var n={success:!1,id:b};e.w3&&!(e.wk&&312>e.wk)&&a&&b&&c&&d&&g?(t(b,!1),L(function(){c+="";d+="";var e={};if(k&&typeof k===r)for(var l in k)e[l]=k[l];e.data=a;e.width=c;e.height=d;l={};if(j&&typeof j===r)for(var p in j)l[p]=j[p];if(h&&typeof h===r)for(var q in h)l.flashvars=typeof l.flashvars!=i?l.flashvars+("&"+q+"="+h[q]):q+"="+h[q];if(z(g))p=J(e,l,b),e.id==
|
17
|
+
b&&t(b,!0),n.success=!0,n.ref=p;else{if(o&&F()){e.data=o;G(e,l,b,m);return}t(b,!0)}m&&m(n)})):m&&m(n)},switchOffAutoHideShow:function(){R=!1},ua:e,getFlashPlayerVersion:function(){return{major:e.pv[0],minor:e.pv[1],release:e.pv[2]}},hasFlashPlayerVersion:z,createSWF:function(a,b,c){if(e.w3)return J(a,b,c)},showExpressInstall:function(a,b,c,d){e.w3&&F()&&G(a,b,c,d)},removeSWF:function(a){e.w3&&P(a)},createCSS:function(a,b,c,d){e.w3&&Q(a,b,c,d)},addDomLoadEvent:L,addLoadEvent:M,getQueryParamValue:function(a){var b=
|
18
|
+
d.location.search||d.location.hash;if(b){/\?/.test(b)&&(b=b.split("?")[1]);if(null==a)return S(b);for(var b=b.split("&"),c=0;c<b.length;c++)if(b[c].substring(0,b[c].indexOf("="))==a)return S(b[c].substring(b[c].indexOf("=")+1))}return""},expressInstallCallback:function(){if(A){var a=n(O);a&&w&&(a.parentNode.replaceChild(w,a),B&&(t(B,!0),e.ie&&e.win&&(w.style.display="block")),H&&H(N));A=!1}}}}();
|
@@ -0,0 +1,280 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
<!--
|
3
|
+
Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved.
|
4
|
+
For licensing, see LICENSE.html or http://ckeditor.com/license
|
5
|
+
-->
|
6
|
+
<html>
|
7
|
+
<head>
|
8
|
+
<title>Output for Flash — CKEditor Sample</title>
|
9
|
+
<meta charset="utf-8">
|
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-2013, <a class="samples" href="http://cksource.com/">CKSource</a> - Frederico
|
276
|
+
Knabben. All rights reserved.
|
277
|
+
</p>
|
278
|
+
</div>
|
279
|
+
</body>
|
280
|
+
</html>
|