@sapui5/sap.ui.richtexteditor 1.102.2 → 1.102.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
<vendor>SAP SE</vendor>
|
|
6
6
|
<copyright>SAPUI5
|
|
7
7
|
* (c) Copyright 2009-2022 SAP SE. All rights reserved.</copyright>
|
|
8
|
-
<version>1.102.
|
|
8
|
+
<version>1.102.4</version>
|
|
9
9
|
|
|
10
10
|
<documentation>A rich text editor (RTE) control. Requires installation of an additional rich text editor library.</documentation>
|
|
11
11
|
|
|
@@ -269,6 +269,17 @@ sap.ui.define([
|
|
|
269
269
|
oConfig.toolbar = false;
|
|
270
270
|
|
|
271
271
|
oConfig.setup = function (editor) {
|
|
272
|
+
editor.on('PreInit', function () {
|
|
273
|
+
editor.addShortcut('alt+f10', 'Focus the first element in the toolbar.',
|
|
274
|
+
function () {
|
|
275
|
+
var oFirstVisibleElement = that.getAggregation("_toolbar").getAggregation("content").filter(function(oControl) {
|
|
276
|
+
return oControl.getVisible();
|
|
277
|
+
})[0];
|
|
278
|
+
|
|
279
|
+
oFirstVisibleElement && oFirstVisibleElement.focus();
|
|
280
|
+
}
|
|
281
|
+
);
|
|
282
|
+
});
|
|
272
283
|
|
|
273
284
|
// Sync sap.ui.richtexteditor.ToolbarWrapper buttons with the editor
|
|
274
285
|
editor.on('NodeChange', function () {
|