replace markdown contenteditable with a textarea element