pub fn setup_with_text(
text: &str,
) -> Result<(DbContext, Arc<EventHub>, UndoRedoManager)>Expand description
Create an in-memory database with a Root, Document, and imported text content.
Splits the text on \n and creates one Block + InlineElement per line,
mirroring what document_io::import_plain_text does but without depending
on the document_io crate.
Returns (DbContext, Arc<EventHub>, UndoRedoManager).