1 CKEDITOR.dialog.add( 'widgetfoundationAccordion', function( editor ) {
3 title: 'Edit Accordion Box',
13 label: 'Accordion machine name',
15 setup: function( widget ) {
16 this.setValue( widget.data.name != undefined ? widget.data.name : 'accordion');
18 commit: function( widget ) {
19 widget.setData( 'name', this.getValue() );
25 label: 'Number of panels',
27 setup: function( widget ) {
28 this.setValue( widget.data.count != undefined ? widget.data.count : 3);
30 commit: function( widget ) {
31 widget.setData( 'count', this.getValue() );
38 label: 'Active panel (leave blank for accordion to be initially collapsed, or enter the number of the panel you would like open, ex: 1)',
39 setup: function( widget ) {
40 this.setValue( widget.data.activePanel);
42 commit: function( widget ) {
43 widget.setData( 'activePanel', this.getValue() );
49 label: 'Allow multiple accordion panels to be expanded at the same time',
50 setup: function( widget ) {
51 this.setValue( widget.data.multiExpand );
53 commit: function( widget ) {
54 widget.setData( 'multiExpand', this.getValue() );