Bug fix
Fixed bug that caused content changes not detected properly
This commit is contained in:
parent
66ed2bd489
commit
959cf812ed
10
index.html
10
index.html
@ -1291,11 +1291,6 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
}, 300)
|
}, 300)
|
||||||
getRef('article_wrapper').addEventListener('input', e => {
|
|
||||||
if (e.target.closest('.content__area')) {
|
|
||||||
checkEntry(e)
|
|
||||||
}
|
|
||||||
})
|
|
||||||
getRef('article_wrapper').addEventListener('click', e => {
|
getRef('article_wrapper').addEventListener('click', e => {
|
||||||
if (e.target.closest('.submit-entry')) {
|
if (e.target.closest('.submit-entry')) {
|
||||||
const submitButton = e.target.closest('.submit-entry')
|
const submitButton = e.target.closest('.submit-entry')
|
||||||
@ -1775,6 +1770,7 @@
|
|||||||
childObserver.observe(target, {
|
childObserver.observe(target, {
|
||||||
childList: true,
|
childList: true,
|
||||||
})
|
})
|
||||||
|
target.addEventListener('input', checkEntry)
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
getRef('article_wrapper').addEventListener("focusout", e => {
|
getRef('article_wrapper').addEventListener("focusout", e => {
|
||||||
@ -1782,6 +1778,7 @@
|
|||||||
const target = e.target.closest('.content__area')
|
const target = e.target.closest('.content__area')
|
||||||
normalizeText(e.target.closest('.content__area'))
|
normalizeText(e.target.closest('.content__area'))
|
||||||
document.removeEventListener('selectionchange', detectFormatting)
|
document.removeEventListener('selectionchange', detectFormatting)
|
||||||
|
target.removeEventListener('input', checkEntry)
|
||||||
const selection = window.getSelection()
|
const selection = window.getSelection()
|
||||||
if (!e.relatedTarget?.closest('#text_toolbar')) {
|
if (!e.relatedTarget?.closest('#text_toolbar')) {
|
||||||
getRef('text_toolbar').classList.add('hide-completely')
|
getRef('text_toolbar').classList.add('hide-completely')
|
||||||
@ -2071,9 +2068,10 @@
|
|||||||
return {
|
return {
|
||||||
data,
|
data,
|
||||||
editor: senderID,
|
editor: senderID,
|
||||||
|
hash,
|
||||||
|
score: getScore(vectorClock),
|
||||||
timestamp: time,
|
timestamp: time,
|
||||||
vectorClock,
|
vectorClock,
|
||||||
score: getScore(vectorClock)
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user