Fixed preview highlighter problem while typing

This commit is contained in:
benweet 2017-11-17 21:47:05 +00:00
parent 2e4c1b22ff
commit 3350ba61db

View File

@ -191,6 +191,7 @@ const editorSvc = Object.assign(new Vue(), editorSvcDiscussions, editorSvcUtils,
this.tocElt.classList[
this.tocElt.querySelector('.cl-toc-section *') ? 'remove' : 'add'
]('toc-tab--empty');
this.makeTextToPreviewDiffs();
// Run preview async operations (image loading, mathjax...)
const loadedPromises = loadingImages.map(imgElt => new Promise((resolve) => {
@ -210,7 +211,6 @@ const editorSvc = Object.assign(new Vue(), editorSvcDiscussions, editorSvcUtils,
this.$emit('previewText', this.previewText);
// Debounce if sections have already been mesured
this.measureSectionDimensions(!!this.sectionDescMeasuredList);
this.makeTextToPreviewDiffs();
});
},