mirror of
https://github.com/renbaoshuo/S2OJ.git
synced 2024-11-22 03:08:41 +00:00
fix: f1f724caee
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
f1f724caee
commit
21dbab3f6c
@ -114,12 +114,12 @@ function blog_editor_init(name, editor_config) {
|
|||||||
});
|
});
|
||||||
|
|
||||||
bold_btn.click(function() {
|
bold_btn.click(function() {
|
||||||
monaco_editor_instance.trigger(monaco.KeyMod.CtrlCmd + monaco.KeyCode.KEY_B, '', {});
|
monaco_editor_instance.trigger('', 'markdown.extension.editing.toggleBold');
|
||||||
monaco_editor_instance.focus();
|
monaco_editor_instance.focus();
|
||||||
});
|
});
|
||||||
|
|
||||||
italic_btn.click(function() {
|
italic_btn.click(function() {
|
||||||
monaco_editor_instance.trigger(monaco.KeyMod.CtrlCmd + monaco.KeyCode.KEY_I, '', {});
|
monaco_editor_instance.trigger('', 'markdown.extension.editing.toggleItalic');
|
||||||
monaco_editor_instance.focus();
|
monaco_editor_instance.focus();
|
||||||
});
|
});
|
||||||
|
|
||||||
|
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue
Block a user