glebtv-ckeditor 4.7.3 → 4.14.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/Gemfile +13 -12
- data/README.md +358 -2
- data/Rakefile +17 -17
- data/app/assets/javascripts/ckeditor/config.js.erb +3 -3
- data/app/controllers/ckeditor/application_controller.rb +3 -0
- data/app/controllers/ckeditor/attachment_files_controller.rb +2 -0
- data/app/controllers/ckeditor/pictures_controller.rb +2 -0
- data/app/helpers/ckeditor/application_helper.rb +2 -0
- data/config/locales/bg.ckeditor.yml +9 -0
- data/config/locales/cs.ckeditor.yml +9 -0
- data/config/locales/da.ckeditor.yml +9 -0
- data/config/locales/de.ckeditor.yml +9 -0
- data/config/locales/el-GR.cdkeditor.yml +9 -0
- data/config/locales/es.ckeditor.yml +9 -0
- data/config/locales/fr.ckeditor.yml +9 -0
- data/config/locales/hu.ckeditor.yml +9 -0
- data/config/locales/it.ckeditor.yml +9 -0
- data/config/locales/ja.ckeditor.yml +9 -0
- data/config/locales/nb.ckeditor.yml +9 -0
- data/config/locales/nl.ckeditor.yml +9 -0
- data/config/locales/pl.ckeditor.yml +9 -0
- data/config/locales/pt-BR.ckeditor.yml +9 -0
- data/config/locales/pt-PT.ckeditor.yml +9 -0
- data/config/locales/pt.ckeditor.yml +9 -0
- data/config/locales/sq.ckeditor.yml +9 -0
- data/config/locales/sv-SE.ckeditor.yml +9 -0
- data/config/locales/tr.ckeditor.yml +9 -0
- data/config/locales/uk.ckeditor.yml +9 -0
- data/config/locales/zh-CN.ckeditor.yml +9 -0
- data/config/locales/zh-TW.ckeditor.yml +9 -0
- data/config/routes.rb +2 -0
- data/lib/ckeditor.rb +13 -16
- data/lib/ckeditor/asset_response.rb +15 -4
- data/lib/ckeditor/backend/active_storage.rb +68 -0
- data/lib/ckeditor/backend/carrierwave.rb +2 -12
- data/lib/ckeditor/backend/dragonfly.rb +2 -0
- data/lib/ckeditor/backend/paperclip.rb +2 -15
- data/lib/ckeditor/backend/shrine.rb +29 -0
- data/lib/ckeditor/helpers/controllers.rb +2 -0
- data/lib/ckeditor/helpers/form_builder.rb +2 -0
- data/lib/ckeditor/helpers/form_helper.rb +2 -0
- data/lib/ckeditor/helpers/view_helper.rb +2 -0
- data/lib/ckeditor/hooks/cancan.rb +4 -1
- data/lib/ckeditor/hooks/formtastic.rb +2 -0
- data/lib/ckeditor/hooks/pundit.rb +2 -0
- data/lib/ckeditor/hooks/simple_form.rb +2 -0
- data/lib/ckeditor/http.rb +8 -5
- data/lib/ckeditor/orm/active_record.rb +2 -0
- data/lib/ckeditor/orm/base.rb +11 -2
- data/lib/ckeditor/orm/mongoid.rb +2 -0
- data/lib/ckeditor/paginatable.rb +2 -0
- data/lib/ckeditor/rails.rb +2 -0
- data/lib/ckeditor/rails_admin/field.rb +16 -3
- data/lib/ckeditor/text_area.rb +2 -0
- data/lib/ckeditor/utils.rb +3 -16
- data/lib/ckeditor/utils/javascript_code.rb +1 -1
- data/lib/ckeditor/version.rb +4 -2
- data/lib/generators/ckeditor/install_generator.rb +16 -19
- data/lib/generators/ckeditor/pundit_policy_generator.rb +2 -0
- data/lib/generators/ckeditor/templates/active_record/active_storage/ckeditor/asset.rb +10 -0
- data/lib/generators/ckeditor/templates/active_record/{refile → active_storage}/ckeditor/attachment_file.rb +3 -1
- data/lib/generators/ckeditor/templates/active_record/active_storage/ckeditor/picture.rb +13 -0
- data/lib/generators/ckeditor/templates/active_record/{carrierwave/migration_versioned.rb → active_storage/migration.rb} +8 -5
- data/lib/generators/ckeditor/templates/active_record/carrierwave/ckeditor/asset.rb +2 -0
- data/lib/generators/ckeditor/templates/active_record/carrierwave/ckeditor/attachment_file.rb +2 -0
- data/lib/generators/ckeditor/templates/active_record/carrierwave/ckeditor/picture.rb +2 -0
- data/lib/generators/ckeditor/templates/active_record/carrierwave/migration.rb +7 -5
- data/lib/generators/ckeditor/templates/active_record/dragonfly/ckeditor/asset.rb +2 -0
- data/lib/generators/ckeditor/templates/active_record/dragonfly/ckeditor/attachment_file.rb +2 -0
- data/lib/generators/ckeditor/templates/active_record/dragonfly/ckeditor/picture.rb +2 -0
- data/lib/generators/ckeditor/templates/active_record/dragonfly/migration.rb +7 -5
- data/lib/generators/ckeditor/templates/active_record/paperclip/ckeditor/asset.rb +2 -0
- data/lib/generators/ckeditor/templates/active_record/paperclip/ckeditor/attachment_file.rb +2 -0
- data/lib/generators/ckeditor/templates/active_record/paperclip/ckeditor/picture.rb +2 -0
- data/lib/generators/ckeditor/templates/active_record/paperclip/migration.rb +8 -6
- data/lib/generators/ckeditor/templates/active_record/{refile → shrine}/ckeditor/asset.rb +3 -1
- data/lib/generators/ckeditor/templates/active_record/shrine/ckeditor/attachment_file.rb +21 -0
- data/lib/generators/ckeditor/templates/active_record/shrine/ckeditor/picture.rb +49 -0
- data/lib/generators/ckeditor/templates/active_record/shrine/migration.rb +22 -0
- data/lib/generators/ckeditor/templates/base/carrierwave/uploaders/ckeditor_attachment_file_uploader.rb +2 -1
- data/lib/generators/ckeditor/templates/base/carrierwave/uploaders/ckeditor_picture_uploader.rb +2 -3
- data/lib/generators/ckeditor/templates/base/dragonfly/initializer.rb +2 -0
- data/lib/generators/ckeditor/templates/base/shrine/initializer.rb +25 -0
- data/lib/generators/ckeditor/templates/ckeditor.rb +3 -6
- data/lib/generators/ckeditor/templates/mongoid/carrierwave/ckeditor/asset.rb +2 -0
- data/lib/generators/ckeditor/templates/mongoid/carrierwave/ckeditor/attachment_file.rb +2 -0
- data/lib/generators/ckeditor/templates/mongoid/carrierwave/ckeditor/picture.rb +2 -0
- data/lib/generators/ckeditor/templates/mongoid/paperclip/ckeditor/asset.rb +2 -0
- data/lib/generators/ckeditor/templates/mongoid/paperclip/ckeditor/attachment_file.rb +2 -0
- data/lib/generators/ckeditor/templates/mongoid/paperclip/ckeditor/picture.rb +2 -0
- data/lib/generators/ckeditor/templates/mongoid/shrine/ckeditor/asset.rb +8 -0
- data/lib/generators/ckeditor/templates/mongoid/shrine/ckeditor/attachment_file.rb +21 -0
- data/lib/generators/ckeditor/templates/mongoid/shrine/ckeditor/picture.rb +47 -0
- data/lib/generators/ckeditor/templates/pundit_policy/attachment_file_policy.rb +2 -0
- data/lib/generators/ckeditor/templates/pundit_policy/picture_policy.rb +2 -0
- data/lib/tasks/ckeditor.rake +2 -0
- data/test/controllers/attachment_files_controller_test.rb +17 -15
- data/test/controllers/pictures_controller_test.rb +17 -15
- data/test/dummy/Rakefile +2 -0
- data/test/dummy/app/assets/javascripts/application.js +0 -2
- data/test/dummy/app/controllers/application_controller.rb +2 -0
- data/test/dummy/app/controllers/posts_controller.rb +2 -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 +2 -0
- data/test/dummy/app/views/posts/index.html.erb +0 -3
- data/test/dummy/app/views/posts/show.html.erb +3 -0
- data/test/dummy/config.ru +2 -0
- data/test/dummy/config/application.rb +5 -1
- data/test/dummy/config/boot.rb +2 -0
- data/test/dummy/config/environment.rb +2 -0
- data/test/dummy/config/environments/development.rb +2 -0
- data/test/dummy/config/environments/production.rb +2 -0
- data/test/dummy/config/environments/test.rb +5 -3
- data/test/dummy/config/initializers/assets.rb +2 -0
- data/test/dummy/config/initializers/backtrace_silencers.rb +2 -0
- data/test/dummy/config/initializers/ckeditor.rb +2 -0
- data/test/dummy/config/initializers/cookies_serializer.rb +2 -0
- data/test/dummy/config/initializers/inflections.rb +2 -0
- data/test/dummy/config/initializers/mime_types.rb +2 -0
- data/test/dummy/config/initializers/paperclip.rb +2 -0
- data/test/dummy/config/initializers/session_store.rb +2 -0
- data/test/dummy/config/initializers/wrap_parameters.rb +2 -0
- data/test/dummy/config/routes.rb +2 -0
- data/test/dummy/config/storage.yml +3 -0
- data/test/dummy/db/migrate/20110623120047_create_posts.rb +5 -3
- data/test/dummy/db/migrate/20170806125915_create_active_storage_tables.rb +26 -0
- data/test/dummy/script/rails +2 -0
- data/test/functional/posts_controller_test.rb +18 -16
- data/test/generators/install_generator_test.rb +58 -56
- data/test/integration/navigation_test.rb +2 -0
- data/test/models/attachment_file_test.rb +4 -4
- data/test/models/ckeditor_test.rb +3 -21
- data/test/models/picture_test.rb +12 -10
- data/test/models/utils_test.rb +2 -0
- data/test/orm/active_record.rb +11 -1
- data/test/orm/mongoid.rb +2 -0
- data/test/support/helpers.rb +2 -0
- data/test/support/integration_case.rb +2 -0
- data/test/test_helper.rb +15 -9
- data/vendor/assets/javascripts/ckeditor/CHANGES.md +1404 -859
- data/vendor/assets/javascripts/ckeditor/LICENSE.md +8 -7
- data/vendor/assets/javascripts/ckeditor/README.md +5 -5
- data/vendor/assets/javascripts/ckeditor/adapters/jquery.js +7 -7
- data/vendor/assets/javascripts/ckeditor/build-config.js +12 -6
- data/vendor/assets/javascripts/ckeditor/ckeditor.js +1090 -907
- data/vendor/assets/javascripts/ckeditor/config.js +2 -2
- data/vendor/assets/javascripts/ckeditor/contents.css +7 -7
- data/vendor/assets/javascripts/ckeditor/lang/en.js +3 -3
- data/vendor/assets/javascripts/ckeditor/lang/ru.js +3 -3
- data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/a11yhelp.js +7 -7
- data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/en.js +2 -2
- data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/ru.js +3 -3
- data/vendor/assets/javascripts/ckeditor/plugins/about/dialogs/about.js +5 -5
- data/vendor/assets/javascripts/ckeditor/plugins/about/dialogs/hidpi/logo_ckeditor.png +0 -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/codemirror/css/codemirror.min.css +1 -1
- data/vendor/assets/javascripts/ckeditor/plugins/codemirror/icons/autoformat.png +0 -0
- data/vendor/assets/javascripts/ckeditor/plugins/codemirror/icons/searchcode.png +0 -0
- data/vendor/assets/javascripts/ckeditor/plugins/codemirror/icons/uncommentselectedrange.png +0 -0
- data/vendor/assets/javascripts/ckeditor/plugins/codemirror/images/autocomplete.png +0 -0
- data/vendor/assets/javascripts/ckeditor/plugins/codemirror/images/autoformat.png +0 -0
- data/vendor/assets/javascripts/ckeditor/plugins/codemirror/images/commentselectedrange.png +0 -0
- data/vendor/assets/javascripts/ckeditor/plugins/codemirror/images/searchcode.png +0 -0
- data/vendor/assets/javascripts/ckeditor/plugins/codemirror/images/uncommentselectedrange.png +0 -0
- data/vendor/assets/javascripts/ckeditor/plugins/codemirror/js/beautify.min.js +2 -2
- data/vendor/assets/javascripts/ckeditor/plugins/codemirror/js/codemirror.addons.min.js +2 -2
- data/vendor/assets/javascripts/ckeditor/plugins/codemirror/js/codemirror.addons.search.min.js +1 -1
- data/vendor/assets/javascripts/ckeditor/plugins/codemirror/js/codemirror.min.js +1 -6
- data/vendor/assets/javascripts/ckeditor/plugins/codemirror/js/codemirror.mode.bbcodemixed.min.js +1 -1
- data/vendor/assets/javascripts/ckeditor/plugins/codemirror/js/codemirror.mode.handlebars.min.js +1 -0
- data/vendor/assets/javascripts/ckeditor/plugins/codemirror/js/codemirror.mode.htmlmixed.min.js +2 -2
- data/vendor/assets/javascripts/ckeditor/plugins/codemirror/js/codemirror.mode.javascript.min.js +1 -1
- data/vendor/assets/javascripts/ckeditor/plugins/codemirror/js/codemirror.mode.php.min.js +3 -3
- data/vendor/assets/javascripts/ckeditor/plugins/codemirror/js/codemirror.mode.twig.min.js +1 -1
- data/vendor/assets/javascripts/ckeditor/plugins/codemirror/plugin.js +236 -218
- data/vendor/assets/javascripts/ckeditor/plugins/codemirror/theme/base16-light.css +1 -1
- data/vendor/assets/javascripts/ckeditor/plugins/codemirror/theme/darcula.css +51 -0
- data/vendor/assets/javascripts/ckeditor/plugins/codemirror/theme/gruvbox-dark.css +37 -0
- data/vendor/assets/javascripts/ckeditor/plugins/codemirror/theme/idea.css +42 -0
- data/vendor/assets/javascripts/ckeditor/plugins/codemirror/theme/lesser-dark.css +2 -2
- data/vendor/assets/javascripts/ckeditor/plugins/codemirror/theme/lucario.css +37 -0
- data/vendor/assets/javascripts/ckeditor/plugins/codemirror/theme/monokai.css +5 -0
- data/vendor/assets/javascripts/ckeditor/plugins/codemirror/theme/nord.css +42 -0
- data/vendor/assets/javascripts/ckeditor/plugins/codemirror/theme/oceanic-next.css +44 -0
- data/vendor/assets/javascripts/ckeditor/plugins/codemirror/theme/panda-syntax.css +1 -1
- data/vendor/assets/javascripts/ckeditor/plugins/codemirror/theme/shadowfox.css +52 -0
- data/vendor/assets/javascripts/ckeditor/plugins/codemirror/theme/solarized.css +0 -1
- data/vendor/assets/javascripts/ckeditor/plugins/codemirror/theme/ssms.css +16 -0
- data/vendor/assets/javascripts/ckeditor/plugins/codemirror/theme/vibrant-ink.css +1 -1
- data/vendor/assets/javascripts/ckeditor/plugins/codemirror/theme/yonce.css +59 -0
- data/vendor/assets/javascripts/ckeditor/plugins/colordialog/dialogs/colordialog.css +2 -2
- data/vendor/assets/javascripts/ckeditor/plugins/colordialog/dialogs/colordialog.js +12 -12
- data/vendor/assets/javascripts/ckeditor/plugins/dialog/dialogDefinition.js +2 -2
- data/vendor/assets/javascripts/ckeditor/plugins/dialog/styles/dialog.css +18 -0
- data/vendor/assets/javascripts/ckeditor/plugins/div/dialogs/div.js +9 -8
- data/vendor/assets/javascripts/ckeditor/plugins/find/dialogs/find.js +23 -23
- data/vendor/assets/javascripts/ckeditor/plugins/flash/dialogs/flash.js +17 -17
- data/vendor/assets/javascripts/ckeditor/plugins/forms/dialogs/button.js +6 -6
- data/vendor/assets/javascripts/ckeditor/plugins/forms/dialogs/checkbox.js +5 -5
- data/vendor/assets/javascripts/ckeditor/plugins/forms/dialogs/form.js +3 -3
- data/vendor/assets/javascripts/ckeditor/plugins/forms/dialogs/hiddenfield.js +5 -5
- data/vendor/assets/javascripts/ckeditor/plugins/forms/dialogs/radio.js +7 -7
- data/vendor/assets/javascripts/ckeditor/plugins/forms/dialogs/select.js +17 -16
- data/vendor/assets/javascripts/ckeditor/plugins/forms/dialogs/textarea.js +7 -6
- data/vendor/assets/javascripts/ckeditor/plugins/forms/dialogs/textfield.js +9 -9
- data/vendor/assets/javascripts/ckeditor/plugins/icons.png +0 -0
- data/vendor/assets/javascripts/ckeditor/plugins/icons_hidpi.png +0 -0
- data/vendor/assets/javascripts/ckeditor/plugins/iframe/dialogs/iframe.js +9 -8
- data/vendor/assets/javascripts/ckeditor/plugins/image/dialogs/image.js +1271 -44
- data/vendor/assets/javascripts/ckeditor/plugins/image/icons/hidpi/image.png +0 -0
- data/vendor/assets/javascripts/ckeditor/plugins/image/icons/image.png +0 -0
- data/vendor/assets/javascripts/ckeditor/plugins/image/lang/en.js +25 -0
- data/vendor/assets/javascripts/ckeditor/plugins/image/lang/ru.js +25 -0
- data/vendor/assets/javascripts/ckeditor/plugins/image/plugin.js +184 -0
- data/vendor/assets/javascripts/ckeditor/plugins/image2/dev/assets/image1.jpg +0 -0
- data/vendor/assets/javascripts/ckeditor/plugins/image2/dev/assets/image2.jpg +0 -0
- data/vendor/assets/javascripts/ckeditor/plugins/image2/dev/contents.css +35 -0
- data/vendor/assets/javascripts/ckeditor/plugins/image2/dev/image2.html +339 -0
- data/vendor/assets/javascripts/ckeditor/plugins/image2/dialogs/image2.js +553 -0
- data/vendor/assets/javascripts/ckeditor/plugins/image2/icons/hidpi/image.png +0 -0
- data/vendor/assets/javascripts/ckeditor/plugins/image2/icons/image.png +0 -0
- data/vendor/assets/javascripts/ckeditor/plugins/image2/lang/en.js +21 -0
- data/vendor/assets/javascripts/ckeditor/plugins/image2/lang/ru.js +21 -0
- data/vendor/assets/javascripts/ckeditor/plugins/image2/plugin.js +1783 -0
- data/vendor/assets/javascripts/ckeditor/plugins/image2/samples/assets/image1.jpg +0 -0
- data/vendor/assets/javascripts/ckeditor/plugins/image2/samples/assets/image2.jpg +0 -0
- data/vendor/assets/javascripts/ckeditor/plugins/image2/samples/image2.html +69 -0
- data/vendor/assets/javascripts/ckeditor/plugins/lineheight/plugin.js +1 -1
- data/vendor/assets/javascripts/ckeditor/plugins/link/dialogs/anchor.js +5 -5
- data/vendor/assets/javascripts/ckeditor/plugins/link/dialogs/link.js +27 -25
- data/vendor/assets/javascripts/ckeditor/plugins/liststyle/dialogs/liststyle.js +8 -8
- data/vendor/assets/javascripts/ckeditor/plugins/loremipsum/lang/fr.js +8 -0
- data/vendor/assets/javascripts/ckeditor/plugins/loremipsum/plugin.js +2 -2
- data/vendor/assets/javascripts/ckeditor/plugins/pastefromword/filter/default.js +41 -51
- data/vendor/assets/javascripts/ckeditor/plugins/pastetools/filter/common.js +22 -0
- data/vendor/assets/javascripts/ckeditor/plugins/pastetools/filter/image.js +6 -0
- data/vendor/assets/javascripts/ckeditor/plugins/preview/images/pagebreak.gif +0 -0
- data/vendor/assets/javascripts/ckeditor/plugins/preview/styles/screen.css +10 -0
- data/vendor/assets/javascripts/ckeditor/plugins/scayt/CHANGELOG.md +1 -17
- data/vendor/assets/javascripts/ckeditor/plugins/scayt/README.md +63 -7
- data/vendor/assets/javascripts/ckeditor/plugins/scayt/dialogs/options.js +32 -33
- data/vendor/assets/javascripts/ckeditor/plugins/smiley/dialogs/smiley.js +2 -2
- data/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/en.js +2 -2
- data/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/ru.js +2 -2
- data/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/specialchar.js +12 -12
- data/vendor/assets/javascripts/ckeditor/plugins/stylesheetparser/plugin.js +10 -10
- data/vendor/assets/javascripts/ckeditor/plugins/stylesheetparser/samples/stylesheetparser.html +8 -7
- data/vendor/assets/javascripts/ckeditor/plugins/table/dialogs/table.js +20 -19
- data/vendor/assets/javascripts/ckeditor/plugins/tabletools/dialogs/tableCell.js +16 -15
- data/vendor/assets/javascripts/ckeditor/plugins/templates/dialogs/templates.css +2 -2
- data/vendor/assets/javascripts/ckeditor/plugins/templates/dialogs/templates.js +2 -2
- data/vendor/assets/javascripts/ckeditor/plugins/templates/templates/default.js +2 -2
- data/vendor/assets/javascripts/ckeditor/plugins/widget/images/handle.png +0 -0
- data/vendor/assets/javascripts/ckeditor/{samples/toolbarconfigurator/lib/codemirror/LICENSE → plugins/wordcount/LICENSE.md} +21 -19
- data/vendor/assets/javascripts/ckeditor/plugins/wordcount/README.md +106 -0
- data/vendor/assets/javascripts/ckeditor/plugins/wordcount/lang/en.js +1 -0
- data/vendor/assets/javascripts/ckeditor/plugins/wordcount/lang/ru.js +2 -1
- data/vendor/assets/javascripts/ckeditor/plugins/wordcount/plugin.js +475 -378
- data/vendor/assets/javascripts/ckeditor/plugins/wordcount/samples/maxParagraphs.html +26 -0
- data/vendor/assets/javascripts/ckeditor/plugins/wsc/README.md +62 -7
- data/vendor/assets/javascripts/ckeditor/plugins/wsc/dialogs/tmpFrameset.html +1 -1
- data/vendor/assets/javascripts/ckeditor/plugins/wsc/dialogs/wsc.js +82 -82
- data/vendor/assets/javascripts/ckeditor/plugins/youtube/LICENSE.md +15 -0
- data/vendor/assets/javascripts/ckeditor/plugins/youtube/README.md +156 -0
- data/vendor/assets/javascripts/ckeditor/plugins/youtube/plugin.js +8 -7
- data/vendor/assets/javascripts/ckeditor/skins/minimalist/editor.css +1 -1
- data/vendor/assets/javascripts/ckeditor/skins/minimalist/editor_gecko.css +1 -1
- data/vendor/assets/javascripts/ckeditor/skins/minimalist/editor_ie.css +1 -1
- data/vendor/assets/javascripts/ckeditor/skins/minimalist/editor_ie7.css +1 -1
- data/vendor/assets/javascripts/ckeditor/skins/minimalist/editor_ie8.css +1 -1
- data/vendor/assets/javascripts/ckeditor/skins/minimalist/editor_iequirks.css +1 -1
- data/vendor/assets/javascripts/ckeditor/skins/minimalist/icons.png +0 -0
- data/vendor/assets/javascripts/ckeditor/skins/minimalist/icons_hidpi.png +0 -0
- data/vendor/assets/javascripts/ckeditor/skins/moono-lisa/dialog.css +3 -3
- data/vendor/assets/javascripts/ckeditor/skins/moono-lisa/dialog_ie.css +3 -3
- data/vendor/assets/javascripts/ckeditor/skins/moono-lisa/dialog_ie8.css +3 -3
- data/vendor/assets/javascripts/ckeditor/skins/moono-lisa/dialog_iequirks.css +3 -3
- data/vendor/assets/javascripts/ckeditor/skins/moono-lisa/editor.css +3 -3
- data/vendor/assets/javascripts/ckeditor/skins/moono-lisa/editor_gecko.css +3 -3
- data/vendor/assets/javascripts/ckeditor/skins/moono-lisa/editor_ie.css +3 -3
- data/vendor/assets/javascripts/ckeditor/skins/moono-lisa/editor_ie8.css +3 -3
- data/vendor/assets/javascripts/ckeditor/skins/moono-lisa/editor_iequirks.css +3 -3
- data/vendor/assets/javascripts/ckeditor/skins/moono-lisa/readme.md +3 -3
- data/vendor/assets/javascripts/ckeditor/skins/moono-lisa/skin.js +2 -2
- data/vendor/assets/javascripts/ckeditor/skins/moono/dialog.css +3 -3
- data/vendor/assets/javascripts/ckeditor/skins/moono/dialog_ie.css +3 -3
- data/vendor/assets/javascripts/ckeditor/skins/moono/dialog_ie7.css +3 -3
- data/vendor/assets/javascripts/ckeditor/skins/moono/dialog_ie8.css +3 -3
- data/vendor/assets/javascripts/ckeditor/skins/moono/dialog_iequirks.css +3 -3
- data/vendor/assets/javascripts/ckeditor/skins/moono/editor.css +3 -3
- data/vendor/assets/javascripts/ckeditor/skins/moono/editor_gecko.css +3 -3
- data/vendor/assets/javascripts/ckeditor/skins/moono/editor_ie.css +3 -3
- data/vendor/assets/javascripts/ckeditor/skins/moono/editor_ie7.css +3 -3
- data/vendor/assets/javascripts/ckeditor/skins/moono/editor_ie8.css +3 -3
- data/vendor/assets/javascripts/ckeditor/skins/moono/editor_iequirks.css +3 -3
- data/vendor/assets/javascripts/ckeditor/skins/moono/readme.md +5 -5
- data/vendor/assets/javascripts/ckeditor/skins/moono/skin.js +2 -2
- data/vendor/assets/javascripts/ckeditor/styles.js +4 -4
- data/vendor/assets/javascripts/ckeditor/vendor/promise.js +13 -0
- metadata +143 -138
- data/lib/ckeditor/backend/refile.rb +0 -39
- data/lib/ckeditor/utils/content_type_detector.rb +0 -38
- data/lib/generators/ckeditor/templates/active_record/dragonfly/migration_versioned.rb +0 -23
- data/lib/generators/ckeditor/templates/active_record/paperclip/migration_versioned.rb +0 -23
- data/lib/generators/ckeditor/templates/active_record/refile/ckeditor/picture.rb +0 -11
- data/lib/generators/ckeditor/templates/active_record/refile/migration.rb +0 -23
- data/lib/generators/ckeditor/templates/active_record/refile/migration_versioned.rb +0 -23
- data/test/support/raw_post.rb +0 -9
- data/vendor/assets/javascripts/ckeditor/plugins/iframedialog/plugin.js +0 -169
- data/vendor/assets/javascripts/ckeditor/plugins/lineheight/lang/ru.js +0 -3
- data/vendor/assets/javascripts/ckeditor/plugins/loremipsum/lang/ru.js +0 -8
- data/vendor/assets/javascripts/ckeditor/plugins/notification/lang/en.js +0 -7
- data/vendor/assets/javascripts/ckeditor/plugins/notification/lang/ru.js +0 -7
- data/vendor/assets/javascripts/ckeditor/plugins/notification/plugin.js +0 -929
- data/vendor/assets/javascripts/ckeditor/samples/css/samples.css +0 -1632
- data/vendor/assets/javascripts/ckeditor/samples/img/github-top.png +0 -0
- data/vendor/assets/javascripts/ckeditor/samples/img/header-bg.png +0 -0
- data/vendor/assets/javascripts/ckeditor/samples/img/header-separator.png +0 -0
- data/vendor/assets/javascripts/ckeditor/samples/img/logo.png +0 -0
- data/vendor/assets/javascripts/ckeditor/samples/img/navigation-tip.png +0 -0
- data/vendor/assets/javascripts/ckeditor/samples/index.html +0 -128
- data/vendor/assets/javascripts/ckeditor/samples/js/sample.js +0 -53
- data/vendor/assets/javascripts/ckeditor/samples/js/sf.js +0 -17
- data/vendor/assets/javascripts/ckeditor/samples/old/ajax.html +0 -85
- data/vendor/assets/javascripts/ckeditor/samples/old/api.html +0 -210
- data/vendor/assets/javascripts/ckeditor/samples/old/appendto.html +0 -59
- data/vendor/assets/javascripts/ckeditor/samples/old/assets/inlineall/logo.png +0 -0
- data/vendor/assets/javascripts/ckeditor/samples/old/assets/outputxhtml/outputxhtml.css +0 -204
- data/vendor/assets/javascripts/ckeditor/samples/old/assets/posteddata.php +0 -59
- data/vendor/assets/javascripts/ckeditor/samples/old/assets/sample.jpg +0 -0
- data/vendor/assets/javascripts/ckeditor/samples/old/assets/uilanguages/languages.js +0 -7
- data/vendor/assets/javascripts/ckeditor/samples/old/datafiltering.html +0 -508
- data/vendor/assets/javascripts/ckeditor/samples/old/dialog/assets/my_dialog.js +0 -48
- data/vendor/assets/javascripts/ckeditor/samples/old/dialog/dialog.html +0 -190
- data/vendor/assets/javascripts/ckeditor/samples/old/divreplace.html +0 -144
- data/vendor/assets/javascripts/ckeditor/samples/old/enterkey/enterkey.html +0 -106
- data/vendor/assets/javascripts/ckeditor/samples/old/htmlwriter/assets/outputforflash/outputforflash.fla +0 -0
- data/vendor/assets/javascripts/ckeditor/samples/old/htmlwriter/assets/outputforflash/outputforflash.swf +0 -0
- data/vendor/assets/javascripts/ckeditor/samples/old/htmlwriter/assets/outputforflash/swfobject.js +0 -19
- data/vendor/assets/javascripts/ckeditor/samples/old/htmlwriter/outputforflash.html +0 -283
- data/vendor/assets/javascripts/ckeditor/samples/old/htmlwriter/outputhtml.html +0 -224
- data/vendor/assets/javascripts/ckeditor/samples/old/index.html +0 -131
- data/vendor/assets/javascripts/ckeditor/samples/old/inlineall.html +0 -314
- data/vendor/assets/javascripts/ckeditor/samples/old/inlinebycode.html +0 -124
- data/vendor/assets/javascripts/ckeditor/samples/old/inlinetextarea.html +0 -113
- data/vendor/assets/javascripts/ckeditor/samples/old/jquery.html +0 -103
- data/vendor/assets/javascripts/ckeditor/samples/old/magicline/magicline.html +0 -209
- data/vendor/assets/javascripts/ckeditor/samples/old/readonly.html +0 -76
- data/vendor/assets/javascripts/ckeditor/samples/old/replacebyclass.html +0 -60
- data/vendor/assets/javascripts/ckeditor/samples/old/replacebycode.html +0 -59
- data/vendor/assets/javascripts/ckeditor/samples/old/sample.css +0 -357
- data/vendor/assets/javascripts/ckeditor/samples/old/sample.js +0 -50
- data/vendor/assets/javascripts/ckeditor/samples/old/sample_posteddata.php +0 -16
- data/vendor/assets/javascripts/ckeditor/samples/old/tabindex.html +0 -78
- data/vendor/assets/javascripts/ckeditor/samples/old/toolbar/toolbar.html +0 -235
- data/vendor/assets/javascripts/ckeditor/samples/old/uicolor.html +0 -72
- data/vendor/assets/javascripts/ckeditor/samples/old/uilanguages.html +0 -122
- data/vendor/assets/javascripts/ckeditor/samples/old/wysiwygarea/fullpage.html +0 -80
- data/vendor/assets/javascripts/ckeditor/samples/old/xhtmlstyle.html +0 -234
- data/vendor/assets/javascripts/ckeditor/samples/toolbarconfigurator/css/fontello.css +0 -55
- data/vendor/assets/javascripts/ckeditor/samples/toolbarconfigurator/font/LICENSE.txt +0 -10
- data/vendor/assets/javascripts/ckeditor/samples/toolbarconfigurator/font/config.json +0 -28
- data/vendor/assets/javascripts/ckeditor/samples/toolbarconfigurator/font/fontello.eot +0 -0
- data/vendor/assets/javascripts/ckeditor/samples/toolbarconfigurator/font/fontello.svg +0 -14
- data/vendor/assets/javascripts/ckeditor/samples/toolbarconfigurator/font/fontello.ttf +0 -0
- data/vendor/assets/javascripts/ckeditor/samples/toolbarconfigurator/font/fontello.woff +0 -0
- data/vendor/assets/javascripts/ckeditor/samples/toolbarconfigurator/index.html +0 -446
- data/vendor/assets/javascripts/ckeditor/samples/toolbarconfigurator/js/abstracttoolbarmodifier.js +0 -13
- data/vendor/assets/javascripts/ckeditor/samples/toolbarconfigurator/js/fulltoolbareditor.js +0 -9
- data/vendor/assets/javascripts/ckeditor/samples/toolbarconfigurator/js/toolbarmodifier.js +0 -33
- data/vendor/assets/javascripts/ckeditor/samples/toolbarconfigurator/js/toolbartextmodifier.js +0 -14
- data/vendor/assets/javascripts/ckeditor/samples/toolbarconfigurator/lib/codemirror/codemirror.css +0 -325
- data/vendor/assets/javascripts/ckeditor/samples/toolbarconfigurator/lib/codemirror/codemirror.js +0 -288
- data/vendor/assets/javascripts/ckeditor/samples/toolbarconfigurator/lib/codemirror/javascript.js +0 -25
- data/vendor/assets/javascripts/ckeditor/samples/toolbarconfigurator/lib/codemirror/neo.css +0 -36
- data/vendor/assets/javascripts/ckeditor/samples/toolbarconfigurator/lib/codemirror/show-hint.css +0 -38
- data/vendor/assets/javascripts/ckeditor/samples/toolbarconfigurator/lib/codemirror/show-hint.js +0 -16
Binary file
|
@@ -0,0 +1,25 @@
|
|
1
|
+
/*
|
2
|
+
Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved.
|
3
|
+
For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
4
|
+
*/
|
5
|
+
CKEDITOR.plugins.setLang( 'image', 'en', {
|
6
|
+
alt: 'Alternative Text',
|
7
|
+
border: 'Border',
|
8
|
+
btnUpload: 'Send it to the Server',
|
9
|
+
button2Img: 'Do you want to transform the selected image button on a simple image?',
|
10
|
+
hSpace: 'HSpace',
|
11
|
+
img2Button: 'Do you want to transform the selected image on a image button?',
|
12
|
+
infoTab: 'Image Info',
|
13
|
+
linkTab: 'Link',
|
14
|
+
lockRatio: 'Lock Ratio',
|
15
|
+
menu: 'Image Properties',
|
16
|
+
resetSize: 'Reset Size',
|
17
|
+
title: 'Image Properties',
|
18
|
+
titleButton: 'Image Button Properties',
|
19
|
+
upload: 'Upload',
|
20
|
+
urlMissing: 'Image source URL is missing.',
|
21
|
+
vSpace: 'VSpace',
|
22
|
+
validateBorder: 'Border must be a whole number.',
|
23
|
+
validateHSpace: 'HSpace must be a whole number.',
|
24
|
+
validateVSpace: 'VSpace must be a whole number.'
|
25
|
+
} );
|
@@ -0,0 +1,25 @@
|
|
1
|
+
/*
|
2
|
+
Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved.
|
3
|
+
For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
4
|
+
*/
|
5
|
+
CKEDITOR.plugins.setLang( 'image', 'ru', {
|
6
|
+
alt: 'Альтернативный текст',
|
7
|
+
border: 'Граница',
|
8
|
+
btnUpload: 'Загрузить на сервер',
|
9
|
+
button2Img: 'Вы желаете преобразовать это изображение-кнопку в обычное изображение?',
|
10
|
+
hSpace: 'Гориз. отступ',
|
11
|
+
img2Button: 'Вы желаете преобразовать это обычное изображение в изображение-кнопку?',
|
12
|
+
infoTab: 'Данные об изображении',
|
13
|
+
linkTab: 'Ссылка',
|
14
|
+
lockRatio: 'Сохранять пропорции',
|
15
|
+
menu: 'Свойства изображения',
|
16
|
+
resetSize: 'Вернуть обычные размеры',
|
17
|
+
title: 'Свойства изображения',
|
18
|
+
titleButton: 'Свойства изображения-кнопки',
|
19
|
+
upload: 'Загрузить',
|
20
|
+
urlMissing: 'Не указана ссылка на изображение.',
|
21
|
+
vSpace: 'Вертик. отступ',
|
22
|
+
validateBorder: 'Размер границ должен быть задан числом.',
|
23
|
+
validateHSpace: 'Горизонтальный отступ должен быть задан числом.',
|
24
|
+
validateVSpace: 'Вертикальный отступ должен быть задан числом.'
|
25
|
+
} );
|
@@ -0,0 +1,184 @@
|
|
1
|
+
/**
|
2
|
+
* @license Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved.
|
3
|
+
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
4
|
+
*/
|
5
|
+
|
6
|
+
/**
|
7
|
+
* @fileOverview The Image plugin.
|
8
|
+
*/
|
9
|
+
|
10
|
+
( function() {
|
11
|
+
|
12
|
+
CKEDITOR.plugins.add( 'image', {
|
13
|
+
requires: 'dialog',
|
14
|
+
// jscs:disable maximumLineLength
|
15
|
+
lang: 'af,ar,az,bg,bn,bs,ca,cs,cy,da,de,de-ch,el,en,en-au,en-ca,en-gb,eo,es,es-mx,et,eu,fa,fi,fo,fr,fr-ca,gl,gu,he,hi,hr,hu,id,is,it,ja,ka,km,ko,ku,lt,lv,mk,mn,ms,nb,nl,no,oc,pl,pt,pt-br,ro,ru,si,sk,sl,sq,sr,sr-latn,sv,th,tr,tt,ug,uk,vi,zh,zh-cn', // %REMOVE_LINE_CORE%
|
16
|
+
// jscs:enable maximumLineLength
|
17
|
+
icons: 'image', // %REMOVE_LINE_CORE%
|
18
|
+
hidpi: true, // %REMOVE_LINE_CORE%
|
19
|
+
init: function( editor ) {
|
20
|
+
var pluginName = 'image';
|
21
|
+
|
22
|
+
// Abort when Easyimage or Image2 are to be loaded since this plugins
|
23
|
+
// share the same functionality (#1791).
|
24
|
+
if ( editor.plugins.detectConflict( pluginName, [ 'easyimage', 'image2' ] ) ) {
|
25
|
+
return;
|
26
|
+
}
|
27
|
+
|
28
|
+
// Register the dialog.
|
29
|
+
CKEDITOR.dialog.add( pluginName, this.path + 'dialogs/image.js' );
|
30
|
+
|
31
|
+
var allowed = 'img[alt,!src]{border-style,border-width,float,height,margin,margin-bottom,margin-left,margin-right,margin-top,width}',
|
32
|
+
required = 'img[alt,src]';
|
33
|
+
|
34
|
+
if ( CKEDITOR.dialog.isTabEnabled( editor, pluginName, 'advanced' ) )
|
35
|
+
allowed = 'img[alt,dir,id,lang,longdesc,!src,title]{*}(*)';
|
36
|
+
|
37
|
+
// Register the command.
|
38
|
+
editor.addCommand( pluginName, new CKEDITOR.dialogCommand( pluginName, {
|
39
|
+
allowedContent: allowed,
|
40
|
+
requiredContent: required,
|
41
|
+
contentTransformations: [
|
42
|
+
[ 'img{width}: sizeToStyle', 'img[width]: sizeToAttribute' ],
|
43
|
+
[ 'img{float}: alignmentToStyle', 'img[align]: alignmentToAttribute' ]
|
44
|
+
]
|
45
|
+
} ) );
|
46
|
+
|
47
|
+
// Register the toolbar button.
|
48
|
+
editor.ui.addButton && editor.ui.addButton( 'Image', {
|
49
|
+
label: editor.lang.common.image,
|
50
|
+
command: pluginName,
|
51
|
+
toolbar: 'insert,10'
|
52
|
+
} );
|
53
|
+
|
54
|
+
editor.on( 'doubleclick', function( evt ) {
|
55
|
+
var element = evt.data.element;
|
56
|
+
|
57
|
+
if ( element.is( 'img' ) && !element.data( 'cke-realelement' ) && !element.isReadOnly() )
|
58
|
+
evt.data.dialog = 'image';
|
59
|
+
} );
|
60
|
+
|
61
|
+
// If the "menu" plugin is loaded, register the menu items.
|
62
|
+
if ( editor.addMenuItems ) {
|
63
|
+
editor.addMenuItems( {
|
64
|
+
image: {
|
65
|
+
label: editor.lang.image.menu,
|
66
|
+
command: 'image',
|
67
|
+
group: 'image'
|
68
|
+
}
|
69
|
+
} );
|
70
|
+
}
|
71
|
+
|
72
|
+
// If the "contextmenu" plugin is loaded, register the listeners.
|
73
|
+
if ( editor.contextMenu ) {
|
74
|
+
editor.contextMenu.addListener( function( element ) {
|
75
|
+
if ( getSelectedImage( editor, element ) )
|
76
|
+
return { image: CKEDITOR.TRISTATE_OFF };
|
77
|
+
} );
|
78
|
+
}
|
79
|
+
},
|
80
|
+
afterInit: function( editor ) {
|
81
|
+
// Abort when Image2 is to be loaded since both plugins
|
82
|
+
// share the same button, command, etc. names (https://dev.ckeditor.com/ticket/11222).
|
83
|
+
if ( editor.plugins.image2 )
|
84
|
+
return;
|
85
|
+
|
86
|
+
// Customize the behavior of the alignment commands. (https://dev.ckeditor.com/ticket/7430)
|
87
|
+
setupAlignCommand( 'left' );
|
88
|
+
setupAlignCommand( 'right' );
|
89
|
+
setupAlignCommand( 'center' );
|
90
|
+
setupAlignCommand( 'block' );
|
91
|
+
|
92
|
+
function setupAlignCommand( value ) {
|
93
|
+
var command = editor.getCommand( 'justify' + value );
|
94
|
+
if ( command ) {
|
95
|
+
if ( value == 'left' || value == 'right' ) {
|
96
|
+
command.on( 'exec', function( evt ) {
|
97
|
+
var img = getSelectedImage( editor ),
|
98
|
+
align;
|
99
|
+
if ( img ) {
|
100
|
+
align = getImageAlignment( img );
|
101
|
+
if ( align == value ) {
|
102
|
+
img.removeStyle( 'float' );
|
103
|
+
|
104
|
+
// Remove "align" attribute when necessary.
|
105
|
+
if ( value == getImageAlignment( img ) )
|
106
|
+
img.removeAttribute( 'align' );
|
107
|
+
} else {
|
108
|
+
img.setStyle( 'float', value );
|
109
|
+
}
|
110
|
+
|
111
|
+
evt.cancel();
|
112
|
+
}
|
113
|
+
} );
|
114
|
+
}
|
115
|
+
|
116
|
+
command.on( 'refresh', function( evt ) {
|
117
|
+
var img = getSelectedImage( editor ),
|
118
|
+
align;
|
119
|
+
if ( img ) {
|
120
|
+
align = getImageAlignment( img );
|
121
|
+
|
122
|
+
this.setState(
|
123
|
+
( align == value ) ? CKEDITOR.TRISTATE_ON : ( value == 'right' || value == 'left' ) ? CKEDITOR.TRISTATE_OFF : CKEDITOR.TRISTATE_DISABLED );
|
124
|
+
|
125
|
+
evt.cancel();
|
126
|
+
}
|
127
|
+
} );
|
128
|
+
}
|
129
|
+
}
|
130
|
+
}
|
131
|
+
} );
|
132
|
+
|
133
|
+
function getSelectedImage( editor, element ) {
|
134
|
+
if ( !element ) {
|
135
|
+
var sel = editor.getSelection();
|
136
|
+
element = sel.getSelectedElement();
|
137
|
+
}
|
138
|
+
|
139
|
+
if ( element && element.is( 'img' ) && !element.data( 'cke-realelement' ) && !element.isReadOnly() )
|
140
|
+
return element;
|
141
|
+
}
|
142
|
+
|
143
|
+
function getImageAlignment( element ) {
|
144
|
+
var align = element.getStyle( 'float' );
|
145
|
+
|
146
|
+
if ( align == 'inherit' || align == 'none' )
|
147
|
+
align = 0;
|
148
|
+
|
149
|
+
if ( !align )
|
150
|
+
align = element.getAttribute( 'align' );
|
151
|
+
|
152
|
+
return align;
|
153
|
+
}
|
154
|
+
|
155
|
+
} )();
|
156
|
+
|
157
|
+
/**
|
158
|
+
* Determines whether dimension inputs should be automatically filled when the image URL changes in the Image plugin dialog window.
|
159
|
+
*
|
160
|
+
* config.image_prefillDimensions = false;
|
161
|
+
*
|
162
|
+
* @since 4.5.0
|
163
|
+
* @cfg {Boolean} [image_prefillDimensions=true]
|
164
|
+
* @member CKEDITOR.config
|
165
|
+
*/
|
166
|
+
|
167
|
+
/**
|
168
|
+
* Whether to remove links when emptying the link URL field in the Image dialog window.
|
169
|
+
*
|
170
|
+
* config.image_removeLinkByEmptyURL = false;
|
171
|
+
*
|
172
|
+
* @cfg {Boolean} [image_removeLinkByEmptyURL=true]
|
173
|
+
* @member CKEDITOR.config
|
174
|
+
*/
|
175
|
+
CKEDITOR.config.image_removeLinkByEmptyURL = true;
|
176
|
+
|
177
|
+
/**
|
178
|
+
* Padding text to set off the image in the preview area.
|
179
|
+
*
|
180
|
+
* config.image_previewText = CKEDITOR.tools.repeat( '___ ', 100 );
|
181
|
+
*
|
182
|
+
* @cfg {String} [image_previewText='Lorem ipsum dolor...' (placeholder text)]
|
183
|
+
* @member CKEDITOR.config
|
184
|
+
*/
|
@@ -0,0 +1,35 @@
|
|
1
|
+
/*
|
2
|
+
Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved.
|
3
|
+
For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
4
|
+
*/
|
5
|
+
|
6
|
+
.cke_widget_wrapper:hover:after {
|
7
|
+
content: "id: " attr(data-cke-widget-id);
|
8
|
+
position: absolute;
|
9
|
+
top: 0;
|
10
|
+
right: 0;
|
11
|
+
padding: 2px 4px;
|
12
|
+
background: #EEE;
|
13
|
+
border: solid 1px #DDD;
|
14
|
+
border-radius: 2px;
|
15
|
+
color: #BBB;
|
16
|
+
font: bold 10px sans-serif;
|
17
|
+
}
|
18
|
+
|
19
|
+
.align-left {
|
20
|
+
float: left;
|
21
|
+
margin-right: 20px;
|
22
|
+
}
|
23
|
+
|
24
|
+
.align-right {
|
25
|
+
float: right;
|
26
|
+
margin-left: 20px;
|
27
|
+
}
|
28
|
+
|
29
|
+
.align-center {
|
30
|
+
text-align: center;
|
31
|
+
}
|
32
|
+
|
33
|
+
.align-center > figure {
|
34
|
+
display: inline-block;
|
35
|
+
}
|
@@ -0,0 +1,339 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
<!--
|
3
|
+
Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved.
|
4
|
+
For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
5
|
+
-->
|
6
|
+
<html>
|
7
|
+
<head>
|
8
|
+
<meta charset="utf-8">
|
9
|
+
<title>Widget Image — CKEditor Sample</title>
|
10
|
+
<script src="../../../ckeditor.js"></script>
|
11
|
+
<script src="../../../dev/console/console.js"></script>
|
12
|
+
<script src="../../../dev/console/focusconsole.js"></script>
|
13
|
+
<script src="../../widget/dev/console.js"></script>
|
14
|
+
<script>
|
15
|
+
if ( CKEDITOR.env.ie && CKEDITOR.env.version < 9 )
|
16
|
+
CKEDITOR.tools.enableHtml5Elements( document );
|
17
|
+
|
18
|
+
var editor;
|
19
|
+
|
20
|
+
// The instanceReady event is fired, when an instance of CKEditor has finished
|
21
|
+
// its initialization.
|
22
|
+
CKEDITOR.on( 'instanceReady', function( ev ) {
|
23
|
+
editor = ev.editor;
|
24
|
+
|
25
|
+
// Show this "on" button.
|
26
|
+
document.getElementById( 'readOnlyOn' ).style.display = '';
|
27
|
+
|
28
|
+
// Event fired when the readOnly property changes.
|
29
|
+
editor.on( 'readOnly', function() {
|
30
|
+
document.getElementById( 'readOnlyOn' ).style.display = this.readOnly ? 'none' : '';
|
31
|
+
document.getElementById( 'readOnlyOff' ).style.display = this.readOnly ? '' : 'none';
|
32
|
+
});
|
33
|
+
});
|
34
|
+
|
35
|
+
function toggleReadOnly( isReadOnly ) {
|
36
|
+
// Change the read-only state of the editor.
|
37
|
+
// https://ckeditor.com/docs/ckeditor4/latest/api/CKEDITOR_editor.html#method-setReadOnly
|
38
|
+
editor.setReadOnly( isReadOnly );
|
39
|
+
}
|
40
|
+
|
41
|
+
</script>
|
42
|
+
<link href="../../../samples/old/sample.css" rel="stylesheet">
|
43
|
+
|
44
|
+
<style>
|
45
|
+
|
46
|
+
body {
|
47
|
+
font-size: 13px;
|
48
|
+
}
|
49
|
+
.editable {
|
50
|
+
padding: 20px;
|
51
|
+
border: 2px solid #dfdfdf;
|
52
|
+
overflow: auto;
|
53
|
+
}
|
54
|
+
|
55
|
+
body p {
|
56
|
+
line-height: 1.8em;
|
57
|
+
}
|
58
|
+
|
59
|
+
/* Reset some styles from sample.css */
|
60
|
+
.cke_editable.cke_editable_inline
|
61
|
+
{
|
62
|
+
cursor: auto;
|
63
|
+
}
|
64
|
+
.cke_editable.cke_editable_inline.cke_focus
|
65
|
+
{
|
66
|
+
box-shadow: none;
|
67
|
+
background: inherit;
|
68
|
+
cursor: auto;
|
69
|
+
}
|
70
|
+
|
71
|
+
</style>
|
72
|
+
<link href="contents.css" rel="stylesheet">
|
73
|
+
<link href="../../../contents.css" rel="stylesheet">
|
74
|
+
</head>
|
75
|
+
<body>
|
76
|
+
<h1 class="samples">
|
77
|
+
<a href="../../../samples/old/index.html">CKEditor Samples</a> » Widget Image
|
78
|
+
</h1>
|
79
|
+
|
80
|
+
<h2>Classic (iframe-based) Sample</h2>
|
81
|
+
|
82
|
+
<textarea id="editor1" cols="10" rows="10">
|
83
|
+
<h1>Apollo 11</h1>
|
84
|
+
|
85
|
+
<figure class="image" style="float: right">
|
86
|
+
<img alt="Saturn V" src="assets/image1.jpg" width="200" data-foo="*********" data-bar="@@@@@@@@" />
|
87
|
+
<figcaption>Roll out of Saturn V on launch pad</figcaption>
|
88
|
+
</figure>
|
89
|
+
|
90
|
+
<p><strong>Apollo 11</strong> was the spaceflight that landed the first humans, Americans <a href="http://en.wikipedia.org/wiki/Neil_Armstrong" title="Neil Armstrong">Neil Armstrong</a> and <a href="http://en.wikipedia.org/wiki/Buzz_Aldrin" title="Buzz Aldrin">Buzz Aldrin</a>, on the Moon on July 20, 1969, at 20:18 UTC. Armstrong became the first to step onto the lunar surface 6 hours later on July 21 at 02:56 UTC.</p>
|
91
|
+
|
92
|
+
<p>Armstrong spent about <s>three and a half</s> two and a half hours outside the spacecraft, Aldrin slightly less; and together they collected 47.5 pounds (21.5 kg) of lunar material for return to Earth. A third member of the mission, <a href="http://en.wikipedia.org/wiki/Michael_Collins_(astronaut)" title="Michael Collins (astronaut)">Michael Collins</a>, piloted the <a href="http://en.wikipedia.org/wiki/Apollo_Command/Service_Module" title="Apollo Command/Service Module">command</a> spacecraft alone in lunar orbit until Armstrong and Aldrin returned to it for the trip back to Earth.</p>
|
93
|
+
|
94
|
+
<h2>Broadcasting and <em>quotes</em> <a id="quotes" name="quotes"></a></h2>
|
95
|
+
|
96
|
+
<p>Broadcast on live TV to a world-wide audience, Armstrong stepped onto the lunar surface and described the event as:</p>
|
97
|
+
|
98
|
+
<blockquote>
|
99
|
+
<p>One small step for [a] man, one giant leap for mankind.</p>
|
100
|
+
</blockquote>
|
101
|
+
|
102
|
+
<p>Apollo 11 effectively ended the <a href="http://en.wikipedia.org/wiki/Space_Race" title="Space Race">Space Race</a> and fulfilled a national goal proposed in 1961 by the late U.S. President <a href="http://en.wikipedia.org/wiki/John_F._Kennedy" title="John F. Kennedy">John F. Kennedy</a> in a speech before the United States Congress:</p>
|
103
|
+
|
104
|
+
<blockquote>
|
105
|
+
<p>[...] before this decade is out, of landing a man on the Moon and returning him safely to the Earth.</p>
|
106
|
+
</blockquote>
|
107
|
+
|
108
|
+
<figure class="image" style="float: right">
|
109
|
+
<img alt="The Eagle" src="assets/image2.jpg" style="width: 200px" />
|
110
|
+
<figcaption>The Eagle in lunar orbit</figcaption>
|
111
|
+
</figure>
|
112
|
+
|
113
|
+
<h2>Technical details <a id="tech-details" name="tech-details"></a></h2>
|
114
|
+
|
115
|
+
<p>Launched by a <strong>Saturn V</strong> rocket from <a href="http://en.wikipedia.org/wiki/Kennedy_Space_Center" title="Kennedy Space Center">Kennedy Space Center</a> in Merritt Island, Florida on July 16, Apollo 11 was the fifth manned mission of <a href="http://en.wikipedia.org/wiki/NASA" title="NASA">NASA</a>'s Apollo program. The Apollo spacecraft had three parts:</p>
|
116
|
+
|
117
|
+
<ol>
|
118
|
+
<li><strong>Command Module</strong> with a cabin for the three astronauts which was the only part which landed back on Earth</li>
|
119
|
+
<li><strong>Service Module</strong> which supported the Command Module with propulsion, electrical power, oxygen and water</li>
|
120
|
+
<li><strong>Lunar Module</strong> for landing on the Moon.</li>
|
121
|
+
</ol>
|
122
|
+
|
123
|
+
<p>After being sent to the Moon by the Saturn V's upper stage, the astronauts separated the spacecraft from it and travelled for three days until they entered into lunar orbit. Armstrong and Aldrin then moved into the Lunar Module and landed in the <a href="http://en.wikipedia.org/wiki/Mare_Tranquillitatis" title="Mare Tranquillitatis">Sea of Tranquility</a>. They stayed a total of about 21 and a half hours on the lunar surface. After lifting off in the upper part of the Lunar Module and rejoining Collins in the Command Module, they returned to Earth and landed in the <a href="http://en.wikipedia.org/wiki/Pacific_Ocean" title="Pacific Ocean">Pacific Ocean</a> on July 24.</p>
|
124
|
+
|
125
|
+
<p style="text-align:center">
|
126
|
+
<img alt="Saturn V" src="assets/image1.jpg" width="200" />
|
127
|
+
</p>
|
128
|
+
|
129
|
+
<hr />
|
130
|
+
<p style="text-align:right"><small>Source: <a href="http://en.wikipedia.org/wiki/Apollo_11">Wikipedia.org</a></small></p>
|
131
|
+
</textarea>
|
132
|
+
|
133
|
+
<h2>Inline Sample</h2>
|
134
|
+
|
135
|
+
<div id="editor2" contenteditable="true" class="editable">
|
136
|
+
<h2>Apollo 11</h2>
|
137
|
+
|
138
|
+
<figure class="image" style="float: right">
|
139
|
+
<img alt="Saturn V" src="assets/image1.jpg" width="200" />
|
140
|
+
<figcaption>Roll out of Saturn V on launch pad</figcaption>
|
141
|
+
</figure>
|
142
|
+
|
143
|
+
<p><strong>Apollo 11</strong> was the spaceflight that landed the first humans, Americans <a href="http://en.wikipedia.org/wiki/Neil_Armstrong" title="Neil Armstrong">Neil Armstrong</a> and <a href="http://en.wikipedia.org/wiki/Buzz_Aldrin" title="Buzz Aldrin">Buzz Aldrin</a>, on the Moon on July 20, 1969, at 20:18 UTC. Armstrong became the first to step onto the lunar surface 6 hours later on July 21 at 02:56 UTC.</p>
|
144
|
+
|
145
|
+
<p>Armstrong spent about <s>three and a half</s> two and a half hours outside the spacecraft, Aldrin slightly less; and together they collected 47.5 pounds (21.5 kg) of lunar material for return to Earth. A third member of the mission, <a href="http://en.wikipedia.org/wiki/Michael_Collins_(astronaut)" title="Michael Collins (astronaut)">Michael Collins</a>, piloted the <a href="http://en.wikipedia.org/wiki/Apollo_Command/Service_Module" title="Apollo Command/Service Module">command</a> spacecraft alone in lunar orbit until Armstrong and Aldrin returned to it for the trip back to Earth.</p>
|
146
|
+
|
147
|
+
<h2>Broadcasting and <em>quotes</em> <a id="quotes" name="quotes"></a></h2>
|
148
|
+
|
149
|
+
<p>Broadcast on live TV to a world-wide audience, Armstrong stepped onto the lunar surface and described the event as:</p>
|
150
|
+
|
151
|
+
<blockquote>
|
152
|
+
<p>One small step for [a] man, one giant leap for mankind.</p>
|
153
|
+
</blockquote>
|
154
|
+
|
155
|
+
<p>Apollo 11 effectively ended the <a href="http://en.wikipedia.org/wiki/Space_Race" title="Space Race">Space Race</a> and fulfilled a national goal proposed in 1961 by the late U.S. President <a href="http://en.wikipedia.org/wiki/John_F._Kennedy" title="John F. Kennedy">John F. Kennedy</a> in a speech before the United States Congress:</p>
|
156
|
+
|
157
|
+
<blockquote>
|
158
|
+
<p>[...] before this decade is out, of landing a man on the Moon and returning him safely to the Earth.</p>
|
159
|
+
</blockquote>
|
160
|
+
|
161
|
+
<figure class="image" style="float: right">
|
162
|
+
<img alt="The Eagle" src="assets/image2.jpg" style="width: 200px" />
|
163
|
+
<figcaption>The Eagle in lunar orbit</figcaption>
|
164
|
+
</figure>
|
165
|
+
|
166
|
+
<h2>Technical details <a id="tech-details" name="tech-details"></a></h2>
|
167
|
+
|
168
|
+
<p>Launched by a <strong>Saturn V</strong> rocket from <a href="http://en.wikipedia.org/wiki/Kennedy_Space_Center" title="Kennedy Space Center">Kennedy Space Center</a> in Merritt Island, Florida on July 16, Apollo 11 was the fifth manned mission of <a href="http://en.wikipedia.org/wiki/NASA" title="NASA">NASA</a>'s Apollo program. The Apollo spacecraft had three parts:</p>
|
169
|
+
|
170
|
+
<ol>
|
171
|
+
<li><strong>Command Module</strong> with a cabin for the three astronauts which was the only part which landed back on Earth</li>
|
172
|
+
<li><strong>Service Module</strong> which supported the Command Module with propulsion, electrical power, oxygen and water</li>
|
173
|
+
<li><strong>Lunar Module</strong> for landing on the Moon.</li>
|
174
|
+
</ol>
|
175
|
+
|
176
|
+
<p>After being sent to the Moon by the Saturn V's upper stage, the astronauts separated the spacecraft from it and travelled for three days until they entered into lunar orbit. Armstrong and Aldrin then moved into the Lunar Module and landed in the <a href="http://en.wikipedia.org/wiki/Mare_Tranquillitatis" title="Mare Tranquillitatis">Sea of Tranquility</a>. They stayed a total of about 21 and a half hours on the lunar surface. After lifting off in the upper part of the Lunar Module and rejoining Collins in the Command Module, they returned to Earth and landed in the <a href="http://en.wikipedia.org/wiki/Pacific_Ocean" title="Pacific Ocean">Pacific Ocean</a> on July 24.</p>
|
177
|
+
|
178
|
+
<p style="text-align:center">
|
179
|
+
<img alt="Saturn V" src="assets/image1.jpg" width="200" />
|
180
|
+
</p>
|
181
|
+
|
182
|
+
<hr />
|
183
|
+
<p style="text-align:right"><small>Source: <a href="http://en.wikipedia.org/wiki/Apollo_11">Wikipedia.org</a></small></p>
|
184
|
+
</div>
|
185
|
+
|
186
|
+
<h2>Div Editing Area Sample</h2>
|
187
|
+
|
188
|
+
<textarea id="editor3" cols="10" rows="10">
|
189
|
+
<h1>Apollo 11</h1>
|
190
|
+
|
191
|
+
<figure class="caption" style="float: right">
|
192
|
+
<img alt="Saturn V" src="assets/image1.jpg" width="200" />
|
193
|
+
<figcaption>Roll out of Saturn V on launch pad</figcaption>
|
194
|
+
</figure>
|
195
|
+
|
196
|
+
<p><strong>Apollo 11</strong> was the spaceflight that landed the first humans, Americans <a href="http://en.wikipedia.org/wiki/Neil_Armstrong" title="Neil Armstrong">Neil Armstrong</a> and <a href="http://en.wikipedia.org/wiki/Buzz_Aldrin" title="Buzz Aldrin">Buzz Aldrin</a>, on the Moon on July 20, 1969, at 20:18 UTC. Armstrong became the first to step onto the lunar surface 6 hours later on July 21 at 02:56 UTC.</p>
|
197
|
+
|
198
|
+
<p>Armstrong spent about <s>three and a half</s> two and a half hours outside the spacecraft, Aldrin slightly less; and together they collected 47.5 pounds (21.5 kg) of lunar material for return to Earth. A third member of the mission, <a href="http://en.wikipedia.org/wiki/Michael_Collins_(astronaut)" title="Michael Collins (astronaut)">Michael Collins</a>, piloted the <a href="http://en.wikipedia.org/wiki/Apollo_Command/Service_Module" title="Apollo Command/Service Module">command</a> spacecraft alone in lunar orbit until Armstrong and Aldrin returned to it for the trip back to Earth.</p>
|
199
|
+
|
200
|
+
<h2>Broadcasting and <em>quotes</em> <a id="quotes" name="quotes"></a></h2>
|
201
|
+
|
202
|
+
<p>Broadcast on live TV to a world-wide audience, Armstrong stepped onto the lunar surface and described the event as:</p>
|
203
|
+
|
204
|
+
<blockquote>
|
205
|
+
<p>One small step for [a] man, one giant leap for mankind.</p>
|
206
|
+
</blockquote>
|
207
|
+
|
208
|
+
<p>Apollo 11 effectively ended the <a href="http://en.wikipedia.org/wiki/Space_Race" title="Space Race">Space Race</a> and fulfilled a national goal proposed in 1961 by the late U.S. President <a href="http://en.wikipedia.org/wiki/John_F._Kennedy" title="John F. Kennedy">John F. Kennedy</a> in a speech before the United States Congress:</p>
|
209
|
+
|
210
|
+
<blockquote>
|
211
|
+
<p>[...] before this decade is out, of landing a man on the Moon and returning him safely to the Earth.</p>
|
212
|
+
</blockquote>
|
213
|
+
|
214
|
+
<figure class="caption" style="float: right">
|
215
|
+
<img alt="The Eagle" src="assets/image2.jpg" style="width: 200px" />
|
216
|
+
<figcaption>The Eagle in lunar orbit</figcaption>
|
217
|
+
</figure>
|
218
|
+
|
219
|
+
<h2>Technical Details <a id="tech-details" name="tech-details"></a></h2>
|
220
|
+
|
221
|
+
<p>Launched by a <strong>Saturn V</strong> rocket from <a href="http://en.wikipedia.org/wiki/Kennedy_Space_Center" title="Kennedy Space Center">Kennedy Space Center</a> in Merritt Island, Florida on July 16, Apollo 11 was the fifth manned mission of <a href="http://en.wikipedia.org/wiki/NASA" title="NASA">NASA</a>'s Apollo program. The Apollo spacecraft had three parts:</p>
|
222
|
+
|
223
|
+
<ol>
|
224
|
+
<li><strong>Command Module</strong> with a cabin for the three astronauts which was the only part which landed back on Earth</li>
|
225
|
+
<li><strong>Service Module</strong> which supported the Command Module with propulsion, electrical power, oxygen and water</li>
|
226
|
+
<li><strong>Lunar Module</strong> for landing on the Moon.</li>
|
227
|
+
</ol>
|
228
|
+
|
229
|
+
<p>After being sent to the Moon by the Saturn V's upper stage, the astronauts separated the spacecraft from it and travelled for three days until they entered into lunar orbit. Armstrong and Aldrin then moved into the Lunar Module and landed in the <a href="http://en.wikipedia.org/wiki/Mare_Tranquillitatis" title="Mare Tranquillitatis">Sea of Tranquility</a>. They stayed a total of about 21 and a half hours on the lunar surface. After lifting off in the upper part of the Lunar Module and rejoining Collins in the Command Module, they returned to Earth and landed in the <a href="http://en.wikipedia.org/wiki/Pacific_Ocean" title="Pacific Ocean">Pacific Ocean</a> on July 24.</p>
|
230
|
+
|
231
|
+
<p style="text-align:center">
|
232
|
+
<img alt="Saturn V" src="assets/image1.jpg" width="200" />
|
233
|
+
</p>
|
234
|
+
|
235
|
+
<hr />
|
236
|
+
<p style="text-align:right"><small>Source: <a href="http://en.wikipedia.org/wiki/Apollo_11">Wikipedia.org</a></small></p>
|
237
|
+
</textarea>
|
238
|
+
|
239
|
+
<h2>alignClasses samples</h2>
|
240
|
+
|
241
|
+
<textarea id="editor4" cols="10" rows="10">
|
242
|
+
<h1>Apollo 11</h1>
|
243
|
+
|
244
|
+
<figure class="align-left image">
|
245
|
+
<img alt="Saturn V" src="assets/image1.jpg" width="200" data-foo="*********" data-bar="@@@@@@@@" />
|
246
|
+
<figcaption>Roll out of Saturn V on launch pad</figcaption>
|
247
|
+
</figure>
|
248
|
+
|
249
|
+
<p><strong>Apollo 11</strong> was the spaceflight that landed the first humans, Americans <a href="http://en.wikipedia.org/wiki/Neil_Armstrong" title="Neil Armstrong">Neil Armstrong</a> and <a href="http://en.wikipedia.org/wiki/Buzz_Aldrin" title="Buzz Aldrin">Buzz Aldrin</a>, on the Moon on July 20, 1969, at 20:18 UTC. Armstrong became the first to step onto the lunar surface 6 hours later on July 21 at 02:56 UTC.</p>
|
250
|
+
|
251
|
+
<blockquote>
|
252
|
+
<p>[...] before this decade is out, of landing a man on the Moon and returning him safely to the Earth.</p>
|
253
|
+
</blockquote>
|
254
|
+
|
255
|
+
<figure class="align-right image">
|
256
|
+
<img alt="The Eagle" src="assets/image2.jpg" style="width: 200px" />
|
257
|
+
<figcaption>The Eagle in lunar orbit</figcaption>
|
258
|
+
</figure>
|
259
|
+
|
260
|
+
<h2>Technical details <a id="tech-details" name="tech-details"></a></h2>
|
261
|
+
|
262
|
+
<p>Launched by a <strong>Saturn V</strong> rocket from <a href="http://en.wikipedia.org/wiki/Kennedy_Space_Center" title="Kennedy Space Center">Kennedy Space Center</a> in Merritt Island, Florida on July 16, Apollo 11 was the fifth manned mission of <a href="http://en.wikipedia.org/wiki/NASA" title="NASA">NASA</a>'s Apollo program. The Apollo spacecraft had three parts:</p>
|
263
|
+
|
264
|
+
<ol>
|
265
|
+
<li><strong>Command Module</strong> with a cabin for the three astronauts which was the only part which landed back on Earth</li>
|
266
|
+
<li><strong>Service Module</strong> which supported the Command Module with propulsion, electrical power, oxygen and water</li>
|
267
|
+
<li><strong>Lunar Module</strong> for landing on the Moon.</li>
|
268
|
+
</ol>
|
269
|
+
|
270
|
+
<p>After being sent to the Moon by the Saturn V's upper stage, the astronauts separated the spacecraft from it and travelled for three days until they entered into lunar orbit. Armstrong and Aldrin then moved into the Lunar Module and landed in the <a href="http://en.wikipedia.org/wiki/Mare_Tranquillitatis" title="Mare Tranquillitatis">Sea of Tranquility</a>. They stayed a total of about 21 and a half hours on the lunar surface. After lifting off in the upper part of the Lunar Module and rejoining Collins in the Command Module, they returned to Earth and landed in the <a href="http://en.wikipedia.org/wiki/Pacific_Ocean" title="Pacific Ocean">Pacific Ocean</a> on July 24.</p>
|
271
|
+
|
272
|
+
<p class="align-center">
|
273
|
+
<img alt="Saturn V" src="assets/image1.jpg" width="200" />
|
274
|
+
</p>
|
275
|
+
|
276
|
+
<hr />
|
277
|
+
<p style="text-align:right"><small>Source: <a href="http://en.wikipedia.org/wiki/Apollo_11">Wikipedia.org</a></small></p>
|
278
|
+
</textarea>
|
279
|
+
|
280
|
+
<p>
|
281
|
+
<input id="readOnlyOn" onclick="toggleReadOnly( true );" type="button" value="Make it read-only" style="display:none">
|
282
|
+
<input id="readOnlyOff" onclick="toggleReadOnly( false );" type="button" value="Make it editable again" style="display:none">
|
283
|
+
</p>
|
284
|
+
|
285
|
+
<script>
|
286
|
+
|
287
|
+
CKEDITOR.disableAutoInline = true;
|
288
|
+
|
289
|
+
CKEDITOR.replace( 'editor1', {
|
290
|
+
extraPlugins: 'image2',
|
291
|
+
height: 600,
|
292
|
+
contentsCss: [ '../../../contents.css', 'contents.css' ],
|
293
|
+
extraAllowedContent: 'img[data-foo,data-bar]',
|
294
|
+
|
295
|
+
filebrowserBrowseUrl: '/ckfinder/ckfinder.html',
|
296
|
+
filebrowserImageBrowseUrl: '/ckfinder/ckfinder.html?Type=Images',
|
297
|
+
filebrowserUploadUrl: '/ckfinder/core/connector/php/connector.php?command=QuickUpload&type=Files',
|
298
|
+
filebrowserImageUploadUrl: '/ckfinder/core/connector/php/connector.php?command=QuickUpload&type=Images',
|
299
|
+
} );
|
300
|
+
|
301
|
+
CKEDITOR.inline( 'editor2', {
|
302
|
+
extraPlugins: 'image2,sourcedialog'
|
303
|
+
} );
|
304
|
+
|
305
|
+
CKEDITOR.replace( 'editor3', {
|
306
|
+
extraPlugins: 'image2,divarea',
|
307
|
+
height: 600
|
308
|
+
} );
|
309
|
+
|
310
|
+
CKEDITOR.replace( 'editor4', {
|
311
|
+
extraPlugins: 'image2',
|
312
|
+
image2_alignClasses: [ 'align-left', 'align-center', 'align-right' ],
|
313
|
+
contentsCss: [ '../../../contents.css', 'contents.css' ],
|
314
|
+
height: 600
|
315
|
+
} );
|
316
|
+
|
317
|
+
CKCONSOLE.create( 'widget', { editor: 'editor1' } );
|
318
|
+
CKCONSOLE.create( 'focus', { editor: 'editor1' } );
|
319
|
+
CKCONSOLE.create( 'widget', { editor: 'editor2', folded: true } );
|
320
|
+
CKCONSOLE.create( 'focus', { editor: 'editor2', folded: true } );
|
321
|
+
CKCONSOLE.create( 'widget', { editor: 'editor3' } );
|
322
|
+
CKCONSOLE.create( 'focus', { editor: 'editor3' } );
|
323
|
+
CKCONSOLE.create( 'widget', { editor: 'editor4' } );
|
324
|
+
CKCONSOLE.create( 'focus', { editor: 'editor4' } );
|
325
|
+
|
326
|
+
</script>
|
327
|
+
|
328
|
+
<div id="footer">
|
329
|
+
<hr>
|
330
|
+
<p>
|
331
|
+
CKEditor - The text editor for the Internet - <a class="samples" href="https://ckeditor.com/">https://ckeditor.com</a>
|
332
|
+
</p>
|
333
|
+
<p id="copy">
|
334
|
+
Copyright © 2003-2020, <a class="samples" href="https://cksource.com/">CKSource</a> - Frederico
|
335
|
+
Knabben. All rights reserved.
|
336
|
+
</p>
|
337
|
+
</div>
|
338
|
+
</body>
|
339
|
+
</html>
|