Automattic / Automattic/jetpack

VideoPress block: Some block settings changed in Code editor are discarded when switching to Visual editor

Open
#30,237 1 comment 0 reactions 0 assignees View on GitHub
[Block] VideoPress [Package] VideoPress [Platform] Simple [Plugin] VideoPress [Pri] Normal [Status] Auto-allocated [Status] Escalated to Product Ambassadors [Status] Priority Review Triggered Bug Customer Report [LEGACY]
Dominant language
PHP
Stars
1.8k
Forks
898
Avg merge
1d 18h
Merged PRs (30d)
774

Description

### Impacted plugin

VideoPress

### Quick summary

Changing some of the block attributes in the Code editor are discarded when switching back to the Visual editor.

https://user-images.githubusercontent.com/14905380/233600286-4114e1ef-077c-43a9-979a-8c5fdd7dc029.mp4

### Steps to reproduce

1. Navigate to a post with an existing VideoPress block.
2. Click on the three dots button and click on "Code editor".
3. Change the value of the `title` attribute of the VideoPress block.
4. Click on "Exit code editor".
5. Select the block and navigate to the block settings.
6. Observe that the title hasn't the value set in the Code editor.

### A clear and concise description of what you expected to happen.

Block attributes edited via the Code editor should be retained when going back to the Visual editor.

### What actually happened

Block attributes edited via the Code editor are not retained when going back to the Visual editor.

### Impact

All

### Available workarounds?

No but the platform is still usable

### Platform (Simple and/or Atomic)

Simple

### Logs or notes

_No response_

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the VideoPress block issue using the listed Code editor and Visual editor steps, then locate the VideoPress block implementation by searching for its block attributes and title setting. Verify the fix by changing title in the Code editor, returning to the Visual editor, and confirming the value remains in the block settings.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, react
Domain
frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.