Comparing version 1.0.7 to 1.0.8
@@ -282,5 +282,7 @@ (function webpackUniversalModuleDefinition(root, factory) { | ||
removedNodes.forEach(function (node) { | ||
if (node.parentNode != null && | ||
// Check node has actually been removed | ||
// One exception is Chrome does not immediately remove IFRAMEs | ||
// from DOM but MutationRecord is correct in its reported removal | ||
if (node.parentNode != null && node.tagName !== 'IFRAME' && | ||
(document.body.compareDocumentPosition(node) & Node.DOCUMENT_POSITION_CONTAINED_BY)) { | ||
// Node has not actually been removed | ||
return; | ||
@@ -1413,2 +1415,10 @@ } | ||
}; | ||
BlockBlot.prototype.update = function (mutations) { | ||
if (navigator.userAgent.match(/Trident/)) { | ||
this.attach(); | ||
} | ||
else { | ||
_super.prototype.update.call(this, mutations); | ||
} | ||
}; | ||
return BlockBlot; | ||
@@ -1415,0 +1425,0 @@ }(format_1.default)); |
@@ -11,3 +11,4 @@ import FormatBlot from './abstract/format'; | ||
insertAt(index: number, value: string, def?: any): void; | ||
update(mutations: MutationRecord[]): void; | ||
} | ||
export default BlockBlot; |
{ | ||
"name": "parchment", | ||
"version": "1.0.7", | ||
"version": "1.0.8", | ||
"description": "A document model for rich text editors", | ||
@@ -5,0 +5,0 @@ "author": "Jason Chen <jhchen7@gmail.com>", |
@@ -180,5 +180,7 @@ import { Blot, Parent, Leaf } from './blot'; | ||
removedNodes.forEach((node) => { | ||
if (node.parentNode != null && | ||
// Check node has actually been removed | ||
// One exception is Chrome does not immediately remove IFRAMEs | ||
// from DOM but MutationRecord is correct in its reported removal | ||
if (node.parentNode != null && node.tagName !== 'IFRAME' && | ||
(document.body.compareDocumentPosition(node) & Node.DOCUMENT_POSITION_CONTAINED_BY)) { | ||
// Node has not actually been removed | ||
return; | ||
@@ -185,0 +187,0 @@ } |
@@ -44,2 +44,10 @@ import FormatBlot from './abstract/format'; | ||
} | ||
update(mutations: MutationRecord[]): void { | ||
if (navigator.userAgent.match(/Trident/)) { | ||
this.attach(); | ||
} else { | ||
super.update(mutations); | ||
} | ||
} | ||
} | ||
@@ -46,0 +54,0 @@ |
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
190910
3138