Make WordPress Core

Opened 4 years ago

Closed 3 years ago

Last modified 2 years ago

#47892 closed defect (bug) (reported-upstream)

Changes lost when switching from code editor to visual editor

Reported by: jikamens's profile jikamens Owned by:
Milestone: Priority: normal
Severity: major Version: 5.2.2
Component: Editor Keywords: 2nd-opinion
Focuses: Cc:

Description

  1. Start composing a new post.
  2. Enter some text in the visual editor.
  3. Switch to the code editor with ctrl-alt-shift-m.
  4. Make a change that should be visible in the visual editor, e.g., wrap <sup>...</sup> around some text to make it superscript.
  5. Switch back to the visual editor with ctrl-alt-shift-m.
  6. Observe that your change is not visible in the visual editor.
  7. Click Save Draft.
  8. Switch back to the code editor with ctrl-alt-shift-m.
  9. Observe that your change is gone.

Ugh.

Marking this "major" severity because it's a data loss bug.

Change History (4)

#1 @sebastienserre
4 years ago

  • Keywords 2nd-opinion added

Hello,

I reproduced but I'm not sure this a bug as if you save the draft just after making your change in the code editor, then you won't lost.

#2 @jikamens
4 years ago

  1. "I'm not sure this is a bug because there's a completely undocumented workaround that no one could possibly know they need to do without first falling victim to the problem and losing data" is not a good take.
  1. I've used a lot of rich text editors that allow switching between rich text and code, and none of the others behaves this way.
  1. In fact, the old WordPress editor didn't behave this way, so this is a regression.

#3 @noisysocks
3 years ago

  • Milestone Awaiting Review deleted
  • Resolution set to reported-upstream
  • Status changed from new to closed

#4 @jikamens
2 years ago

This is fixed upstream, can we please make sure to get the fix into the next WordPress release?

Note: See TracTickets for help on using tickets.