braft-utils
Advanced tools
Comparing version 0.0.16 to 0.0.17
@@ -126,6 +126,2 @@ 'use strict'; | ||
if (selectionState.isCollapsed()) { | ||
return editorState; | ||
} | ||
style = style.toUpperCase(); | ||
@@ -136,3 +132,2 @@ stylesToBeRemoved = stylesToBeRemoved.filter(function (item) { | ||
var currentInlineStyle = this.getSelectionInlineStyle(editorState); | ||
var nextContentState = stylesToBeRemoved.length ? stylesToBeRemoved.reduce(function (contentState, item) { | ||
@@ -139,0 +134,0 @@ return _draftJs.Modifier.removeInlineStyle(contentState, selectionState, item); |
{ | ||
"name": "braft-utils", | ||
"version": "0.0.16", | ||
"version": "0.0.17", | ||
"description": "Utils 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
107604
11
518