createSpansByGlobalOffsets({ start, end }) {
        return domManager.createSpans(start, end);
      }
Creates spans in the DOM for a given range of global offsets.

@param {Object} offsets - The start and end offsets of the range.
@param {number} offsets.start - The starting offset in codepoints.
@param {number} offsets.end - The ending offset in codepoints.

@returns {Array} - An array of DOM spans created for the range.