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