[PDF] Fix text comment color

This commit is contained in:
Julia Radzhabova
2024-04-16 22:37:38 +03:00
parent 6fa815cae6
commit 2065861690
3 changed files with 4 additions and 2 deletions

View File

@ -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() {

View File

@ -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() {

View File

@ -2038,6 +2038,7 @@ define([
split: true,
menu: true,
colors: config.colors,
color: '000000',
dynamiccolors: config.dynamiccolors,
themecolors: config.themecolors,
effects: config.effects,
@ -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;
},