Michael Janea

 

 

MJ ACCORDION BANNER

Add accordion banner your write-ups without editing the source code!

 

Demo

 

Dependencies

It requires the following plugins to work: Widget and Line Utilities.

 

How to Install

  1. Extract the downloaded file (mjAccordionBanner.zip)
  2. Copy the "mjAccordionBanner" folder to "ckeditor/plugins/" folder
  3. Open the file "ckeditor/config.js"
  4. Add these lines:
    config.extraPlugins = 'widget,lineutils,mjAccordionBanner';
    config.contentsCss = 'http://michaeljanea.com/css/mjAccordionBanner.css';
    config.allowedContent = true;
    config.mjAccordionBanner_managePopupTitle = true;
    config.mjAccordionBanner_managePopupContent = true;
    config.mjAccordionBanner_fileManager = 'ckfinder';
    config.mjAccordionBanner_ckfinder_version = 3;
    config.filebrowserImageBrowseUrl = '/ckeditor/file-manager/ckfinder.html';
    config.mj_variables_multiple_image_select = false;
    config.mj_variables_allow_html = false;
  5. Use the toolbargroupname: "MJAccordionBanner" in your toolbar (see the example below)
    config.toolbar = [
        { name: 'insert', items: [ 'MJAccordionBanner', '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. Done
  1. Extract the downloaded file (mjAccordionBanner.zip)
  2. Copy the "mjAccordionBanner" 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.mjAccordionBanner_managePopupTitle = true;
    config.mjAccordionBanner_managePopupContent = true;
    config.mjAccordionBanner_fileManager = 'ckfinder';
    config.mjAccordionBanner_ckfinder_version = 3;
    config.filebrowserImageBrowseUrl = '/ckeditor/file-manager/ckfinder.html';
    config.mj_variables_multiple_image_select = false;
    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('https://michaeljanea.com/css/mjAccordionBanner.css');
  7. Open the file "sites/all/modules/ckeditor/plugins/mjAccordionBanner/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 mjAccordionBanner icon to "Current Toolbar" -> click "Save"
  12. 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.mjAccordionBanner_managePopupTitle

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

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

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

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

file manager to be used when browsing for an image

Default Value: ckfinder
Choices: ckfinder, kcfinder, filemanager, elfinder
config.mjAccordionBanner_ckfinder_version

CKFinder version

Default Value: 2
Choices: 2, 3
config.filebrowserImageBrowseUrl

example:

CKFinder: config.filebrowserImageBrowseUrl = '/ckeditor/file-manager/ckfinder.html';
KCFinder: config.filebrowserImageBrowseUrl = '/ckeditor/kcfinder/browse.php?opener=custom&type=images';
Filemanager: config.filebrowserImageBrowseUrl = '/ckeditor/Filemanager-master/index.html?Type=Image';
elFinder: config.filebrowserImageBrowseUrl = '/ckeditor/elFinder/elfinder.html';

 

(see http://docs.ckeditor.com/#!/guide/dev_file_manager_configuration)
config.mj_variables_multiple_image_select

to switch on/off multiple adding of images (note: filemanager doesn't have this feature

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

to switch on/off escaping of HTML tags

Default Value: false
Choices: true, false

 

Logs

  • 1.8
    • ADDED: allowing HTML tags in titles when config.mjAccordionBanner_managePopupTitle is set to true, overriding config.mj_variables_allow_html
    • ADDED: allowing HTML tags in contents when config.mjAccordionBanner_managePopupContent is set to true, overriding config.mj_variables_allow_html
  • 1.7
    • ADDED: CKFinder 3 support. You may now choose from CKFinder 2 and 3
  • 1.6.2
    • FIXED: minor bug with CKFinder popup
  • 1.6.1
    • FIXED: config.mj_variables_multiple_image_select = false; bug
    • FIXED: default field's popup bug
    • FIXED: escape HTML bug for new lines
    • CHANGED: popup editor layout
  • 1.6
    • CHANGED: config.filebrowserBrowseUrl to config.filebrowserImageBrowseUrl
  • 1.5.1
    • FIXED: config.mj_variables_multiple_image_select = false; bug fixing
  • 1.5
    • ADDED: Drag and drop sorting
    • ADDED: elFinder support
  • 1.4
    • ADDED: validation for required fields
    • FIXED: tab index
    • FIXED: function() default parameter value bug for IE and Safari
    • FIXED: multiple instances bug
  • 1.2
    • ADDED: config.mj_variables_allow_html variable to switch on/ff escaping of HTML tags
    • ADDED: config.mj_variables_multiple_image_select variable to allow multiple adding of images (note: filemanager doesn't have this feature)
    • ADDED: image preview
    • FIXED: CKEDITOR 4.5 compability
    • CHANGE: use config.filebrowserImageBrowseUrl for browsing file manager instead of config.mjAccordionBanner_kcFinderAbsolutePath and config.mjAccordionBanner_fileManagerAbsolutePath
    • DROPPED: roxyfileman support
  • 1.0.1
    • FIXED: Drupal 7 compatibility issue
  • 1.0
    • Initial release

 

Package Details

INDIVIDUAL 

$7.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. MJ Accordion Banner

MJ BUNDLE

$32.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. MJ Accordion
    2. MJ Breadcrumbs
    3. MJ Buttons
    4. MJ Carousel
    5. MJ Tab
    6. MJ Ribbons
    7. MJ Word Art
    8. MJ Accordion Banner

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.