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