Fix issue #47

Usability improvements when editing cells containing xml or json