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<
778
778
for ( const mark of marks ) {
779
779
const config = this . schema . styleSchema [ mark . type . name ] ;
780
780
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
+
783
786
continue ;
784
787
}
785
788
if ( config . propSchema === "boolean" ) {
Original file line number Diff line number Diff line change @@ -75,7 +75,16 @@ export const getBlockNoteExtensions = <
75
75
Text ,
76
76
77
77
// 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
+ } ) ,
79
88
...Object . values ( opts . styleSpecs ) . map ( ( styleSpec ) => {
80
89
return styleSpec . implementation . mark ;
81
90
} ) ,
You can’t perform that action at this time.
0 commit comments