Add ability to set the clipboard. Update native with corresponding textedit change.

Fixes #6601.