code: function editCommandMethod(command, range, callback) {
  	// Set up our global range magic, but only if we're the outermost function
  	if (executionStackDepth == 0 && typeof range != "undefined") {
  		globalRange = range;
  	} else if (executionStackDepth == 0) {
  		globalRange = null;
  		globalRange = getActiveRange();
  	}
  
  	// "If command is not supported, raise a NOT_SUPPORTED_ERR exception."
  	//
  	// We can't throw a real one, but a string will do for our purposes.
  	if (!(command in commands)) {
  		throw "NOT_SUPPORTED_ERR";
  	}
  
  	executionStackDepth++;
  	try {
  		var ret = callback();
  	} catch(e) {
  		executionStackDepth--;
  		throw e;
  	}
  	executionStackDepth--;
  	return ret;
  }
docs: Helper function for common behavior.