Comments (2)
I think this is because there's a process to ensure that caption text isn't overwritten by an empty caption.
gutenberg/packages/block-library/src/image/edit.js
Lines 197 to 203 in fe8fe40
Do you think this process is unnecessary?
from gutenberg.
I understand the intent of that check but seems to me it is based on an assumption. To me, it is only valid in a scenario where the user has written a new caption and it is still making a decision on what image to use or wants to replace the image with one that fits with the existing caption. Maybe they are trying various images and in that case it makes sense to not lose the caption. But this is an assumption on a single case.
As a user, when I replace an image with a new one that has its own caption, I expect the caption to be there.
Edit: Also, comparing the behavior with the one that always existed in WordPress and now it's in the Classic editor, this is a change in the expected behavior that should have been considered a little more deeply IMHO.
from gutenberg.
Related Issues (20)
- Streamline the way `WP_Theme_JSON` related classes and helpers are maintained HOT 2
- New block: Editor content block - seeing template content in the backend of the associated page HOT 1
- Global padding: ".wp-block-block" class references in CSS selectors force padding to 0 in nested Group blocks HOT 3
- is-sidebar-opened class missing and sidebar has fixed inline width HOT 2
- TypeError: Cannot read properties of undefined "(reading 'jsx')" HOT 2
- Font Library Issue: Changing themes doesn't render the font in the editor untill a refresh is done HOT 3
- HTML entities rendering in command titles rather than characters
- Missing "Reset" from template part Inspector actions HOT 1
- Add repeat-x and repeat-y options to background images HOT 2
- Sticky position – hide the rest of the content in the editor HOT 2
- Dimension tools: Add icons for block spacing and min. height HOT 1
- wp-env: $schema property is not allowed HOT 4
- Select mode: If text is selected when entering, you can't select other blocks
- New Post settings panel: long unbreakable slug triggers horizontal scrolling of the entire settings panel
- Custom `supports.layout` Types
- Iteration: 6.6 Microsite HOT 8
- Block toolbar removes bottom shadow of header HOT 2
- Site title: link text and accessible name mismatch HOT 1
- Site Editor: Unable to select specific template on mobile
- Rename modal throws error when post type does not support title
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gutenberg.