coalla-cms 0.4.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +15 -0
- data/.gitignore +81 -0
- data/Gemfile +4 -0
- data/Gemfile.lock +168 -0
- data/Rakefile +29 -0
- data/app/assets/fonts/glyphicons/glyphicons-halflings-regular.eot +0 -0
- data/app/assets/fonts/glyphicons/glyphicons-halflings-regular.svg +229 -0
- data/app/assets/fonts/glyphicons/glyphicons-halflings-regular.ttf +0 -0
- data/app/assets/fonts/glyphicons/glyphicons-halflings-regular.woff +0 -0
- data/app/assets/images/ajax-loader.gif +0 -0
- data/app/assets/images/blank.gif +0 -0
- data/app/assets/images/bootstrap/glyphicons-halflings-white.png +0 -0
- data/app/assets/images/bootstrap/glyphicons-halflings.png +0 -0
- data/app/assets/javascripts/admin/admin.js +295 -0
- data/app/assets/javascripts/admin/custom_admin.js +0 -0
- data/app/assets/javascripts/admin/jquery-migrate.min.js +2 -0
- data/app/assets/javascripts/admin/photo_uploader.js +67 -0
- data/app/assets/javascripts/admin/vendor/bootstrap.min.js +7 -0
- data/app/assets/javascripts/admin/vendor/jquery-ui-timepicker-addon-ru.js +40 -0
- data/app/assets/javascripts/admin/vendor/jquery.tagsinput.js +365 -0
- data/app/assets/javascripts/admin/vendor/jquery.tokeninput.patched.js +875 -0
- data/app/assets/javascripts/admin/vendor/underscore-min.js +5 -0
- data/app/assets/javascripts/ckeditor/plugins/autogrow/plugin.js +209 -0
- data/app/assets/javascripts/ckeditor/plugins/mediaembed/icons/hidpi/mediaembed.png +0 -0
- data/app/assets/javascripts/ckeditor/plugins/mediaembed/icons/mediaembed.png +0 -0
- data/app/assets/javascripts/ckeditor/plugins/mediaembed/plugin.js +64 -0
- data/app/assets/javascripts/ckeditor/plugins/slideshow/3rdParty/ad-gallery/LICENSE.txt +303 -0
- data/app/assets/javascripts/ckeditor/plugins/slideshow/3rdParty/ad-gallery/ad-gallery-css-diff.htm +831 -0
- data/app/assets/javascripts/ckeditor/plugins/slideshow/3rdParty/ad-gallery/ad_next.png +0 -0
- data/app/assets/javascripts/ckeditor/plugins/slideshow/3rdParty/ad-gallery/ad_prev.png +0 -0
- data/app/assets/javascripts/ckeditor/plugins/slideshow/3rdParty/ad-gallery/ad_scroll_back.png +0 -0
- data/app/assets/javascripts/ckeditor/plugins/slideshow/3rdParty/ad-gallery/ad_scroll_forward.png +0 -0
- data/app/assets/javascripts/ckeditor/plugins/slideshow/3rdParty/ad-gallery/jquery.ad-gallery.css +185 -0
- data/app/assets/javascripts/ckeditor/plugins/slideshow/3rdParty/ad-gallery/jquery.ad-gallery.js +984 -0
- data/app/assets/javascripts/ckeditor/plugins/slideshow/3rdParty/ad-gallery/jquery.ad-gallery.min - ref.js +10 -0
- data/app/assets/javascripts/ckeditor/plugins/slideshow/3rdParty/ad-gallery/jquery.ad-gallery.min.js +1 -0
- data/app/assets/javascripts/ckeditor/plugins/slideshow/3rdParty/ad-gallery/loader.gif +0 -0
- data/app/assets/javascripts/ckeditor/plugins/slideshow/3rdParty/ad-gallery/opa75.png +0 -0
- data/app/assets/javascripts/ckeditor/plugins/slideshow/3rdParty/ad-gallery/placeholder.png +0 -0
- data/app/assets/javascripts/ckeditor/plugins/slideshow/3rdParty/ad-gallery/trans.gif +0 -0
- data/app/assets/javascripts/ckeditor/plugins/slideshow/3rdParty/fancybox2/blank.gif +0 -0
- data/app/assets/javascripts/ckeditor/plugins/slideshow/3rdParty/fancybox2/fancybox_loading.gif +0 -0
- data/app/assets/javascripts/ckeditor/plugins/slideshow/3rdParty/fancybox2/fancybox_loading@2x.gif +0 -0
- data/app/assets/javascripts/ckeditor/plugins/slideshow/3rdParty/fancybox2/fancybox_overlay.png +0 -0
- data/app/assets/javascripts/ckeditor/plugins/slideshow/3rdParty/fancybox2/fancybox_sprite.png +0 -0
- data/app/assets/javascripts/ckeditor/plugins/slideshow/3rdParty/fancybox2/fancybox_sprite@2x.png +0 -0
- data/app/assets/javascripts/ckeditor/plugins/slideshow/3rdParty/fancybox2/helpers/fancybox_buttons.png +0 -0
- data/app/assets/javascripts/ckeditor/plugins/slideshow/3rdParty/fancybox2/helpers/jquery.fancybox-buttons.css +97 -0
- data/app/assets/javascripts/ckeditor/plugins/slideshow/3rdParty/fancybox2/helpers/jquery.fancybox-buttons.js +122 -0
- data/app/assets/javascripts/ckeditor/plugins/slideshow/3rdParty/fancybox2/helpers/jquery.fancybox-media.js +199 -0
- data/app/assets/javascripts/ckeditor/plugins/slideshow/3rdParty/fancybox2/helpers/jquery.fancybox-thumbs.css +55 -0
- data/app/assets/javascripts/ckeditor/plugins/slideshow/3rdParty/fancybox2/helpers/jquery.fancybox-thumbs.js +162 -0
- data/app/assets/javascripts/ckeditor/plugins/slideshow/3rdParty/fancybox2/jquery.fancybox.css +274 -0
- data/app/assets/javascripts/ckeditor/plugins/slideshow/3rdParty/fancybox2/jquery.fancybox.js +2020 -0
- data/app/assets/javascripts/ckeditor/plugins/slideshow/3rdParty/fancybox2/jquery.fancybox.pack.js +46 -0
- data/app/assets/javascripts/ckeditor/plugins/slideshow/README.md +66 -0
- data/app/assets/javascripts/ckeditor/plugins/slideshow/dialogs/slideshow.js +1396 -0
- data/app/assets/javascripts/ckeditor/plugins/slideshow/dialogs/slideshow.min.js +1 -0
- data/app/assets/javascripts/ckeditor/plugins/slideshow/icons/placeholder.png +0 -0
- data/app/assets/javascripts/ckeditor/plugins/slideshow/icons/slideshow.png +0 -0
- data/app/assets/javascripts/ckeditor/plugins/slideshow/lang/Serbian_translation.txt +9 -0
- data/app/assets/javascripts/ckeditor/plugins/slideshow/lang/el.js +37 -0
- data/app/assets/javascripts/ckeditor/plugins/slideshow/lang/en.js +35 -0
- data/app/assets/javascripts/ckeditor/plugins/slideshow/lang/fr.js +35 -0
- data/app/assets/javascripts/ckeditor/plugins/slideshow/lang/ru.js +35 -0
- data/app/assets/javascripts/ckeditor/plugins/slideshow/lang/sr-latn.js +35 -0
- data/app/assets/javascripts/ckeditor/plugins/slideshow/lang/sr.js +35 -0
- data/app/assets/javascripts/ckeditor/plugins/slideshow/plugin.js +217 -0
- data/app/assets/stylesheets/admin/admin.scss +302 -0
- data/app/assets/stylesheets/admin/custom_admin.scss +1 -0
- data/app/assets/stylesheets/admin/vendor/bootstrap.min.css +14 -0
- data/app/assets/stylesheets/admin/vendor/jquery.tagsinput.css +99 -0
- data/app/assets/stylesheets/admin/vendor/token-input-facebook.patched.css +126 -0
- data/app/assets/stylesheets/admin/vendor/token-input.patched.css +116 -0
- data/app/controllers/admin/autocomplete_controller.rb +14 -0
- data/app/controllers/admin/image_upload_controller.rb +27 -0
- data/app/controllers/admin/lookups_controller.rb +47 -0
- data/app/controllers/admin/sortable_controller.rb +26 -0
- data/app/controllers/concerns/admin/path_history.rb +39 -0
- data/app/helpers/admin/search_helper.rb +59 -0
- data/app/helpers/admin_helper.rb +29 -0
- data/app/helpers/common_helper.rb +16 -0
- data/app/helpers/lookup_helper.rb +45 -0
- data/app/helpers/nested_fields_helper.rb +12 -0
- data/app/helpers/static_text_formatter.rb +25 -0
- data/app/helpers/twitter_builder_helper.rb +253 -0
- data/app/helpers/twitter_form_builder.rb +196 -0
- data/app/models/file_upload.rb +19 -0
- data/app/models/lookup.rb +6 -0
- data/app/uploaders/file_uploader.rb +10 -0
- data/app/uploaders/generic_image_uploader.rb +74 -0
- data/app/utils/admin_structure.rb +67 -0
- data/app/utils/bootstrap_link_renderer.rb +40 -0
- data/app/utils/table_helpers.rb +196 -0
- data/app/views/admin/base/_sort.haml +34 -0
- data/app/views/admin/common/_file_upload_template.haml +14 -0
- data/app/views/admin/common/_header.html.haml +27 -0
- data/app/views/admin/common/_image_upload_template.html.haml +40 -0
- data/app/views/admin/common/_menu.html.haml +2 -0
- data/app/views/admin/common/_menu_section.haml +10 -0
- data/app/views/admin/common/_menu_separator.haml +1 -0
- data/app/views/admin/common/_nested_fields_for.html.haml +5 -0
- data/app/views/admin/common/_nested_fields_for_element.html.haml +5 -0
- data/app/views/admin/common/_slide.haml +41 -0
- data/app/views/admin/common/_slides.html.haml +17 -0
- data/app/views/admin/common/_table_template.html.haml +14 -0
- data/app/views/admin/common/_upload_form.html.haml +5 -0
- data/app/views/admin/common/image_uploaded.js.haml +7 -0
- data/app/views/admin/common/upload_failed.js.erb +11 -0
- data/app/views/admin/common/upload_image.js.erb +6 -0
- data/app/views/admin/home/dashboard.html.haml +5 -0
- data/app/views/admin/lookups/_form.html.haml +16 -0
- data/app/views/admin/lookups/edit.html.haml +5 -0
- data/app/views/admin/lookups/index.html.haml +6 -0
- data/app/views/layouts/admin.html.haml +38 -0
- data/app/views/structure/_section.haml +16 -0
- data/coalla-cms.gemspec +39 -0
- data/config/locales/devise.ru.yml +59 -0
- data/config/locales/will_paginate.ru.yml +6 -0
- data/lib/coalla/cms/engine.rb +16 -0
- data/lib/coalla/cms/version.rb +5 -0
- data/lib/coalla/ext/mapper.rb +14 -0
- data/lib/coalla/orm/page_slider.rb +53 -0
- data/lib/coalla/orm/relation.rb +32 -0
- data/lib/coalla/orm/sanitized.rb +16 -0
- data/lib/coalla/sanitize/config/default.rb +526 -0
- data/lib/coalla-cms.rb +16 -0
- data/lib/generators/coalla/cms/create_admin_generator.rb +50 -0
- data/lib/generators/coalla/cms/create_admin_login_view_generator.rb +23 -0
- data/lib/generators/coalla/cms/file_uploads/install_generator.rb +35 -0
- data/lib/generators/coalla/cms/file_uploads/mount_generator.rb +34 -0
- data/lib/generators/coalla/cms/file_uploads/templates/add_column_migration.rb.erb +5 -0
- data/lib/generators/coalla/cms/file_uploads/templates/migration.rb +17 -0
- data/lib/generators/coalla/cms/image/install_generator.rb +39 -0
- data/lib/generators/coalla/cms/image/mount_generator.rb +50 -0
- data/lib/generators/coalla/cms/image/templates/migration.rb.erb +9 -0
- data/lib/generators/coalla/cms/image/templates/model.rb.erb +5 -0
- data/lib/generators/coalla/cms/image/templates/mount/migration.rb.erb +6 -0
- data/lib/generators/coalla/cms/image/templates/mount/uploader.rb.erb +3 -0
- data/lib/generators/coalla/cms/image/templates/uploader.rb.erb +3 -0
- data/lib/generators/coalla/cms/init_generator.rb +113 -0
- data/lib/generators/coalla/cms/lookups/install_generator.rb +43 -0
- data/lib/generators/coalla/cms/lookups/templates/migration.rb +13 -0
- data/lib/generators/coalla/cms/market/install_generator.rb +71 -0
- data/lib/generators/coalla/cms/market/templates/controllers/categories_controller.rb +47 -0
- data/lib/generators/coalla/cms/market/templates/controllers/products_controller.rb +50 -0
- data/lib/generators/coalla/cms/market/templates/controllers/properties_controller.rb +59 -0
- data/lib/generators/coalla/cms/market/templates/market.rb +5 -0
- data/lib/generators/coalla/cms/market/templates/market.ru.yml +53 -0
- data/lib/generators/coalla/cms/market/templates/migrations/create_categories.rb +15 -0
- data/lib/generators/coalla/cms/market/templates/migrations/create_product_properties.rb +18 -0
- data/lib/generators/coalla/cms/market/templates/migrations/create_products.rb +18 -0
- data/lib/generators/coalla/cms/market/templates/migrations/create_properties.rb +11 -0
- data/lib/generators/coalla/cms/market/templates/models/category.rb +36 -0
- data/lib/generators/coalla/cms/market/templates/models/product.rb +16 -0
- data/lib/generators/coalla/cms/market/templates/models/product_property.rb +14 -0
- data/lib/generators/coalla/cms/market/templates/models/property.rb +7 -0
- data/lib/generators/coalla/cms/market/templates/views/categories/_form.html.haml +10 -0
- data/lib/generators/coalla/cms/market/templates/views/categories/edit.html.haml +5 -0
- data/lib/generators/coalla/cms/market/templates/views/categories/index.html.haml +17 -0
- data/lib/generators/coalla/cms/market/templates/views/categories/new.html.haml +4 -0
- data/lib/generators/coalla/cms/market/templates/views/products/_form.html.haml +17 -0
- data/lib/generators/coalla/cms/market/templates/views/products/_product_property_fields.html.haml +13 -0
- data/lib/generators/coalla/cms/market/templates/views/products/edit.html.haml +5 -0
- data/lib/generators/coalla/cms/market/templates/views/products/index.html.haml +17 -0
- data/lib/generators/coalla/cms/market/templates/views/products/new.html.haml +4 -0
- data/lib/generators/coalla/cms/market/templates/views/properties/_form.html.haml +9 -0
- data/lib/generators/coalla/cms/market/templates/views/properties/edit.html.haml +5 -0
- data/lib/generators/coalla/cms/market/templates/views/properties/index.html.haml +15 -0
- data/lib/generators/coalla/cms/market/templates/views/properties/new.html.haml +4 -0
- data/lib/generators/coalla/cms/news/scaffold_generator.rb +50 -0
- data/lib/generators/coalla/cms/news/templates/entity.rb.erb +10 -0
- data/lib/generators/coalla/cms/news/templates/entity_controller_template.rb.erb +47 -0
- data/lib/generators/coalla/cms/news/templates/entity_image_uploader.rb.erb +7 -0
- data/lib/generators/coalla/cms/news/templates/migration.rb.erb +15 -0
- data/lib/generators/coalla/cms/news/templates/views/_form.haml.erb +16 -0
- data/lib/generators/coalla/cms/news/templates/views/edit.haml.erb +5 -0
- data/lib/generators/coalla/cms/news/templates/views/index.haml.erb +18 -0
- data/lib/generators/coalla/cms/news/templates/views/new.haml.erb +5 -0
- data/lib/generators/coalla/cms/orm_helpers.rb +31 -0
- data/lib/generators/coalla/cms/scaffold_generator.rb +53 -0
- data/lib/generators/coalla/cms/scaffold_helper.rb +11 -0
- data/lib/generators/coalla/cms/setup_admin_generator.rb +60 -0
- data/lib/generators/coalla/cms/setup_routes_generator.rb +28 -0
- data/lib/generators/coalla/cms/slider/init_generator.rb +41 -0
- data/lib/generators/coalla/cms/slider/templates/migration.rb.erb +25 -0
- data/lib/generators/coalla/cms/slider/templates/slider_image.rb.erb +10 -0
- data/lib/generators/coalla/cms/slider/templates/slider_image_uploader.rb.erb +7 -0
- data/lib/generators/coalla/cms/slider/templates/slider_upload_controller.rb.erb +19 -0
- data/lib/generators/coalla/cms/templates/.gitattributes +4 -0
- data/lib/generators/coalla/cms/templates/.gitignore +86 -0
- data/lib/generators/coalla/cms/templates/activerecord.ru.yml +13 -0
- data/lib/generators/coalla/cms/templates/assets.rb +13 -0
- data/lib/generators/coalla/cms/templates/controllers/admin/base_controller.rb.erb +35 -0
- data/lib/generators/coalla/cms/templates/controllers/admin/home_controller.rb.erb +6 -0
- data/lib/generators/coalla/cms/templates/controllers/admin/scaffold_controller_template.rb.erb +45 -0
- data/lib/generators/coalla/cms/templates/controllers/home_controller.rb.erb +6 -0
- data/lib/generators/coalla/cms/templates/database.yml.erb +35 -0
- data/lib/generators/coalla/cms/templates/devise.ru.yml +59 -0
- data/lib/generators/coalla/cms/templates/initializers/carrierwave.rb +51 -0
- data/lib/generators/coalla/cms/templates/migration.rb +11 -0
- data/lib/generators/coalla/cms/templates/migration_existing.rb +15 -0
- data/lib/generators/coalla/cms/templates/schedule.rb +3 -0
- data/lib/generators/coalla/cms/templates/structure.rb +0 -0
- data/lib/generators/coalla/cms/templates/views/admin/scaffold_template/_form.html.haml.erb +14 -0
- data/lib/generators/coalla/cms/templates/views/admin/scaffold_template/edit.html.haml.erb +5 -0
- data/lib/generators/coalla/cms/templates/views/admin/scaffold_template/index.html.haml.erb +15 -0
- data/lib/generators/coalla/cms/templates/views/admin/scaffold_template/new.html.haml.erb +4 -0
- data/lib/generators/coalla/cms/templates/views/administrators/sessions/new.html.haml +19 -0
- data/lib/generators/coalla/cms/templates/views/home/index.html.haml.erb +1 -0
- data/lib/generators/coalla/cms/wysiwyg/ckeditor_generator.rb +17 -0
- data/lib/generators/coalla/cms/wysiwyg/templates/ckeditor/plugins/mediaembed/icons/hidpi/mediaembed.png +0 -0
- data/lib/generators/coalla/cms/wysiwyg/templates/ckeditor/plugins/mediaembed/icons/mediaembed.png +0 -0
- data/lib/generators/coalla/cms/wysiwyg/templates/ckeditor/plugins/mediaembed/plugin.js +64 -0
- data/lib/generators/coalla/cms/wysiwyg/templates/ckeditor/plugins/slideshow/3rdParty/ad-gallery/LICENSE.txt +303 -0
- data/lib/generators/coalla/cms/wysiwyg/templates/ckeditor/plugins/slideshow/3rdParty/ad-gallery/ad-gallery-css-diff.htm +831 -0
- data/lib/generators/coalla/cms/wysiwyg/templates/ckeditor/plugins/slideshow/3rdParty/ad-gallery/ad_next.png +0 -0
- data/lib/generators/coalla/cms/wysiwyg/templates/ckeditor/plugins/slideshow/3rdParty/ad-gallery/ad_prev.png +0 -0
- data/lib/generators/coalla/cms/wysiwyg/templates/ckeditor/plugins/slideshow/3rdParty/ad-gallery/ad_scroll_back.png +0 -0
- data/lib/generators/coalla/cms/wysiwyg/templates/ckeditor/plugins/slideshow/3rdParty/ad-gallery/ad_scroll_forward.png +0 -0
- data/lib/generators/coalla/cms/wysiwyg/templates/ckeditor/plugins/slideshow/3rdParty/ad-gallery/jquery.ad-gallery.css +185 -0
- data/lib/generators/coalla/cms/wysiwyg/templates/ckeditor/plugins/slideshow/3rdParty/ad-gallery/jquery.ad-gallery.js +984 -0
- data/lib/generators/coalla/cms/wysiwyg/templates/ckeditor/plugins/slideshow/3rdParty/ad-gallery/jquery.ad-gallery.min - ref.js +10 -0
- data/lib/generators/coalla/cms/wysiwyg/templates/ckeditor/plugins/slideshow/3rdParty/ad-gallery/jquery.ad-gallery.min.js +1 -0
- data/lib/generators/coalla/cms/wysiwyg/templates/ckeditor/plugins/slideshow/3rdParty/ad-gallery/loader.gif +0 -0
- data/lib/generators/coalla/cms/wysiwyg/templates/ckeditor/plugins/slideshow/3rdParty/ad-gallery/opa75.png +0 -0
- data/lib/generators/coalla/cms/wysiwyg/templates/ckeditor/plugins/slideshow/3rdParty/ad-gallery/placeholder.png +0 -0
- data/lib/generators/coalla/cms/wysiwyg/templates/ckeditor/plugins/slideshow/3rdParty/ad-gallery/trans.gif +0 -0
- data/lib/generators/coalla/cms/wysiwyg/templates/ckeditor/plugins/slideshow/3rdParty/fancybox2/blank.gif +0 -0
- data/lib/generators/coalla/cms/wysiwyg/templates/ckeditor/plugins/slideshow/3rdParty/fancybox2/fancybox_loading.gif +0 -0
- data/lib/generators/coalla/cms/wysiwyg/templates/ckeditor/plugins/slideshow/3rdParty/fancybox2/fancybox_loading@2x.gif +0 -0
- data/lib/generators/coalla/cms/wysiwyg/templates/ckeditor/plugins/slideshow/3rdParty/fancybox2/fancybox_overlay.png +0 -0
- data/lib/generators/coalla/cms/wysiwyg/templates/ckeditor/plugins/slideshow/3rdParty/fancybox2/fancybox_sprite.png +0 -0
- data/lib/generators/coalla/cms/wysiwyg/templates/ckeditor/plugins/slideshow/3rdParty/fancybox2/fancybox_sprite@2x.png +0 -0
- data/lib/generators/coalla/cms/wysiwyg/templates/ckeditor/plugins/slideshow/3rdParty/fancybox2/helpers/fancybox_buttons.png +0 -0
- data/lib/generators/coalla/cms/wysiwyg/templates/ckeditor/plugins/slideshow/3rdParty/fancybox2/helpers/jquery.fancybox-buttons.css +97 -0
- data/lib/generators/coalla/cms/wysiwyg/templates/ckeditor/plugins/slideshow/3rdParty/fancybox2/helpers/jquery.fancybox-buttons.js +122 -0
- data/lib/generators/coalla/cms/wysiwyg/templates/ckeditor/plugins/slideshow/3rdParty/fancybox2/helpers/jquery.fancybox-media.js +199 -0
- data/lib/generators/coalla/cms/wysiwyg/templates/ckeditor/plugins/slideshow/3rdParty/fancybox2/helpers/jquery.fancybox-thumbs.css +55 -0
- data/lib/generators/coalla/cms/wysiwyg/templates/ckeditor/plugins/slideshow/3rdParty/fancybox2/helpers/jquery.fancybox-thumbs.js +162 -0
- data/lib/generators/coalla/cms/wysiwyg/templates/ckeditor/plugins/slideshow/3rdParty/fancybox2/jquery.fancybox.css +274 -0
- data/lib/generators/coalla/cms/wysiwyg/templates/ckeditor/plugins/slideshow/3rdParty/fancybox2/jquery.fancybox.js +2020 -0
- data/lib/generators/coalla/cms/wysiwyg/templates/ckeditor/plugins/slideshow/3rdParty/fancybox2/jquery.fancybox.pack.js +46 -0
- data/lib/generators/coalla/cms/wysiwyg/templates/ckeditor/plugins/slideshow/README.md +66 -0
- data/lib/generators/coalla/cms/wysiwyg/templates/ckeditor/plugins/slideshow/dialogs/slideshow.js +1396 -0
- data/lib/generators/coalla/cms/wysiwyg/templates/ckeditor/plugins/slideshow/dialogs/slideshow.min.js +1 -0
- data/lib/generators/coalla/cms/wysiwyg/templates/ckeditor/plugins/slideshow/icons/placeholder.png +0 -0
- data/lib/generators/coalla/cms/wysiwyg/templates/ckeditor/plugins/slideshow/icons/slideshow.png +0 -0
- data/lib/generators/coalla/cms/wysiwyg/templates/ckeditor/plugins/slideshow/lang/Serbian_translation.txt +9 -0
- data/lib/generators/coalla/cms/wysiwyg/templates/ckeditor/plugins/slideshow/lang/el.js +37 -0
- data/lib/generators/coalla/cms/wysiwyg/templates/ckeditor/plugins/slideshow/lang/en.js +35 -0
- data/lib/generators/coalla/cms/wysiwyg/templates/ckeditor/plugins/slideshow/lang/fr.js +35 -0
- data/lib/generators/coalla/cms/wysiwyg/templates/ckeditor/plugins/slideshow/lang/ru.js +35 -0
- data/lib/generators/coalla/cms/wysiwyg/templates/ckeditor/plugins/slideshow/lang/sr-latn.js +35 -0
- data/lib/generators/coalla/cms/wysiwyg/templates/ckeditor/plugins/slideshow/lang/sr.js +35 -0
- data/lib/generators/coalla/cms/wysiwyg/templates/ckeditor/plugins/slideshow/plugin.js +217 -0
- data/lib/generators/coalla/cms/wysiwyg/templates/wymeditor/iframe/default/lbl-blockquote.png +0 -0
- data/lib/generators/coalla/cms/wysiwyg/templates/wymeditor/iframe/default/lbl-h1.png +0 -0
- data/lib/generators/coalla/cms/wysiwyg/templates/wymeditor/iframe/default/lbl-h2.png +0 -0
- data/lib/generators/coalla/cms/wysiwyg/templates/wymeditor/iframe/default/lbl-h3.png +0 -0
- data/lib/generators/coalla/cms/wysiwyg/templates/wymeditor/iframe/default/lbl-h4.png +0 -0
- data/lib/generators/coalla/cms/wysiwyg/templates/wymeditor/iframe/default/lbl-h5.png +0 -0
- data/lib/generators/coalla/cms/wysiwyg/templates/wymeditor/iframe/default/lbl-h6.png +0 -0
- data/lib/generators/coalla/cms/wysiwyg/templates/wymeditor/iframe/default/lbl-p.png +0 -0
- data/lib/generators/coalla/cms/wysiwyg/templates/wymeditor/iframe/default/lbl-pre.png +0 -0
- data/lib/generators/coalla/cms/wysiwyg/templates/wymeditor/iframe/default/wymiframe.css +276 -0
- data/lib/generators/coalla/cms/wysiwyg/templates/wymeditor/iframe/default/wymiframe.html +26 -0
- data/lib/generators/coalla/cms/wysiwyg/templates/wymeditor/jquery.wymeditor.js +4819 -0
- data/lib/generators/coalla/cms/wysiwyg/templates/wymeditor/lang/en.js +45 -0
- data/lib/generators/coalla/cms/wysiwyg/templates/wymeditor/lang/ru.js +55 -0
- data/lib/generators/coalla/cms/wysiwyg/templates/wymeditor/plugins/imageupload/icons.png +0 -0
- data/lib/generators/coalla/cms/wysiwyg/templates/wymeditor/plugins/imageupload/jquery.wymeditor.imageupload.js +150 -0
- data/lib/generators/coalla/cms/wysiwyg/templates/wymeditor/plugins/resizable/jquery.wymeditor.resizable.js +91 -0
- data/lib/generators/coalla/cms/wysiwyg/templates/wymeditor/plugins/resizable/readme.txt +124 -0
- data/lib/generators/coalla/cms/wysiwyg/templates/wymeditor/skins/compact/icons.png +0 -0
- data/lib/generators/coalla/cms/wysiwyg/templates/wymeditor/skins/compact/skin.css +134 -0
- data/lib/generators/coalla/cms/wysiwyg/templates/wymeditor/skins/compact/skin.js +35 -0
- data/lib/generators/coalla/cms/wysiwyg/templates/wymeditor/skins/default/icons.png +0 -0
- data/lib/generators/coalla/cms/wysiwyg/templates/wymeditor/skins/default/skin.css +341 -0
- data/lib/generators/coalla/cms/wysiwyg/templates/wymeditor/skins/default/skin.js +40 -0
- data/lib/generators/coalla/cms/wysiwyg/templates/wymeditor/skins/minimal/images/bg.header.gif +0 -0
- data/lib/generators/coalla/cms/wysiwyg/templates/wymeditor/skins/minimal/images/bg.selector.silver.gif +0 -0
- data/lib/generators/coalla/cms/wysiwyg/templates/wymeditor/skins/minimal/images/bg.wymeditor.png +0 -0
- data/lib/generators/coalla/cms/wysiwyg/templates/wymeditor/skins/minimal/images/icons.silver.gif +0 -0
- data/lib/generators/coalla/cms/wysiwyg/templates/wymeditor/skins/minimal/skin.css +131 -0
- data/lib/generators/coalla/cms/wysiwyg/templates/wymeditor/skins/minimal/skin.js +30 -0
- data/lib/generators/coalla/cms/wysiwyg/templates/wymeditor/skins/silver/COPYING +674 -0
- data/lib/generators/coalla/cms/wysiwyg/templates/wymeditor/skins/silver/README +27 -0
- data/lib/generators/coalla/cms/wysiwyg/templates/wymeditor/skins/silver/images/bg.header.gif +0 -0
- data/lib/generators/coalla/cms/wysiwyg/templates/wymeditor/skins/silver/images/bg.selector.silver.gif +0 -0
- data/lib/generators/coalla/cms/wysiwyg/templates/wymeditor/skins/silver/images/bg.wymeditor.png +0 -0
- data/lib/generators/coalla/cms/wysiwyg/templates/wymeditor/skins/silver/images/icons.silver.gif +0 -0
- data/lib/generators/coalla/cms/wysiwyg/templates/wymeditor/skins/silver/skin.css +297 -0
- data/lib/generators/coalla/cms/wysiwyg/templates/wymeditor/skins/silver/skin.js +61 -0
- data/lib/generators/coalla/cms/wysiwyg/templates/wymeditor/skins/twopanels/icons.png +0 -0
- data/lib/generators/coalla/cms/wysiwyg/templates/wymeditor/skins/twopanels/skin.css +134 -0
- data/lib/generators/coalla/cms/wysiwyg/templates/wymeditor/skins/twopanels/skin.js +39 -0
- data/lib/generators/coalla/cms/wysiwyg/templates/wymeditor/skins/wymeditor_icon.png +0 -0
- data/lib/generators/coalla/cms/wysiwyg/wymeditor_generator.rb +17 -0
- metadata +581 -0
@@ -0,0 +1,341 @@
|
|
1
|
+
/*
|
2
|
+
* WYMeditor : what you see is What You Mean web-based editor
|
3
|
+
* Copyright (c) 2005 - 2009 Jean-Francois Hovinne, http://www.wymeditor.org/
|
4
|
+
* Dual licensed under the MIT (MIT-license.txt)
|
5
|
+
* and GPL (GPL-license.txt) licenses.
|
6
|
+
*
|
7
|
+
* For further information visit:
|
8
|
+
* http://www.wymeditor.org/
|
9
|
+
*
|
10
|
+
* File Name:
|
11
|
+
* skin.css
|
12
|
+
* main stylesheet for the default WYMeditor skin
|
13
|
+
* See the documentation for more info.
|
14
|
+
*
|
15
|
+
* File Authors:
|
16
|
+
* Daniel Reszka (d.reszka a-t wymeditor dotorg)
|
17
|
+
*/
|
18
|
+
|
19
|
+
/*TRYING TO RESET STYLES THAT MAY INTERFERE WITH WYMEDITOR*/
|
20
|
+
.wym_skin_default p, .wym_skin_default h2, .wym_skin_default h3,
|
21
|
+
.wym_skin_default ul, .wym_skin_default li {
|
22
|
+
background: transparent url();
|
23
|
+
border-width: 0;
|
24
|
+
list-style: none;
|
25
|
+
margin: 0;
|
26
|
+
padding: 0;
|
27
|
+
}
|
28
|
+
|
29
|
+
/*HIDDEN BY DEFAULT*/
|
30
|
+
.wym_skin_default .wym_area_left {
|
31
|
+
display: none;
|
32
|
+
}
|
33
|
+
|
34
|
+
.wym_skin_default .wym_area_right {
|
35
|
+
display: block;
|
36
|
+
}
|
37
|
+
|
38
|
+
/*TYPO*/
|
39
|
+
.wym_skin_default {
|
40
|
+
font-size: 62.5%;
|
41
|
+
font-family: Verdana, Arial, sans-serif;
|
42
|
+
width: 798px;
|
43
|
+
}
|
44
|
+
|
45
|
+
.wym_skin_default h2 {
|
46
|
+
font-size: 110%; /* = 11px */
|
47
|
+
}
|
48
|
+
|
49
|
+
.wym_skin_default h3 {
|
50
|
+
font-size: 100%; /* = 10px */
|
51
|
+
}
|
52
|
+
|
53
|
+
.wym_skin_default li {
|
54
|
+
font-size: 100%; /* = 10px */
|
55
|
+
}
|
56
|
+
|
57
|
+
/*WYM_BOX*/
|
58
|
+
.wym_skin_default {
|
59
|
+
}
|
60
|
+
|
61
|
+
/*auto-clear the wym_box*/
|
62
|
+
.wym_skin_default:after {
|
63
|
+
content: ".";
|
64
|
+
display: block;
|
65
|
+
height: 0;
|
66
|
+
clear: both;
|
67
|
+
visibility: hidden;
|
68
|
+
}
|
69
|
+
|
70
|
+
* html .wym_skin_default {
|
71
|
+
height: 1%;
|
72
|
+
}
|
73
|
+
|
74
|
+
/*WYM_HTML*/
|
75
|
+
.wym_skin_default .wym_html {
|
76
|
+
width: 98%;
|
77
|
+
}
|
78
|
+
|
79
|
+
.wym_skin_default .wym_html textarea {
|
80
|
+
width: 100%;
|
81
|
+
height: 200px;
|
82
|
+
border: 1px solid gray;
|
83
|
+
background: white;
|
84
|
+
}
|
85
|
+
|
86
|
+
/*WYM_IFRAME*/
|
87
|
+
.wym_skin_default .wym_iframe {
|
88
|
+
width: 808px;
|
89
|
+
}
|
90
|
+
|
91
|
+
.wym_skin_default .wym_iframe iframe {
|
92
|
+
width: 100%;
|
93
|
+
height: 300px;
|
94
|
+
border: 1px solid #CCC;
|
95
|
+
-webkit-border-radius: 3px;
|
96
|
+
-moz-border-radius: 3px;
|
97
|
+
border-radius: 3px;
|
98
|
+
background: white
|
99
|
+
}
|
100
|
+
|
101
|
+
/*AREAS*/
|
102
|
+
.wym_skin_default .wym_area_left {
|
103
|
+
width: 150px;
|
104
|
+
float: left;
|
105
|
+
}
|
106
|
+
|
107
|
+
.wym_skin_default .wym_area_right {
|
108
|
+
width: 150px;
|
109
|
+
float: right;
|
110
|
+
}
|
111
|
+
|
112
|
+
.wym_skin_default .wym_area_bottom {
|
113
|
+
height: 1%;
|
114
|
+
clear: both;
|
115
|
+
}
|
116
|
+
|
117
|
+
* html .wym_skin_default .wym_area_main {
|
118
|
+
height: 1%;
|
119
|
+
}
|
120
|
+
|
121
|
+
* html .wym_skin_default .wym_area_top {
|
122
|
+
height: 1%;
|
123
|
+
}
|
124
|
+
|
125
|
+
*+html .wym_skin_default .wym_area_top {
|
126
|
+
height: 1%;
|
127
|
+
}
|
128
|
+
|
129
|
+
/*SECTIONS SYSTEM*/
|
130
|
+
|
131
|
+
/*common defaults for all sections*/
|
132
|
+
.wym_skin_default .wym_section {
|
133
|
+
/*margin-bottom: 5px;*/
|
134
|
+
}
|
135
|
+
|
136
|
+
.wym_skin_default .wym_section h2,
|
137
|
+
.wym_skin_default .wym_section h3 {
|
138
|
+
padding: 1px 3px;
|
139
|
+
margin: 0;
|
140
|
+
}
|
141
|
+
|
142
|
+
.wym_skin_default .wym_section a {
|
143
|
+
padding: 0 3px;
|
144
|
+
display: block;
|
145
|
+
text-decoration: none;
|
146
|
+
color: black;
|
147
|
+
}
|
148
|
+
|
149
|
+
/*.wym_skin_default .wym_section a:hover {*/
|
150
|
+
/*background-color: yellow;*/
|
151
|
+
/*}*/
|
152
|
+
|
153
|
+
/*hide section titles by default*/
|
154
|
+
.wym_skin_default .wym_section h2 {
|
155
|
+
display: none;
|
156
|
+
}
|
157
|
+
|
158
|
+
/*disable any margin-collapse*/
|
159
|
+
.wym_skin_default .wym_section {
|
160
|
+
padding-top: 1px;
|
161
|
+
padding-bottom: 1px;
|
162
|
+
}
|
163
|
+
|
164
|
+
/*auto-clear sections*/
|
165
|
+
.wym_skin_default .wym_section ul:after {
|
166
|
+
content: ".";
|
167
|
+
display: block;
|
168
|
+
height: 0;
|
169
|
+
clear: both;
|
170
|
+
visibility: hidden;
|
171
|
+
}
|
172
|
+
|
173
|
+
* html .wym_skin_default .wym_section ul {
|
174
|
+
height: 1%;
|
175
|
+
}
|
176
|
+
|
177
|
+
/*option: add this class to a section to make it render as a panel*/
|
178
|
+
.wym_skin_default .wym_panel {
|
179
|
+
}
|
180
|
+
|
181
|
+
.wym_skin_default .wym_panel h2 {
|
182
|
+
display: block;
|
183
|
+
}
|
184
|
+
|
185
|
+
/*option: add this class to a section to make it render as a dropdown menu*/
|
186
|
+
.wym_skin_default .wym_dropdown h2 {
|
187
|
+
display: block;
|
188
|
+
}
|
189
|
+
|
190
|
+
.wym_skin_default .wym_dropdown ul {
|
191
|
+
display: none;
|
192
|
+
position: absolute;
|
193
|
+
background: white;
|
194
|
+
}
|
195
|
+
|
196
|
+
.wym_skin_default .wym_dropdown:hover ul,
|
197
|
+
.wym_skin_default .wym_dropdown.hover ul {
|
198
|
+
display: block;
|
199
|
+
}
|
200
|
+
|
201
|
+
/*option: add this class to a section to make its elements render buttons (icons are only available for the wym_tools section for now)*/
|
202
|
+
.wym_skin_default .wym_buttons {
|
203
|
+
margin-bottom: 5px;
|
204
|
+
}
|
205
|
+
|
206
|
+
.wym_skin_default .wym_buttons li {
|
207
|
+
float: left;
|
208
|
+
}
|
209
|
+
|
210
|
+
.wym_skin_default .wym_buttons a {
|
211
|
+
height: 20px;
|
212
|
+
/*margin: 0 5px 4px;*/
|
213
|
+
/*overflow: hidden;*/
|
214
|
+
padding: 2px;
|
215
|
+
width: 20px;
|
216
|
+
}
|
217
|
+
|
218
|
+
/*image replacements*/
|
219
|
+
.wym_skin_default .wym_buttons li a {
|
220
|
+
background: url(icons.png) no-repeat;
|
221
|
+
text-indent: -9999px;
|
222
|
+
}
|
223
|
+
|
224
|
+
.wym_skin_default .wym_buttons li.wym_tools_paragraph a { background-position: 0 0; }
|
225
|
+
.wym_skin_default .wym_buttons li.wym_tools_heading1 a { background-position: 0 -24px; }
|
226
|
+
.wym_skin_default .wym_buttons li.wym_tools_heading2 a { background-position: 0 -48px; }
|
227
|
+
.wym_skin_default .wym_buttons li.wym_tools_heading3 a { background-position: 0 -72px; }
|
228
|
+
.wym_skin_default .wym_buttons li.wym_tools_heading4 a { background-position: 0 -96px; }
|
229
|
+
.wym_skin_default .wym_buttons li.wym_tools_heading5 a { background-position: 0 -120px; }
|
230
|
+
.wym_skin_default .wym_buttons li.wym_tools_heading6 a { background-position: 0 -144px; }
|
231
|
+
.wym_skin_default .wym_buttons li.wym_tools_strong a { background-position: 0 -168px; }
|
232
|
+
.wym_skin_default .wym_buttons li.wym_tools_emphasis a { background-position: 0 -192px; }
|
233
|
+
.wym_skin_default .wym_buttons li.wym_tools_superscript a { background-position: 0 -216px; }
|
234
|
+
.wym_skin_default .wym_buttons li.wym_tools_subscript a { background-position: 0 -240px; }
|
235
|
+
.wym_skin_default .wym_buttons li.wym_tools_ordered_list a { background-position: 0 -264px; }
|
236
|
+
.wym_skin_default .wym_buttons li.wym_tools_unordered_list a { background-position: 0 -288px; }
|
237
|
+
.wym_skin_default .wym_buttons li.wym_tools_indent a { background-position: 0 -312px; }
|
238
|
+
.wym_skin_default .wym_buttons li.wym_tools_outdent a { background-position: 0 -336px; }
|
239
|
+
.wym_skin_default .wym_buttons li.wym_tools_link a { background-position: 0 -360px; }
|
240
|
+
.wym_skin_default .wym_buttons li.wym_tools_paste a { background-position: 0 -384px; }
|
241
|
+
.wym_skin_default .wym_buttons li.wym_tools_preview a { background-position: 0 -408px; }
|
242
|
+
.wym_skin_default .wym_buttons li.wym_tools_imageupload a { background-position: 0 -432px; }
|
243
|
+
.wym_skin_default .wym_buttons li.wym_tools_blockquote a { background-position: 0 -456px; }
|
244
|
+
.wym_skin_default .wym_buttons li.wym_tools_html a { background-position: 0 -505px; }
|
245
|
+
.wym_skin_default .wym_buttons li.wym_tools_undo a { background-position: 0 -528px; }
|
246
|
+
.wym_skin_default .wym_buttons li.wym_tools_redo a { background-position: 0 -554px; }
|
247
|
+
|
248
|
+
.wym_skin_default .wym_buttons li.wym_tools_table a { background-position: 0 -480px; }
|
249
|
+
.wym_skin_default .wym_buttons li.wym_tools_th a { background-position: 0 -504px; }
|
250
|
+
|
251
|
+
/*DECORATION*/
|
252
|
+
.wym_skin_default .wym_section h2 {
|
253
|
+
background: #ddd;
|
254
|
+
border: solid gray;
|
255
|
+
border-width: 0 0 1px;
|
256
|
+
}
|
257
|
+
|
258
|
+
.wym_skin_default .wym_section h2 span {
|
259
|
+
color: gray;
|
260
|
+
}
|
261
|
+
|
262
|
+
.wym_skin_default .wym_panel {
|
263
|
+
padding: 0;
|
264
|
+
border: solid gray;
|
265
|
+
border-width: 1px;
|
266
|
+
background: white;
|
267
|
+
}
|
268
|
+
|
269
|
+
.wym_skin_default .wym_panel ul {
|
270
|
+
margin: 2px 0 5px;
|
271
|
+
}
|
272
|
+
|
273
|
+
.wym_skin_default .wym_dropdown {
|
274
|
+
padding: 0;
|
275
|
+
border: solid gray;
|
276
|
+
border-width: 1px 1px 0 1px;
|
277
|
+
}
|
278
|
+
|
279
|
+
.wym_skin_default .wym_dropdown ul {
|
280
|
+
border: solid gray;
|
281
|
+
border-width: 0 1px 1px 1px;
|
282
|
+
margin-left: -1px;
|
283
|
+
padding: 5px 10px 5px 3px;
|
284
|
+
}
|
285
|
+
|
286
|
+
/*DIALOGS*/
|
287
|
+
.wym_dialog div.row {
|
288
|
+
margin-bottom: 5px;
|
289
|
+
}
|
290
|
+
|
291
|
+
.wym_dialog div.row input {
|
292
|
+
margin-right: 5px;
|
293
|
+
}
|
294
|
+
|
295
|
+
.wym_dialog div.row label {
|
296
|
+
float: left;
|
297
|
+
width: 150px;
|
298
|
+
display: block;
|
299
|
+
text-align: right;
|
300
|
+
margin-right: 10px;
|
301
|
+
}
|
302
|
+
|
303
|
+
.wym_dialog div.row-indent {
|
304
|
+
padding-left: 160px;
|
305
|
+
}
|
306
|
+
|
307
|
+
/*autoclearing*/
|
308
|
+
.wym_dialog div.row:after {
|
309
|
+
content: ".";
|
310
|
+
display: block;
|
311
|
+
height: 0;
|
312
|
+
clear: both;
|
313
|
+
visibility: hidden;
|
314
|
+
}
|
315
|
+
|
316
|
+
.wym_dialog div.row {
|
317
|
+
display: inline-block;
|
318
|
+
}
|
319
|
+
|
320
|
+
/* Hides from IE-mac \*/
|
321
|
+
* html .wym_dialog div.row {
|
322
|
+
height: 1%;
|
323
|
+
}
|
324
|
+
|
325
|
+
.wym_dialog div.row {
|
326
|
+
display: block;
|
327
|
+
}
|
328
|
+
|
329
|
+
/* End hide from IE-mac */
|
330
|
+
|
331
|
+
/*WYMEDITOR_LINK*/
|
332
|
+
a.wym_wymeditor_link {
|
333
|
+
text-indent: -9999px;
|
334
|
+
float: right;
|
335
|
+
display: block;
|
336
|
+
width: 50px;
|
337
|
+
height: 15px;
|
338
|
+
background: url(../wymeditor_icon.png);
|
339
|
+
overflow: hidden;
|
340
|
+
text-decoration: none;
|
341
|
+
}
|
@@ -0,0 +1,40 @@
|
|
1
|
+
WYMeditor.SKINS['default'] = {
|
2
|
+
|
3
|
+
init: function(wym) {
|
4
|
+
|
5
|
+
//render following sections as panels
|
6
|
+
jQuery(wym._box).find(wym._options.classesSelector)
|
7
|
+
.addClass("wym_panel");
|
8
|
+
|
9
|
+
//render following sections as buttons
|
10
|
+
jQuery(wym._box).find(wym._options.toolsSelector)
|
11
|
+
.addClass("wym_buttons");
|
12
|
+
|
13
|
+
//render following sections as dropdown menus
|
14
|
+
jQuery(wym._box).find(wym._options.containersSelector)
|
15
|
+
.addClass("wym_dropdown")
|
16
|
+
.find(WYMeditor.H2)
|
17
|
+
.append("<span> ></span>");
|
18
|
+
|
19
|
+
// auto add some margin to the main area sides if left area
|
20
|
+
// or right area are not empty (if they contain sections)
|
21
|
+
jQuery(wym._box).find("div.wym_area_right ul")
|
22
|
+
.parents("div.wym_area_right").show()
|
23
|
+
.parents(wym._options.boxSelector)
|
24
|
+
.find("div.wym_area_main")
|
25
|
+
.css({"margin-right": "155px"});
|
26
|
+
|
27
|
+
jQuery(wym._box).find("div.wym_area_left ul")
|
28
|
+
.parents("div.wym_area_left").show()
|
29
|
+
.parents(wym._options.boxSelector)
|
30
|
+
.find("div.wym_area_main")
|
31
|
+
.css({"margin-left": "155px"});
|
32
|
+
|
33
|
+
//make hover work under IE < 7
|
34
|
+
jQuery(wym._box).find(".wym_section").hover(function(){
|
35
|
+
jQuery(this).addClass("hover");
|
36
|
+
},function(){
|
37
|
+
jQuery(this).removeClass("hover");
|
38
|
+
});
|
39
|
+
}
|
40
|
+
};
|
Binary file
|
Binary file
|
data/lib/generators/coalla/cms/wysiwyg/templates/wymeditor/skins/minimal/images/bg.wymeditor.png
ADDED
Binary file
|
data/lib/generators/coalla/cms/wysiwyg/templates/wymeditor/skins/minimal/images/icons.silver.gif
ADDED
Binary file
|
@@ -0,0 +1,131 @@
|
|
1
|
+
/*
|
2
|
+
* WYMeditor : what you see is What You Mean web-based editor
|
3
|
+
* Copyright (c) 2005 - 2009 Jean-Francois Hovinne, http://www.wymeditor.org/
|
4
|
+
* Dual licensed under the MIT (MIT-license.txt)
|
5
|
+
* and GPL (GPL-license.txt) licenses.
|
6
|
+
*
|
7
|
+
* For further information visit:
|
8
|
+
* http://www.wymeditor.org/
|
9
|
+
*
|
10
|
+
* File Name:
|
11
|
+
* skin.css
|
12
|
+
* main stylesheet for the minimal WYMeditor skin
|
13
|
+
* See the documentation for more info.
|
14
|
+
*
|
15
|
+
* File Authors:
|
16
|
+
* Jean-Francois Hovinne
|
17
|
+
* Scott Lewis (see Silver skin)
|
18
|
+
*/
|
19
|
+
|
20
|
+
/* Set iframe */
|
21
|
+
.wym_skin_minimal div.wym_iframe iframe {
|
22
|
+
width: 90%;
|
23
|
+
height: 200px;
|
24
|
+
}
|
25
|
+
|
26
|
+
/* Hide h2 by default */
|
27
|
+
.wym_skin_minimal h2 {
|
28
|
+
display: none;
|
29
|
+
}
|
30
|
+
|
31
|
+
/* Show specific h2 */
|
32
|
+
.wym_skin_minimal div.wym_tools h2,
|
33
|
+
.wym_skin_minimal div.wym_containers h2,
|
34
|
+
.wym_skin_minimal div.wym_classes h2 {
|
35
|
+
display: block;
|
36
|
+
}
|
37
|
+
|
38
|
+
.wym_skin_minimal div.wym_section ul {
|
39
|
+
margin: 0;
|
40
|
+
}
|
41
|
+
|
42
|
+
.wym_skin_minimal div.wym_section ul li {
|
43
|
+
float: left;
|
44
|
+
list-style-type: none;
|
45
|
+
margin-right: 5px;
|
46
|
+
}
|
47
|
+
|
48
|
+
.wym_skin_minimal div.wym_area_top,
|
49
|
+
.wym_skin_minimal div.wym_area_right,
|
50
|
+
.wym_skin_minimal div.wym_containers,
|
51
|
+
.wym_skin_minimal div.wym_classes {
|
52
|
+
float: left;
|
53
|
+
}
|
54
|
+
|
55
|
+
.wym_skin_minimal div.wym_area_main {
|
56
|
+
clear: both;
|
57
|
+
}
|
58
|
+
|
59
|
+
.wym_skin_minimal div.wym_html {
|
60
|
+
width: 90%;
|
61
|
+
}
|
62
|
+
|
63
|
+
.wym_skin_minimal textarea.wym_html_val {
|
64
|
+
width: 100%;
|
65
|
+
height: 100px;
|
66
|
+
}
|
67
|
+
|
68
|
+
/* DROPDOWNS (see Silver skin) */
|
69
|
+
.wym_skin_minimal div.wym_dropdown {
|
70
|
+
cursor: pointer;
|
71
|
+
margin: 0px 4px 10px 0px;
|
72
|
+
padding: 0px;
|
73
|
+
z-index: 1001;
|
74
|
+
display: block;
|
75
|
+
}
|
76
|
+
|
77
|
+
.wym_skin_minimal div.wym_dropdown ul {
|
78
|
+
display: none;
|
79
|
+
width: 124px;
|
80
|
+
padding: 0px;
|
81
|
+
margin: 0px;
|
82
|
+
list-style-type: none;
|
83
|
+
list-style-image: none;
|
84
|
+
z-index: 1002;
|
85
|
+
position: absolute;
|
86
|
+
border-top: 1px solid #AAA;
|
87
|
+
}
|
88
|
+
|
89
|
+
.wym_skin_minimal div.wym_dropdown ul li {
|
90
|
+
width: 146px;
|
91
|
+
height: 20px;
|
92
|
+
padding: 0px;
|
93
|
+
margin: 0px;
|
94
|
+
border: 1px solid #777;
|
95
|
+
border-top: none;
|
96
|
+
background: #EEE;
|
97
|
+
list-style-image: none;
|
98
|
+
}
|
99
|
+
|
100
|
+
.wym_skin_minimal div.wym_dropdown h2 {
|
101
|
+
width: 138px;
|
102
|
+
height: 16px;
|
103
|
+
color: #000;
|
104
|
+
background-image: url(images/bg.selector.silver.gif);
|
105
|
+
background-position: 0px -18px;
|
106
|
+
background-repeat: no-repeat;
|
107
|
+
border: none;
|
108
|
+
font-family: "Trebuchet MS", Verdana, Arial, Helvetica, Sanserif;
|
109
|
+
font-size: 12px;
|
110
|
+
font-weight: bold;
|
111
|
+
padding: 2px 0px 0px 10px;
|
112
|
+
margin: 0px;
|
113
|
+
}
|
114
|
+
|
115
|
+
.wym_skin_minimal div.wym_dropdown a {
|
116
|
+
text-decoration: none;
|
117
|
+
font-family: "Trebuchet MS", Verdana, Arial, Helvetica, Sanserif;
|
118
|
+
font-size: 12px;
|
119
|
+
padding: 5px 0px 0px 10px;
|
120
|
+
display: block;
|
121
|
+
width: 136px;
|
122
|
+
height: 15px;
|
123
|
+
color: #000;
|
124
|
+
text-align: left;
|
125
|
+
margin-left: 0px;
|
126
|
+
}
|
127
|
+
|
128
|
+
.wym_skin_minimal div.wym_dropdown a:hover {
|
129
|
+
background: #BBB;
|
130
|
+
border-bottom: none;
|
131
|
+
}
|
@@ -0,0 +1,30 @@
|
|
1
|
+
jQuery.fn.selectify = function() {
|
2
|
+
return this.each(function() {
|
3
|
+
jQuery(this).hover(
|
4
|
+
function() {
|
5
|
+
jQuery("h2", this).css("background-position", "0px -18px");
|
6
|
+
jQuery("ul", this).fadeIn("fast");
|
7
|
+
},
|
8
|
+
function() {
|
9
|
+
jQuery("h2", this).css("background-position", "");
|
10
|
+
jQuery("ul", this).fadeOut("fast");
|
11
|
+
}
|
12
|
+
);
|
13
|
+
});
|
14
|
+
};
|
15
|
+
|
16
|
+
WYMeditor.SKINS['minimal'] = {
|
17
|
+
//placeholder for the skin JS, if needed
|
18
|
+
|
19
|
+
//init the skin
|
20
|
+
//wym is the WYMeditor.editor instance
|
21
|
+
init: function(wym) {
|
22
|
+
|
23
|
+
//render following sections as dropdown menus
|
24
|
+
jQuery(wym._box).find(wym._options.toolsSelector + ', ' + wym._options.containersSelector + ', ' + wym._options.classesSelector)
|
25
|
+
.addClass("wym_dropdown")
|
26
|
+
.selectify();
|
27
|
+
|
28
|
+
|
29
|
+
}
|
30
|
+
};
|