http://jsonfiddle.net/mf3ue Can't save and empty document.