@sapui5/sap.ui.richtexteditor 1.84.28 → 1.84.32

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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sapui5/sap.ui.richtexteditor",
3
- "version": "1.84.28",
3
+ "version": "1.84.32",
4
4
  "description": "SAPUI5 Library sap.ui.richtexteditor",
5
5
  "homepage": "https://sap.github.io/ui5-tooling/pages/SAPUI5/",
6
6
  "author": "SAP SE (https://www.sap.com)",
@@ -6,7 +6,7 @@
6
6
  <copyright>SAPUI5
7
7
 
8
8
  (c) Copyright 2009-2020 SAP SE. All rights reserved</copyright>
9
- <version>1.84.28</version>
9
+ <version>1.84.32</version>
10
10
 
11
11
  <documentation>A rich text editor (RTE) control. Requires installation of an additional rich text editor library.</documentation>
12
12
 
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * SAPUI5
3
- * (c) Copyright 2009-2022 SAP SE. All rights reserved.
3
+ * (c) Copyright 2009-2023 SAP SE. All rights reserved.
4
4
  */
5
5
  // Provides control sap.ui.richtexteditor.RTESplitButton.
6
6
  sap.ui.define([
@@ -24,7 +24,7 @@ sap.ui.define([
24
24
  * @alias sap.ui.richtexteditor.RTESplitButton
25
25
  *
26
26
  * @author SAP SE
27
- * @version 1.84.28
27
+ * @version 1.84.32
28
28
  */
29
29
  var RTESplitButton = SplitButton.extend("sap.ui.richtexteditor.RTESplitButton", {
30
30
  metadata: {
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * SAPUI5
3
- * (c) Copyright 2009-2022 SAP SE. All rights reserved.
3
+ * (c) Copyright 2009-2023 SAP SE. All rights reserved.
4
4
  */
5
5
  // Provides default renderer for control sap.ui.richtexteditor.RTESplitButton
6
6
  sap.ui.define(['sap/m/SplitButtonRenderer', 'sap/ui/core/Renderer'],
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * SAPUI5
3
- * (c) Copyright 2009-2022 SAP SE. All rights reserved.
3
+ * (c) Copyright 2009-2023 SAP SE. All rights reserved.
4
4
  */
5
5
 
6
6
  /*global Promise */
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * SAPUI5
3
- * (c) Copyright 2009-2022 SAP SE. All rights reserved.
3
+ * (c) Copyright 2009-2023 SAP SE. All rights reserved.
4
4
  */
5
5
  // Provides default renderer for control sap.ui.richtexteditor.RichTextEditor
6
6
  sap.ui.define(['sap/ui/core/Renderer', 'sap/ui/core/Core'],
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * SAPUI5
3
- * (c) Copyright 2009-2022 SAP SE. All rights reserved.
3
+ * (c) Copyright 2009-2023 SAP SE. All rights reserved.
4
4
  */
5
5
 
6
6
  /*global Promise */
@@ -205,17 +205,6 @@ sap.ui.define([
205
205
  oConfig.toolbar = false;
206
206
 
207
207
  oConfig.setup = function (editor) {
208
- editor.on('init', function () {
209
- var oEditorCommands = library.EditorCommands;
210
-
211
- // execute the default font styles to ensure right synchronizing of the custom toolbar
212
- // prevent tinymce from stealing the focus
213
- editor.execCommand("FormatBlock", false, oEditorCommands["FormatBlock"]["Paragraph"].commandValue, {skip_focus: true});
214
- editor.execCommand("JustifyLeft", false, null, {skip_focus: true});
215
- editor.execCommand("FontName", false, oEditorCommands["FontFamily"]["Verdana"].commandValue, {skip_focus: true});
216
- editor.execCommand("FontSize", false, "10pt", {skip_focus: true});
217
- });
218
-
219
208
  // Sync sap.ui.richtexteditor.ToolbarWrapper buttons with the editor
220
209
  editor.on('NodeChange', function () {
221
210
  oToolbar._syncToolbarStates(this);
@@ -1431,6 +1420,7 @@ sap.ui.define([
1431
1420
  aContent.push(
1432
1421
  oEditorHelper.createSelect({
1433
1422
  id: this._getId("FontFamily"),
1423
+ selectedItemId: this._getId("FontFamilyVerdana"),
1434
1424
  ariaLabelledBy: oInvisibleTextFontFamily,
1435
1425
  items: this._createFontStyleSelectItems(),
1436
1426
  change: function (oEvent) {
@@ -1449,6 +1439,7 @@ sap.ui.define([
1449
1439
  aContent.push(
1450
1440
  oEditorHelper.createSelect({
1451
1441
  id: this._getId("FontSize"),
1442
+ selectedItemId: this._getId("FontSize2"),
1452
1443
  ariaLabelledBy: oInvisibleTextFontSize,
1453
1444
  items: this._createFontSizeSelectItems(),
1454
1445
  change: function (oEvent) {
@@ -1468,6 +1459,8 @@ sap.ui.define([
1468
1459
  break;
1469
1460
  case "text-align":
1470
1461
  bVisibleGroupTextAlign = oRTE ? oRTE.getShowGroupTextAlign() : false;
1462
+ var bTextAlignLRight = oRTE._getTextDirection() === "rtl";
1463
+ var iDefaultItemIndex = bTextAlignLRight ? 2 : 0;
1471
1464
  var aMenuItems = this._createMenuButtonItems("TextAlign");
1472
1465
  aContent.push(
1473
1466
  oEditorHelper.createMenuButton(
@@ -1481,9 +1474,10 @@ sap.ui.define([
1481
1474
  oEditor = oRTE.getNativeApi();
1482
1475
  oSelectedItemIcon = oSelectedItem.getIcon();
1483
1476
  if (oSelectedItemIcon === this.getParent().getIcon()) {
1477
+ var sTextAlign = bTextAlignLRight ? "JustifyRight" : "JustifyLeft";
1484
1478
  // Text Align commands in TinyMCE have a toggle behavior when you set a
1485
1479
  // certain command twice the default command (text-align-left) will be applied
1486
- oEditor.execCommand('JustifyLeft');
1480
+ oEditor.execCommand(sTextAlign);
1487
1481
  } else {
1488
1482
  oEditor.execCommand('Justify' + oToolbar._findTextAlignCommandByIcon(oSelectedItemIcon));
1489
1483
  }
@@ -1491,7 +1485,7 @@ sap.ui.define([
1491
1485
  Log.warning("Cannot execute native command: " + 'Justify');
1492
1486
  }
1493
1487
  },
1494
- aMenuItems[0].getIcon(),
1488
+ aMenuItems[iDefaultItemIndex].getIcon(),
1495
1489
  this._oResourceBundle.getText(oCommands["TextAlign"].bundleKey)
1496
1490
  ).setVisible(bVisibleGroupTextAlign)
1497
1491
  );
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * SAPUI5
3
- * (c) Copyright 2009-2022 SAP SE. All rights reserved.
3
+ * (c) Copyright 2009-2023 SAP SE. All rights reserved.
4
4
  */
5
5
  // Provides default renderer for control sap.ui.richtexteditor.ToolbarWrapper
6
6
  sap.ui.define(['sap/ui/core/Renderer'],
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * SAPUI5
3
- * (c) Copyright 2009-2022 SAP SE. All rights reserved.
3
+ * (c) Copyright 2009-2023 SAP SE. All rights reserved.
4
4
  */
5
5
 
6
6
  /**
@@ -37,7 +37,7 @@ sap.ui.define(["sap/ui/thirdparty/jquery", 'sap/ui/core/Core', 'sap/ui/core/libr
37
37
  "sap.ui.richtexteditor.RTESplitButton"
38
38
  ],
39
39
  elements: [],
40
- version: "1.84.28"
40
+ version: "1.84.32"
41
41
  });
42
42
 
43
43
  /**
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * SAPUI5
3
- * (c) Copyright 2009-2022 SAP SE. All rights reserved.
3
+ * (c) Copyright 2009-2023 SAP SE. All rights reserved.
4
4
  */
5
5
 
6
6
  @import "../../../../../sap/ui/core/themes/base/base.less";
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * SAPUI5
3
- * (c) Copyright 2009-2022 SAP SE. All rights reserved.
3
+ * (c) Copyright 2009-2023 SAP SE. All rights reserved.
4
4
  */
5
5
 
6
6
  @import "../base/library.source.less";
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * SAPUI5
3
- * (c) Copyright 2009-2022 SAP SE. All rights reserved.
3
+ * (c) Copyright 2009-2023 SAP SE. All rights reserved.
4
4
  */
5
5
 
6
6
  @import "../base/library.source.less";
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * SAPUI5
3
- * (c) Copyright 2009-2022 SAP SE. All rights reserved.
3
+ * (c) Copyright 2009-2023 SAP SE. All rights reserved.
4
4
  */
5
5
 
6
6
  @import "../base/library.source.less";
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * SAPUI5
3
- * (c) Copyright 2009-2022 SAP SE. All rights reserved.
3
+ * (c) Copyright 2009-2023 SAP SE. All rights reserved.
4
4
  */
5
5
 
6
6
  @import "../sap_belize/library.source.less";
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * SAPUI5
3
- * (c) Copyright 2009-2022 SAP SE. All rights reserved.
3
+ * (c) Copyright 2009-2023 SAP SE. All rights reserved.
4
4
  */
5
5
 
6
6
  @import "../base/library.source.less";
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * SAPUI5
3
- * (c) Copyright 2009-2022 SAP SE. All rights reserved.
3
+ * (c) Copyright 2009-2023 SAP SE. All rights reserved.
4
4
  */
5
5
 
6
6
  @import "../base/library.source.less";
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * SAPUI5
3
- * (c) Copyright 2009-2022 SAP SE. All rights reserved.
3
+ * (c) Copyright 2009-2023 SAP SE. All rights reserved.
4
4
  */
5
5
 
6
6
  @import "../base/library.source.less";
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * SAPUI5
3
- * (c) Copyright 2009-2022 SAP SE. All rights reserved.
3
+ * (c) Copyright 2009-2023 SAP SE. All rights reserved.
4
4
  */
5
5
 
6
6
  @import "../base/library.source.less";
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * SAPUI5
3
- * (c) Copyright 2009-2022 SAP SE. All rights reserved.
3
+ * (c) Copyright 2009-2023 SAP SE. All rights reserved.
4
4
  */
5
5
 
6
6
  @import "../base/library.source.less";
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * SAPUI5
3
- * (c) Copyright 2009-2022 SAP SE. All rights reserved.
3
+ * (c) Copyright 2009-2023 SAP SE. All rights reserved.
4
4
  */
5
5
 
6
6
  @import "../base/library.source.less";