fixed text editing to be part of revert system.