allow formatSelection to return a jQuery object
Merge pull request #2702 from dgroux/master

allow formatSelection to return a jQuery object