better interactions between texts and toc

This commit is contained in:
2020-07-13 15:10:32 +02:00
parent 64f38eac6f
commit 14beb796ea
4 changed files with 25 additions and 18 deletions
+3 -3
View File
@@ -21,7 +21,7 @@ export default {
}
},
beforeMount () {
console.log('EdText beforeMount')
// console.log('EdText beforeMount')
if (this.tei) {
this.buildTemplate()
}
@@ -48,7 +48,7 @@ export default {
},
parseLinks () {
let links = this.html.match(/<a[^<]+<\/a>/g)
console.log('links', links)
// console.log('links', links)
if (links) {
// let domparser = new DOMParser()
// let domlink
@@ -98,7 +98,7 @@ export default {
}
},
render (h) {
console.log('EdText render()')
// console.log('EdText render()')
if (!this.template) {
return h('span', 'Loading ...')
} else {