Michael Janea

 

 

jQuery UI ACCORDION

Displays collapsible content panels for presenting information in a limited amount of space

  • Compatible with jQuery UI 1.10.4 and up.
  • Available in 66 languages
  • Manage contents using popup CKEditor

 

Demo

 

Dependencies

It requires the following plugins to work:

 

How to Install

  1. Extract the downloaded file (juiAccordion.zip)
  2. Copy the "juiAccordion" folder to "ckeditor/plugins/" folder
  3. Open the file "ckeditor/config.js"
  4. Add these lines:
    config.extraPlugins = 'widget,lineutils,juiAccordion';
    config.contentsCss = 'path/to/your/jquery-ui.css';
    config.allowedContent = true;
    config.juiAccordion_managePopupContent = true;
    config.mj_variables_allow_html = false;
  5. Use the toolbargroupname: "JUIAccordion" in your toolbar (see the example below)
    config.toolbar = [
        { name: 'insert', items: [ 'JUIAccordion', 'Source' ] }
    ];
  6. Open the file "ckeditor.html"
  7. Configure the CKEditor's options to your own preferences
  8. Update the source path of "ckeditor.js"
    <script type="text/javascript" src="//cdn.ckeditor.com/4.5.9/standard/ckeditor.js"></script>
  9. Make sure to clear your browser's cache
  10. Initialize the plugin in your front-end side by using the following code:
    $('.juiAccordion').accordion();
  11. Done
  1. Extract the downloaded file (juiAccordion.zip)
  2. Copy the "juiAccordion" folder to "sites/all/modules/ckeditor/plugins/" folder
  3. Open the file "sites/all/modules/ckeditor/ckeditor.config.js"
  4. Add these lines:
    config.allowedContent = true;
    config.juiAccordion_managePopupContent = true;
    config.mj_variables_allow_html = false;
  5. Open the file "sites/all/modules/ckeditor/css/ckeditor.css"
  6. Add this line at the top:
    @import  url('path/to/your/jquery-ui.css');
  7. Open the file "sites/all/modules/ckeditor/plugins/juiAccordion/ckeditor.html"
  8. Configure the CKEditor's options to your own preferences
  9. Update the source path of "ckeditor.js"
    <script type="text/javascript" src="//cdn.ckeditor.com/4.5.9/standard/ckeditor.js"></script>
  10. Make sure to clear your browser's cache
  11. Go to your Drupal's admin side -> Configuration -> Content Authoring -> CKEditor -> Profile -> Choose any profile you want and click "Edit" link -> Editor Appearance -> Available buttons -> Drag & drop juiAccordion icon to "Current Toolbar" -> click "Save"
  12. Initialize the plugin in your front-end side by using the following code:
    $('.juiAccordion').accordion();
  13. Done
Not yet supported
This plugin is not compatible with IPS. IPS strips out some important HTML tags and attributes.

 

More Set-up Information

Option Description
config.juiAccordion_managePopupContent

set this to true to enable editing content in a popup CKEditor

Default Value: true
Choices: true, false
config.juiAccordion_options

you can set here your frontend's jQuery UI Accordion options to properly preview it inside the CKEditor

config.mj_variables_allow_html

to switch on/off escaping of HTML tags

Default Value: false
Choices: true, false

 

Logs

  • 1.6
    • ADDED: allowing HTML tags in contents when config.juiAccordion_managePopupContent is set to true, overriding config.mj_variables_allow_html
  • 1.5.1
    • FIXED: default field's popup bug
    • FIXED: escape HTML bug for new lines
    • CHANGED: popup editor layout
  • 1.5
    • ADDED: Drag and drop sorting
    • FIXED: re-initialization inside CKEditor bug fixing
  • 1.4
    • ADDED: validation for required fields
    • FIXED: tab index
    • FIXED: function() default parameter value bug for IE and Safari
    • FIXED: multiple instances bug
    • FIXED: re-initialization bug when using undo
  • 1.3
    • ADDED: config.mj_variables_allow_html variable to switch on/ff escaping of HTML tags/li>
  • 1.2.1
    • UPDATED: HTML escaping
    • FIXED: minor bug for <a> tag's href attribute
  • 1.2
    • ADDED: downcast feature to avoid dirty codes upon saving
  • 1.0
    • Initial release

 

Package Details

INDIVIDUAL 

$3.00

 

  • Free updates for 6 months
  • Full functionality
  • Install on any number of web sites
  • Sell with your product
  • Free support
  • One time payment only
  • Plugins included:
    1. jQuery UI Tab

JQUERY UI BUNDLE

$6.00

 

  • Free updates for 6 months (?)
  • Full functionality
  • Install on any number of web sites
  • Sell with your product
  • Free support
  • One time payment only
  • Plugins included:
    1. jQuery UI Accordion
    2. jQuery UI Tabs

ULTIMATE BUNDLE

$99.00 (?)

$437.00

  • Free updates for 1 year (?)
  • Full functionality
  • Install on any number of web sites
  • Sell with your product
  • Free support
  • One time payment only
  • Plugins included:
    1. MJ Bundle
      • MJ Accordion
      • MJ Breadcrumbs
      • MJ Buttons
      • MJ Carousel
      • MJ Tab
      • MJ Ribbons
      • MJ Word Art
      • MJ Accordion Banner
    2. Bootstrap Bundle
      • Bootstrap Breadcrumbs
      • Bootstrap Buttons
      • Bootstrap Carousel
      • Bootstrap Collapse
      • Bootstrap List Group
      • Bootstrap Panel
      • Bootstrap Tab
      • Bootstrap Alert
      • Bootstrap Grid
      • Bootstrap Dropdown Buttons
    3. Foundation Bundle
      • Foundation Accordion
      • Foundation Alert
      • Foundation Breadcrumbs
      • Foundation Buttons
      • Foundation Panel
      • Foundation Tab
    4. Social Media Bundle
      • Facebook Like
      • Facebook Share
      • Twitter Share
      • Google +1
      • Google+ Share
    5. jQuery UI Bundle
      • jQuery UI Accordion
      • jQuery UI Tabs
    6. Semantic UI Bundle
      • Semantic UI Accordion
      • Semantic UI Tab
      • Semantic UI Icons
    7. Text Shadow
    8. Box Shadow
    9. FontAwesome Premium
    10. Nivo Slider
    11. BlueImp Gallery
    12. YouTube Search

CONTACT ME

Your opinion is important to me. Take part on my goal to continuously improve my work by giving your suggestions and comments. You may also send your concerns or inquiries here.