mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-02-10 01:04:21 +01:00
This commit is contained in:
parent
b0ca44de00
commit
b6527aa1c6
5 changed files with 70 additions and 31 deletions
|
|
@ -2506,7 +2506,7 @@ export class WYSIWYG {
|
|||
|
||||
const languageElement = hasClosestByClassName(event.target, "protyle-action__language");
|
||||
if (languageElement && !protyle.disabled && !ctrlIsPressed) {
|
||||
protyle.toolbar.showCodeLanguage(protyle, languageElement);
|
||||
protyle.toolbar.showCodeLanguage(protyle, [languageElement]);
|
||||
event.stopPropagation();
|
||||
event.preventDefault();
|
||||
return;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue