feat: add rich text editor for creating blog and forum posts
All checks were successful
CI - Build and Push / Build and Push Docker Image (push) Successful in 2m8s

- Implemented a rich text editor using Facebook's Lexical framework.
- Added features for text formatting (bold, italic, underline, strikethrough, font size).
- Included image support with drag & drop and paste functionality.
- Created a toolbar for text alignment and formatting options.
- Developed a Create Post page with title input and editor integration.
- Added styles for the editor and post creation interface.
- Implemented image resizing functionality within the editor.
- Registered new commands for inserting images and handling image nodes.
- Provided tips and future enhancements for the editor.
This commit is contained in:
2025-10-21 23:43:34 +08:00
parent 6dbb6ff7fb
commit 5217f87012
15 changed files with 1989 additions and 0 deletions

View File

@@ -10,8 +10,17 @@
"preview": "vite preview"
},
"dependencies": {
"@lexical/clipboard": "^0.37.0",
"@lexical/history": "^0.37.0",
"@lexical/link": "^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",