this.textarea.form.addEvent('submit',function(){ 
this.form = this.textarea.getParent('form'); if(this.form) this.form.addEvent('submit',function(){ 
	build: function(){		// Build the container		this.container = new Element('div',{			'id': (this.textarea.id) ? this.textarea.id+'-container' : null,			'class': 'mooeditable-container',			'styles': {				'width': this.textarea.getOffsetSize().x,				'margin': this.textarea.getStyle('margin')			}		});		// Put textarea inside container		this.container.wraps(this.textarea);		this.textarea.setStyles({			'margin': 0,			'display': 'none',			'resize': 'none', // disable resizable textareas in Safari			'outline': 'none' // disable focus ring in Safari		});		// Fix IE bug, refer "IE/Win Inherited Margins on Form Elements" <http://positioniseverything.net/explorer/inherited_margin.html>		if(Browser.Engine.trident) new Element('span').wraps(this.textarea);		// Build the iframe		var pads = this.textarea.getStyle('padding').split(' ');		pads = pads.map(function(p){ return (p == 'auto') ? 0 : p.toInt(); });		this.iframe = new IFrame({			'class': 'mooeditable-iframe',			'styles': {				'width': this.textarea.getStyle('width').toInt() + pads[1] + pads[3],				'height': this.textarea.getStyle('height').toInt() + pads[0] + pads[2],				'border-color': this.textarea.getStyle('border-color'),				'border-width': this.textarea.getStyle('border-width'),				'border-style': this.textarea.getStyle('border-style')			}		});		this.iframe.inject(this.container, 'top');		// contentWindow and document references		this.win = this.iframe.contentWindow;		this.doc = this.win.document;		// Build the content of iframe		var documentTemplate = '\			<html style="cursor: text; height: 100%">\				<body id=\"editable\" style="font-family: sans-serif; border: 0">'+				this.cleanup(this.textarea.value) +				'</body>\			</html>\		';		this.doc.open();		this.doc.write(documentTemplate);		this.doc.close();		// Turn on Design Mode		this.doc.designMode = 'on';		// In IE6, after designMode is on, it forgots what is this.doc. Weird.		if(Browser.Engine.trident4) this.doc = this.win.document;		// Assign view mode		this.mode = 'iframe';		// Update the event for textarea's corresponding labels		if(this.textarea.id && $$('label[for="'+this.textarea.id+'"]')){			$$('label[for="'+this.textarea.id+'"]').addEvent('click', function(e){				if(this.mode == 'iframe'){					e = new Event(e).stop();					this.win.focus();				}			}.bind(this));		}		// Update & cleanup content befour submit		this.textarea.form.addEvent('submit',function(){			this.updateContent();		}.bind(this));		if(this.options.toolbar) this.buildToolbar();	},
5086	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/5086/3e7b4a09a85bb13868c931a7426a7a79cfdf8d4b/MooEditable.js/clean/MooEditable.js