How can I replace selected text in a iframe? I am developing an cms editor.