Skip to content

Should we auto focus? #17

Description

@bedeoverend

In simpla-article, we're focusing the editor before applying any format. Given how much this is repeating things - would it make sense to just auto focus on the editor before any format / embed is used?

This could break things if controlling it imperatively, as it will just clobber focus, even though it might be needing to format / embed imperatively outside of current live selection...I feel like this is the edge case. But it also just feels messy, it doesn't feel like embed / formats should care about where the current focus is.

It'd probably make sense to add an autoFocus prop which is set to true by default, and automatically re-focuses the editor whenever a command is made on it.

cc/ @seaneking

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions