Skip to content

Add configuration option to prevent Quill from taking focus after formatting actions #4752

@softdays

Description

@softdays

Issue

Quill automatically moves focus to the editor after applying formatting

When using Quill (v2), triggering formatting actions (bold, italic, color, etc.) from a toolbar button forces focus back to the editor, even if the action was initiated from a toolbar control.

This creates an accessibility problem, especially for keyboard and screen reader users, because:

The user activates a toolbar button (e.g., “Bold”)

Quill applies the formatting correctly

But Quill also forces focus away from the toolbar

The user loses their position in the toolbar and must navigate back manually

This breaks expected keyboard navigation patterns (WCAG 2.1.1, 2.4.3, 3.2.1)

For accessibility-compliant toolbars, focus should remain on the action button unless the developer explicitly moves it.

Feature request

I would like to be able to configure Quill so that formatting operations do not move focus back to the editor.
The focus should stay on the toolbar button that initiated the action.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions