code: function(e) {
        Event.stopEvent(e);
        
        var newValue = this.editorField.getValue();
        this.setValue(newValue);
        
        this.editorContainer.style.display = 'none';
        this.formattedContainer.style.display = '';
        
        var that = this;
        setTimeout(function() {that.updatedEvt.fire(newValue);}, 50);      
     }
docs: Validate the editor (ok button, enter key or tabulation key)