File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed
Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -47,13 +47,14 @@ export function parseMentions(data: JSONContent): string[] {
4747}
4848
4949export const extensions = [
50- StarterKit ,
51- Link ,
50+ StarterKit . configure ( { } ) , // ✅ instantiate
51+ Link . configure ( { openOnClick : true } ) ,
5252 Image . extend ( { renderText : ( ) => '[image]' } ) ,
53- Mention , // user @mention
53+ Mention . configure ( { } ) ,
5454 Iframe . extend ( {
55- renderText : ( { node } ) =>
56- '[embed]' + node . attrs . src ? `(${ node . attrs . src } )` : '' ,
55+ renderText : ( { node } ) => {
56+ return `[embed]${ node . attrs . src ? `(${ node . attrs . src } )` : '' } `
57+ } ,
5758 } ) ,
5859]
5960
Original file line number Diff line number Diff line change @@ -30,7 +30,6 @@ export const useCompatibleLovers = (
3030 } else if ( userId === null ) setData ( null )
3131 } , [ userId ] )
3232
33- console . log ( 'debug' , data )
3433 if ( data && lover && options ?. sortWithModifiers ) {
3534 data . compatibleLovers = sortBy ( data . compatibleLovers , ( l ) => {
3635 const modifier = ! lover ? 1 : getLoversCompatibilityFactor ( lover , l )
You can’t perform that action at this time.
0 commit comments