feat: Implement a rich text editor using Lexical
All checks were successful
CI - Build and Push / Build and Push Docker Image (push) Successful in 14s

- Added RichTextEditor component with basic formatting features.
- Integrated toolbar with undo/redo, text formatting, and color pickers.
- Created EditorTheme for styling the editor components.
- Added styles for editor and toolbar.
- Introduced DropdownColorPicker for color selection.
- Updated package.json to include Lexical dependencies.
- Created EditorDemo page to showcase the rich text editor.
- Added README documentation for the editor's features and usage.
This commit is contained in:
2025-10-22 10:20:47 +08:00
parent 6dbb6ff7fb
commit f29f53dec6
13 changed files with 1306 additions and 0 deletions

View File

@@ -10,8 +10,15 @@
"preview": "vite preview"
},
"dependencies": {
"@lexical/code": "^0.37.0",
"@lexical/list": "^0.37.0",
"@lexical/react": "^0.37.0",
"@lexical/rich-text": "^0.37.0",
"@lexical/selection": "^0.37.0",
"@lexical/utils": "^0.37.0",
"i18next": "^25.5.3",
"i18next-browser-languagedetector": "^8.2.0",
"lexical": "^0.37.0",
"react": "^19.1.1",
"react-dom": "^19.1.1",
"react-i18next": "^16.0.0",