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