st-rich 1.5.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +7 -0
- data/MIT-LICENSE +20 -0
- data/README.rdoc +289 -0
- data/Rakefile +39 -0
- data/app/assets/images/rich/document-thumb.png +0 -0
- data/app/assets/images/rich/files.png +0 -0
- data/app/assets/images/rich/images.png +0 -0
- data/app/assets/images/rich/insert-many.png +0 -0
- data/app/assets/images/rich/insert-one.png +0 -0
- data/app/assets/images/rich/loading.png +0 -0
- data/app/assets/images/rich/menu-dash.png +0 -0
- data/app/assets/images/rich/plus-red.png +0 -0
- data/app/assets/images/rich/plus.png +0 -0
- data/app/assets/images/rich/rich.png +0 -0
- data/app/assets/images/rich/view-grid.png +0 -0
- data/app/assets/images/rich/view-list.png +0 -0
- data/app/assets/images/rich/x-red.png +0 -0
- data/app/assets/javascripts/rich/application.js +12 -0
- data/app/assets/javascripts/rich/base.js.erb +5 -0
- data/app/assets/javascripts/rich/browser/extensions.js +15 -0
- data/app/assets/javascripts/rich/browser/filebrowser.js +186 -0
- data/app/assets/javascripts/rich/browser/uploader.js +68 -0
- data/app/assets/javascripts/rich/editor/ckeditor_path.js.erb +1 -0
- data/app/assets/javascripts/rich/editor/rich_editor.js.erb +14 -0
- data/app/assets/javascripts/rich/editor/rich_picker.js +45 -0
- data/app/assets/stylesheets/rich/application.css.scss +365 -0
- data/app/assets/stylesheets/rich/editor.css +20 -0
- data/app/assets/stylesheets/rich/files.css +4 -0
- data/app/assets/stylesheets/rich/mixins/reset.css.scss +58 -0
- data/app/controllers/rich/files_controller.rb +82 -0
- data/app/helpers/rich/application_helper.rb +4 -0
- data/app/helpers/rich/files_helper.rb +13 -0
- data/app/inputs/rich_input.rb +19 -0
- data/app/inputs/rich_picker_input.rb +88 -0
- data/app/models/rich/rich_file.rb +75 -0
- data/app/views/layouts/rich/application.html.erb +14 -0
- data/app/views/rails_admin/main/_form_rich_picker.html.haml +7 -0
- data/app/views/rails_admin/main/_form_rich_text.html.haml +7 -0
- data/app/views/rich/files/_file.html.erb +11 -0
- data/app/views/rich/files/destroy.js.erb +1 -0
- data/app/views/rich/files/index.html.erb +38 -0
- data/app/views/rich/files/index.js.erb +1 -0
- data/app/views/rich/files/show.html.erb +1 -0
- data/config/locales/en.yml +19 -0
- data/config/locales/fr.yml +14 -0
- data/config/locales/it.yml +19 -0
- data/config/locales/nl.yml +14 -0
- data/config/locales/ru.yml +19 -0
- data/config/locales/sv.yml +14 -0
- data/config/locales/zh-CN.yml +19 -0
- data/config/routes.rb +5 -0
- data/db/migrate/20111002142937_create_rich_rich_images.rb +17 -0
- data/db/migrate/20111117202133_add_uri_cache_to_rich_image.rb +5 -0
- data/db/migrate/20111201095829_refactor_image_to_file.rb +12 -0
- data/lib/generators/rich/install/install_generator.rb +34 -0
- data/lib/generators/rich/install/templates/rich.js +1 -0
- data/lib/generators/rich/install/templates/rich.rb.erb +125 -0
- data/lib/rich.rb +195 -0
- data/lib/rich/authorize.rb +7 -0
- data/lib/rich/backends/carrierwave.rb +78 -0
- data/lib/rich/backends/paperclip.rb +79 -0
- data/lib/rich/backends/rich_file_uploader.rb +55 -0
- data/lib/rich/engine.rb +26 -0
- data/lib/rich/integrations/legacy_formtastic.rb +50 -0
- data/lib/rich/rails_admin/config/fields/types/rich_editor.rb +34 -0
- data/lib/rich/rails_admin/config/fields/types/rich_picker.rb +45 -0
- data/lib/rich/utils/file_size_validator.rb +68 -0
- data/lib/rich/version.rb +3 -0
- data/lib/tasks/rich_tasks.rake +24 -0
- data/test/dummy/Rakefile +7 -0
- data/test/dummy/app/admin/dashboards.rb +38 -0
- data/test/dummy/app/admin/posts.rb +11 -0
- data/test/dummy/app/assets/javascripts/active_admin.js +2 -0
- data/test/dummy/app/assets/javascripts/application.js +9 -0
- data/test/dummy/app/assets/javascripts/posts.js +2 -0
- data/test/dummy/app/assets/javascripts/rich.js +1 -0
- data/test/dummy/app/assets/stylesheets/active_admin.css.scss +10 -0
- data/test/dummy/app/assets/stylesheets/application.css +7 -0
- data/test/dummy/app/assets/stylesheets/posts.css +4 -0
- data/test/dummy/app/assets/stylesheets/rich/editor.css +20 -0
- data/test/dummy/app/assets/stylesheets/scaffold.css +56 -0
- data/test/dummy/app/controllers/application_controller.rb +3 -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/admin_user.rb +9 -0
- data/test/dummy/app/models/post.rb +2 -0
- data/test/dummy/app/views/layouts/application.html.erb +14 -0
- data/test/dummy/app/views/posts/_form.html.erb +29 -0
- data/test/dummy/app/views/posts/_formtastic_form.html.erb +17 -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 +20 -0
- data/test/dummy/config.ru +4 -0
- data/test/dummy/config/application.rb +48 -0
- data/test/dummy/config/boot.rb +19 -0
- data/test/dummy/config/database.yml +25 -0
- data/test/dummy/config/environment.rb +5 -0
- data/test/dummy/config/environments/development.rb +32 -0
- data/test/dummy/config/environments/production.rb +62 -0
- data/test/dummy/config/environments/test.rb +39 -0
- data/test/dummy/config/initializers/active_admin.rb +101 -0
- data/test/dummy/config/initializers/backtrace_silencers.rb +7 -0
- data/test/dummy/config/initializers/devise.rb +211 -0
- data/test/dummy/config/initializers/formtastic.rb +80 -0
- data/test/dummy/config/initializers/inflections.rb +10 -0
- data/test/dummy/config/initializers/mime_types.rb +5 -0
- data/test/dummy/config/initializers/rich.rb +29 -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/devise.en.yml +58 -0
- data/test/dummy/config/locales/en.yml +5 -0
- data/test/dummy/config/routes.rb +13 -0
- data/test/dummy/db/migrate/20111001122048_create_posts.rb +12 -0
- data/test/dummy/db/migrate/20111003150957_create_rich_rich_images.rb +17 -0
- data/test/dummy/db/migrate/20111014123344_devise_create_admin_users.rb +31 -0
- data/test/dummy/db/migrate/20111014143348_create_admin_notes.rb +16 -0
- data/test/dummy/db/migrate/20111014143349_move_admin_notes_to_comments.rb +25 -0
- data/test/dummy/db/migrate/20111117202523_add_uri_cache_to_rich_image.rb +5 -0
- data/test/dummy/db/migrate/20111201102914_refactor_image_to_file.rb +12 -0
- data/test/dummy/db/schema.rb +58 -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/admin_users.yml +11 -0
- data/test/dummy/test/fixtures/posts.yml +11 -0
- data/test/dummy/test/functional/posts_controller_test.rb +49 -0
- data/test/dummy/test/unit/admin_user_test.rb +7 -0
- data/test/dummy/test/unit/helpers/posts_helper_test.rb +4 -0
- data/test/dummy/test/unit/post_test.rb +7 -0
- data/test/fixtures/rich/rich_images.yml +11 -0
- data/test/functional/rich/files_controller_test.rb +9 -0
- data/test/integration/navigation_test.rb +10 -0
- data/test/rich_test.rb +7 -0
- data/test/test_helper.rb +10 -0
- data/test/unit/helpers/rich/files_helper_test.rb +6 -0
- data/test/unit/rich/rich_image_test.rb +9 -0
- data/vendor/assets/images/ckeditor/plugins/MediaEmbed/icons/mediaembed.png +0 -0
- data/vendor/assets/images/ckeditor/plugins/MediaEmbed/images/icon.png +0 -0
- data/vendor/assets/images/ckeditor/plugins/about/dialogs/hidpi/logo_ckeditor.png +0 -0
- data/vendor/assets/images/ckeditor/plugins/about/dialogs/logo_ckeditor.png +0 -0
- data/vendor/assets/images/ckeditor/plugins/fakeobjects/images/spacer.gif +0 -0
- data/vendor/assets/images/ckeditor/plugins/flash/images/placeholder.png +0 -0
- data/vendor/assets/images/ckeditor/plugins/forms/images/hiddenfield.gif +0 -0
- data/vendor/assets/images/ckeditor/plugins/icons.png +0 -0
- data/vendor/assets/images/ckeditor/plugins/icons_hidpi.png +0 -0
- data/vendor/assets/images/ckeditor/plugins/iframe/images/placeholder.png +0 -0
- data/vendor/assets/images/ckeditor/plugins/image/images/noimage.png +0 -0
- data/vendor/assets/images/ckeditor/plugins/link/images/anchor.png +0 -0
- data/vendor/assets/images/ckeditor/plugins/link/images/hidpi/anchor.png +0 -0
- data/vendor/assets/images/ckeditor/plugins/magicline/images/hidpi/icon.png +0 -0
- data/vendor/assets/images/ckeditor/plugins/magicline/images/icon.png +0 -0
- data/vendor/assets/images/ckeditor/plugins/maximize/icons/maximize.png +0 -0
- data/vendor/assets/images/ckeditor/plugins/pagebreak/images/pagebreak.gif +0 -0
- data/vendor/assets/images/ckeditor/plugins/showblocks/icons/hidpi/showblocks-rtl.png +0 -0
- data/vendor/assets/images/ckeditor/plugins/showblocks/icons/hidpi/showblocks.png +0 -0
- data/vendor/assets/images/ckeditor/plugins/showblocks/icons/showblocks-rtl.png +0 -0
- data/vendor/assets/images/ckeditor/plugins/showblocks/icons/showblocks.png +0 -0
- data/vendor/assets/images/ckeditor/plugins/showblocks/images/block_address.png +0 -0
- data/vendor/assets/images/ckeditor/plugins/showblocks/images/block_blockquote.png +0 -0
- data/vendor/assets/images/ckeditor/plugins/showblocks/images/block_div.png +0 -0
- data/vendor/assets/images/ckeditor/plugins/showblocks/images/block_h1.png +0 -0
- data/vendor/assets/images/ckeditor/plugins/showblocks/images/block_h2.png +0 -0
- data/vendor/assets/images/ckeditor/plugins/showblocks/images/block_h3.png +0 -0
- data/vendor/assets/images/ckeditor/plugins/showblocks/images/block_h4.png +0 -0
- data/vendor/assets/images/ckeditor/plugins/showblocks/images/block_h5.png +0 -0
- data/vendor/assets/images/ckeditor/plugins/showblocks/images/block_h6.png +0 -0
- data/vendor/assets/images/ckeditor/plugins/showblocks/images/block_p.png +0 -0
- data/vendor/assets/images/ckeditor/plugins/showblocks/images/block_pre.png +0 -0
- data/vendor/assets/images/ckeditor/plugins/smiley/images/angel_smile.gif +0 -0
- data/vendor/assets/images/ckeditor/plugins/smiley/images/angry_smile.gif +0 -0
- data/vendor/assets/images/ckeditor/plugins/smiley/images/broken_heart.gif +0 -0
- data/vendor/assets/images/ckeditor/plugins/smiley/images/confused_smile.gif +0 -0
- data/vendor/assets/images/ckeditor/plugins/smiley/images/cry_smile.gif +0 -0
- data/vendor/assets/images/ckeditor/plugins/smiley/images/devil_smile.gif +0 -0
- data/vendor/assets/images/ckeditor/plugins/smiley/images/embaressed_smile.gif +0 -0
- data/vendor/assets/images/ckeditor/plugins/smiley/images/embarrassed_smile.gif +0 -0
- data/vendor/assets/images/ckeditor/plugins/smiley/images/envelope.gif +0 -0
- data/vendor/assets/images/ckeditor/plugins/smiley/images/heart.gif +0 -0
- data/vendor/assets/images/ckeditor/plugins/smiley/images/kiss.gif +0 -0
- data/vendor/assets/images/ckeditor/plugins/smiley/images/lightbulb.gif +0 -0
- data/vendor/assets/images/ckeditor/plugins/smiley/images/omg_smile.gif +0 -0
- data/vendor/assets/images/ckeditor/plugins/smiley/images/regular_smile.gif +0 -0
- data/vendor/assets/images/ckeditor/plugins/smiley/images/sad_smile.gif +0 -0
- data/vendor/assets/images/ckeditor/plugins/smiley/images/shades_smile.gif +0 -0
- data/vendor/assets/images/ckeditor/plugins/smiley/images/teeth_smile.gif +0 -0
- data/vendor/assets/images/ckeditor/plugins/smiley/images/thumbs_down.gif +0 -0
- data/vendor/assets/images/ckeditor/plugins/smiley/images/thumbs_up.gif +0 -0
- data/vendor/assets/images/ckeditor/plugins/smiley/images/tongue_smile.gif +0 -0
- data/vendor/assets/images/ckeditor/plugins/smiley/images/tounge_smile.gif +0 -0
- data/vendor/assets/images/ckeditor/plugins/smiley/images/whatchutalkingabout_smile.gif +0 -0
- data/vendor/assets/images/ckeditor/plugins/smiley/images/wink_smile.gif +0 -0
- data/vendor/assets/images/ckeditor/plugins/templates/templates/images/template1.gif +0 -0
- data/vendor/assets/images/ckeditor/plugins/templates/templates/images/template2.gif +0 -0
- data/vendor/assets/images/ckeditor/plugins/templates/templates/images/template3.gif +0 -0
- data/vendor/assets/images/ckeditor/plugins/widget/images/handle.png +0 -0
- data/vendor/assets/images/ckeditor/skins/BootstrapCK/icons.png +0 -0
- data/vendor/assets/images/ckeditor/skins/BootstrapCK/images/dialog_sides.gif +0 -0
- data/vendor/assets/images/ckeditor/skins/BootstrapCK/images/dialog_sides.png +0 -0
- data/vendor/assets/images/ckeditor/skins/BootstrapCK/images/dialog_sides_rtl.png +0 -0
- data/vendor/assets/images/ckeditor/skins/BootstrapCK/images/mini.png +0 -0
- data/vendor/assets/images/ckeditor/skins/BootstrapCK/images/noimage.png +0 -0
- data/vendor/assets/images/ckeditor/skins/BootstrapCK/images/sprites.png +0 -0
- data/vendor/assets/images/ckeditor/skins/BootstrapCK/images/sprites_ie6.png +0 -0
- data/vendor/assets/images/ckeditor/skins/BootstrapCK/images/toolbar_start.gif +0 -0
- data/vendor/assets/images/ckeditor/skins/moono/icons.png +0 -0
- data/vendor/assets/images/ckeditor/skins/moono/images/arrow.png +0 -0
- data/vendor/assets/images/ckeditor/skins/moono/images/close.png +0 -0
- data/vendor/assets/images/ckeditor/skins/moono/images/mini.png +0 -0
- data/vendor/assets/javascripts/ckeditor/build-config.js +102 -0
- data/vendor/assets/javascripts/ckeditor/ckeditor.js +926 -0
- data/vendor/assets/javascripts/ckeditor/config.js +10 -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/id.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/si.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/sq.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/tt.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/MediaEmbed/plugin.js +65 -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 +11 -0
- data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/bg.js +11 -0
- data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/ca.js +13 -0
- data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/cs.js +13 -0
- data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/cy.js +11 -0
- data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/da.js +11 -0
- data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/de.js +12 -0
- data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/el.js +13 -0
- data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/en-gb.js +11 -0
- data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/en.js +11 -0
- data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/eo.js +13 -0
- data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/es.js +12 -0
- data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/et.js +11 -0
- data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/fa.js +11 -0
- data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/fi.js +12 -0
- data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/fr-ca.js +12 -0
- data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/fr.js +13 -0
- data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/gl.js +12 -0
- data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/gu.js +11 -0
- data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/he.js +11 -0
- data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/hi.js +11 -0
- data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/hr.js +11 -0
- data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/hu.js +13 -0
- data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/id.js +11 -0
- data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/it.js +13 -0
- data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/ja.js +9 -0
- data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/km.js +11 -0
- data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/ko.js +10 -0
- data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/ku.js +12 -0
- data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/lt.js +11 -0
- data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/lv.js +13 -0
- data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/mk.js +11 -0
- data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/mn.js +11 -0
- data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/nb.js +12 -0
- data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/nl.js +12 -0
- data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/no.js +11 -0
- data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/pl.js +13 -0
- data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/pt-br.js +11 -0
- data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/pt.js +12 -0
- data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/ro.js +12 -0
- data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/ru.js +11 -0
- data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/si.js +10 -0
- data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/sk.js +12 -0
- data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/sl.js +12 -0
- data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/sq.js +11 -0
- data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/sr-latn.js +11 -0
- data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/sr.js +11 -0
- data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/sv.js +12 -0
- data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/th.js +11 -0
- data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/tr.js +12 -0
- data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/tt.js +11 -0
- data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/ug.js +11 -0
- data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/uk.js +12 -0
- data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/vi.js +11 -0
- data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/zh-cn.js +9 -0
- data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/zh.js +10 -0
- data/vendor/assets/javascripts/ckeditor/plugins/about/dialogs/about.js +7 -0
- data/vendor/assets/javascripts/ckeditor/plugins/autogrow/plugin.js +178 -0
- data/vendor/assets/javascripts/ckeditor/plugins/clipboard/dialogs/paste.js +11 -0
- data/vendor/assets/javascripts/ckeditor/plugins/codemirror/js/addon/dialog/dialog.js +3 -0
- data/vendor/assets/javascripts/ckeditor/plugins/codemirror/js/addon/edit/closebrackets.js +2 -0
- data/vendor/assets/javascripts/ckeditor/plugins/codemirror/js/addon/edit/closetag.js +3 -0
- data/vendor/assets/javascripts/ckeditor/plugins/codemirror/js/addon/edit/continuelist.js +1 -0
- data/vendor/assets/javascripts/ckeditor/plugins/codemirror/js/addon/edit/matchbrackets.js +4 -0
- data/vendor/assets/javascripts/ckeditor/plugins/codemirror/js/addon/foldcode/foldcode.js +7 -0
- data/vendor/assets/javascripts/ckeditor/plugins/codemirror/js/addon/format/autoFormatAll.js +2 -0
- data/vendor/assets/javascripts/ckeditor/plugins/codemirror/js/addon/format/formatting.js +5 -0
- data/vendor/assets/javascripts/ckeditor/plugins/codemirror/js/addon/search/match-highlighter.js +2 -0
- data/vendor/assets/javascripts/ckeditor/plugins/codemirror/js/addon/search/search.js +5 -0
- data/vendor/assets/javascripts/ckeditor/plugins/codemirror/js/addon/search/searchcursor.js +5 -0
- data/vendor/assets/javascripts/ckeditor/plugins/codemirror/js/codemirror.addons.min.js +25 -0
- data/vendor/assets/javascripts/ckeditor/plugins/codemirror/js/codemirror.js +188 -0
- data/vendor/assets/javascripts/ckeditor/plugins/codemirror/js/codemirror.min.js +187 -0
- data/vendor/assets/javascripts/ckeditor/plugins/codemirror/js/codemirror.modes.min.js +25 -0
- data/vendor/assets/javascripts/ckeditor/plugins/codemirror/js/codemirror.search-addons.min.js +13 -0
- data/vendor/assets/javascripts/ckeditor/plugins/codemirror/js/mode/css.js +10 -0
- data/vendor/assets/javascripts/ckeditor/plugins/codemirror/js/mode/htmlmixed.js +5 -0
- data/vendor/assets/javascripts/ckeditor/plugins/codemirror/js/mode/javascript.js +14 -0
- data/vendor/assets/javascripts/ckeditor/plugins/codemirror/js/mode/xml.js +10 -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/divarea/plugin.js +36 -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/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/iframe/dialogs/iframe.js +10 -0
- data/vendor/assets/javascripts/ckeditor/plugins/image/dialogs/image.js +43 -0
- data/vendor/assets/javascripts/ckeditor/plugins/lineutils/plugin.js +933 -0
- data/vendor/assets/javascripts/ckeditor/plugins/link/dialogs/anchor.js +7 -0
- data/vendor/assets/javascripts/ckeditor/plugins/link/dialogs/link.js +26 -0
- data/vendor/assets/javascripts/ckeditor/plugins/liststyle/dialogs/liststyle.js +10 -0
- data/vendor/assets/javascripts/ckeditor/plugins/maximize/lang/af.js +8 -0
- data/vendor/assets/javascripts/ckeditor/plugins/maximize/lang/ar.js +8 -0
- data/vendor/assets/javascripts/ckeditor/plugins/maximize/lang/bg.js +8 -0
- data/vendor/assets/javascripts/ckeditor/plugins/maximize/lang/bn.js +8 -0
- data/vendor/assets/javascripts/ckeditor/plugins/maximize/lang/bs.js +8 -0
- data/vendor/assets/javascripts/ckeditor/plugins/maximize/lang/ca.js +8 -0
- data/vendor/assets/javascripts/ckeditor/plugins/maximize/lang/cs.js +8 -0
- data/vendor/assets/javascripts/ckeditor/plugins/maximize/lang/cy.js +8 -0
- data/vendor/assets/javascripts/ckeditor/plugins/maximize/lang/da.js +8 -0
- data/vendor/assets/javascripts/ckeditor/plugins/maximize/lang/de.js +8 -0
- data/vendor/assets/javascripts/ckeditor/plugins/maximize/lang/el.js +8 -0
- data/vendor/assets/javascripts/ckeditor/plugins/maximize/lang/en-au.js +8 -0
- data/vendor/assets/javascripts/ckeditor/plugins/maximize/lang/en-ca.js +8 -0
- data/vendor/assets/javascripts/ckeditor/plugins/maximize/lang/en-gb.js +8 -0
- data/vendor/assets/javascripts/ckeditor/plugins/maximize/lang/en.js +8 -0
- data/vendor/assets/javascripts/ckeditor/plugins/maximize/lang/eo.js +8 -0
- data/vendor/assets/javascripts/ckeditor/plugins/maximize/lang/es.js +8 -0
- data/vendor/assets/javascripts/ckeditor/plugins/maximize/lang/et.js +8 -0
- data/vendor/assets/javascripts/ckeditor/plugins/maximize/lang/eu.js +8 -0
- data/vendor/assets/javascripts/ckeditor/plugins/maximize/lang/fa.js +8 -0
- data/vendor/assets/javascripts/ckeditor/plugins/maximize/lang/fi.js +8 -0
- data/vendor/assets/javascripts/ckeditor/plugins/maximize/lang/fo.js +8 -0
- data/vendor/assets/javascripts/ckeditor/plugins/maximize/lang/fr-ca.js +8 -0
- data/vendor/assets/javascripts/ckeditor/plugins/maximize/lang/fr.js +8 -0
- data/vendor/assets/javascripts/ckeditor/plugins/maximize/lang/gl.js +8 -0
- data/vendor/assets/javascripts/ckeditor/plugins/maximize/lang/gu.js +8 -0
- data/vendor/assets/javascripts/ckeditor/plugins/maximize/lang/he.js +8 -0
- data/vendor/assets/javascripts/ckeditor/plugins/maximize/lang/hi.js +8 -0
- data/vendor/assets/javascripts/ckeditor/plugins/maximize/lang/hr.js +8 -0
- data/vendor/assets/javascripts/ckeditor/plugins/maximize/lang/hu.js +8 -0
- data/vendor/assets/javascripts/ckeditor/plugins/maximize/lang/is.js +8 -0
- data/vendor/assets/javascripts/ckeditor/plugins/maximize/lang/it.js +8 -0
- data/vendor/assets/javascripts/ckeditor/plugins/maximize/lang/ja.js +8 -0
- data/vendor/assets/javascripts/ckeditor/plugins/maximize/lang/ka.js +8 -0
- data/vendor/assets/javascripts/ckeditor/plugins/maximize/lang/km.js +8 -0
- data/vendor/assets/javascripts/ckeditor/plugins/maximize/lang/ko.js +8 -0
- data/vendor/assets/javascripts/ckeditor/plugins/maximize/lang/ku.js +8 -0
- data/vendor/assets/javascripts/ckeditor/plugins/maximize/lang/lt.js +8 -0
- data/vendor/assets/javascripts/ckeditor/plugins/maximize/lang/lv.js +8 -0
- data/vendor/assets/javascripts/ckeditor/plugins/maximize/lang/mk.js +8 -0
- data/vendor/assets/javascripts/ckeditor/plugins/maximize/lang/mn.js +8 -0
- data/vendor/assets/javascripts/ckeditor/plugins/maximize/lang/ms.js +8 -0
- data/vendor/assets/javascripts/ckeditor/plugins/maximize/lang/nb.js +8 -0
- data/vendor/assets/javascripts/ckeditor/plugins/maximize/lang/nl.js +8 -0
- data/vendor/assets/javascripts/ckeditor/plugins/maximize/lang/no.js +8 -0
- data/vendor/assets/javascripts/ckeditor/plugins/maximize/lang/pl.js +8 -0
- data/vendor/assets/javascripts/ckeditor/plugins/maximize/lang/pt-br.js +8 -0
- data/vendor/assets/javascripts/ckeditor/plugins/maximize/lang/pt.js +8 -0
- data/vendor/assets/javascripts/ckeditor/plugins/maximize/lang/ro.js +8 -0
- data/vendor/assets/javascripts/ckeditor/plugins/maximize/lang/ru.js +8 -0
- data/vendor/assets/javascripts/ckeditor/plugins/maximize/lang/sk.js +8 -0
- data/vendor/assets/javascripts/ckeditor/plugins/maximize/lang/sl.js +8 -0
- data/vendor/assets/javascripts/ckeditor/plugins/maximize/lang/sr-latn.js +8 -0
- data/vendor/assets/javascripts/ckeditor/plugins/maximize/lang/sr.js +8 -0
- data/vendor/assets/javascripts/ckeditor/plugins/maximize/lang/sv.js +8 -0
- data/vendor/assets/javascripts/ckeditor/plugins/maximize/lang/th.js +8 -0
- data/vendor/assets/javascripts/ckeditor/plugins/maximize/lang/tr.js +8 -0
- data/vendor/assets/javascripts/ckeditor/plugins/maximize/lang/ug.js +8 -0
- data/vendor/assets/javascripts/ckeditor/plugins/maximize/lang/uk.js +8 -0
- data/vendor/assets/javascripts/ckeditor/plugins/maximize/lang/vi.js +8 -0
- data/vendor/assets/javascripts/ckeditor/plugins/maximize/lang/zh-cn.js +8 -0
- data/vendor/assets/javascripts/ckeditor/plugins/maximize/lang/zh.js +8 -0
- data/vendor/assets/javascripts/ckeditor/plugins/maximize/plugin.js +301 -0
- data/vendor/assets/javascripts/ckeditor/plugins/pastefromword/filter/default.js +31 -0
- data/vendor/assets/javascripts/ckeditor/plugins/richfile/plugin.js.erb +85 -0
- data/vendor/assets/javascripts/ckeditor/plugins/scayt/dialogs/options.js +17 -0
- data/vendor/assets/javascripts/ckeditor/plugins/scayt/dialogs/toolbar.css +71 -0
- data/vendor/assets/javascripts/ckeditor/plugins/showblocks/lang/af.js +7 -0
- data/vendor/assets/javascripts/ckeditor/plugins/showblocks/lang/ar.js +7 -0
- data/vendor/assets/javascripts/ckeditor/plugins/showblocks/lang/bg.js +7 -0
- data/vendor/assets/javascripts/ckeditor/plugins/showblocks/lang/bn.js +7 -0
- data/vendor/assets/javascripts/ckeditor/plugins/showblocks/lang/bs.js +7 -0
- data/vendor/assets/javascripts/ckeditor/plugins/showblocks/lang/ca.js +7 -0
- data/vendor/assets/javascripts/ckeditor/plugins/showblocks/lang/cs.js +7 -0
- data/vendor/assets/javascripts/ckeditor/plugins/showblocks/lang/cy.js +7 -0
- data/vendor/assets/javascripts/ckeditor/plugins/showblocks/lang/da.js +7 -0
- data/vendor/assets/javascripts/ckeditor/plugins/showblocks/lang/de.js +7 -0
- data/vendor/assets/javascripts/ckeditor/plugins/showblocks/lang/el.js +7 -0
- data/vendor/assets/javascripts/ckeditor/plugins/showblocks/lang/en-au.js +7 -0
- data/vendor/assets/javascripts/ckeditor/plugins/showblocks/lang/en-ca.js +7 -0
- data/vendor/assets/javascripts/ckeditor/plugins/showblocks/lang/en-gb.js +7 -0
- data/vendor/assets/javascripts/ckeditor/plugins/showblocks/lang/en.js +7 -0
- data/vendor/assets/javascripts/ckeditor/plugins/showblocks/lang/eo.js +7 -0
- data/vendor/assets/javascripts/ckeditor/plugins/showblocks/lang/es.js +7 -0
- data/vendor/assets/javascripts/ckeditor/plugins/showblocks/lang/et.js +7 -0
- data/vendor/assets/javascripts/ckeditor/plugins/showblocks/lang/eu.js +7 -0
- data/vendor/assets/javascripts/ckeditor/plugins/showblocks/lang/fa.js +7 -0
- data/vendor/assets/javascripts/ckeditor/plugins/showblocks/lang/fi.js +7 -0
- data/vendor/assets/javascripts/ckeditor/plugins/showblocks/lang/fo.js +7 -0
- data/vendor/assets/javascripts/ckeditor/plugins/showblocks/lang/fr-ca.js +7 -0
- data/vendor/assets/javascripts/ckeditor/plugins/showblocks/lang/fr.js +7 -0
- data/vendor/assets/javascripts/ckeditor/plugins/showblocks/lang/gl.js +7 -0
- data/vendor/assets/javascripts/ckeditor/plugins/showblocks/lang/gu.js +7 -0
- data/vendor/assets/javascripts/ckeditor/plugins/showblocks/lang/he.js +7 -0
- data/vendor/assets/javascripts/ckeditor/plugins/showblocks/lang/hi.js +7 -0
- data/vendor/assets/javascripts/ckeditor/plugins/showblocks/lang/hr.js +7 -0
- data/vendor/assets/javascripts/ckeditor/plugins/showblocks/lang/hu.js +7 -0
- data/vendor/assets/javascripts/ckeditor/plugins/showblocks/lang/id.js +7 -0
- data/vendor/assets/javascripts/ckeditor/plugins/showblocks/lang/is.js +7 -0
- data/vendor/assets/javascripts/ckeditor/plugins/showblocks/lang/it.js +7 -0
- data/vendor/assets/javascripts/ckeditor/plugins/showblocks/lang/ja.js +7 -0
- data/vendor/assets/javascripts/ckeditor/plugins/showblocks/lang/ka.js +7 -0
- data/vendor/assets/javascripts/ckeditor/plugins/showblocks/lang/km.js +7 -0
- data/vendor/assets/javascripts/ckeditor/plugins/showblocks/lang/ko.js +7 -0
- data/vendor/assets/javascripts/ckeditor/plugins/showblocks/lang/ku.js +7 -0
- data/vendor/assets/javascripts/ckeditor/plugins/showblocks/lang/lt.js +7 -0
- data/vendor/assets/javascripts/ckeditor/plugins/showblocks/lang/lv.js +7 -0
- data/vendor/assets/javascripts/ckeditor/plugins/showblocks/lang/mk.js +7 -0
- data/vendor/assets/javascripts/ckeditor/plugins/showblocks/lang/mn.js +7 -0
- data/vendor/assets/javascripts/ckeditor/plugins/showblocks/lang/ms.js +7 -0
- data/vendor/assets/javascripts/ckeditor/plugins/showblocks/lang/nb.js +7 -0
- data/vendor/assets/javascripts/ckeditor/plugins/showblocks/lang/nl.js +7 -0
- data/vendor/assets/javascripts/ckeditor/plugins/showblocks/lang/no.js +7 -0
- data/vendor/assets/javascripts/ckeditor/plugins/showblocks/lang/pl.js +7 -0
- data/vendor/assets/javascripts/ckeditor/plugins/showblocks/lang/pt-br.js +7 -0
- data/vendor/assets/javascripts/ckeditor/plugins/showblocks/lang/pt.js +7 -0
- data/vendor/assets/javascripts/ckeditor/plugins/showblocks/lang/ro.js +7 -0
- data/vendor/assets/javascripts/ckeditor/plugins/showblocks/lang/ru.js +7 -0
- data/vendor/assets/javascripts/ckeditor/plugins/showblocks/lang/si.js +7 -0
- data/vendor/assets/javascripts/ckeditor/plugins/showblocks/lang/sk.js +7 -0
- data/vendor/assets/javascripts/ckeditor/plugins/showblocks/lang/sl.js +7 -0
- data/vendor/assets/javascripts/ckeditor/plugins/showblocks/lang/sq.js +7 -0
- data/vendor/assets/javascripts/ckeditor/plugins/showblocks/lang/sr-latn.js +7 -0
- data/vendor/assets/javascripts/ckeditor/plugins/showblocks/lang/sr.js +7 -0
- data/vendor/assets/javascripts/ckeditor/plugins/showblocks/lang/sv.js +7 -0
- data/vendor/assets/javascripts/ckeditor/plugins/showblocks/lang/th.js +7 -0
- data/vendor/assets/javascripts/ckeditor/plugins/showblocks/lang/tr.js +7 -0
- data/vendor/assets/javascripts/ckeditor/plugins/showblocks/lang/tt.js +7 -0
- data/vendor/assets/javascripts/ckeditor/plugins/showblocks/lang/ug.js +7 -0
- data/vendor/assets/javascripts/ckeditor/plugins/showblocks/lang/uk.js +7 -0
- data/vendor/assets/javascripts/ckeditor/plugins/showblocks/lang/vi.js +7 -0
- data/vendor/assets/javascripts/ckeditor/plugins/showblocks/lang/zh-cn.js +7 -0
- data/vendor/assets/javascripts/ckeditor/plugins/showblocks/lang/zh.js +7 -0
- data/vendor/assets/javascripts/ckeditor/plugins/showblocks/plugin.js +153 -0
- data/vendor/assets/javascripts/ckeditor/plugins/smiley/dialogs/smiley.js +10 -0
- data/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/_translationstatus.txt +20 -0
- data/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/ar.js +13 -0
- data/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/bg.js +13 -0
- data/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/ca.js +14 -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-gb.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/es.js +13 -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 +12 -0
- data/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/fi.js +13 -0
- data/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/fr-ca.js +10 -0
- data/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/fr.js +11 -0
- data/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/gl.js +13 -0
- data/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/he.js +12 -0
- data/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/hr.js +13 -0
- data/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/hu.js +12 -0
- data/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/id.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/ja.js +9 -0
- data/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/km.js +13 -0
- data/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/ku.js +13 -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/pl.js +12 -0
- data/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/pt-br.js +11 -0
- data/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/pt.js +13 -0
- data/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/ru.js +13 -0
- data/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/si.js +13 -0
- data/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/sk.js +13 -0
- data/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/sl.js +12 -0
- data/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/sq.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/th.js +13 -0
- data/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/tr.js +12 -0
- data/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/tt.js +13 -0
- data/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/ug.js +13 -0
- data/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/uk.js +12 -0
- data/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/vi.js +14 -0
- data/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/zh-cn.js +9 -0
- data/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/zh.js +12 -0
- data/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/specialchar.js +14 -0
- data/vendor/assets/javascripts/ckeditor/plugins/stylescombo/lang/af.js +11 -0
- data/vendor/assets/javascripts/ckeditor/plugins/stylescombo/lang/ar.js +11 -0
- data/vendor/assets/javascripts/ckeditor/plugins/stylescombo/lang/bg.js +11 -0
- data/vendor/assets/javascripts/ckeditor/plugins/stylescombo/lang/bn.js +11 -0
- data/vendor/assets/javascripts/ckeditor/plugins/stylescombo/lang/bs.js +11 -0
- data/vendor/assets/javascripts/ckeditor/plugins/stylescombo/lang/ca.js +11 -0
- data/vendor/assets/javascripts/ckeditor/plugins/stylescombo/lang/cs.js +11 -0
- data/vendor/assets/javascripts/ckeditor/plugins/stylescombo/lang/cy.js +11 -0
- data/vendor/assets/javascripts/ckeditor/plugins/stylescombo/lang/da.js +11 -0
- data/vendor/assets/javascripts/ckeditor/plugins/stylescombo/lang/de.js +11 -0
- data/vendor/assets/javascripts/ckeditor/plugins/stylescombo/lang/el.js +11 -0
- data/vendor/assets/javascripts/ckeditor/plugins/stylescombo/lang/en-au.js +11 -0
- data/vendor/assets/javascripts/ckeditor/plugins/stylescombo/lang/en-ca.js +11 -0
- data/vendor/assets/javascripts/ckeditor/plugins/stylescombo/lang/en-gb.js +11 -0
- data/vendor/assets/javascripts/ckeditor/plugins/stylescombo/lang/en.js +11 -0
- data/vendor/assets/javascripts/ckeditor/plugins/stylescombo/lang/eo.js +11 -0
- data/vendor/assets/javascripts/ckeditor/plugins/stylescombo/lang/es.js +11 -0
- data/vendor/assets/javascripts/ckeditor/plugins/stylescombo/lang/et.js +11 -0
- data/vendor/assets/javascripts/ckeditor/plugins/stylescombo/lang/eu.js +11 -0
- data/vendor/assets/javascripts/ckeditor/plugins/stylescombo/lang/fa.js +11 -0
- data/vendor/assets/javascripts/ckeditor/plugins/stylescombo/lang/fi.js +11 -0
- data/vendor/assets/javascripts/ckeditor/plugins/stylescombo/lang/fo.js +11 -0
- data/vendor/assets/javascripts/ckeditor/plugins/stylescombo/lang/fr-ca.js +11 -0
- data/vendor/assets/javascripts/ckeditor/plugins/stylescombo/lang/fr.js +11 -0
- data/vendor/assets/javascripts/ckeditor/plugins/stylescombo/lang/gl.js +11 -0
- data/vendor/assets/javascripts/ckeditor/plugins/stylescombo/lang/gu.js +11 -0
- data/vendor/assets/javascripts/ckeditor/plugins/stylescombo/lang/he.js +11 -0
- data/vendor/assets/javascripts/ckeditor/plugins/stylescombo/lang/hi.js +11 -0
- data/vendor/assets/javascripts/ckeditor/plugins/stylescombo/lang/hr.js +11 -0
- data/vendor/assets/javascripts/ckeditor/plugins/stylescombo/lang/hu.js +11 -0
- data/vendor/assets/javascripts/ckeditor/plugins/stylescombo/lang/is.js +11 -0
- data/vendor/assets/javascripts/ckeditor/plugins/stylescombo/lang/it.js +11 -0
- data/vendor/assets/javascripts/ckeditor/plugins/stylescombo/lang/ja.js +11 -0
- data/vendor/assets/javascripts/ckeditor/plugins/stylescombo/lang/ka.js +11 -0
- data/vendor/assets/javascripts/ckeditor/plugins/stylescombo/lang/km.js +11 -0
- data/vendor/assets/javascripts/ckeditor/plugins/stylescombo/lang/ko.js +11 -0
- data/vendor/assets/javascripts/ckeditor/plugins/stylescombo/lang/ku.js +11 -0
- data/vendor/assets/javascripts/ckeditor/plugins/stylescombo/lang/lt.js +11 -0
- data/vendor/assets/javascripts/ckeditor/plugins/stylescombo/lang/lv.js +11 -0
- data/vendor/assets/javascripts/ckeditor/plugins/stylescombo/lang/mk.js +11 -0
- data/vendor/assets/javascripts/ckeditor/plugins/stylescombo/lang/mn.js +11 -0
- data/vendor/assets/javascripts/ckeditor/plugins/stylescombo/lang/ms.js +11 -0
- data/vendor/assets/javascripts/ckeditor/plugins/stylescombo/lang/nb.js +11 -0
- data/vendor/assets/javascripts/ckeditor/plugins/stylescombo/lang/nl.js +11 -0
- data/vendor/assets/javascripts/ckeditor/plugins/stylescombo/lang/no.js +11 -0
- data/vendor/assets/javascripts/ckeditor/plugins/stylescombo/lang/pl.js +11 -0
- data/vendor/assets/javascripts/ckeditor/plugins/stylescombo/lang/pt-br.js +11 -0
- data/vendor/assets/javascripts/ckeditor/plugins/stylescombo/lang/pt.js +11 -0
- data/vendor/assets/javascripts/ckeditor/plugins/stylescombo/lang/ro.js +11 -0
- data/vendor/assets/javascripts/ckeditor/plugins/stylescombo/lang/ru.js +11 -0
- data/vendor/assets/javascripts/ckeditor/plugins/stylescombo/lang/sk.js +11 -0
- data/vendor/assets/javascripts/ckeditor/plugins/stylescombo/lang/sl.js +11 -0
- data/vendor/assets/javascripts/ckeditor/plugins/stylescombo/lang/sr-latn.js +11 -0
- data/vendor/assets/javascripts/ckeditor/plugins/stylescombo/lang/sr.js +11 -0
- data/vendor/assets/javascripts/ckeditor/plugins/stylescombo/lang/sv.js +11 -0
- data/vendor/assets/javascripts/ckeditor/plugins/stylescombo/lang/th.js +11 -0
- data/vendor/assets/javascripts/ckeditor/plugins/stylescombo/lang/tr.js +11 -0
- data/vendor/assets/javascripts/ckeditor/plugins/stylescombo/lang/ug.js +11 -0
- data/vendor/assets/javascripts/ckeditor/plugins/stylescombo/lang/uk.js +11 -0
- data/vendor/assets/javascripts/ckeditor/plugins/stylescombo/lang/vi.js +11 -0
- data/vendor/assets/javascripts/ckeditor/plugins/stylescombo/lang/zh-cn.js +11 -0
- data/vendor/assets/javascripts/ckeditor/plugins/stylescombo/lang/zh.js +11 -0
- data/vendor/assets/javascripts/ckeditor/plugins/stylescombo/plugin.js +186 -0
- data/vendor/assets/javascripts/ckeditor/plugins/stylesheetparser/plugin.js +152 -0
- data/vendor/assets/javascripts/ckeditor/plugins/table/dialogs/table.js +21 -0
- data/vendor/assets/javascripts/ckeditor/plugins/tabletools/dialogs/tableCell.js +17 -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/widget/dev/console.js +129 -0
- data/vendor/assets/javascripts/ckeditor/plugins/widget/dev/contents.css +23 -0
- data/vendor/assets/javascripts/ckeditor/plugins/widget/dev/widgetstyles.html +145 -0
- data/vendor/assets/javascripts/ckeditor/plugins/widget/images/handle.png +0 -0
- data/vendor/assets/javascripts/ckeditor/plugins/widget/lang/ar.js +7 -0
- data/vendor/assets/javascripts/ckeditor/plugins/widget/lang/ca.js +7 -0
- data/vendor/assets/javascripts/ckeditor/plugins/widget/lang/cs.js +7 -0
- data/vendor/assets/javascripts/ckeditor/plugins/widget/lang/cy.js +7 -0
- data/vendor/assets/javascripts/ckeditor/plugins/widget/lang/de.js +7 -0
- data/vendor/assets/javascripts/ckeditor/plugins/widget/lang/el.js +7 -0
- data/vendor/assets/javascripts/ckeditor/plugins/widget/lang/en-gb.js +7 -0
- data/vendor/assets/javascripts/ckeditor/plugins/widget/lang/en.js +7 -0
- data/vendor/assets/javascripts/ckeditor/plugins/widget/lang/eo.js +7 -0
- data/vendor/assets/javascripts/ckeditor/plugins/widget/lang/es.js +7 -0
- data/vendor/assets/javascripts/ckeditor/plugins/widget/lang/fa.js +7 -0
- data/vendor/assets/javascripts/ckeditor/plugins/widget/lang/fi.js +7 -0
- data/vendor/assets/javascripts/ckeditor/plugins/widget/lang/fr.js +7 -0
- data/vendor/assets/javascripts/ckeditor/plugins/widget/lang/gl.js +7 -0
- data/vendor/assets/javascripts/ckeditor/plugins/widget/lang/he.js +7 -0
- data/vendor/assets/javascripts/ckeditor/plugins/widget/lang/hr.js +7 -0
- data/vendor/assets/javascripts/ckeditor/plugins/widget/lang/hu.js +7 -0
- data/vendor/assets/javascripts/ckeditor/plugins/widget/lang/it.js +7 -0
- data/vendor/assets/javascripts/ckeditor/plugins/widget/lang/ja.js +7 -0
- data/vendor/assets/javascripts/ckeditor/plugins/widget/lang/km.js +7 -0
- data/vendor/assets/javascripts/ckeditor/plugins/widget/lang/ko.js +7 -0
- data/vendor/assets/javascripts/ckeditor/plugins/widget/lang/nb.js +7 -0
- data/vendor/assets/javascripts/ckeditor/plugins/widget/lang/nl.js +7 -0
- data/vendor/assets/javascripts/ckeditor/plugins/widget/lang/no.js +7 -0
- data/vendor/assets/javascripts/ckeditor/plugins/widget/lang/pl.js +7 -0
- data/vendor/assets/javascripts/ckeditor/plugins/widget/lang/pt-br.js +7 -0
- data/vendor/assets/javascripts/ckeditor/plugins/widget/lang/pt.js +7 -0
- data/vendor/assets/javascripts/ckeditor/plugins/widget/lang/ru.js +7 -0
- data/vendor/assets/javascripts/ckeditor/plugins/widget/lang/sl.js +7 -0
- data/vendor/assets/javascripts/ckeditor/plugins/widget/lang/sv.js +7 -0
- data/vendor/assets/javascripts/ckeditor/plugins/widget/lang/tt.js +7 -0
- data/vendor/assets/javascripts/ckeditor/plugins/widget/lang/uk.js +7 -0
- data/vendor/assets/javascripts/ckeditor/plugins/widget/lang/vi.js +7 -0
- data/vendor/assets/javascripts/ckeditor/plugins/widget/lang/zh-cn.js +7 -0
- data/vendor/assets/javascripts/ckeditor/plugins/widget/lang/zh.js +7 -0
- data/vendor/assets/javascripts/ckeditor/plugins/widget/plugin.js +3684 -0
- data/vendor/assets/javascripts/ckeditor/plugins/wsc/dialogs/ciframe.html +66 -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 +74 -0
- data/vendor/assets/javascripts/ckeditor/plugins/wsc/dialogs/wsc_ie.js +11 -0
- data/vendor/assets/javascripts/ckeditor/skins/BootstrapCK/README.md +26 -0
- data/vendor/assets/javascripts/ckeditor/skins/BootstrapCK/dialog.css +616 -0
- data/vendor/assets/javascripts/ckeditor/skins/BootstrapCK/editor.css +1088 -0
- data/vendor/assets/javascripts/ckeditor/skins/BootstrapCK/icons.png +0 -0
- data/vendor/assets/javascripts/ckeditor/skins/BootstrapCK/images/dialog_sides.gif +0 -0
- data/vendor/assets/javascripts/ckeditor/skins/BootstrapCK/images/dialog_sides.png +0 -0
- data/vendor/assets/javascripts/ckeditor/skins/BootstrapCK/images/dialog_sides_rtl.png +0 -0
- data/vendor/assets/javascripts/ckeditor/skins/BootstrapCK/images/mini.png +0 -0
- data/vendor/assets/javascripts/ckeditor/skins/BootstrapCK/images/noimage.png +0 -0
- data/vendor/assets/javascripts/ckeditor/skins/BootstrapCK/images/sprites.png +0 -0
- data/vendor/assets/javascripts/ckeditor/skins/BootstrapCK/images/sprites_ie6.png +0 -0
- data/vendor/assets/javascripts/ckeditor/skins/BootstrapCK/images/toolbar_start.gif +0 -0
- data/vendor/assets/javascripts/ckeditor/skins/BootstrapCK/skin.js +7 -0
- data/vendor/assets/javascripts/ckeditor/skins/BootstrapCK/templates.css +54 -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 +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 +5 -0
- data/vendor/assets/javascripts/ckeditor/skins/moono/icons.png +0 -0
- data/vendor/assets/javascripts/ckeditor/skins/moono/icons_hidpi.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/hidpi/close.png +0 -0
- data/vendor/assets/javascripts/ckeditor/skins/moono/images/hidpi/lock-open.png +0 -0
- data/vendor/assets/javascripts/ckeditor/skins/moono/images/hidpi/lock.png +0 -0
- data/vendor/assets/javascripts/ckeditor/skins/moono/images/hidpi/refresh.png +0 -0
- data/vendor/assets/javascripts/ckeditor/skins/moono/images/lock-open.png +0 -0
- data/vendor/assets/javascripts/ckeditor/skins/moono/images/lock.png +0 -0
- data/vendor/assets/javascripts/ckeditor/skins/moono/images/refresh.png +0 -0
- data/vendor/assets/javascripts/ckeditor/skins/moono/readme.md +51 -0
- data/vendor/assets/javascripts/ckeditor/styles.js +111 -0
- data/vendor/assets/javascripts/fileuploader.js +1247 -0
- data/vendor/assets/stylesheets/ckeditor/contents.css +99 -0
- data/vendor/assets/stylesheets/ckeditor/plugins/codemirror/css/codemirror.ckeditor.css +74 -0
- data/vendor/assets/stylesheets/ckeditor/plugins/codemirror/css/codemirror.css +245 -0
- data/vendor/assets/stylesheets/ckeditor/plugins/codemirror/css/codemirror.min.css +1 -0
- data/vendor/assets/stylesheets/ckeditor/plugins/codemirror/theme/ambiance-mobile.css +6 -0
- data/vendor/assets/stylesheets/ckeditor/plugins/codemirror/theme/ambiance.css +76 -0
- data/vendor/assets/stylesheets/ckeditor/plugins/codemirror/theme/blackboard.css +25 -0
- data/vendor/assets/stylesheets/ckeditor/plugins/codemirror/theme/cobalt.css +18 -0
- data/vendor/assets/stylesheets/ckeditor/plugins/codemirror/theme/eclipse.css +25 -0
- data/vendor/assets/stylesheets/ckeditor/plugins/codemirror/theme/elegant.css +10 -0
- data/vendor/assets/stylesheets/ckeditor/plugins/codemirror/theme/erlang-dark.css +21 -0
- data/vendor/assets/stylesheets/ckeditor/plugins/codemirror/theme/lesser-dark.css +44 -0
- data/vendor/assets/stylesheets/ckeditor/plugins/codemirror/theme/monokai.css +28 -0
- data/vendor/assets/stylesheets/ckeditor/plugins/codemirror/theme/neat.css +9 -0
- data/vendor/assets/stylesheets/ckeditor/plugins/codemirror/theme/night.css +21 -0
- data/vendor/assets/stylesheets/ckeditor/plugins/codemirror/theme/rubyblue.css +21 -0
- data/vendor/assets/stylesheets/ckeditor/plugins/codemirror/theme/solarized.css +207 -0
- data/vendor/assets/stylesheets/ckeditor/plugins/codemirror/theme/twilight.css +25 -0
- data/vendor/assets/stylesheets/ckeditor/plugins/codemirror/theme/vibrant-ink.css +27 -0
- data/vendor/assets/stylesheets/ckeditor/plugins/codemirror/theme/xq-dark.css +46 -0
- data/vendor/assets/stylesheets/ckeditor/plugins/scayt/dialogs/toolbar.css +71 -0
- data/vendor/assets/stylesheets/ckeditor/plugins/templates/dialogs/templates.css +84 -0
- data/vendor/assets/stylesheets/ckeditor/plugins/widget/dev/contents.css +23 -0
- data/vendor/assets/stylesheets/ckeditor/plugins/wsc/dialogs/wsc.css +82 -0
- data/vendor/assets/stylesheets/ckeditor/skins/BootstrapCK/dialog.css +616 -0
- data/vendor/assets/stylesheets/ckeditor/skins/BootstrapCK/editor.css +1088 -0
- data/vendor/assets/stylesheets/ckeditor/skins/BootstrapCK/templates.css +54 -0
- data/vendor/assets/stylesheets/ckeditor/skins/moono/dialog.css +5 -0
- data/vendor/assets/stylesheets/ckeditor/skins/moono/dialog_ie.css +5 -0
- data/vendor/assets/stylesheets/ckeditor/skins/moono/dialog_ie7.css +5 -0
- data/vendor/assets/stylesheets/ckeditor/skins/moono/dialog_ie8.css +5 -0
- data/vendor/assets/stylesheets/ckeditor/skins/moono/dialog_iequirks.css +5 -0
- data/vendor/assets/stylesheets/ckeditor/skins/moono/dialog_opera.css +5 -0
- data/vendor/assets/stylesheets/ckeditor/skins/moono/editor.css +5 -0
- data/vendor/assets/stylesheets/ckeditor/skins/moono/editor_gecko.css +5 -0
- data/vendor/assets/stylesheets/ckeditor/skins/moono/editor_ie.css +5 -0
- data/vendor/assets/stylesheets/ckeditor/skins/moono/editor_ie7.css +5 -0
- data/vendor/assets/stylesheets/ckeditor/skins/moono/editor_ie8.css +5 -0
- data/vendor/assets/stylesheets/ckeditor/skins/moono/editor_iequirks.css +5 -0
- metadata +955 -0
|
@@ -0,0 +1,11 @@
|
|
|
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
|
+
CKEDITOR.plugins.setLang( 'stylescombo', 'pt', {
|
|
6
|
+
label: 'Estilo',
|
|
7
|
+
panelTitle: 'Formatting Styles', // MISSING
|
|
8
|
+
panelTitle1: 'Block Styles', // MISSING
|
|
9
|
+
panelTitle2: 'Inline Styles', // MISSING
|
|
10
|
+
panelTitle3: 'Object Styles' // MISSING
|
|
11
|
+
});
|
|
@@ -0,0 +1,11 @@
|
|
|
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
|
+
CKEDITOR.plugins.setLang( 'stylescombo', 'ro', {
|
|
6
|
+
label: 'Stil',
|
|
7
|
+
panelTitle: 'Formatarea stilurilor',
|
|
8
|
+
panelTitle1: 'Block Styles', // MISSING
|
|
9
|
+
panelTitle2: 'Inline Styles', // MISSING
|
|
10
|
+
panelTitle3: 'Object Styles' // MISSING
|
|
11
|
+
});
|
|
@@ -0,0 +1,11 @@
|
|
|
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
|
+
CKEDITOR.plugins.setLang( 'stylescombo', 'ru', {
|
|
6
|
+
label: 'Стили',
|
|
7
|
+
panelTitle: 'Стили форматирования',
|
|
8
|
+
panelTitle1: 'Стили блока',
|
|
9
|
+
panelTitle2: 'Стили элемента',
|
|
10
|
+
panelTitle3: 'Стили объекта'
|
|
11
|
+
});
|
|
@@ -0,0 +1,11 @@
|
|
|
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
|
+
CKEDITOR.plugins.setLang( 'stylescombo', 'sk', {
|
|
6
|
+
label: 'Štýly',
|
|
7
|
+
panelTitle: 'Formátovanie štýlov',
|
|
8
|
+
panelTitle1: 'Štýly bloku',
|
|
9
|
+
panelTitle2: 'Vnútroriadkové (inline) štýly',
|
|
10
|
+
panelTitle3: 'Štýly objeku'
|
|
11
|
+
});
|
|
@@ -0,0 +1,11 @@
|
|
|
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
|
+
CKEDITOR.plugins.setLang( 'stylescombo', 'sl', {
|
|
6
|
+
label: 'Slog',
|
|
7
|
+
panelTitle: 'Formatting Styles', // MISSING
|
|
8
|
+
panelTitle1: 'Slogi odstavkov',
|
|
9
|
+
panelTitle2: 'Slogi besedila',
|
|
10
|
+
panelTitle3: 'Slogi objektov'
|
|
11
|
+
});
|
|
@@ -0,0 +1,11 @@
|
|
|
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
|
+
CKEDITOR.plugins.setLang( 'stylescombo', 'sr-latn', {
|
|
6
|
+
label: 'Stil',
|
|
7
|
+
panelTitle: 'Formatting Styles', // MISSING
|
|
8
|
+
panelTitle1: 'Block Styles', // MISSING
|
|
9
|
+
panelTitle2: 'Inline Styles', // MISSING
|
|
10
|
+
panelTitle3: 'Object Styles' // MISSING
|
|
11
|
+
});
|
|
@@ -0,0 +1,11 @@
|
|
|
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
|
+
CKEDITOR.plugins.setLang( 'stylescombo', 'sr', {
|
|
6
|
+
label: 'Стил',
|
|
7
|
+
panelTitle: 'Formatting Styles', // MISSING
|
|
8
|
+
panelTitle1: 'Block Styles', // MISSING
|
|
9
|
+
panelTitle2: 'Inline Styles', // MISSING
|
|
10
|
+
panelTitle3: 'Object Styles' // MISSING
|
|
11
|
+
});
|
|
@@ -0,0 +1,11 @@
|
|
|
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
|
+
CKEDITOR.plugins.setLang( 'stylescombo', 'sv', {
|
|
6
|
+
label: 'Anpassad stil',
|
|
7
|
+
panelTitle: 'Formatmallar',
|
|
8
|
+
panelTitle1: 'Blockstil',
|
|
9
|
+
panelTitle2: 'Inbäddad stil',
|
|
10
|
+
panelTitle3: 'Objektets stil'
|
|
11
|
+
});
|
|
@@ -0,0 +1,11 @@
|
|
|
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
|
+
CKEDITOR.plugins.setLang( 'stylescombo', 'th', {
|
|
6
|
+
label: 'ลักษณะ',
|
|
7
|
+
panelTitle: 'Formatting Styles', // MISSING
|
|
8
|
+
panelTitle1: 'Block Styles', // MISSING
|
|
9
|
+
panelTitle2: 'Inline Styles', // MISSING
|
|
10
|
+
panelTitle3: 'Object Styles' // MISSING
|
|
11
|
+
});
|
|
@@ -0,0 +1,11 @@
|
|
|
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
|
+
CKEDITOR.plugins.setLang( 'stylescombo', 'tr', {
|
|
6
|
+
label: 'Biçem',
|
|
7
|
+
panelTitle: 'Stilleri Düzenliyor',
|
|
8
|
+
panelTitle1: 'Blok Stilleri',
|
|
9
|
+
panelTitle2: 'Inline Stilleri',
|
|
10
|
+
panelTitle3: 'Nesne Stilleri'
|
|
11
|
+
});
|
|
@@ -0,0 +1,11 @@
|
|
|
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
|
+
CKEDITOR.plugins.setLang( 'stylescombo', 'ug', {
|
|
6
|
+
label: 'ئۇسلۇب',
|
|
7
|
+
panelTitle: 'ئۇسلۇب',
|
|
8
|
+
panelTitle1: 'بۆلەك دەرىجىسىدىكى ئېلېمېنت ئۇسلۇبى',
|
|
9
|
+
panelTitle2: 'ئىچكى باغلانما ئېلېمېنت ئۇسلۇبى',
|
|
10
|
+
panelTitle3: 'نەڭ (Object) ئېلېمېنت ئۇسلۇبى'
|
|
11
|
+
});
|
|
@@ -0,0 +1,11 @@
|
|
|
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
|
+
CKEDITOR.plugins.setLang( 'stylescombo', 'uk', {
|
|
6
|
+
label: 'Стиль',
|
|
7
|
+
panelTitle: 'Стилі форматування',
|
|
8
|
+
panelTitle1: 'Блочні стилі',
|
|
9
|
+
panelTitle2: 'Рядкові стилі',
|
|
10
|
+
panelTitle3: 'Об\'єктні стилі'
|
|
11
|
+
});
|
|
@@ -0,0 +1,11 @@
|
|
|
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
|
+
CKEDITOR.plugins.setLang( 'stylescombo', 'vi', {
|
|
6
|
+
label: 'Kiểu',
|
|
7
|
+
panelTitle: 'Phong cách định dạng',
|
|
8
|
+
panelTitle1: 'Kiểu khối',
|
|
9
|
+
panelTitle2: 'Kiểu trực tiếp',
|
|
10
|
+
panelTitle3: 'Kiểu đối tượng'
|
|
11
|
+
});
|
|
@@ -0,0 +1,11 @@
|
|
|
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
|
+
CKEDITOR.plugins.setLang( 'stylescombo', 'zh-cn', {
|
|
6
|
+
label: '样式',
|
|
7
|
+
panelTitle: '样式',
|
|
8
|
+
panelTitle1: '块级元素样式',
|
|
9
|
+
panelTitle2: '内联元素样式',
|
|
10
|
+
panelTitle3: '对象元素样式'
|
|
11
|
+
});
|
|
@@ -0,0 +1,11 @@
|
|
|
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
|
+
CKEDITOR.plugins.setLang( 'stylescombo', 'zh', {
|
|
6
|
+
label: '樣式',
|
|
7
|
+
panelTitle: 'Formatting Styles', // MISSING
|
|
8
|
+
panelTitle1: '塊級元素樣式',
|
|
9
|
+
panelTitle2: '內聯元素樣式',
|
|
10
|
+
panelTitle3: '物件元素樣式'
|
|
11
|
+
});
|
|
@@ -0,0 +1,186 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved.
|
|
3
|
+
* For licensing, see LICENSE.html or http://ckeditor.com/license
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
(function() {
|
|
7
|
+
CKEDITOR.plugins.add( 'stylescombo', {
|
|
8
|
+
requires: 'richcombo',
|
|
9
|
+
lang: 'af,ar,bg,bn,bs,ca,cs,cy,da,de,el,en-au,en-ca,en-gb,en,eo,es,et,eu,fa,fi,fo,fr-ca,fr,gl,gu,he,hi,hr,hu,is,it,ja,ka,km,ko,ku,lt,lv,mk,mn,ms,nb,nl,no,pl,pt-br,pt,ro,ru,sk,sl,sr-latn,sr,sv,th,tr,ug,uk,vi,zh-cn,zh', // %REMOVE_LINE_CORE%
|
|
10
|
+
|
|
11
|
+
init: function( editor ) {
|
|
12
|
+
var config = editor.config,
|
|
13
|
+
lang = editor.lang.stylescombo,
|
|
14
|
+
styles = {},
|
|
15
|
+
stylesList = [],
|
|
16
|
+
combo;
|
|
17
|
+
|
|
18
|
+
function loadStylesSet( callback ) {
|
|
19
|
+
editor.getStylesSet( function( stylesDefinitions ) {
|
|
20
|
+
if ( !stylesList.length ) {
|
|
21
|
+
var style, styleName;
|
|
22
|
+
|
|
23
|
+
// Put all styles into an Array.
|
|
24
|
+
for ( var i = 0, count = stylesDefinitions.length; i < count; i++ ) {
|
|
25
|
+
var styleDefinition = stylesDefinitions[ i ];
|
|
26
|
+
|
|
27
|
+
if ( editor.blockless && ( styleDefinition.element in CKEDITOR.dtd.$block ) )
|
|
28
|
+
continue;
|
|
29
|
+
|
|
30
|
+
styleName = styleDefinition.name;
|
|
31
|
+
|
|
32
|
+
style = styles[ styleName ] = new CKEDITOR.style( styleDefinition );
|
|
33
|
+
style._name = styleName;
|
|
34
|
+
style._.enterMode = config.enterMode;
|
|
35
|
+
|
|
36
|
+
stylesList.push( style );
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
// Sorts the Array, so the styles get grouped by type.
|
|
40
|
+
stylesList.sort( sortStyles );
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
callback && callback();
|
|
44
|
+
});
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
editor.ui.addRichCombo( 'Styles', {
|
|
48
|
+
label: lang.label,
|
|
49
|
+
title: lang.panelTitle,
|
|
50
|
+
toolbar: 'styles,10',
|
|
51
|
+
|
|
52
|
+
panel: {
|
|
53
|
+
css: [ CKEDITOR.skin.getPath( 'editor' ) ].concat( config.contentsCss ),
|
|
54
|
+
multiSelect: true,
|
|
55
|
+
attributes: { 'aria-label': lang.panelTitle }
|
|
56
|
+
},
|
|
57
|
+
|
|
58
|
+
init: function() {
|
|
59
|
+
combo = this;
|
|
60
|
+
|
|
61
|
+
loadStylesSet( function() {
|
|
62
|
+
var style, styleName, lastType, type, i, count;
|
|
63
|
+
|
|
64
|
+
// Loop over the Array, adding all items to the
|
|
65
|
+
// combo.
|
|
66
|
+
for ( i = 0, count = stylesList.length; i < count; i++ ) {
|
|
67
|
+
style = stylesList[ i ];
|
|
68
|
+
styleName = style._name;
|
|
69
|
+
type = style.type;
|
|
70
|
+
|
|
71
|
+
if ( type != lastType ) {
|
|
72
|
+
combo.startGroup( lang[ 'panelTitle' + String( type ) ] );
|
|
73
|
+
lastType = type;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
combo.add( styleName, style.type == CKEDITOR.STYLE_OBJECT ? styleName : style.buildPreview(), styleName );
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
combo.commit();
|
|
80
|
+
|
|
81
|
+
});
|
|
82
|
+
},
|
|
83
|
+
|
|
84
|
+
onClick: function( value ) {
|
|
85
|
+
editor.focus();
|
|
86
|
+
editor.fire( 'saveSnapshot' );
|
|
87
|
+
|
|
88
|
+
var style = styles[ value ],
|
|
89
|
+
elementPath = editor.elementPath();
|
|
90
|
+
|
|
91
|
+
editor[ style.checkActive( elementPath ) ? 'removeStyle' : 'applyStyle' ]( style );
|
|
92
|
+
editor.fire( 'saveSnapshot' );
|
|
93
|
+
},
|
|
94
|
+
|
|
95
|
+
onRender: function() {
|
|
96
|
+
editor.on( 'selectionChange', function( ev ) {
|
|
97
|
+
var currentValue = this.getValue(),
|
|
98
|
+
elementPath = ev.data.path,
|
|
99
|
+
elements = elementPath.elements;
|
|
100
|
+
|
|
101
|
+
// For each element into the elements path.
|
|
102
|
+
for ( var i = 0, count = elements.length, element; i < count; i++ ) {
|
|
103
|
+
element = elements[ i ];
|
|
104
|
+
|
|
105
|
+
// Check if the element is removable by any of
|
|
106
|
+
// the styles.
|
|
107
|
+
for ( var value in styles ) {
|
|
108
|
+
if ( styles[ value ].checkElementRemovable( element, true ) ) {
|
|
109
|
+
if ( value != currentValue )
|
|
110
|
+
this.setValue( value );
|
|
111
|
+
return;
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
// If no styles match, just empty it.
|
|
117
|
+
this.setValue( '' );
|
|
118
|
+
}, this );
|
|
119
|
+
},
|
|
120
|
+
|
|
121
|
+
onOpen: function() {
|
|
122
|
+
var selection = editor.getSelection(),
|
|
123
|
+
element = selection.getSelectedElement(),
|
|
124
|
+
elementPath = editor.elementPath( element ),
|
|
125
|
+
counter = [ 0, 0, 0, 0 ];
|
|
126
|
+
|
|
127
|
+
this.showAll();
|
|
128
|
+
this.unmarkAll();
|
|
129
|
+
for ( var name in styles ) {
|
|
130
|
+
var style = styles[ name ],
|
|
131
|
+
type = style.type;
|
|
132
|
+
|
|
133
|
+
// Check if block styles are applicable.
|
|
134
|
+
if ( type == CKEDITOR.STYLE_BLOCK && !elementPath.isContextFor( style.element ) ) {
|
|
135
|
+
this.hideItem( name );
|
|
136
|
+
continue;
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
if ( style.checkActive( elementPath ) )
|
|
140
|
+
this.mark( name );
|
|
141
|
+
else if ( type == CKEDITOR.STYLE_OBJECT && !style.checkApplicable( elementPath ) ) {
|
|
142
|
+
this.hideItem( name );
|
|
143
|
+
counter[ type ]--;
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
counter[ type ]++;
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
if ( !counter[ CKEDITOR.STYLE_BLOCK ] )
|
|
150
|
+
this.hideGroup( lang[ 'panelTitle' + String( CKEDITOR.STYLE_BLOCK ) ] );
|
|
151
|
+
|
|
152
|
+
if ( !counter[ CKEDITOR.STYLE_INLINE ] )
|
|
153
|
+
this.hideGroup( lang[ 'panelTitle' + String( CKEDITOR.STYLE_INLINE ) ] );
|
|
154
|
+
|
|
155
|
+
if ( !counter[ CKEDITOR.STYLE_OBJECT ] )
|
|
156
|
+
this.hideGroup( lang[ 'panelTitle' + String( CKEDITOR.STYLE_OBJECT ) ] );
|
|
157
|
+
},
|
|
158
|
+
|
|
159
|
+
// Force a reload of the data
|
|
160
|
+
reset: function() {
|
|
161
|
+
if ( combo ) {
|
|
162
|
+
delete combo._.panel;
|
|
163
|
+
delete combo._.list;
|
|
164
|
+
combo._.committed = 0;
|
|
165
|
+
combo._.items = {};
|
|
166
|
+
combo._.state = CKEDITOR.TRISTATE_OFF;
|
|
167
|
+
}
|
|
168
|
+
styles = {};
|
|
169
|
+
stylesList = [];
|
|
170
|
+
loadStylesSet();
|
|
171
|
+
}
|
|
172
|
+
});
|
|
173
|
+
|
|
174
|
+
editor.on( 'instanceReady', function() {
|
|
175
|
+
loadStylesSet();
|
|
176
|
+
});
|
|
177
|
+
}
|
|
178
|
+
});
|
|
179
|
+
|
|
180
|
+
function sortStyles( styleA, styleB ) {
|
|
181
|
+
var typeA = styleA.type,
|
|
182
|
+
typeB = styleB.type;
|
|
183
|
+
|
|
184
|
+
return typeA == typeB ? 0 : typeA == CKEDITOR.STYLE_OBJECT ? -1 : typeB == CKEDITOR.STYLE_OBJECT ? 1 : typeB == CKEDITOR.STYLE_BLOCK ? 1 : -1;
|
|
185
|
+
}
|
|
186
|
+
})();
|
|
@@ -0,0 +1,152 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
|
|
3
|
+
* For licensing, see LICENSE.md or http://ckeditor.com/license
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
* @fileOverview stylesheetParser plugin.
|
|
8
|
+
*/
|
|
9
|
+
|
|
10
|
+
( function() {
|
|
11
|
+
// We want to extract only the elements with classes defined in the stylesheets:
|
|
12
|
+
function parseClasses( aRules, skipSelectors, validSelectors ) {
|
|
13
|
+
// aRules are just the different rules in the style sheets
|
|
14
|
+
// We want to merge them and them split them by commas, so we end up with only
|
|
15
|
+
// the selectors
|
|
16
|
+
var s = aRules.join( ' ' );
|
|
17
|
+
// Remove selectors splitting the elements, leave only the class selector (.)
|
|
18
|
+
s = s.replace( /(,|>|\+|~)/g, ' ' );
|
|
19
|
+
// Remove attribute selectors: table[border="0"]
|
|
20
|
+
s = s.replace( /\[[^\]]*/g, '' );
|
|
21
|
+
// Remove Ids: div#main
|
|
22
|
+
s = s.replace( /#[^\s]*/g, '' );
|
|
23
|
+
// Remove pseudo-selectors and pseudo-elements: :hover :nth-child(2n+1) ::before
|
|
24
|
+
s = s.replace( /\:{1,2}[^\s]*/g, '' );
|
|
25
|
+
|
|
26
|
+
s = s.replace( /\s+/g, ' ' );
|
|
27
|
+
|
|
28
|
+
var aSelectors = s.split( ' ' ),
|
|
29
|
+
aClasses = [];
|
|
30
|
+
|
|
31
|
+
for ( var i = 0; i < aSelectors.length; i++ ) {
|
|
32
|
+
var selector = aSelectors[ i ];
|
|
33
|
+
|
|
34
|
+
if ( validSelectors.test( selector ) && !skipSelectors.test( selector ) ) {
|
|
35
|
+
// If we still don't know about this one, add it
|
|
36
|
+
if ( CKEDITOR.tools.indexOf( aClasses, selector ) == -1 )
|
|
37
|
+
aClasses.push( selector );
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
return aClasses;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
function LoadStylesCSS( theDoc, skipSelectors, validSelectors ) {
|
|
45
|
+
var styles = [],
|
|
46
|
+
// It will hold all the rules of the applied stylesheets (except those internal to CKEditor)
|
|
47
|
+
aRules = [],
|
|
48
|
+
i;
|
|
49
|
+
|
|
50
|
+
for ( i = 0; i < theDoc.styleSheets.length; i++ ) {
|
|
51
|
+
var sheet = theDoc.styleSheets[ i ],
|
|
52
|
+
node = sheet.ownerNode || sheet.owningElement;
|
|
53
|
+
|
|
54
|
+
// Skip the internal stylesheets
|
|
55
|
+
if ( node.getAttribute( 'data-cke-temp' ) )
|
|
56
|
+
continue;
|
|
57
|
+
|
|
58
|
+
// Exclude stylesheets injected by extensions
|
|
59
|
+
if ( sheet.href && sheet.href.substr( 0, 9 ) == 'chrome://' )
|
|
60
|
+
continue;
|
|
61
|
+
|
|
62
|
+
// Bulletproof with x-domain content stylesheet.
|
|
63
|
+
try {
|
|
64
|
+
var sheetRules = sheet.cssRules || sheet.rules;
|
|
65
|
+
for ( var j = 0; j < sheetRules.length; j++ )
|
|
66
|
+
aRules.push( sheetRules[ j ].selectorText );
|
|
67
|
+
} catch ( e ) {}
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
var aClasses = parseClasses( aRules, skipSelectors, validSelectors );
|
|
71
|
+
|
|
72
|
+
// Add each style to our "Styles" collection.
|
|
73
|
+
for ( i = 0; i < aClasses.length; i++ ) {
|
|
74
|
+
var oElement = aClasses[ i ].split( '.' ),
|
|
75
|
+
element = oElement[ 0 ].toLowerCase(),
|
|
76
|
+
sClassName = oElement[ 1 ];
|
|
77
|
+
|
|
78
|
+
styles.push( {
|
|
79
|
+
name: element + '.' + sClassName,
|
|
80
|
+
element: element,
|
|
81
|
+
attributes: { 'class': sClassName }
|
|
82
|
+
} );
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
return styles;
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
// Register a plugin named "stylesheetparser".
|
|
89
|
+
CKEDITOR.plugins.add( 'stylesheetparser', {
|
|
90
|
+
init: function( editor ) {
|
|
91
|
+
// Stylesheet parser is incompatible with filter (#10136).
|
|
92
|
+
editor.filter.disable();
|
|
93
|
+
|
|
94
|
+
var cachedDefinitions;
|
|
95
|
+
|
|
96
|
+
editor.once( 'stylesSet', function( evt ) {
|
|
97
|
+
// Cancel event and fire it again when styles are ready.
|
|
98
|
+
evt.cancel();
|
|
99
|
+
|
|
100
|
+
// Overwrite editor#getStylesSet asap (contentDom is the first moment
|
|
101
|
+
// when editor.document is ready), but before stylescombo reads styles set (priority 5).
|
|
102
|
+
editor.once( 'contentDom', function() {
|
|
103
|
+
editor.getStylesSet( function( definitions ) {
|
|
104
|
+
// Rules that must be skipped
|
|
105
|
+
var skipSelectors = editor.config.stylesheetParser_skipSelectors || ( /(^body\.|^\.)/i ),
|
|
106
|
+
// Rules that are valid
|
|
107
|
+
validSelectors = editor.config.stylesheetParser_validSelectors || ( /\w+\.\w+/ );
|
|
108
|
+
|
|
109
|
+
cachedDefinitions = definitions.concat( LoadStylesCSS( editor.document.$, skipSelectors, validSelectors ) );
|
|
110
|
+
|
|
111
|
+
editor.getStylesSet = function( callback ) {
|
|
112
|
+
if ( cachedDefinitions )
|
|
113
|
+
return callback( cachedDefinitions );
|
|
114
|
+
};
|
|
115
|
+
|
|
116
|
+
editor.fire( 'stylesSet', { styles: cachedDefinitions } );
|
|
117
|
+
} );
|
|
118
|
+
} );
|
|
119
|
+
}, null, null, 1 );
|
|
120
|
+
}
|
|
121
|
+
} );
|
|
122
|
+
} )();
|
|
123
|
+
|
|
124
|
+
|
|
125
|
+
/**
|
|
126
|
+
* A regular expression that defines whether a CSS rule will be
|
|
127
|
+
* skipped by the Stylesheet Parser plugin. A CSS rule matching
|
|
128
|
+
* the regular expression will be ignored and will not be available
|
|
129
|
+
* in the Styles drop-down list.
|
|
130
|
+
*
|
|
131
|
+
* // Ignore rules for body and caption elements, classes starting with "high", and any class defined for no specific element.
|
|
132
|
+
* config.stylesheetParser_skipSelectors = /(^body\.|^caption\.|\.high|^\.)/i;
|
|
133
|
+
*
|
|
134
|
+
* @since 3.6
|
|
135
|
+
* @cfg {RegExp} [stylesheetParser_skipSelectors=/(^body\.|^\.)/i]
|
|
136
|
+
* @member CKEDITOR.config
|
|
137
|
+
* @see CKEDITOR.config#stylesheetParser_validSelectors
|
|
138
|
+
*/
|
|
139
|
+
|
|
140
|
+
/**
|
|
141
|
+
* A regular expression that defines which CSS rules will be used
|
|
142
|
+
* by the Stylesheet Parser plugin. A CSS rule matching the regular
|
|
143
|
+
* expression will be available in the Styles drop-down list.
|
|
144
|
+
*
|
|
145
|
+
* // Only add rules for p and span elements.
|
|
146
|
+
* config.stylesheetParser_validSelectors = /\^(p|span)\.\w+/;
|
|
147
|
+
*
|
|
148
|
+
* @since 3.6
|
|
149
|
+
* @cfg {RegExp} [stylesheetParser_validSelectors=/\w+\.\w+/]
|
|
150
|
+
* @member CKEDITOR.config
|
|
151
|
+
* @see CKEDITOR.config#stylesheetParser_skipSelectors
|
|
152
|
+
*/
|