cmv4 cursor fixes

This fixes:
* overwrite cursor should be an underscore
* cursor inside HTML tag cannot be seen (#6935)

cc @njx