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

Editor: Changes made in HTML mode are not reflected when switching to visual mode #35283

Closed
fluiddot opened this issue Oct 1, 2021 · 1 comment · Fixed by #35289
Closed
Assignees
Labels
Mobile App - i.e. Android or iOS Native mobile impl of the block editor. (Note: used in scripts, ping mobile folks to change) [Type] Bug An existing feature does not function as intended

Comments

@fluiddot
Copy link
Contributor

fluiddot commented Oct 1, 2021

Description

When switching to HTML mode, any modification applied in the HTML code is not reflected when going back to visual mode.

Step-by-step reproduction instructions

  1. Open a post/page.
  2. Write some text in a Paragraph block.
  3. Open the post settings by tapping the three dots button located in the top bar.
  4. Tap on "Switch to HTML Mode".
  5. Change the text wrapped in the <p> element.
  6. Open the post settings by tapping the three dots button located in the top bar.
  7. Tap on "Switch to Visual Mode".
  8. Observe that the change made in the text of the Paragraph block is not reflected.

Expected behaviour

Changes made in HTML mode should be reflected in visual mode.

Actual behaviour

Changes made in HTML mode are not reflected in visual mode.

Screenshots or screen recording (optional)

Kapture.2021-10-01.at.10.26.09.mp4

WordPress information

  • WordPress version: N/A
  • Gutenberg version: N/A
  • Are all plugins except Gutenberg deactivated? N/A
  • Are you using a default theme (e.g. Twenty Twenty-One)? N/A

Device information

  • Device: iPhone 12 Pro Max
  • Operating system: iOS 14.5
  • WordPress app version: develop
@fluiddot fluiddot added [Type] Bug An existing feature does not function as intended Mobile App - i.e. Android or iOS Native mobile impl of the block editor. (Note: used in scripts, ping mobile folks to change) labels Oct 1, 2021
@fluiddot fluiddot self-assigned this Oct 1, 2021
@fluiddot
Copy link
Contributor Author

fluiddot commented Oct 1, 2021

I managed to fix the issue by commenting the following line:

This change was introduced recently in #35083 but it's still unclear to me why that's causing the issue, I'll keep investigating 🕵️ .

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Mobile App - i.e. Android or iOS Native mobile impl of the block editor. (Note: used in scripts, ping mobile folks to change) [Type] Bug An existing feature does not function as intended
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant