Skip to content

Commit c17b9cf

Browse files
fix: Overlapping marks in comments (#1564)
1 parent 84ade80 commit c17b9cf

File tree

5 files changed

+13
-13
lines changed

5 files changed

+13
-13
lines changed

Diff for: examples/07-collaboration/04-comments/style.css

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
}
1212

1313
.comments-main-container .bn-editor {
14-
max-height: 100%;
14+
height: 100%;
1515
max-width: 700px;
1616
overflow: auto;
1717
width: 100%;

Diff for: package-lock.json

+9-9
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Diff for: packages/core/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@
106106
"remark-stringify": "^11.0.0",
107107
"unified": "^11.0.5",
108108
"uuid": "^8.3.2",
109-
"y-prosemirror": "1.2.17",
109+
"y-prosemirror": "1.3.0",
110110
"y-protocols": "^1.0.6",
111111
"yjs": "^13.6.15"
112112
},

Diff for: packages/core/src/extensions/Comments/CommentsPlugin.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ export class CommentsPlugin extends EventEmitter<any> {
106106
pos + node.nodeSize,
107107
ttEditor.state.doc.content.size - 1
108108
);
109-
tr.removeMark(trimmedFrom, trimmedTo, markType);
109+
tr.removeMark(trimmedFrom, trimmedTo, mark);
110110
tr.addMark(
111111
trimmedFrom,
112112
trimmedTo,

Diff for: packages/server-util/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@
5555
"@tiptap/core": "^2.7.1",
5656
"@tiptap/pm": "^2.7.1",
5757
"jsdom": "^25.0.1",
58-
"y-prosemirror": "1.2.17",
58+
"y-prosemirror": "1.3.0",
5959
"y-protocols": "^1.0.6",
6060
"yjs": "^13.6.15"
6161
},

0 commit comments

Comments
 (0)