fix(wysiwyg):Improve Wysiwyg editor

This commit is contained in:
2025-06-24 13:41:12 +00:00
parent 08a4c361fa
commit 4b2178cedd
13 changed files with 581 additions and 349 deletions

View File

@@ -2,6 +2,7 @@ import { html, type TemplateResult } from '@design.estate/dees-element';
import { DeesModal } from '../dees-modal.js';
import { type IBlock } from './wysiwyg.types.js';
import { WysiwygShortcuts } from './wysiwyg.shortcuts.js';
import { PROGRAMMING_LANGUAGES } from './wysiwyg.constants.js';
export class WysiwygModalManager {
/**
@@ -207,11 +208,7 @@ export class WysiwygModalManager {
* Gets available programming languages
*/
private static getLanguages(): string[] {
return [
'JavaScript', 'TypeScript', 'Python', 'Java',
'C++', 'C#', 'Go', 'Rust', 'HTML', 'CSS',
'SQL', 'Shell', 'JSON', 'YAML', 'Markdown', 'Plain Text'
];
return [...PROGRAMMING_LANGUAGES];
}
/**