commit: function( widget ) {\r
widget.setData( 'autoplay', this.getValue() );\r
}\r
+ },\r
+ {\r
+ type: 'radio',\r
+ id: 'allowdownload',\r
+ label: editor.lang.html5audio.allowdownload,\r
+ items: [\r
+ [editor.lang.html5audio.yes, 'yes'],\r
+ [editor.lang.html5audio.no, 'no']\r
+ ],\r
+ 'default': 'no',\r
+ setup: function( widget ) {\r
+ if ( widget.data.allowdownload ) {\r
+ this.setValue(widget.data.allowdownload);\r
+ }\r
+ },\r
+ commit: function( widget ) {\r
+ widget.setData( 'allowdownload', this.getValue() );\r
+ }\r
} ]\r
} ]\r
} ]\r