You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
The text was updated successfully, but these errors were encountered:
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
The text was updated successfully, but these errors were encountered: