Mohitur669 / Realtime-Collaborative-Code-Editor

A real-time code editor built with Node.js, React.js and Socket.io which provides a range of powerful features like instant synchronization of code changes. Every team member has access to the most up-to-date version of the code. Automatic syntax highlighting (currently JavaScript only) optimize code readability, themes allow personalization.
GNU General Public License v3.0
43 stars 12 forks source link

Code Reset Issue After Changing Theme #7

Open Mohitur669 opened 7 months ago

Mohitur669 commented 7 months ago

Description

When attempting to change the theme in the code sync application, the code in the editor is unexpectedly reset, causing a loss of work. This issue poses a significant inconvenience for users who wish to customize the visual appearance of the editor.

Steps to Reproduce

  1. Open the code sync application. steps here
  2. Create a room and click the join button.
  3. Write your code on the code editor.
  4. Navigate to the theme settings.
  5. Choose a different theme.
  6. Observe that the code in the editor is reset.

Demo

https://github.com/Mohitur669/Realtime-Collaborative-Code-Editor/assets/79283402/a0a8b83e-57e5-4250-bfb6-b7849a667ab4

Expected Behavior

Changing the theme should not result in a reset of the code in the editor. The selected theme should be applied without affecting the existing code.

Actual Behavior

The code in the editor is being reset when attempting to change the theme.

Environment

Note

This issue is reported with the intention of contributing to the improvement of the code sync application. I would greatly appreciate your quick attention to this matter.

Thank you for maintaining an open-source project and considering this bug report.

Best regards, Mohd Mohitur Rahaman Mohitur669

sahilatahar commented 6 months ago

Hi @Mohitur669 , I have build the same editor but on another level. It is open source project.

GitHub repo: https://github.com/sahilatahar/Code-Sync

Mohitur669 commented 6 months ago

Hi @Mohitur669 , I have build the same editor but on another level. It is open source project.

GitHub repo: https://github.com/sahilatahar/Code-Sync

Good Work