mirror of
https://github.com/ianstormtaylor/slate.git
synced 2025-08-30 10:29:48 +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
|
// define attributes for text nodes
|
||||||
switch (el.nodeName) {
|
switch (el.nodeName) {
|
||||||
case 'strong':
|
case 'STRONG':
|
||||||
nodeAttributes.bold = true
|
nodeAttributes.bold = true
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user