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