Skip to content

Commit

Permalink
fix #1185
Browse files Browse the repository at this point in the history
  • Loading branch information
jhchen committed Dec 23, 2016
1 parent 1bc385a commit bcfb6bb
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions modules/clipboard.js
Original file line number Diff line number Diff line change
Expand Up @@ -261,6 +261,9 @@ function matchSpacing(node, delta) {
function matchStyles(node, delta) {
let formats = {};
let style = node.style || {};
if (style.fontStyle && computeStyle(node).fontStyle === 'italic') {
formats.italic = true;
}
if (style.fontWeight && computeStyle(node).fontWeight === 'bold') {
formats.bold = true;
}
Expand Down

0 comments on commit bcfb6bb

Please sign in to comment.