[SSE] Fix adding chart from DocumentEditor.
This commit is contained in:
parent
b53b32e67f
commit
857d688afb
|
@ -1672,7 +1672,7 @@ define([
|
||||||
onToolbarAfterRender: function(toolbar) {
|
onToolbarAfterRender: function(toolbar) {
|
||||||
// DataView and pickers
|
// DataView and pickers
|
||||||
//
|
//
|
||||||
if (this.btnTextColor.cmpEl) {
|
if (this.btnTextColor && this.btnTextColor.cmpEl) {
|
||||||
var colorVal = $('<div class="btn-color-value-line"></div>');
|
var colorVal = $('<div class="btn-color-value-line"></div>');
|
||||||
$('button:first-child', this.btnTextColor.cmpEl).append(colorVal);
|
$('button:first-child', this.btnTextColor.cmpEl).append(colorVal);
|
||||||
colorVal.css('background-color', this.btnTextColor.currentColor || 'transparent');
|
colorVal.css('background-color', this.btnTextColor.currentColor || 'transparent');
|
||||||
|
@ -1680,7 +1680,7 @@ define([
|
||||||
el: $('#id-toolbar-menu-fontcolor')
|
el: $('#id-toolbar-menu-fontcolor')
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
if (this.btnBackColor.cmpEl) {
|
if (this.btnBackColor && this.btnBackColor.cmpEl) {
|
||||||
var colorVal = $('<div class="btn-color-value-line"></div>');
|
var colorVal = $('<div class="btn-color-value-line"></div>');
|
||||||
$('button:first-child', this.btnBackColor.cmpEl).append(colorVal);
|
$('button:first-child', this.btnBackColor.cmpEl).append(colorVal);
|
||||||
colorVal.css('background-color', this.btnBackColor.currentColor || 'transparent');
|
colorVal.css('background-color', this.btnBackColor.currentColor || 'transparent');
|
||||||
|
|
Loading…
Reference in a new issue