set-editor-string ( string editor -- ) (original) (raw)
set-editor-string ( string editor -- )
Factor handbook » UI framework » Building user interfaces » Pre-made UI gadgets » Editor gadgets » Getting and setting editor contents
Prev: | editor-string ( editor -- string ) |
---|---|
Next: | clear-editor ( editor -- ) |
Inputs
string | a string |
---|---|
editor | an editor |
Outputs
None
Word description
Sets the contents of the editor's document to a string, which may use either \n, \r\n or \r line separators.
Definition
: set-editor-string ( string editor -- )
model>> set-doc-string ;