@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
|
@@ -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.
|
|
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
|
|
|
@@ -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
|
|
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
|
|
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
|
|
2098
|
-
|
|
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
|
|
2102
|
-
|
|
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
|
}
|