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