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