Skip to content

Commit

Permalink
bad-behaving plugin!
Browse files Browse the repository at this point in the history
Don't mess with PM DOM like this, causes
https://discuss.prosemirror.net/t/nodeview-update-not-called-for-some-ac
tions/540
  • Loading branch information
forresto committed Dec 22, 2016
1 parent abe8c24 commit f1e8a25
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/plugins/placeholder.js
Expand Up @@ -16,11 +16,11 @@ function onDOMChanged () {
const el = els[i]
const tag = el.tagName
if (tag === 'H1' || tag === 'P') {
if (el.textContent === '') {
el.classList.add('empty')
} else {
el.classList.remove('empty')
}
// if (el.textContent === '') {
// el.classList.add('empty')
// } else {
// el.classList.remove('empty')
// }
}
}

Expand Down

0 comments on commit f1e8a25

Please sign in to comment.