braft-utils
Advanced tools
Comparing version 0.0.9 to 0.0.10
@@ -245,2 +245,3 @@ 'use strict'; | ||
console.warn(error); | ||
return editorState; | ||
} | ||
@@ -276,7 +277,8 @@ }, | ||
try { | ||
var _convertHTMLToRaw = (0, _braftConvert.convertHTMLToRaw)(htmlString), | ||
blockMap = _convertHTMLToRaw.blockMap; | ||
var _convertFromRaw = (0, _draftJs.convertFromRaw)((0, _braftConvert.convertHTMLToRaw)(htmlString)), | ||
blockMap = _convertFromRaw.blockMap; | ||
return _draftJs.EditorState.push(editorState, _draftJs.Modifier.replaceWithFragment(contentState, selectionState, blockMap), 'insert-fragment'); | ||
} catch (error) { | ||
console.warn(error); | ||
return editorState; | ||
@@ -283,0 +285,0 @@ } |
{ | ||
"name": "braft-utils", | ||
"version": "0.0.9", | ||
"version": "0.0.10", | ||
"description": "Utils for Braft Editor", | ||
@@ -18,3 +18,3 @@ "main": "dist/index.js", | ||
"peerDependencies": { | ||
"braft-convert": "^1.9.7", | ||
"braft-convert": "^2.0.0", | ||
"draft-js": "^0.10.5", | ||
@@ -21,0 +21,0 @@ "draftjs-utils": "^0.9.4" |
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
108746
502