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