Implement proper copy and paste with clipboard

[#78396626]

And disable it while user is in text edit mode.