#47892 closed defect (bug) (reported-upstream)
Changes lost when switching from code editor to visual editor
Reported by: |
|
Owned by: | |
---|---|---|---|
Milestone: | Priority: | normal | |
Severity: | major | Version: | 5.2.2 |
Component: | Editor | Keywords: | 2nd-opinion |
Focuses: | Cc: |
Description
- Start composing a new post.
- Enter some text in the visual editor.
- Switch to the code editor with ctrl-alt-shift-m.
- Make a change that should be visible in the visual editor, e.g., wrap
<sup>...</sup>
around some text to make it superscript. - Switch back to the visual editor with ctrl-alt-shift-m.
- Observe that your change is not visible in the visual editor.
- Click Save Draft.
- Switch back to the code editor with ctrl-alt-shift-m.
- Observe that your change is gone.
Ugh.
Marking this "major" severity because it's a data loss bug.
Change History (4)
#2
@
4 years ago
- "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.
- 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.
- In fact, the old WordPress editor didn't behave this way, so this is a regression.
#3
@
3 years ago
- Milestone Awaiting Review deleted
- Resolution set to reported-upstream
- Status changed from new to closed
Reported here: https://github.com/WordPress/gutenberg/issues/22007
Note: See
TracTickets for help on using
tickets.
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.