Here's how it breaks down:
* Content is the adjective meaning "satisfied" or "happy."
* -ed is a suffix indicating the past participle of a verb.
* -ly is a suffix indicating an adverb.
Therefore, "contentedly" is the adverbial form of "contented," meaning "in a satisfied or happy way."