mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-21 23:43:17 +01:00
Fix htmlarea issue with prefs rte_toolbar values
This commit is contained in:
parent
6bd892c645
commit
36913e0627
@ -334,6 +334,11 @@ var et2_htmlarea = (function(){ "use strict"; return et2_editableWidget.extend([
|
||||
|
||||
var rte_menubar = egw.preference('rte_menubar', 'common');
|
||||
var rte_toolbar = egw.preference('rte_toolbar', 'common');
|
||||
// we need to have rte_toolbar values as an array
|
||||
if (rte_toolbar && typeof rte_toolbar == "object")
|
||||
{
|
||||
rte_toolbar = Object.values(rte_toolbar);
|
||||
}
|
||||
var settings = {
|
||||
fontsize_formats: et2_htmlarea.FONT_SIZE_FORMATS[egw.preference('rte_font_unit', 'common')],
|
||||
menubar: parseInt(rte_menubar) && this.menubar ? true : typeof rte_menubar != 'undefined' ? false : this.menubar
|
||||
|
Loading…
Reference in New Issue
Block a user