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