draftmirror
Advanced tools
Comparing version 0.2.2 to 0.2.3
@@ -27,18 +27,18 @@ var React = require('react'); | ||
Base.apply(this, arguments); | ||
Object.defineProperty(this, 'matchDOMTag', function() { | ||
return { | ||
'figure': function(dom) { | ||
var className = dom.hasAttribute('class')? dom.getAttribute('class') : ''; | ||
return className.indexOf('Widget-' + this.name) >= 0? {} : false; | ||
} | ||
}; | ||
}); | ||
Object.defineProperty(this, 'attrs', function() { | ||
return attrs; | ||
}); | ||
} | ||
CustomType.prototype = Object.create(Base.prototype); | ||
Object.defineProperty(CustomType.prototype, 'matchDOMTag', function() { | ||
return { | ||
'figure': function(dom) { | ||
var className = dom.hasAttribute('class')? dom.getAttribute('class') : ''; | ||
return className.indexOf('Widget-' + this.name) >= 0? {} : false; | ||
} | ||
}; | ||
}); | ||
Object.defineProperty(CustomType.prototype, 'attrs', function() { | ||
return attrs; | ||
}); | ||
CustomType.prototype.toDOM = function(node) { | ||
@@ -45,0 +45,0 @@ if (node.rendered) { |
{ | ||
"name": "draftmirror", | ||
"version": "0.2.2", | ||
"version": "0.2.3", | ||
"description": "React component for ProseMirror providing a Draft.js like API", | ||
@@ -5,0 +5,0 @@ "main": "./lib/index.js", |
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
70143