Added wrapSelection to editor.js

I added a `wrapSelection` function to the editor javascript, which allows to wrap selections in the editor with tags.