Skip to content

Commit 76c0c21

Browse files
committed
Merge branch 'feat-modal-fallback' of github.com:prathamVaidya/supercode-tinymce-plugin into feat-modal-fallback
2 parents 7549a0e + fe1682e commit 76c0c21

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

src/plugin.js

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -546,6 +546,18 @@
546546
onAction: startPlugin
547547
});
548548

549+
editor.ui.registry.addMenuItem('supercode', {
550+
icon: Config.iconName,
551+
text: 'Source Code',
552+
onAction: startPlugin
553+
});
554+
555+
editor.ui.registry.addContextMenu('supercode', {
556+
update: element => {
557+
return 'supercode';
558+
}
559+
});
560+
549561
// Ctrl + Space Toggle Shortcut
550562
if(Config.shortcut){
551563
editor.shortcuts.add('ctrl+32', 'Toggles Source Code Editing Mode', startPlugin);

0 commit comments

Comments
 (0)