-
Notifications
You must be signed in to change notification settings - Fork 3.4k
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
Is there a way to support multiline blockquotes? #1056
Comments
This is behaving as designed. You can create your own blockquote format that behaves as you'd like and there's a large body of documentation on the topic of custom formats. A starting point is http://quilljs.com/guides/cloning-medium-with-parchment/ and a good reference is https://github.com/quilljs/parchment/. You may also find the code block's behavior / code informative as it does something similar. |
Did someone achieve multiline blockquote? It is not so easy as @jhchen said. It is always easy to say: "it is not a bug, it is a feature" |
Hello everyone, I find a simple way to do this. with pure CSS. |
I figured it out!
|
I'm also super interested in this and after reading the documentation and linked guides I am not comfortable with implementing my own |
Seems it's really easy achievable by just customizing the CSS style for
So we should simply replace
The |
This still produces multiple I actually kind of managed to write something custom... its basically a slightly modified code block. It definitely wasn't easy and I don't really understand what I did here. You also can't escape the
Can't quite understand why there is no option for this - it could have been done like css and inline-styles can be opt-in. |
I wanted to solved this too but coudn't find a satisfactory solution... |
I really like 嘉然's CSS solution above because it's super simple. But my quote block needs to start and end with quotation marks, so I need the quote lines to be wrapped in a container. I tried digging around with custom blots, but it was way too complicated. It didn't seem right to build a quote block from scratch. Then I realized the built-in code-block tool fits my needs perfectly. So, I grabbed some source code and made a custom quote block. Check it out in the codesandbox. Demo video: Kapture.2024-06-26.at.16.59.59.mp4 |
Just stumbled on this thread and I'll leave another solution for posterity. In my case adding this to my CSS worked: .ql-snow .ql-editor blockquote+blockquote{ margin-top:-5px; } The idea is to cancel the margin-top in the second blockquote of a sequence of two or more. That makes multiple blockquotes look like they belong to single one. Fully supports indents and works on Chrome and Firefox. But, it may have other problems I'm not aware of. One issue is that it is dependent on the snow theme: other themes might define a different margin-top and require some trimming. Unfortunately the selector must use the theme class otherwise it would be not specific enough to get any changes done to the style. |
Currently on a
blockquote
line if you hit enter, quill starts a newblockquote
(rather than what I expected -- just adding a new line into the current blockquote). This feels like a bug imo -- the blockquote should end on 2 enters (i.e. a blank line between them).Although if you consider this expected behavior is there a way to create a new
blockquote
blot that would behave this way? Or any other way?Expected behavior:
Support for multiline
blockquote
Actual behavior:
Multiple
blockquote
blocksPlatforms: Any
Version: 1.0.6
The text was updated successfully, but these errors were encountered: