rangeToGlobalOffset(range) {
        return domManager.rangeToGlobalOffset(range);
      }
Converts the given range to its global offset.

@param {Range} range - The range to convert.
@returns {number[]|undefined} - The global offsets of the range in the form of [startGlobalOffset, endGlobalOffset].