Skip to content

Missing alternative text field for images #2822

Description

@Ovgodd

What’s broken?

When inserting an image in the Docs editor, no field allows providing alternative text. Only a caption is offered, which does not substitute for alternative text.

What did you expect to happen?

A dedicated alternative text field, distinct from the caption, must be available in the image editing panel. Its value must be reflected in the alt attribute of the generated element.

Steps to reproduce

Open a Docs document
Insert an image via / or the toolbar
Open the image editing panel
Notice that no alternative text field is available, only a caption field
Possible solution

Add an "Alternative text" field in the image editing panel, distinct from the caption field.
Additional context / Screenshots

The caption is visible content associated with the image; it does not replace alternative text, which is transmitted to assistive technologies and must describe the content or function of the image.

WCAG Criteria

Criterion 1.1: Does each informative image have alternative text?

Impact

A blind user navigating with a screen reader inserts an image and has no way to provide alternative text. The image will be rendered without accessible description for users relying on assistive technologies.

BlockNote version

0.51.4

Activity

  1. added
    needs-triage
    on Jun 4, 2026
  2. added and removed
    needs-triage
    on Jun 15, 2026
  3. YousefED commented on Jun 15, 2026

    @YousefED
    Collaborator

    See additional requirements here: #2474

  4. adgator101 commented on Aug 3, 2026

    @adgator101

    Hi, is any active work being done to solve this issue?

  5. nperez0111 commented on Aug 3, 2026

    @nperez0111
    Contributor

    No work is being done on this @adgator101, happy to accept a contribution for this though. I would expect that the alt text is stored on the image block as a prop, the field is optional, there is a button that allows you to add one if you want to, and obviously this would control the alt attribute on the image itself when in-editor & exporting to HTML

  6. matthewlipski commented on Oct 22, 2026

    @matthewlipski
    Collaborator

    Hi, in the default BlockNote editor, selecting an image/video allows you to rename it in the formatting toolbar. This also sets the alternative text. Does this solve the issue?

  7. YousefED commented on Nov 10, 2026

    @YousefED
    Collaborator

    Jumping in here to figure out a good UX. I think it needs to be clear to end-users that they can edit an alternative text. We can also make some other improvements to the image toolbar / options

    Looking at the current UX we have for images, we:

    • show a download option
    • show a toggle preview option
    • show a rename option

    I think neither of these are very useful for end-users, and come mostly from the fact that we re-use the same component for file / audio / image blocks.

    I would:

    • hide the download option
    • hide the "toggle preview" from the UI (I'm neutral on whether we keep the showPreview prop, maybe better to keep for backwards compatibility)
    • Drop the rename from the UI (I'm neutral on whether we keep the name prop, maybe better and easier to keep for backwards compatibility)

    We should then add the "alternative text" option instead. We can choose to:

    • A: create a new alt_text prop for this
    • B: use the existing name prop
  8. virgile-dev commented on Nov 10, 2026

    @virgile-dev
    Contributor

    @YousefED thanks for surfacing the UX matter on this.
    Quickly benchmarked what Notion does.
    I'd keep the download option and the caption
    And add an alt text option and an expand button to display the image in a fullscreen player (can be triggered by space and closed by esc).

  9. Ovgodd commented on Nov 18, 2026

    @Ovgodd
    ContributorAuthor

    Hi @matthewlipski ! I tried the changes from #3337 on the default blocks example, with the keyboard and a screen reader. The alternative text field does what this issue asks for, thanks for that.

    This part is good: The "Alternative text" button is separate from "Edit caption", the text I typed is saved in the alt of the image, and Enter on the button opens the field so the screen reader can read its name and the current value.

    A couple of small things:

    • The field only has a placeholder, no real label. Once something is typed, the placeholder disappears, so nothing on screen says what the field is. A label (even a hidden one) would help. Same thing on the caption field.
    • The screen reader says "autocomplete" even though the field has no suggestions. Turning autocomplete off would stop that.
    • The input can't be tabbed to (tabindex="-1"). It gets focus when it opens, but after Shift+Tab I couldn't get back into it with Tab. Worth a look.
    • The little icon inside the field is read by the screen reader. Hiding it from assistive tech would be enough.

    One thing that is not part of this issue: once an image is already in the document, arrow keys select it and the toolbar shows up, but it takes a lot of Tabs to actually reach it, and nothing tells you the toolbar is there. I'll note that on #2514.

    Thanks again!

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

Metadata

Metadata

Assignees

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions