Skip to content

Commit

Permalink
fix #1873
Browse files Browse the repository at this point in the history
  • Loading branch information
jhchen committed Jan 22, 2018
1 parent 36b7b45 commit fa99fa0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions modules/clipboard.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit fa99fa0

Please sign in to comment.