fix: f1f724caee
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Baoshuo Ren 2023-02-09 07:54:26 +08:00
parent f1f724caee
commit 21dbab3f6c
Signed by: baoshuo
GPG Key ID: 00CB9680AB29F51A
2 changed files with 3 additions and 3 deletions

View File

@ -114,12 +114,12 @@ function blog_editor_init(name, editor_config) {
});
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();
});
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();
});

File diff suppressed because one or more lines are too long