readSelectionFromPasteboard(pasteboard) {
    let range, text;
    text = pasteboard.getData('Text');
    this.replaceSelection(text);
    range = this.selectedRange();
    range.start += range.length;
    range.length = 0;
    this.setSelectedRange(range);
  }
Replaces the current selection with text from the given pasteboard.

@param {DataTransfer} pasteboard