braft-convert
Advanced tools
Comparing version 1.9.7 to 2.0.0
@@ -27,4 +27,6 @@ 'use strict'; | ||
var convertHTMLToRaw = exports.convertHTMLToRaw = function convertHTMLToRaw(content) { | ||
var fontFamilies = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : _configs.defaultFontFamilies; | ||
try { | ||
var contentState = (0, _draftConvert.convertFromHTML)((0, _configs.getFromHTMLConfig)())(content); | ||
var contentState = (0, _draftConvert.convertFromHTML)((0, _configs.getFromHTMLConfig)({ fontFamilies: fontFamilies }))(content); | ||
return (0, _draftJs.convertToRaw)(contentState); | ||
@@ -31,0 +33,0 @@ } catch (error) { |
{ | ||
"name": "braft-convert", | ||
"version": "1.9.7", | ||
"version": "2.0.0", | ||
"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
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
216908
10
589