on-new-box in editor<%>
Creates and returns a new snip for an embedded editor. This
method is called by
insert-box.
(->sendan-editoron-new-boxtype)snip%object
type: symbol in'(text pasteboard)Creates a
editor-snip%with either a sub-editor fromtext%or sub-pasteboard frompasteboard%, depending on whethertypeis'textor'pasteboard. The keymap (seekeymap%) and style list (seestyle-list%) for of the new sub-editor are set to the keymap and style list of this editor.