Skip to content

Conversation

@idebenone
Copy link
Member

Problem

  • The caption feature in the Image Tool wasn't properly reflecting the correct state when preloaded data contained a caption.
    pre-load data caption state
  • The tune state for the caption wasn't consistent.
    tune-state-inconsistency
  • CSS styling for visually showing/hiding caption field was altering the inline-toolbar position.
    inline-toolbar-css
  • select an image button was hidden in uploading state causing a bad UX if user doesn't select any file.
    upload-image

Solution

  • Corrected the logic to properly handle the caption state when loading pre-existing data.
    if (data.caption) {
      this.setTune('caption', true);
    }
  • Introduced an utility function which determines the tune state directly reading the CSS rather than depending on this._data values.
  • Instead of depending on display property, relying on visibility fixed the problem.
  • Removed button's styling display: none during uploading state.

@idebenone idebenone requested a review from neSpecc November 30, 2024 06:54
@idebenone idebenone requested a review from neSpecc January 27, 2025 16:57
@idebenone idebenone merged commit 2cddffc into master Feb 7, 2025
1 check passed
@idebenone idebenone deleted the fix/patch-2.10.2 branch February 7, 2025 09:32
@orbachar
Copy link

orbachar commented Mar 3, 2025

Hi thanks for the fix, but now the caption input is hidden by default
image
users of our app got confused

is it a bug or by design?

@adamGrzegorczyk
Copy link

Hi thanks for the fix, but now the caption input is hidden by default image users of our app got confused

is it a bug or by design?

+1

The input is not visible. After uploading an image, the input field is hidden under the image. Is there an additional parameter required to make the field visible?

@idebenone
Copy link
Member Author

Hi thanks for the fix, but now the caption input is hidden by default image users of our app got confused
is it a bug or by design?

+1

The input is not visible. After uploading an image, the input field is hidden under the image. Is there an additional parameter required to make the field visible?

This has been fixed in the latest patch release (v2.10.3)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants