Commit f856d39 1 parent 7d63da4 commit f856d39 Copy full SHA for f856d39
File tree 1 file changed +4
-2
lines changed
1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -31,7 +31,7 @@ if (isInBrower) {
31
31
}
32
32
` )
33
33
console . log ( '[faiz:] === markdown-table-editor-plugin loaded' )
34
- logseqEditor . registerBlockContextMenuItem ( 'markdown-table-editor' , ( e ) => {
34
+ const commandCallback = ( e ) => {
35
35
console . log ( '[faiz:] === woz-markdown-table-editor' , e )
36
36
logseqEditor . getBlock ( e . uuid ) . then ( block => {
37
37
console . log ( '[faiz:] === block' , block )
@@ -62,7 +62,9 @@ if (isInBrower) {
62
62
// window.logseq.App.showMsg('Sorry, block content format to markdown table error', 'warning')
63
63
// console.log('[faiz:] === block content format to markdown table error')
64
64
} )
65
- } )
65
+ }
66
+ logseqEditor . registerBlockContextMenuItem ( 'markdown-table-editor' , commandCallback )
67
+ logseqEditor . registerSlashCommand ( 'markdown-table-editor' , commandCallback )
66
68
67
69
logseq . on ( 'ui:visible:changed' , ( e ) => {
68
70
if ( ! e . visible ) {
You can’t perform that action at this time.
0 commit comments