code: function(base, dialogOpts, file) {
  				var elfNode = base.editor.fm.getUI();
  				$(base).height(elfNode.height());
  				dialogOpts.width = Math.max(dialogOpts.width || 0, elfNode.width() * 0.8);
  			}
docs: Prepare on before show dialog