@sapui5/sap.ui.richtexteditor 1.130.1 → 1.131.0
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-2024 SAP SE. All rights reserved.</copyright>
|
|
8
|
-
<version>1.
|
|
8
|
+
<version>1.131.0</version>
|
|
9
9
|
|
|
10
10
|
<documentation>A rich text editor (RTE) control. Requires installation of an additional rich text editor library.</documentation>
|
|
11
11
|
|
|
@@ -305,9 +305,12 @@ sap.ui.define([
|
|
|
305
305
|
* @private
|
|
306
306
|
*/
|
|
307
307
|
ToolbarWrapper.prototype._applyColor = function (sCommand, sCommandName, sColor, bDefaultColor) {
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
308
|
+
// Prevent losing the focus to the overflow toolbar button after the menu popover is closed
|
|
309
|
+
setTimeout(function(){
|
|
310
|
+
if (bDefaultColor || this._getColor(sCommand).replace(/,\s/g, ',') !== sColor) {
|
|
311
|
+
this.getEditor().getNativeApi().execCommand(sCommandName, false, sColor);
|
|
312
|
+
}
|
|
313
|
+
}.bind(this), 0);
|
|
311
314
|
};
|
|
312
315
|
|
|
313
316
|
/**
|