Skip to main content

text_editor_text

Function text_editor_text 

Source
pub fn text_editor_text(text: impl Binding<String>) -> TextEditor
Expand description

text_editor_text(text): the same editor over a plain String signal, for an app whose model holds text rather than a document (a request body, a file). The piece keeps a StyledText of its own: edits write the string, a string the app writes replaces the document’s text, and a TextEditor::highlight supplies whatever styling there is.