diff --git a/src/dom/common/lib/range.ts b/src/dom/common/lib/range.ts index 1f28fb5c..0d8bfe46 100644 --- a/src/dom/common/lib/range.ts +++ b/src/dom/common/lib/range.ts @@ -27,7 +27,7 @@ export class PersistentRange { } toString(): string { - return `${this.startContainer}:${this.startOffset}-${this.endContainer}:${this.endOffset}`; + return this.toRange().toString(); } }