auto-wrap in editor<%>
Enables or disables automatically calling
set-max-width in response to
on-display-size, or gets the state of auto-wrapping. For text editors, this has the
effect of wrapping the editor's contents to fit in a canvas
displaying the editor (the widest one if multiple canvases display
the editor). For pasteboard editors, ``auto-wrapping'' merely
truncates the area of the pasteboard to match its canvas display.
Auto-wrapping is initially disabled.
(-> booleansendan-editorauto-wrap)Returns
#tif auto-wrapping is enabled,#fotherwise.
(-> voidsendan-editorauto-wrapauto-wrap?)
auto-wrap?: booleanEnables auto-wrapping if
auto-wrap?is true, disables auto-wrapping otherwise. Theon-display-sizemethod is called immediately to update the editor's maximum width.