var WhowishWordValueHandler = WhowishWordContentHandler.extend({ init: function(elem){ this.element = elem; }, setContent: function(content){ $w(this.element).val(content); if (this.element.attributes['value'] != undefined) { this.element.attributes['value'].value = content; } if (this.element.value != undefined) { this.element.value = content; } $w(this.element).attr('value', content); }, getContent: function(){ return $w(this.element).val(); } });