@sapui5/sap.ui.richtexteditor 1.103.1 → 1.106.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/README.md +1 -1
- package/package.json +1 -1
- package/src/sap/ui/richtexteditor/.library +15 -1
- package/src/sap/ui/richtexteditor/RTESplitButton.js +1 -1
- package/src/sap/ui/richtexteditor/RichTextEditor.js +8 -1
- package/src/sap/ui/richtexteditor/ToolbarWrapper.js +24 -3
- package/src/sap/ui/richtexteditor/library.js +2 -2
- package/src/sap/ui/richtexteditor/messagebundle_fr.properties +11 -11
package/README.md
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|

|
|
2
2
|
|
|
3
3
|
# @sapui5/sap.ui.richtexteditor
|
|
4
|
-
Runtime resources of the [SAPUI5](https://
|
|
4
|
+
Runtime resources of the [SAPUI5](https://ui5.sap.com) Library **sap.ui.richtexteditor**.
|
|
5
5
|
|
|
6
6
|
## Usage
|
|
7
7
|
Refrain from installing this package using npm, Yarn or similar package managers.
|
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.106.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
|
|
|
@@ -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>
|
|
@@ -1830,7 +1830,14 @@ sap.ui.define([
|
|
|
1830
1830
|
init_instance_callback: function(oEditor) {
|
|
1831
1831
|
this._oEditor = oEditor;
|
|
1832
1832
|
fnOnInit();
|
|
1833
|
-
}.bind(this)
|
|
1833
|
+
}.bind(this),
|
|
1834
|
+
setup: function(editor) {
|
|
1835
|
+
editor.on('Init', function() {
|
|
1836
|
+
if (this.editorManager.majorVersion === "4") {
|
|
1837
|
+
editor.schema.getSpecialElements()['iframe'] = new RegExp('</iframe[^>]*>', 'gi');
|
|
1838
|
+
}
|
|
1839
|
+
});
|
|
1840
|
+
}
|
|
1834
1841
|
};
|
|
1835
1842
|
/*eslint-enable camelcase */
|
|
1836
1843
|
|
|
@@ -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]);
|
|
@@ -2049,8 +2065,13 @@ sap.ui.define([
|
|
|
2049
2065
|
* @public
|
|
2050
2066
|
*/
|
|
2051
2067
|
ToolbarWrapper.prototype.modifyToolbarContent = function (sModifier) {
|
|
2052
|
-
var vResult
|
|
2053
|
-
|
|
2068
|
+
var vResult;
|
|
2069
|
+
var args = Array.prototype.slice.call(arguments);
|
|
2070
|
+
var oToolbar = this.getAggregation("_toolbar");
|
|
2071
|
+
|
|
2072
|
+
if (!oToolbar) {
|
|
2073
|
+
return null;
|
|
2074
|
+
}
|
|
2054
2075
|
|
|
2055
2076
|
args.shift();
|
|
2056
2077
|
|
|
@@ -34,7 +34,7 @@ sap.ui.define([
|
|
|
34
34
|
"sap.ui.richtexteditor.RTESplitButton"
|
|
35
35
|
],
|
|
36
36
|
elements: [],
|
|
37
|
-
version: "1.
|
|
37
|
+
version: "1.106.0"
|
|
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) {
|
|
@@ -12,7 +12,7 @@ UNDERLINE_BUTTON_TOOLTIP=Soulign\u00E9
|
|
|
12
12
|
|
|
13
13
|
STRIKETHROUGH_BUTTON_TOOLTIP=Barr\u00E9
|
|
14
14
|
|
|
15
|
-
TEXTALIGN_BUTTON_TOOLTIP=Aligner texte
|
|
15
|
+
TEXTALIGN_BUTTON_TOOLTIP=Aligner le texte
|
|
16
16
|
|
|
17
17
|
FORMAT_BUTTON_TOOLTIP=Format
|
|
18
18
|
|
|
@@ -32,7 +32,7 @@ PARAGRAPH_BUTTON_TEXT=Paragraphe
|
|
|
32
32
|
|
|
33
33
|
BACKGROUND_COLOR_BUTTON_TOOLTIP=Couleur d'arri\u00E8re-plan
|
|
34
34
|
|
|
35
|
-
TEXT_COLOR_BUTTON_TOOLTIP=
|
|
35
|
+
TEXT_COLOR_BUTTON_TOOLTIP=Couleur de texte
|
|
36
36
|
|
|
37
37
|
CUT_BUTTON_TOOLTIP=Couper
|
|
38
38
|
|
|
@@ -44,25 +44,25 @@ UNDO_BUTTON_TOOLTIP=Annuler
|
|
|
44
44
|
|
|
45
45
|
REDO_BUTTON_TOOLTIP=R\u00E9tablir
|
|
46
46
|
|
|
47
|
-
LINK_BUTTON_TOOLTIP=Ins\u00E9rer/
|
|
47
|
+
LINK_BUTTON_TOOLTIP=Ins\u00E9rer/Modifier le lien
|
|
48
48
|
|
|
49
|
-
UNLINK_BUTTON_TOOLTIP=Supprimer lien
|
|
49
|
+
UNLINK_BUTTON_TOOLTIP=Supprimer le lien
|
|
50
50
|
|
|
51
|
-
IMAGE_BUTTON_TOOLTIP=Ins\u00E9rer/
|
|
51
|
+
IMAGE_BUTTON_TOOLTIP=Ins\u00E9rer/Modifier l'image
|
|
52
52
|
|
|
53
53
|
UNORDERED_LIST_BUTTON_TOOLTIP=Liste \u00E0 puces
|
|
54
54
|
|
|
55
55
|
ORDERED_LIST_BUTTON_TOOLTIP=Liste num\u00E9rot\u00E9e
|
|
56
56
|
|
|
57
|
-
OUTDENT_BUTTON_TOOLTIP=R\u00E9duire retrait
|
|
57
|
+
OUTDENT_BUTTON_TOOLTIP=R\u00E9duire le retrait
|
|
58
58
|
|
|
59
|
-
INDENT_BUTTON_TOOLTIP=Augmenter retrait
|
|
59
|
+
INDENT_BUTTON_TOOLTIP=Augmenter le retrait
|
|
60
60
|
|
|
61
|
-
TABLE_BUTTON_TOOLTIP=Ins\u00E9rer table
|
|
61
|
+
TABLE_BUTTON_TOOLTIP=Ins\u00E9rer une table
|
|
62
62
|
|
|
63
63
|
FONT_FAMILY_TEXT=Police
|
|
64
64
|
|
|
65
|
-
FONT_SIZE_TEXT=Taille police
|
|
65
|
+
FONT_SIZE_TEXT=Taille de la police
|
|
66
66
|
|
|
67
67
|
FONT_COLOR_TEXT=Couleur de texte
|
|
68
68
|
|
|
@@ -82,7 +82,7 @@ INSERT_IMAGE_DESCRIPTION=Description
|
|
|
82
82
|
|
|
83
83
|
INSERT_CONTENT_DIMENSIONS=Dimensions
|
|
84
84
|
|
|
85
|
-
INSERT_IMAGE_RATIO=G\u00E9rer ratio d'aspect
|
|
85
|
+
INSERT_IMAGE_RATIO=G\u00E9rer le ratio d'aspect
|
|
86
86
|
|
|
87
87
|
DIALOG_OK_BUTTON=OK
|
|
88
88
|
|
|
@@ -90,7 +90,7 @@ DIALOG_CANCEL_BUTTON=Interrompre
|
|
|
90
90
|
|
|
91
91
|
INSERT_LINK_URL=URL
|
|
92
92
|
|
|
93
|
-
INSERT_LINK_DISPLAY_TEXT=
|
|
93
|
+
INSERT_LINK_DISPLAY_TEXT=Texte \u00E0 afficher
|
|
94
94
|
|
|
95
95
|
INSERT_LINK_TITLE=Titre
|
|
96
96
|
|