superlistapp / super_editor

A Flutter toolkit for building document editors and readers
https://superlist.com/SuperEditor/
MIT License
1.67k stars 245 forks source link

[SuperEditor][SuperReader] - Facilitate documents within documents #2278

Open matthew-carroll opened 2 months ago

matthew-carroll commented 2 months ago

Some common document layout features require what essentially amounts to a document within a document.

For example, every cell within a table is essentially its own document. A single cell can contain paragraphs, list items, images, etc.

Also, there's the concept of a banner, which is essentially a colored rounded rectangle that encompasses arbitrary content. That arbitrary content inside the banner is essentially a document within a document.

We'd like to solve this use-case in general so that any number of nodes, components, and layouts can be built with arbitrary content within a node. For this ticket, make it possible to display a document within a document within a document, which should stress test layout and content selection, without delving into unique problems such as rows and columns in tables.

matthew-carroll commented 1 month ago

@alterhuman I didnt see where this was mentioned in your linked thread

alterhuman commented 1 month ago

@matthew-carroll sorry wrong issue. I was talking about drag & drop, will post it there.