Fix stolen focus on egw input fields

This commit is contained in:
Hadi Nategh 2022-05-04 12:54:40 +02:00
parent 0bf4dc6d88
commit e4efa38d45
2 changed files with 0 additions and 2 deletions

View File

@ -137,7 +137,6 @@ var et2_htmlarea = /** @class */ (function (_super) {
fontsize_formats: '8pt 10pt 12pt 14pt 18pt 24pt 36pt', fontsize_formats: '8pt 10pt 12pt 14pt 18pt 24pt 36pt',
setup: function (ed) { setup: function (ed) {
ed.on('init', function () { ed.on('init', function () {
this.focus();
this.execCommand('fontName', false, egw.preference('rte_font', 'common')); this.execCommand('fontName', false, egw.preference('rte_font', 'common'));
this.execCommand('fontSize', false, egw.preference('rte_font_size', 'common') this.execCommand('fontSize', false, egw.preference('rte_font_size', 'common')
+ egw.preference('rte_font_unit', 'common')); + egw.preference('rte_font_unit', 'common'));

View File

@ -269,7 +269,6 @@ export class et2_htmlarea extends et2_editableWidget implements et2_IResizeable
{ {
ed.on('init', function() ed.on('init', function()
{ {
this.focus();
this.execCommand('fontName', false, egw.preference('rte_font', 'common')); this.execCommand('fontName', false, egw.preference('rte_font', 'common'));
this.execCommand('fontSize', false, <string><unknown>egw.preference('rte_font_size', 'common') this.execCommand('fontSize', false, <string><unknown>egw.preference('rte_font_size', 'common')
+ egw.preference('rte_font_unit', 'common')); + egw.preference('rte_font_unit', 'common'));