Vanessa 2025-04-22 21:39:01 +08:00
parent b0ca44de00
commit b6527aa1c6
5 changed files with 70 additions and 31 deletions

View file

@ -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;