Quill: Problems with blockquote handling

Created on 31 Jul 2016  Â·  6Comments  Â·  Source: quilljs/quill

  1. Nested blockquotes are broken, any nested blockquotes are stripped away, appending the content to the parent blockquote.
  2. Paragraphs in blockquotes are broken, each p tag appears to close the blockquote and start a new one.

Steps for Reproduction

  1. http://codepen.io/anon/pen/KrBGvd

Expected behavior:

  1. Blockquotes can be nested indefinitely
  2. Blockquotes can contain paragraphs

Platforms: Firefox

Version: 1.0.0-beta.9

All 6 comments

Nest blockquotes is not a feature of Quill. Feel free to open an issue requesting it and a separate one to support containing paragraphs. Please follow the feature request guidelines for both.

Is there a description of what is and what isn't supported in Quill, or do you only consider a document to be supported when it can be created using the Quill UI? (I would have expected all valid HTML to be passed through untouched)

Quill supports these formats by default, but you can add your own with Parchment. I'm still working on docs for how to use Parchment but supporting all markup valid in HTML is absolutely not a goal of Quill. Editors have to make a tradeoff between supporting the ambiguities of HTML or being consistent and predictable in state and behavior. Quill is designed for the latter.

@jhchen I've gone down the path of trying to create a nested blockquote by using the container blot, but I haven't had much luck. Do you have any pointers on how I might do this?

Hi!

Having switched to Quill, I've hit the same problem, and while Parchment looks good, I've got an existing 3k plus bunch of notes, and 15k saved web pages that have the blockquote-p markup in some of them.

I don't consider blockquote-p markup to be ambiguous, as inferred by @jhchen — it's a common use case.

What would be an alternative route forward?

@OctaneInteractive Find something else. I know that sucks, but quill just isn't designed for this. This issue, and the list nesting issue addressed above, come from significant idealogical differences about document structure. Trying to conform existing content is just going to end in sadness for you. We had to make this hard choice about two years ago. Unfortunately, as much as I love the approach Quill has, it is not conducive to handling legacy html content.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

artaommahe picture artaommahe  Â·  32Comments

sachinrekhi picture sachinrekhi  Â·  49Comments

kayahr picture kayahr  Â·  42Comments

saw picture saw  Â·  34Comments

tkw722 picture tkw722  Â·  32Comments