Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Content disappears in Editor Mode. #904

Closed
perminder-17 opened this issue Oct 17, 2023 · 8 comments
Closed

Content disappears in Editor Mode. #904

perminder-17 opened this issue Oct 17, 2023 · 8 comments
Labels
bug Something isn't working Feature New feature

Comments

@perminder-17
Copy link

perminder-17 commented Oct 17, 2023

Describe the bug
When using the website's editor mode, there is an issue where the content disappears after switching to preview mode and then returning to editor mode. Switch to editor mode to begin "abcd" step should only come when nothing is writen on editor mode but when we go to the editing mode the whole text disappears. A person who preview his work and want's to change something cannot do that.

To Reproduce
Steps to reproduce the behavior:

  1. Go to 'Website'
  2. Click on 'NEW CODELABZ'
  3. Create a tutorial.
  4. Click on editor mode.
  5. Write something as the content.
  6. click on preview mode and again go to editor mode.

Expected behavior
The content that was previously written in editor mode should still be visible when returning to it.

Screenshots

issue2.webm
@github-actions github-actions bot added bug Something isn't working Feature New feature labels Oct 17, 2023
@github-actions
Copy link

Hello 👋🏻 @perminder-17! Thankyou for creating an issue!

@perminder-17
Copy link
Author

Hi @shivareddy6 and @ABHISHEK-PANDEY2 can we work on this issue? if yes can u please assign this to me?

@turingAlan
Copy link

@perminder-17 this is not a bug here yjs is used for saving the data in description box and in order to use yjs you need to setup a firestore database. I have discussed this issue in #894.

@perminder-17
Copy link
Author

perminder-17 commented Oct 17, 2023

@turingAlan i saw your issue #894. This was because of firebase. I guess, the default behavior is only when u come back to editor from preview, your content vanishes. @shivareddy6

@perminder-17
Copy link
Author

@turingAlan is this retaining the value on your system.

@turingAlan
Copy link

@perminder-17 previously I haven't setup my firestore db but after setting the db it satrted to retain the vaue.

@perminder-17
Copy link
Author

@perminder-17 previously I haven't setup my firestore db but after setting the db it satrted to retain the vaue.

So, can u please check that it is retaining the value going to preview and then to editor. Bcz I have also setup the firebase in my system it's still not retaining. If in your system it retains I will close this issue. Please check in your system.

@turingAlan
Copy link

turingAlan commented Oct 18, 2023

yes, it is retaining the value I have checked that. In order to access this, you need to make a firestore db in your firebase project.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working Feature New feature
Projects
None yet
Development

No branches or pull requests

2 participants