@sapui5/sap.ui.richtexteditor 1.115.1 → 1.117.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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sapui5/sap.ui.richtexteditor",
3
- "version": "1.115.1",
3
+ "version": "1.117.0",
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)",
@@ -5,7 +5,7 @@
5
5
  <vendor>SAP SE</vendor>
6
6
  <copyright>SAPUI5
7
7
  * (c) Copyright 2009-2023 SAP SE. All rights reserved.</copyright>
8
- <version>1.115.1</version>
8
+ <version>1.117.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
 
@@ -24,7 +24,7 @@ sap.ui.define([
24
24
  * @alias sap.ui.richtexteditor.RTESplitButton
25
25
  *
26
26
  * @author SAP SE
27
- * @version 1.115.1
27
+ * @version 1.117.0
28
28
  */
29
29
  var RTESplitButton = SplitButton.extend("sap.ui.richtexteditor.RTESplitButton", {
30
30
  metadata: {
@@ -9,6 +9,7 @@ sap.ui.define([
9
9
  'sap/ui/core/Control',
10
10
  'sap/ui/core/library',
11
11
  'sap/ui/core/Locale',
12
+ 'sap/ui/core/Popup',
12
13
  'sap/ui/core/ResizeHandler',
13
14
  './library',
14
15
  './ToolbarWrapper',
@@ -25,6 +26,7 @@ sap.ui.define([
25
26
  Control,
26
27
  coreLibrary,
27
28
  Locale,
29
+ Popup,
28
30
  ResizeHandler,
29
31
  library,
30
32
  ToolbarWrapper,
@@ -2077,29 +2079,24 @@ sap.ui.define([
2077
2079
  * @private
2078
2080
  */
2079
2081
  RichTextEditor.prototype._registerWithPopupTinyMCE = function() {
2080
- var oBus = Core.getEventBus(),
2081
- bIsTinyMCE5Or6 = [RichTextEditor.EDITORTYPE_TINYMCE5, RichTextEditor.EDITORTYPE_TINYMCE6, RichTextEditor.EDITORTYPE_TINYMCE].includes(this.getEditorType()),
2082
+ var bIsTinyMCE5Or6 = [RichTextEditor.EDITORTYPE_TINYMCE5, RichTextEditor.EDITORTYPE_TINYMCE6, RichTextEditor.EDITORTYPE_TINYMCE].includes(this.getEditorType()),
2082
2083
  $Pop = this.$().closest("[data-sap-ui-popup]");
2083
2084
 
2084
2085
  setTimeout(function() {
2085
2086
  if ($Pop.length === 1) {
2086
- var sPopupId = $Pop.attr("data-sap-ui-popup"),
2087
- sDialogId = "tox-dialog-" + this.getId(),
2088
- oObject = { id: this._iframeId };
2089
-
2090
- oBus.publish("sap.ui", "sap.ui.core.Popup.addFocusableContent-" + sPopupId, oObject);
2087
+ var sDialogId = "tox-dialog-" + this.getId();
2091
2088
 
2092
2089
  if (this._oEditor) {
2093
2090
  this._oEditor.on('OpenWindow', function(oEvent) {
2094
2091
  if (bIsTinyMCE5Or6) { // sets our own id to the newly created dialog, because in TinyMCE5 doesn't set id
2095
2092
  jQuery(".tox-dialog[role='dialog']").attr("id", sDialogId);
2096
2093
  }
2097
- var oObject = { id: bIsTinyMCE5Or6 ? sDialogId : oEvent.win._id};
2098
- oBus.publish("sap.ui", "sap.ui.core.Popup.addFocusableContent-" + sPopupId, oObject);
2094
+ var sSelector = "#" + (bIsTinyMCE5Or6 ? sDialogId : oEvent.win._id);
2095
+ Popup.addExternalContent(sSelector, /* marked as selectable */ true);
2099
2096
  });
2100
2097
  this._oEditor.on('CloseWindow', function(oEvent) {
2101
- var oObject = { id: bIsTinyMCE5Or6 ? sDialogId : oEvent.win._id};
2102
- oBus.publish("sap.ui", "sap.ui.core.Popup.removeFocusableContent-" + sPopupId, oObject);
2098
+ var sSelector = "#" + (bIsTinyMCE5Or6 ? sDialogId : oEvent.win._id);
2099
+ Popup.removeExternalContent(sSelector, /* remove selectable */ true);
2103
2100
  if (bIsTinyMCE5Or6) {
2104
2101
  jQuery(".tox-dialog[role='dialog']").attr("id"); // remove our id
2105
2102
  }
@@ -34,7 +34,7 @@ sap.ui.define([
34
34
  "sap.ui.richtexteditor.RTESplitButton"
35
35
  ],
36
36
  elements: [],
37
- version: "1.115.1"
37
+ version: "1.117.0"
38
38
  });
39
39
 
40
40
  /**
package/ui5.yaml CHANGED
@@ -1,7 +1,10 @@
1
- specVersion: '2.6'
1
+ specVersion: '3.0'
2
2
  type: library
3
3
  metadata:
4
4
  name: sap.ui.richtexteditor
5
+ resources:
6
+ configuration:
7
+ propertiesFileSourceEncoding: ISO-8859-1
5
8
  framework:
6
9
  name: SAPUI5
7
10
  libraries: