code: function createSelectionTrimmer(methodName) {
          return createEntryPointFunction(
              function(session, characterOptions) {
                  var trimmed = false;
                  this.changeEachRange(function(range) {
                      trimmed = range[methodName](characterOptions) || trimmed;
                  });
                  return trimmed;
              }
          );
      }
docs: /*---------------------------------------------------------------------------------------------------------------- Extensions to the Rangy Selection object