-
-
Notifications
You must be signed in to change notification settings - Fork 3.7k
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
How to add text before a blockquote? #7636
Comments
Hmmm. It works for me as well. But... sometimes it doesn't. I accidentally reproduced it once more right now, forgot how I did it, and spent five more minutes failing to reproduce it. |
The thing that you see is 7 zero-width-spaces. It's a so-called "inline filler" that forces the browser to render the selection in the exact place where we want. Otherwise, in some cases (not in this one, actually) some browsers (Chrome, Safari) will move the selection where they see it fit. Anyway, this is handled on the rendering level, so none of the editor features knows about it (the 7ZWSes don't appear in the model and the view) and hence they cannot affect what the Enter does. What happened in your case is that you tried pressing Shift+Enter and not Enter itself (probably somehow intuitively). That resulted in inserting soft breaks instead of breaking out of the block quote. |
Yeah, I think I tried pressing Shift+Enter. Soft breaks are useful so I guess there's nothing else to be done here? Other than the option of adding magic line buttons to blockquotes. (Btw, how do I do that?) |
@oleq pointed out to me that Backspace could also escape a blockquote in such a case:
It might also be quite intuitive. The enter is more natural at the end, while at the beginning it's a bit counterintuitive. WDYT? |
Sure, backspace at the beginning sounds fine. |
This is something I'm always trying to do and then I get frustrated because it does not work this way. |
This should probably be handled in #8137. |
Feature (typing): Empty block element at the beginning of the limit element should be converted to a paragraph on backspace key press. Closes #8137. Feature (block-quote): Block-quote should be split on backspace key press at the beginning of the block-quote. Closes #7636. Fix (list): The `delete` event handler listening on a higher priority to avoid intercepting by the block-quote and widget handler. Closes #8706.
If I have a blockquote at the top of the document, I seem to be stuck. No amount of Shift+Enter lets me escape the blockquote.
Perhaps blockquotes should have magic block buttons?
The text was updated successfully, but these errors were encountered: