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