}
config = config || {};
var field = config.events ? config : new Roo.form.TextField(config);
+
+ this.addEvents({
+ /**
+ * @event beforenodeedit
+ * Fires when editing is initiated, but before the value changes. Editing can be canceled by returning
+ * false from the handler of this event.
+ * @param {Editor} this
+ * @param {Roo.tree.Node} node
+ */
+ "beforenodeedit" : true
+ });
+
+
Roo.tree.TreeEditor.superclass.constructor.call(this, field);
this.tree = tree;