Commit df567b9 1 parent 6064fa0 commit df567b9 Copy full SHA for df567b9
File tree 4 files changed +4
-9
lines changed
4 files changed +4
-9
lines changed Original file line number Diff line number Diff line change @@ -27,7 +27,7 @@ export abstract class ThreadStore {
27
27
head : number ;
28
28
anchor : number ;
29
29
} ;
30
- yjs : {
30
+ yjs ? : {
31
31
head : any ;
32
32
anchor : any ;
33
33
} ;
Original file line number Diff line number Diff line change @@ -587,12 +587,6 @@ export class BlockNoteEditor<
587
587
) ;
588
588
}
589
589
590
- if ( newOptions . comments && ! collaborationEnabled ) {
591
- throw new Error (
592
- "Comments are only supported when collaboration is enabled, please set the collaboration option"
593
- ) ;
594
- }
595
-
596
590
const initialContent =
597
591
newOptions . initialContent ||
598
592
( collaborationEnabled
Original file line number Diff line number Diff line change @@ -5,7 +5,6 @@ export const CommentMark = Mark.create({
5
5
excludes : "" ,
6
6
inclusive : false ,
7
7
keepOnSplit : true ,
8
- group : "blocknoteIgnore" , // ignore in blocknote json
9
8
10
9
addAttributes ( ) {
11
10
// Return an object with attribute configuration
Original file line number Diff line number Diff line change @@ -283,7 +283,9 @@ export class CommentsPlugin extends EventEmitter<any> {
283
283
head : pmSelection . head ,
284
284
anchor : pmSelection . anchor ,
285
285
} ,
286
- yjs : getRelativeSelection ( ystate . binding , view . state ) ,
286
+ yjs : ystate
287
+ ? getRelativeSelection ( ystate . binding , view . state )
288
+ : undefined , // if we're not using yjs
287
289
} ;
288
290
289
291
await this . threadStore . addThreadToDocument ( {
You can’t perform that action at this time.
0 commit comments