code: func (edit *TextEditor) Paste(ctext string) {
  	if edit.Flags&EditReadOnly != 0 {
  		return
  	}
  
  	/* if there's a selection, the paste should delete it */
  	edit.clamp()
  
  	edit.DeleteSelection()
  
  	text := []rune(ctext)
  
  	edit.Buffer = strInsertText(edit.Buffer, edit.Cursor, text)
  
  	edit.makeundoInsert(edit.Cursor, len(text))
  	edit.Cursor += len(text)
  	edit.HasPreferredX = false
  }
docs: // Paste from clipboard