From 658bd3837183a629227dd8133b6b59c6a1da69ab Mon Sep 17 00:00:00 2001 From: Kevin Jahns Date: Tue, 18 Nov 2025 16:06:07 +0100 Subject: [PATCH] getContent returns editable delta yjs/y-prosemirror#203 --- src/types/AbstractType.js | 2 +- src/utils/YEvent.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/types/AbstractType.js b/src/types/AbstractType.js index 59484d31..5d5592c6 100644 --- a/src/types/AbstractType.js +++ b/src/types/AbstractType.js @@ -684,7 +684,7 @@ export class AbstractType { } } } - return /** @type {any} */ (d.done()) + return /** @type {any} */ (d) } /** diff --git a/src/utils/YEvent.js b/src/utils/YEvent.js index e209e80c..0a367d02 100644 --- a/src/utils/YEvent.js +++ b/src/utils/YEvent.js @@ -133,7 +133,7 @@ export class YEvent { * @public */ get delta () { - return /** @type {any} */ (this._delta ?? (this._delta = this.getDelta())) + return /** @type {any} */ (this._delta ?? (this._delta = this.getDelta().done())) } /**