public static void OnPaste(InputTextField textField)
{
TextEditor te = new TextEditor();
te.Paste();
#if UNITY_5_3_OR_NEWER
string value = te.text;
#else
string value = te.content.text;
#endif
if (!string.IsNullOrEmpty(value))
textField.ReplaceSelection(value);
}