diff --git a/modules/clipboard.js b/modules/clipboard.js index 5aa1e96abf..c8f0d3ba5c 100644 --- a/modules/clipboard.js +++ b/modules/clipboard.js @@ -229,11 +229,11 @@ function matchAttributor(node, delta) { if (formats[attr.attrName]) return; } attr = ATTRIBUTE_ATTRIBUTORS[name]; - if (attr != null && attr.attrName === name) { + if (attr != null && (attr.attrName === name || attr.keyName === name)) { formats[attr.attrName] = attr.value(node) || undefined; } attr = STYLE_ATTRIBUTORS[name] - if (attr != null && attr.attrName === name) { + if (attr != null && (attr.attrName === name || attr.keyName === name)) { attr = STYLE_ATTRIBUTORS[name]; formats[attr.attrName] = attr.value(node) || undefined; }