mirror of
https://github.com/ianstormtaylor/slate.git
synced 2025-08-28 17:39:57 +02:00
Remove unneeded check. (#961)
Even if the el.tagName is a span, it will fall through to the child text node so the check is unneeded.
This commit is contained in:
committed by
Ian Storm Taylor
parent
56fa2c4208
commit
78bb1508ac
@@ -33,7 +33,7 @@ const TEXT_RULE = {
|
||||
}
|
||||
}
|
||||
|
||||
if (el.tagName == 'span' || el.nodeName == '#text') {
|
||||
if (el.nodeName == '#text') {
|
||||
if (el.value && el.value.match(/<!--.*?-->/)) return
|
||||
|
||||
return {
|
||||
|
Reference in New Issue
Block a user