Skip to content

Commit

Permalink
Merge pull request #2941 from ONLYOFFICE/fix/bugfix
Browse files Browse the repository at this point in the history
[PDF] Fix text comment color
  • Loading branch information
JuliaRadzhabova authored Apr 16, 2024
2 parents 6fa815c + 2065861 commit 1790129
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion apps/pdfeditor/main/app/controller/DocumentHolder.js
Original file line number Diff line number Diff line change
Expand Up @@ -2647,7 +2647,7 @@ define([
},

onBtnFontColor: function() {
this.documentHolder.mnuFontColorPicker.trigger('select', this.documentHolder.mnuFontColorPicker, this.documentHolder.mnuFontColorPicker.currentColor);
this.documentHolder.mnuFontColorPicker.trigger('select', this.documentHolder.mnuFontColorPicker, this.documentHolder.mnuFontColorPicker.currentColor || this.documentHolder.btnFontColor.currentColor);
},

onComboBlur: function() {
Expand Down
2 changes: 1 addition & 1 deletion apps/pdfeditor/main/app/controller/Toolbar.js
Original file line number Diff line number Diff line change
Expand Up @@ -2098,7 +2098,7 @@ define([
},

onBtnFontColor: function() {
this.toolbar.mnuFontColorPicker.trigger('select', this.toolbar.mnuFontColorPicker, this.toolbar.mnuFontColorPicker.currentColor);
this.toolbar.mnuFontColorPicker.trigger('select', this.toolbar.mnuFontColorPicker, this.toolbar.mnuFontColorPicker.currentColor || this.toolbar.btnFontColor.currentColor);
},

onEditTextClick: function() {
Expand Down
2 changes: 2 additions & 0 deletions apps/pdfeditor/main/app/view/DocumentHolder.js
Original file line number Diff line number Diff line change
Expand Up @@ -2038,6 +2038,7 @@ define([
split: true,
menu: true,
colors: config.colors,
color: '000000',
dynamiccolors: config.dynamiccolors,
themecolors: config.themecolors,
effects: config.effects,
Expand All @@ -2049,6 +2050,7 @@ define([
textBarBtns.push(this.btnFontColor);
this.btnFontColor.setMenu();
this.mnuFontColorPicker = this.btnFontColor.getPicker();
this.btnFontColor.currentColor = this.btnFontColor.color;

return container;
},
Expand Down

0 comments on commit 1790129

Please sign in to comment.