- sandbox.publish('savingStarted');
- window.localStorage.setItem(getLocalStorageKey(), wlxmlDocument.toXML());
- sandbox.publish('savingEnded', 'success');
+ sandbox.publish('savingStarted', 'local');
+ window.localStorage.setItem(key.content, wlxmlDocument.toXML());
+ window.localStorage.setItem(key.contentTimestamp, timestamp);
+ sandbox.publish('savingEnded', 'success', 'local', {timestamp: timestamp});