@@ -489,7 +489,11 @@ export class BlockNoteEditor<
489489 this . resolveFileUrl = newOptions . resolveFileUrl ;
490490 this . headless = newOptions . _headless ;
491491
492- if ( newOptions . collaboration && newOptions . initialContent ) {
492+ const collaborationEnabled =
493+ "collaboration" in this . extensions ||
494+ "liveblocksExtension" in this . extensions ;
495+
496+ if ( collaborationEnabled && newOptions . initialContent ) {
493497 // eslint-disable-next-line no-console
494498 console . warn (
495499 "When using Collaboration, initialContent might cause conflicts, because changes should come from the collaboration provider"
@@ -498,7 +502,7 @@ export class BlockNoteEditor<
498502
499503 const initialContent =
500504 newOptions . initialContent ||
501- ( options . collaboration
505+ ( collaborationEnabled
502506 ? [
503507 {
504508 type : "paragraph" ,
@@ -930,7 +934,12 @@ export class BlockNoteEditor<
930934 for ( const mark of marks ) {
931935 const config = this . schema . styleSchema [ mark . type . name ] ;
932936 if ( ! config ) {
933- if ( mark . type . name !== "link" ) {
937+ if (
938+ // Links are not considered styles in blocknote
939+ mark . type . name !== "link" &&
940+ // "blocknoteIgnore" tagged marks (such as comments) are also not considered BlockNote "styles"
941+ ! mark . type . spec . blocknoteIgnore
942+ ) {
934943 // eslint-disable-next-line no-console
935944 console . warn ( "mark not found in styleschema" , mark . type . name ) ;
936945 }
0 commit comments