Add integration tests
This commit is contained in:
+3
-3
@@ -249,14 +249,14 @@ export class Ribbit {
|
||||
const revision = await this.collaboration.getRevision(id);
|
||||
if (!revision) return;
|
||||
this.cachedMarkdown = revision.content;
|
||||
this.cachedHTML = null;
|
||||
this.cachedHTML = this.markdownToHTML(revision.content);
|
||||
this.collaboration.sendUpdate(revision.content);
|
||||
if (this.getState() !== this.states.VIEW) {
|
||||
this.element.innerHTML = this.getHTML();
|
||||
this.element.innerHTML = this.cachedHTML;
|
||||
}
|
||||
this.emitter.emit('change', {
|
||||
markdown: revision.content,
|
||||
html: this.getHTML(),
|
||||
html: this.cachedHTML,
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user