mirror of
https://github.com/ianstormtaylor/slate.git
synced 2025-08-29 18:09:49 +02:00
Fix the nodeName from lower to upper case (#5348)
The node name should be `STRONG` instead of `strong` in the example deserialize function.
This commit is contained in:
@@ -173,7 +173,7 @@ const deserialize = (el, markAttributes = {}) => {
|
||||
|
||||
// define attributes for text nodes
|
||||
switch (el.nodeName) {
|
||||
case 'strong':
|
||||
case 'STRONG':
|
||||
nodeAttributes.bold = true
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user