This commit is contained in:
2025-11-15 02:22:50 -05:00
parent 8896c64445
commit 2914d7968f

View File

@@ -20,6 +20,16 @@ impl TextEdit {
self.align,
)
}
pub fn content(&self) -> String {
self.buf
.lines
.iter()
.map(|l| l.text())
// why is this needed?? what??
.collect::<Vec<_>>()
.join("\n")
}
}
impl Widget for TextEdit {