feat: enhance rich text editor with new features and plugins
All checks were successful
CI - Build and Push / Build and Push Docker Image (push) Successful in 23s

- Added support for additional Lexical plugins: link, markdown, table, and checklist.
- Implemented Markdown shortcuts and transformers for horizontal rules and tables.
- Updated editor theme and styles to accommodate new elements like tables and links.
- Improved the overall functionality of the rich text editor with new matchers for URLs and emails.
This commit is contained in:
2025-10-22 17:22:45 +08:00
parent f29f53dec6
commit 3491ae339d
7 changed files with 1257 additions and 668 deletions

View File

@@ -18,6 +18,8 @@ const theme: EditorThemeClasses = {
ol: 'editor-list-ol',
ul: 'editor-list-ul',
listitem: 'editor-listitem',
listitemChecked: 'editor-listitem-checked',
listitemUnchecked: 'editor-listitem-unchecked',
},
text: {
bold: 'editor-text-bold',
@@ -28,6 +30,11 @@ const theme: EditorThemeClasses = {
},
code: 'editor-code',
codeHighlight: {},
link: 'editor-link',
table: 'editor-table',
tableCell: 'editor-table-cell',
tableCellHeader: 'editor-table-cell-header',
hr: 'editor-hr',
};
export default theme;