File tree Expand file tree Collapse file tree 2 files changed +15
-3
lines changed
Expand file tree Collapse file tree 2 files changed +15
-3
lines changed Original file line number Diff line number Diff line change @@ -778,8 +778,11 @@ export class BlockNoteEditor<
778778 for ( const mark of marks ) {
779779 const config = this . schema . styleSchema [ mark . type . name ] ;
780780 if ( ! config ) {
781- // eslint-disable-next-line no-console
782- console . warn ( "mark not found in styleschema" , mark . type . name ) ;
781+ if ( mark . type . name !== "link" ) {
782+ // eslint-disable-next-line no-console
783+ console . warn ( "mark not found in styleschema" , mark . type . name ) ;
784+ }
785+
783786 continue ;
784787 }
785788 if ( config . propSchema === "boolean" ) {
Original file line number Diff line number Diff line change @@ -75,7 +75,16 @@ export const getBlockNoteExtensions = <
7575 Text ,
7676
7777 // marks:
78- Link ,
78+ Link . extend ( {
79+ addKeyboardShortcuts ( ) {
80+ return {
81+ "Mod-k" : ( ) => {
82+ this . editor . commands . toggleLink ( { href : "" } ) ;
83+ return true ;
84+ } ,
85+ } ;
86+ } ,
87+ } ) ,
7988 ...Object . values ( opts . styleSpecs ) . map ( ( styleSpec ) => {
8089 return styleSpec . implementation . mark ;
8190 } ) ,
You can’t perform that action at this time.
0 commit comments