scribe-plugin-span-style
Advanced tools
Comparing version 0.1.4 to 0.1.5
{ | ||
"name": "scribe-plugin-span-style", | ||
"version": "0.1.4", | ||
"version": "0.1.5", | ||
"description": "A Scribe Plugin for adding inline styles through <span> elements", | ||
@@ -5,0 +5,0 @@ "main": "src/scribe-plugin-span-style.js", |
@@ -9,3 +9,3 @@ define(function () { | ||
var clearChildStyles = (root) => { | ||
var clearChildStyles = function(root) { | ||
if (typeof root === 'undefined' || typeof root.childNodes === 'undefined') return; | ||
@@ -66,3 +66,3 @@ | ||
var selection = new scribe.api.Selection(); | ||
return !!selection.getContaining(node => { | ||
return !!selection.getContaining(function(node) { | ||
if (node.style) { | ||
@@ -69,0 +69,0 @@ return (node.nodeName === this.nodeName && node.style[styleName] !== ''); |
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
4428