Paste module.

Implementation of the paste event. It detects the type of the paste content and pasted into the selection range.