-
Notifications
You must be signed in to change notification settings - Fork 4.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
If caption is empty, hitting enter should work as down arrow #2173
Comments
Per slack discussion, I'm going to try to make this consistent with headings and paragraphs:
|
This could extend to how we deal with other semi nested blocks like quotes + citation and other figures with a caption. Potential use of enter behavior noted by Riad:
Potential addendum: if the caption/citation is empty only then create a new paragraph on Enter. If there is existing content in the citation maybe the user wants that extra whitespace. |
I don't think we need to handle splitting, that's why I mentioned if it's empty. If the caption was at the top of the image, would you expect to create a new paragraph below? Or if a block has a few editable that are fixed, what would happen? Also, this was before keyboard navigation, I think, and the main issue was getting stuck in the caption when you didn't want one. |
Right now we create new lines, which is fine if there's some content already in the caption, but if it's empty we should treat it as a down arrow.
cc @iseulde
The text was updated successfully, but these errors were encountered: