Note! You will need to run JS for this to work.

textarea

contenteditable

Some text.

This is a simple demo – it is always replacing text. Normally you would have some support for surrounding selected text. You should also provide some fallback (depending on your audience).