This commit is contained in:
Juergen Kunz
2025-06-27 18:38:39 +00:00
parent 56f5f5887b
commit fe3cd0591f
5 changed files with 161 additions and 117 deletions

View File

@ -507,13 +507,9 @@ export class DeesInputWysiwyg extends DeesInputBase<string> {
// Close menu
this.closeSlashMenu(false);
// If it's a code block, ask for language
// If it's a code block, default to TypeScript
if (type === 'code') {
const language = await WysiwygModalManager.showLanguageSelectionModal();
if (!language) {
return; // User cancelled
}
currentBlock.metadata = { language };
currentBlock.metadata = { language: 'typescript' };
}
// Transform the current block