This project demonstrates how to integrate a React Rich Text Editor (RTE) with a backend server for converting base64-encoded DOCX documents to HTML strings and vice versa using DocIO. The backend retrieves base64-encoded DOCX strings from the server, converts them into HTML strings, and sends the HTML string to the frontend. When the "Save" button is clicked, the frontend sends the modified HTML string back to the backend, which then converts it back into a DOCX base64 string.
Before running the project, ensure you have the following installed on your system:
- Node.js (Latest LTS version)
- Visual Studio Code (or any code editor of your choice)
- ASP.NET Core (for the backend server)
-
Clone the Repository
Clone the project to your local machine:
git clone react-richtexteditor-save-base64-database
-
Run the Backend Server
Ensure the backend server is running. If you're using ASP.NET Core, start the server either from Visual Studio or by using the following command in the terminal:
dotnet run
-
Install Dependencies (Frontend)
Navigate to the project directory and install the necessary dependencies for the React frontend:
cd rich-text-editor npm install
-
Run the React Application
In the project directory, run the React app:
npm start