When copy & pasting formatted text, where does the separation between content and formatting occur? For example, copy & pasting from Word. When the content is copied, it can be pasted into something like TinyMCE which can retain the formatting, or into a regular browser textarea which will strip the formatting.
I've been told that the stripping of the formatting occurs by the application that is having content pasted into it. Because of this, pasting formatted content is unreliable.
However, to me it seems like the clipboard either has two versions of the content, and pastes the appropriate one, or one version is copied but the formatting is somehow flagged so that an app can request the content with or without the formatting.
How and where does this separation occur?
Thanks