@fileverse-dev/ddoc 3.2.0 → 3.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.es.js +2 -0
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -40064,6 +40064,8 @@ const Nc = new Rt(
|
|
|
40064
40064
|
},
|
|
40065
40065
|
onSelectionUpdate() {
|
|
40066
40066
|
var s;
|
|
40067
|
+
if (!this.editor.isEditable)
|
|
40068
|
+
return;
|
|
40067
40069
|
const e = this.storage.activeCommentId, { $from: t } = this.editor.state.selection, n = t.marks(), r = this.editor.schema.marks.comment, o = n.find((a) => a.type === r), i = ((s = o == null ? void 0 : o.attrs.commentId) == null ? void 0 : s.trim()) || null;
|
|
40068
40070
|
this.storage.activeCommentId = i, this.options.onCommentActivated(i || ""), !(!e && !i) && requestAnimationFrame(() => {
|
|
40069
40071
|
var a, l;
|