Web Editor (wiki in this case) looses all edits (and possibly content) with easy to do mis-click

Summary

Misclicking "Rich Text" (instead of "Preview") and quickly clicking "Source" before the Rich text editor loads the content, results in a blank source view. Losing all in progress edits when the intention was to simply preview.

I'm not sure if clicking save at this point might also blank out the content - but I didn't try it.

Steps to reproduce

image

  1. Click "Rich Text" (when intending to click "Preview" which was previously in this location)
  2. Quickly, before content loads, click "Source"
  3. Editor is blank.
  4. Refreshing the page brings back original content without edits.
  5. Not sure what saving would do.

Example Project

Any.

What is the current bug behavior?

In progress edits are lost. It is easy to misclick due to the location of the new buttons for Rich Text - but should not happen regardless.

What is the expected correct behavior?

In progress edits should never be lost regardless of UI actions or speed of them. It dramatically reduces the confidence in web editing.

Relevant logs and/or screenshots

image

Video

wiki-rich-text-content-loss

Output of checks

This bug happens on GitLab.com

Possible fixes

Edited Aug 04, 2022 by Chad Woolley
Assignee Loading
Time tracking Loading