set-editor in editor-canvas%
Sets the editor that is displayed by the canvas, releasing the current
editor (if any). If the new editor already has an administrator that
is not associated with an editor-canvas%, then the new
editor is not installed into the canvas.
(-> voidsendan-editor-canvasset-editoreditredraw?)
edit:text%orpasteboard%object or#f
redraw?=#t: booleanIf
redraw?is#f, then the editor is not immediately drawn; in this case, something must force a redraw later (e.g., a call to theon-paintmethod).If the canvas has a line count installed with
set-line-count, the canvas's minimum height is adjusted.