Skip to content

Commit

Permalink
Fix omission of repeated style values
Browse files Browse the repository at this point in the history
  • Loading branch information
woochi committed Jun 3, 2022
1 parent 271c47d commit ee34053
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions core/editor.js
Original file line number Diff line number Diff line change
Expand Up @@ -325,6 +325,8 @@ function combineFormats(formats, combined) {
} else if (Array.isArray(combined[name])) {
if (combined[name].indexOf(formats[name]) < 0) {
merged[name] = combined[name].concat([formats[name]]);
} else {
merged[name] = combined[name];
}
} else {
merged[name] = [combined[name], formats[name]];
Expand Down

0 comments on commit ee34053

Please sign in to comment.