askbot-dragon 1.8.26-beta → 1.8.27-beta

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "askbot-dragon",
3
- "version": "1.8.26-beta",
3
+ "version": "1.8.27-beta",
4
4
  "scripts": {
5
5
  "serve": "vue-cli-service serve",
6
6
  "build": "vue-cli-service build",
@@ -164,11 +164,14 @@ export default {
164
164
  }
165
165
  await this.$refs.pdfView.loadPage(page);
166
166
  this.$refs.pdfView.jumpToHighlight(this.currentPage)
167
- } else if (this.fileType == 'DOC' || this.fileType == 'DOCX' || this.fileType == 'TXT'){
167
+ } else if (this.fileType == 'DOC' || this.fileType == 'DOCX' || this.fileType == 'TXT' || this.fileType == 'MD' || this.fileType == 'HTML'){
168
168
  if (this.splitParagraph[this.currentPage] && this.splitParagraph[this.currentPage].original_paragraph){
169
169
  const id = this.splitParagraph[this.currentPage].original_paragraph[0].paragraph_id;
170
170
  let dom = document.getElementById(id);
171
- const paragraphs = this.$el.querySelectorAll(`[paragraph-id="${this.splitParagraph[this.currentPage].original_paragraph[0].paragraph_id}"]`);
171
+ let paragraphs = this.$el.querySelectorAll(`[paragraph-id="${this.splitParagraph[this.currentPage].original_paragraph[0].paragraph_id}"]`);
172
+ if (this.fileType == 'HTML'){
173
+ paragraphs = this.$el.querySelectorAll(`[data-paragraph-id="${this.splitParagraph[this.currentPage].original_paragraph[0].paragraph_id}"]`);
174
+ }
172
175
  if (dom){
173
176
  dom.scrollIntoView({ behavior: 'smooth' });
174
177
  }