(function() { 'use strict'; tinymce.create('tinymce.plugins.accordionShortcodesExtensions', { init: function(editor, url) { if (accordionShortcodesPrefix == undefined) { var accordionShortcodesPrefix = ''; } // Accordion group editor.addButton('AccordionShortcode', { title: 'Add an accordion group', image: url + '/images/accordion.gif', onclick: function() { editor.windowManager.open({ title: 'Insert Accordion Shortcode', body: [ { type: 'checkbox', name: 'autoclose', label: 'Auto Close Accordions', checked: true }, { type: 'checkbox', name: 'openfirst', label: 'Open First Accordion' }, { type: 'checkbox', name: 'openall', label: 'Open All Accordions' }, { type: 'checkbox', name: 'clicktoclose', label: 'Click to Close Accordions' }, { type: 'checkbox', name: 'scroll', label: 'Scroll to Top of Accordion' }, { type: 'listbox', name: 'tag', label: 'HTML Tag for Title', minWidth: 75, values: [ {text: '---', value: null}, {text: 'h1', value: 'h1'}, {text: 'h2', value: 'h2'}, {text: 'h3', value: 'h3'}, {text: 'h4', value: 'h4'}, {text: 'h5', value: 'h5'}, {text: 'h6', value: 'h6'}, {text: 'p', value: 'p'}, {text: 'div', value: 'div'} ] }, { type: 'checkbox', name: 'usebuttons', label: 'Wrap title in