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