Creates and returns a new snip for an embedded buffer. This method is called by insert-box.
Creates a wx:media-snip% with either a sub-editor from wx:media-edit%or sub-pasteboard from wx:media-pasteboard%, depending on whether type is wx:const-edit-buffer or wx:const-pasteboard-buffer. The keymap (see wx:keymap%) and style list (see wx:style-list%) for of the new sub-buffer are set to the kaymap and style list of this buffer.