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