code: function() {  
        Event.addListener(this.formattedContainer, "click", this.openEditor, this, true);
              
        // For color animation (if specified)
        if (this.options.animColors) {
           Event.addListener(this.formattedContainer, 'mouseover', this.onVisuMouseOver, this, true);
           Event.addListener(this.formattedContainer, 'mouseout', this.onVisuMouseOut, this, true);
        }
        
        if(this.editorField.el) {
           // Register some listeners
           Event.addListener(this.editorField.el, "keyup", this.onKeyUp, this, true);
           Event.addListener(this.editorField.el, "keydown", this.onKeyDown, this, true);
        }
     }
docs: Adds the events for the editor and color animations