Added setPos functionality for contenteditable elements

Tested in Chrome and Firefox only.