wp-media-picker.js
function( view ) {
			var controller = this;

			view.set( 'insert', {
				style: 'primary',
				priority: 80,
				text: controller.options.buttonText,
				requires: { selection: true },
				click: function() {
					controller.close();
					controller.state().trigger( 'insert', controller.state().get( 'selection' ) ).reset();
				}
			});
		}
function( view ) {
			var controller = this;

			view.set( 'insert', {
				style: 'primary',
				priority: 80,
				text: controller.options.buttonText,
				requires: { selection: true },
				click: function() {
					controller.close();
					controller.state().trigger( 'insert', controller.state().get( 'selection' ) ).reset();
				}
			});
		}
function ( view ) { var controller = this ; view . set ( 'insert' , { style : 'primary' , priority : 80 , text : controller . options . buttonText , requires : { selection : true } , click : function ( ) { controller . close ( ) ; controller . state ( ) . trigger ( 'insert' , controller . state ( ) . get ( 'selection' ) ) . reset ( ) ; } } ) ; }
Renders the main insert toolbar.

@since 0.7.0

@param {wp.Backbone.View} view Toolbar view.

@returns {void}
Renders the main insert toolbar .