mirror of
https://github.com/ianstormtaylor/slate.git
synced 2025-08-16 12:14:14 +02:00
Fix a linter bug in a semi-colon case (#1928)
This commit is contained in:
committed by
Ian Storm Taylor
parent
2652680850
commit
0322f7a1b8
@@ -59,7 +59,6 @@ function cloneFragment(event, value, fragment = value.fragment) {
|
||||
|
||||
// Remove any zero-width space spans from the cloned DOM so that they don't
|
||||
// show up elsewhere when pasted.
|
||||
// eslint-disable-next-line padding-line-between-statements
|
||||
;[].slice.call(contents.querySelectorAll(ZERO_WIDTH_SELECTOR)).forEach(zw => {
|
||||
const isNewline = zw.getAttribute(ZERO_WIDTH_ATTRIBUTE) === 'n'
|
||||
zw.textContent = isNewline ? '\n' : ''
|
||||
|
Reference in New Issue
Block a user