do not allow toggle hex mode if doc is modified