public/js/garp.formpanel.js
// Image selection for when in a CKEditor image browser popup
Image selection for when in a CKEditor image browser popup
Image selection for when in a CKEditor image browser popup
function addChooseImageButton() {
			items[0].tbar.items.unshift({
				text: __('Use Image'),
				iconCls: 'icon-camera',
				ref: 'chooseButton',
				disabled: false,
				handler: function(){
					window.opener.CKEDITOR.tools.callFunction( 1, "test.jpg" );
					window.close();
				},
				scope: this
			});
		}
function addChooseImageButton ( ) { items [ 0 ] . tbar . items . unshift ( { text : __ ( 'Use Image' ) , iconCls : 'icon-camera' , ref : 'chooseButton' , disabled : false , handler : function ( ) { window . opener . CKEDITOR . tools . callFunction ( 1 , "test.jpg" ) ; window . close ( ) ; } , scope : this } ) ; }
Image selection for when in a CKEditor image browser popup
Image selection for when in a CKEditor image browser popup
// Communicate the choice to CKEditor and close