- Implemented WysiwygModalManager for managing modals related to code blocks and block settings. - Created WysiwygSelection for handling text selection across Shadow DOM boundaries. - Introduced WysiwygShortcuts for managing keyboard shortcuts and slash menu items. - Developed wysiwygStyles for consistent styling of the WYSIWYG editor. - Defined types for blocks, slash menu items, and shortcut patterns in wysiwyg.types.ts.
27 lines
412 B
TypeScript
27 lines
412 B
TypeScript
/**
|
|
* Shared constants for the WYSIWYG editor
|
|
*/
|
|
|
|
/**
|
|
* Available programming languages for code blocks
|
|
*/
|
|
export const PROGRAMMING_LANGUAGES = [
|
|
'JavaScript',
|
|
'TypeScript',
|
|
'Python',
|
|
'Java',
|
|
'C++',
|
|
'C#',
|
|
'Go',
|
|
'Rust',
|
|
'HTML',
|
|
'CSS',
|
|
'SQL',
|
|
'Shell',
|
|
'JSON',
|
|
'YAML',
|
|
'Markdown',
|
|
'Plain Text'
|
|
] as const;
|
|
|
|
export type ProgrammingLanguage = typeof PROGRAMMING_LANGUAGES[number]; |