braft-convert
Advanced tools
Comparing version 1.8.12 to 1.8.13
@@ -453,6 +453,2 @@ "use strict"; | ||
newStyle = _color ? newStyle.add('BGCOLOR-' + _color.replace('#', '').toUpperCase()) : newStyle; | ||
} else if (nodeName === 'sup') { | ||
newStyle = newStyle.add('SUPERSCRIPT'); | ||
} else if (nodeName === 'sub') { | ||
newStyle = newStyle.add('SUBSCRIPT'); | ||
} else if (nodeName === 'span' && node.style[i] === 'font-size') { | ||
@@ -477,2 +473,8 @@ newStyle = newStyle.add('FONTSIZE-' + parseInt(node.style.fontSize, 10)); | ||
if (nodeName === 'sup') { | ||
newStyle = newStyle.add('SUPERSCRIPT'); | ||
} else if (nodeName === 'sub') { | ||
newStyle = newStyle.add('SUBSCRIPT'); | ||
} | ||
return newStyle; | ||
@@ -479,0 +481,0 @@ }; |
{ | ||
"name": "braft-convert", | ||
"version": "1.8.12", | ||
"version": "1.8.13", | ||
"description": "A convert helper for Braft Editor.", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
669
222904