@sapui5/sap.ui.richtexteditor 1.104.0 → 1.105.1
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.
|
|
8
|
+
<version>1.105.1</version>
|
|
9
9
|
|
|
10
10
|
<documentation>A rich text editor (RTE) control. Requires installation of an additional rich text editor library.</documentation>
|
|
11
11
|
|
|
@@ -44,6 +44,20 @@
|
|
|
44
44
|
<ownership xmlns="http://www.sap.com/ui5/buildext/ownership">
|
|
45
45
|
<component>CA-UI5-CTR-RIL</component><!-- default component for library, embedded text as a shortcut for <name>text</name> -->
|
|
46
46
|
</ownership>
|
|
47
|
+
|
|
48
|
+
<thirdparty xmlns="http://www.sap.com/ui5/buildext/thirdparty" >
|
|
49
|
+
<lib name="TinyMCE-4" displayName="TinyMCE 4.9.10" version="4.9.10-80" homepage="https://www.tiny.cloud/" id="73554900100200014330">
|
|
50
|
+
<license url="https://about.tiny.cloud/legal/" type="Commercial"/>
|
|
51
|
+
<copyright>Tiny Technologies, Inc.</copyright>
|
|
52
|
+
<pattern>sap/ui/richtexteditor/js/tiny_mce4/*</pattern>
|
|
53
|
+
</lib>
|
|
54
|
+
<lib name="TinyMCE-5" displayName="TinyMCE 5.10.2" version="5.10.2-126" homepage="https://www.tiny.cloud/" id="73555000100200017025">
|
|
55
|
+
<license url="https://about.tiny.cloud/legal/" type="Commercial"/>
|
|
56
|
+
<copyright>Tiny Technologies, Inc.</copyright>
|
|
57
|
+
<pattern>sap/ui/richtexteditor/js/tiny_mce5/*</pattern>
|
|
58
|
+
</lib>
|
|
59
|
+
</thirdparty>
|
|
60
|
+
|
|
47
61
|
</appData>
|
|
48
62
|
|
|
49
63
|
</library>
|
|
@@ -8,6 +8,7 @@ sap.ui.define([
|
|
|
8
8
|
"sap/ui/thirdparty/jquery",
|
|
9
9
|
'sap/ui/core/Control',
|
|
10
10
|
'./library',
|
|
11
|
+
"sap/m/library",
|
|
11
12
|
'sap/ui/core/IconPool',
|
|
12
13
|
'sap/ui/core/Item',
|
|
13
14
|
'sap/ui/core/Core',
|
|
@@ -20,6 +21,7 @@ sap.ui.define([
|
|
|
20
21
|
jQuery,
|
|
21
22
|
Control,
|
|
22
23
|
library,
|
|
24
|
+
mLibrary,
|
|
23
25
|
IconPool,
|
|
24
26
|
Item,
|
|
25
27
|
Core,
|
|
@@ -31,7 +33,8 @@ sap.ui.define([
|
|
|
31
33
|
|
|
32
34
|
var ButtonGroups = library.ButtonGroups,
|
|
33
35
|
EditorCommands = library.EditorCommands,
|
|
34
|
-
ButtonsToCommandsMap = library.ButtonsToCommandsMap
|
|
36
|
+
ButtonsToCommandsMap = library.ButtonsToCommandsMap,
|
|
37
|
+
ButtonType = mLibrary.ButtonType;
|
|
35
38
|
|
|
36
39
|
/**
|
|
37
40
|
* Constructor for a new RichTextEditor's Custom Toolbar.
|
|
@@ -269,6 +272,17 @@ sap.ui.define([
|
|
|
269
272
|
oConfig.toolbar = false;
|
|
270
273
|
|
|
271
274
|
oConfig.setup = function (editor) {
|
|
275
|
+
editor.on('PreInit', function () {
|
|
276
|
+
editor.addShortcut('alt+f10', 'Focus the first element in the toolbar.',
|
|
277
|
+
function () {
|
|
278
|
+
var oFirstVisibleElement = that.getAggregation("_toolbar").getAggregation("content").filter(function(oControl) {
|
|
279
|
+
return oControl.getVisible();
|
|
280
|
+
})[0];
|
|
281
|
+
|
|
282
|
+
oFirstVisibleElement && oFirstVisibleElement.focus();
|
|
283
|
+
}
|
|
284
|
+
);
|
|
285
|
+
});
|
|
272
286
|
|
|
273
287
|
// Sync sap.ui.richtexteditor.ToolbarWrapper buttons with the editor
|
|
274
288
|
editor.on('NodeChange', function () {
|
|
@@ -1040,6 +1054,7 @@ sap.ui.define([
|
|
|
1040
1054
|
|
|
1041
1055
|
aButtons.push(this._helper.createButton({
|
|
1042
1056
|
id: this._getId("InsertImageButton"),
|
|
1057
|
+
type: ButtonType.Emphasized,
|
|
1043
1058
|
text: this._oResourceBundle.getText("DIALOG_OK_BUTTON"),
|
|
1044
1059
|
press: function () {
|
|
1045
1060
|
oRTE.getNativeApi()
|
|
@@ -1227,6 +1242,7 @@ sap.ui.define([
|
|
|
1227
1242
|
|
|
1228
1243
|
aButtons.push(this._helper.createButton({
|
|
1229
1244
|
id: this._getId("InsertLinkButton"),
|
|
1245
|
+
type: ButtonType.Emphasized,
|
|
1230
1246
|
text: this._oResourceBundle.getText("DIALOG_OK_BUTTON"),
|
|
1231
1247
|
press: function () {
|
|
1232
1248
|
var bTarget = (oTargetSelect.getSelectedItem() === oTargetSelect.getItems()[1]);
|
|
@@ -34,7 +34,7 @@ sap.ui.define([
|
|
|
34
34
|
"sap.ui.richtexteditor.RTESplitButton"
|
|
35
35
|
],
|
|
36
36
|
elements: [],
|
|
37
|
-
version: "1.
|
|
37
|
+
version: "1.105.1"
|
|
38
38
|
});
|
|
39
39
|
|
|
40
40
|
/**
|
|
@@ -435,7 +435,7 @@ sap.ui.define([
|
|
|
435
435
|
return _fProxy("InvisibleText", mConfig);
|
|
436
436
|
}, /* must return an InvisibleText control */
|
|
437
437
|
createButton: function (mConfig) {
|
|
438
|
-
mConfig.type
|
|
438
|
+
mConfig.type ? mConfig.type : _oCustomToolbarControls.ButtonTypeTransparent;
|
|
439
439
|
return _fProxy("Button", mConfig);
|
|
440
440
|
}, /* must return a Button control */
|
|
441
441
|
createOverflowToolbarButton: function (mConfig) {
|