translateInPage(x, y) {
    this.#initialRect ||= [this.x, this.y, this.width, this.height];
    this.#translate(this.pageDimensions, x, y);
    this.div.scrollIntoView({ block: "nearest" });
  }
Translate the editor position within its page and adjust the scroll
in order to have the editor in the view.
@param {number} x - x-translation in page coordinates.
@param {number} y - y-translation in page coordinates.