rename REPLACE_TEXT to MODIFY_TEXT_ELEMENT and add undo for it