rc-editor-core
Advanced tools
Comparing version 0.6.17 to 0.6.18
@@ -54,2 +54,5 @@ 'use strict'; | ||
function getStyleText(styleObject) { | ||
if (!styleObject) { | ||
return ''; | ||
} | ||
return Object.keys(styleObject).map(function (name) { | ||
@@ -88,4 +91,5 @@ var styleName = processStyleName(name); | ||
if (blockRender) { | ||
resultText = '<' + (blockRender.element || 'div') + ' style="' + getStyleText(customBlockRenderMap.get(blockType).style || {}) + '">'; | ||
closeTag = '</' + (blockRender.element || 'div') + '>'; | ||
var element = typeof blockRender.element === 'function' ? blockRender.elementTag || 'div' : 'div'; | ||
resultText = '<' + (element || 'div') + ' style="' + getStyleText(customBlockRenderMap.get(blockType).style || {}) + '">'; | ||
closeTag = '</' + (element || 'div') + '>'; | ||
} | ||
@@ -92,0 +96,0 @@ var charMetaList = block.getCharacterList(); |
{ | ||
"name": "rc-editor-core", | ||
"version": "0.6.17", | ||
"version": "0.6.18", | ||
"description": "editor-core ui component for react", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
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
53798
1075