@sapui5/sap.ui.richtexteditor 1.145.0 → 1.146.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 +1 -1
- package/src/sap/ui/richtexteditor/.library +1 -1
- package/src/sap/ui/richtexteditor/RTESplitButton.js +1 -1
- package/src/sap/ui/richtexteditor/RichTextEditor.js +23 -6
- package/src/sap/ui/richtexteditor/RichTextEditorFontFamily.js +1 -1
- package/src/sap/ui/richtexteditor/js/styles/RichTextEditor.css +78 -70
- package/src/sap/ui/richtexteditor/library.js +2 -2
- package/src/sap/ui/richtexteditor/messagebundle_pt.properties +1 -1
package/package.json
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
<vendor>SAP SE</vendor>
|
|
6
6
|
<copyright>SAPUI5
|
|
7
7
|
* (c) Copyright 2026 SAP SE. All rights reserved.</copyright>
|
|
8
|
-
<version>1.
|
|
8
|
+
<version>1.146.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
|
|
|
@@ -370,7 +370,7 @@ sap.ui.define([
|
|
|
370
370
|
* Defines the footer of the control. The footer will be available only with custom toolbar.
|
|
371
371
|
* <b>Note:</b> The footer aggregation accepts only controls inheriting <code>sap.m.IBar</code>.
|
|
372
372
|
*
|
|
373
|
-
* @
|
|
373
|
+
* @since 1.135
|
|
374
374
|
*/
|
|
375
375
|
footer: {type: "sap.ui.core.Control", multiple: false},
|
|
376
376
|
/**
|
|
@@ -426,7 +426,7 @@ sap.ui.define([
|
|
|
426
426
|
RichTextEditor.BUTTON_GROUPS = library.ButtonGroups;
|
|
427
427
|
|
|
428
428
|
/**
|
|
429
|
-
* @deprecated As of version 1.
|
|
429
|
+
* @deprecated As of version 1.136.13
|
|
430
430
|
*/
|
|
431
431
|
RichTextEditor.EDITORTYPE_TINYMCE6 = library.EditorType.TinyMCE6;
|
|
432
432
|
|
|
@@ -441,11 +441,14 @@ sap.ui.define([
|
|
|
441
441
|
// default
|
|
442
442
|
EDITOR_LOCATION_MAPPING[RichTextEditor.EDITORTYPE_TINYMCE] = "js/tiny_mce7/tinymce.min.js";
|
|
443
443
|
|
|
444
|
+
/**
|
|
445
|
+
* @deprecated As of version 1.136.13
|
|
446
|
+
*/
|
|
444
447
|
EDITOR_LOCATION_MAPPING[RichTextEditor.EDITORTYPE_TINYMCE6] = "js/tiny_mce6/tinymce.min.js";
|
|
445
448
|
EDITOR_LOCATION_MAPPING[RichTextEditor.EDITORTYPE_TINYMCE7] = "js/tiny_mce7/tinymce.min.js";
|
|
446
449
|
|
|
447
450
|
/**
|
|
448
|
-
* @deprecated As of version 1.
|
|
451
|
+
* @deprecated As of version 1.136.13
|
|
449
452
|
*/
|
|
450
453
|
RichTextEditor.DEFAULT_PLUGINS_TINYMCE6 = [
|
|
451
454
|
"emoticons",
|
|
@@ -624,7 +627,9 @@ sap.ui.define([
|
|
|
624
627
|
// default
|
|
625
628
|
oEditorMapping[RichTextEditor.EDITORTYPE_TINYMCE] = RichTextEditor.EDITORTYPE_TINYMCE7;
|
|
626
629
|
|
|
627
|
-
|
|
630
|
+
/**
|
|
631
|
+
* @deprecated As of version 1.136.13
|
|
632
|
+
*/
|
|
628
633
|
oEditorMapping[RichTextEditor.EDITORTYPE_TINYMCE6] = RichTextEditor.EDITORTYPE_TINYMCE6;
|
|
629
634
|
oEditorMapping[RichTextEditor.EDITORTYPE_TINYMCE7] = RichTextEditor.EDITORTYPE_TINYMCE7;
|
|
630
635
|
|
|
@@ -1186,6 +1191,9 @@ sap.ui.define([
|
|
|
1186
1191
|
|
|
1187
1192
|
var mapping = {
|
|
1188
1193
|
"TinyMCE": fnMapPluginList(RichTextEditor.DEFAULT_PLUGINS_TINYMCE7),
|
|
1194
|
+
/**
|
|
1195
|
+
* @deprecated As of version 1.136.13
|
|
1196
|
+
*/
|
|
1189
1197
|
"TinyMCE6": fnMapPluginList(RichTextEditor.DEFAULT_PLUGINS_TINYMCE6),
|
|
1190
1198
|
"TinyMCE7": fnMapPluginList(RichTextEditor.DEFAULT_PLUGINS_TINYMCE7)
|
|
1191
1199
|
};
|
|
@@ -1194,6 +1202,9 @@ sap.ui.define([
|
|
|
1194
1202
|
|
|
1195
1203
|
var fontButtonGroupButtoNamesMapping = {
|
|
1196
1204
|
"TinyMCE": ["fontfamily", "fontsize", "forecolor", "backcolor"],
|
|
1205
|
+
/**
|
|
1206
|
+
* @deprecated As of version 1.136.13
|
|
1207
|
+
*/
|
|
1197
1208
|
"TinyMCE6": ["fontfamily", "fontsize", "forecolor", "backcolor"],
|
|
1198
1209
|
"TinyMCE7": ["fontfamily", "fontsize", "forecolor", "backcolor"]
|
|
1199
1210
|
};
|
|
@@ -1293,10 +1304,10 @@ sap.ui.define([
|
|
|
1293
1304
|
}
|
|
1294
1305
|
|
|
1295
1306
|
/**
|
|
1296
|
-
* @deprecated As of version 1.
|
|
1307
|
+
* @deprecated As of version 1.136.13
|
|
1297
1308
|
*/
|
|
1298
1309
|
if (oEditorMapping[sEditorType] === "TinyMCE6") {
|
|
1299
|
-
Log.error("TinyMCE version 6 is used as editor type. TinyMCE 6 is deprecated as of version 1.
|
|
1310
|
+
Log.error("TinyMCE version 6 is used as editor type. TinyMCE 6 is deprecated as of version 1.136.13 and will be removed from the code entirely in near future.");
|
|
1300
1311
|
}
|
|
1301
1312
|
|
|
1302
1313
|
this._setupToolbar();
|
|
@@ -1501,6 +1512,9 @@ sap.ui.define([
|
|
|
1501
1512
|
return true;
|
|
1502
1513
|
}
|
|
1503
1514
|
|
|
1515
|
+
/**
|
|
1516
|
+
* @deprecated As of version 1.136.13
|
|
1517
|
+
*/
|
|
1504
1518
|
if (sEditorType === RichTextEditor.EDITORTYPE_TINYMCE6) {
|
|
1505
1519
|
return window.tinymce.majorVersion != "6";
|
|
1506
1520
|
}
|
|
@@ -2041,6 +2055,9 @@ sap.ui.define([
|
|
|
2041
2055
|
sPath = "sap/ui/richtexteditor/js/tiny_mce7/skins/content/default/content.min.css";
|
|
2042
2056
|
break;
|
|
2043
2057
|
}
|
|
2058
|
+
/**
|
|
2059
|
+
* @deprecated As of version 1.136.13
|
|
2060
|
+
*/
|
|
2044
2061
|
case RichTextEditor.EDITORTYPE_TINYMCE6: {
|
|
2045
2062
|
sPath = "sap/ui/richtexteditor/js/tiny_mce6/skins/content/default/content.min.css";
|
|
2046
2063
|
break;
|
|
@@ -347,77 +347,85 @@
|
|
|
347
347
|
}
|
|
348
348
|
|
|
349
349
|
/*********************** Scrollbar ***********************/
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
/******************************************************/
|
|
360
|
-
|
|
361
|
-
html {
|
|
350
|
+
:root:has(body.sap_horizon),
|
|
351
|
+
:root:has(body.sap_horizon_dark),
|
|
352
|
+
:root:has(body.sap_horizon_hcw),
|
|
353
|
+
:root:has(body.sap_horizon_hcb),
|
|
354
|
+
:root:has(body.sap_fiori_3),
|
|
355
|
+
:root:has(body.sap_fiori_3_dark),
|
|
356
|
+
:root:has(body.sap_fiori_3_hcw),
|
|
357
|
+
:root:has(body.sap_fiori_3_hcb) {
|
|
362
358
|
scrollbar-width: auto;
|
|
363
359
|
scrollbar-color: var(--sapScrollBar_FaceColor) var(--sapScrollBar_TrackColor);
|
|
364
|
-
}
|
|
365
|
-
|
|
366
|
-
.mce-content-body {
|
|
367
|
-
background-color: var(--sapField_Background);
|
|
368
|
-
color: var(--sapTextColor);
|
|
369
|
-
}
|
|
370
|
-
|
|
371
|
-
/* Placeholder styling */
|
|
372
|
-
.mce-content-body[data-mce-placeholder]:not(:empty)::before{
|
|
373
|
-
font-style: italic;
|
|
374
|
-
color: var(--sapField_PlaceholderTextColor);
|
|
375
|
-
}
|
|
376
|
-
|
|
377
|
-
.mce-content-body::selection,
|
|
378
|
-
.mce-content-body [data-mce-selected=inline-boundary] {
|
|
379
|
-
background-color: var(--sapSelectedColor);
|
|
380
|
-
color: var(--sapContent_ContrastTextColor);
|
|
381
|
-
}
|
|
382
|
-
|
|
383
|
-
.mce-content-body li {
|
|
384
|
-
font-weight: normal;
|
|
385
|
-
color: var(--sapList_TextColor);
|
|
386
|
-
}
|
|
387
|
-
|
|
388
|
-
.mce-content-body a {
|
|
389
|
-
color: var(--sapLinkColor);
|
|
390
|
-
text-decoration: var(--sapLink_TextDecoration);
|
|
391
|
-
cursor: pointer;
|
|
392
|
-
}
|
|
393
|
-
|
|
394
|
-
.mce-content-body a:hover() {
|
|
395
|
-
text-decoration: var(--sapLink_Hover_TextDecoration);
|
|
396
|
-
}
|
|
397
|
-
|
|
398
|
-
.mce-content-body a:active {
|
|
399
|
-
color: var(--sapLink_Active_Color);
|
|
400
|
-
text-decoration: var(--sapLink_Active_TextDecoration);
|
|
401
|
-
}
|
|
402
|
-
|
|
403
|
-
.mce-content-body a:visited {
|
|
404
|
-
color: var(--sapLink_Visited_Color);
|
|
405
|
-
text-decoration: var(--sapLink_Visited_TextDecoration);
|
|
406
|
-
}
|
|
407
|
-
|
|
408
|
-
.mce-content-body a:focus {
|
|
409
|
-
border-color: var(--sapContent_FocusColor);
|
|
410
|
-
border-radius: 0.125rem;
|
|
411
|
-
}
|
|
412
|
-
|
|
413
|
-
.mce-content-body a:visited:focus {
|
|
414
|
-
color: var(--sapContent_ContrastTextColor);
|
|
415
|
-
}
|
|
416
|
-
|
|
417
|
-
.mce-content-body table[border]:not([border="0"]):not([style*=border-color]) th {
|
|
418
|
-
border-color: var(--sapList_TableGroupHeaderBorderColor);
|
|
419
|
-
}
|
|
420
360
|
|
|
421
|
-
|
|
422
|
-
|
|
361
|
+
::-webkit-scrollbar-track {
|
|
362
|
+
background-color: var(--sapScrollBar_TrackColor);
|
|
363
|
+
}
|
|
364
|
+
|
|
365
|
+
::-webkit-scrollbar-thumb {
|
|
366
|
+
background-color: var(--sapScrollBar_FaceColor);
|
|
367
|
+
}
|
|
368
|
+
|
|
369
|
+
::-webkit-scrollbar-thumb:hover {
|
|
370
|
+
background-color: var(--sapScrollBar_Hover_FaceColor);
|
|
371
|
+
}
|
|
372
|
+
|
|
373
|
+
.mce-content-body {
|
|
374
|
+
background-color: var(--sapField_Background);
|
|
375
|
+
color: var(--sapTextColor);
|
|
376
|
+
}
|
|
377
|
+
|
|
378
|
+
/* Placeholder styling */
|
|
379
|
+
.mce-content-body[data-mce-placeholder]:not(:empty)::before{
|
|
380
|
+
font-style: italic;
|
|
381
|
+
color: var(--sapField_PlaceholderTextColor);
|
|
382
|
+
}
|
|
383
|
+
|
|
384
|
+
.mce-content-body::selection,
|
|
385
|
+
.mce-content-body [data-mce-selected=inline-boundary] {
|
|
386
|
+
background-color: var(--sapSelectedColor);
|
|
387
|
+
color: var(--sapContent_ContrastTextColor);
|
|
388
|
+
}
|
|
389
|
+
|
|
390
|
+
.mce-content-body li {
|
|
391
|
+
font-weight: normal;
|
|
392
|
+
color: var(--sapList_TextColor);
|
|
393
|
+
}
|
|
394
|
+
|
|
395
|
+
.mce-content-body a {
|
|
396
|
+
color: var(--sapLinkColor);
|
|
397
|
+
text-decoration: var(--sapLink_TextDecoration);
|
|
398
|
+
cursor: pointer;
|
|
399
|
+
}
|
|
400
|
+
|
|
401
|
+
.mce-content-body a:hover() {
|
|
402
|
+
text-decoration: var(--sapLink_Hover_TextDecoration);
|
|
403
|
+
}
|
|
404
|
+
|
|
405
|
+
.mce-content-body a:active {
|
|
406
|
+
color: var(--sapLink_Active_Color);
|
|
407
|
+
text-decoration: var(--sapLink_Active_TextDecoration);
|
|
408
|
+
}
|
|
409
|
+
|
|
410
|
+
.mce-content-body a:visited {
|
|
411
|
+
color: var(--sapLink_Visited_Color);
|
|
412
|
+
text-decoration: var(--sapLink_Visited_TextDecoration);
|
|
413
|
+
}
|
|
414
|
+
|
|
415
|
+
.mce-content-body a:focus {
|
|
416
|
+
border-color: var(--sapContent_FocusColor);
|
|
417
|
+
border-radius: 0.125rem;
|
|
418
|
+
}
|
|
419
|
+
|
|
420
|
+
.mce-content-body a:visited:focus {
|
|
421
|
+
color: var(--sapContent_ContrastTextColor);
|
|
422
|
+
}
|
|
423
|
+
|
|
424
|
+
.mce-content-body table[border]:not([border="0"]):not([style*=border-color]) th {
|
|
425
|
+
border-color: var(--sapList_TableGroupHeaderBorderColor);
|
|
426
|
+
}
|
|
427
|
+
|
|
428
|
+
.mce-content-body table[border]:not([border="0"]):not([style*=border-color]) td {
|
|
429
|
+
border-color: var(--sapList_BorderColor);
|
|
430
|
+
}
|
|
423
431
|
}
|
|
@@ -37,7 +37,7 @@ sap.ui.define([
|
|
|
37
37
|
"sap.ui.richtexteditor.RTESplitButton"
|
|
38
38
|
],
|
|
39
39
|
elements: [],
|
|
40
|
-
version: "1.
|
|
40
|
+
version: "1.146.0"
|
|
41
41
|
});
|
|
42
42
|
|
|
43
43
|
/**
|
|
@@ -68,7 +68,7 @@ sap.ui.define([
|
|
|
68
68
|
|
|
69
69
|
/**
|
|
70
70
|
* Uses TinyMCE version 6 as editor
|
|
71
|
-
* @deprecated As of version 1.
|
|
71
|
+
* @deprecated As of version 1.136.13, TinyMCE 6 is no longer supported. Use the {@link sap.ui.richtexteditor.EditorType.TinyMCE} instead.
|
|
72
72
|
* @public
|
|
73
73
|
*/
|
|
74
74
|
TinyMCE6: "TinyMCE6",
|
|
@@ -69,7 +69,7 @@ UNDO_BUTTON_TOOLTIP=Desfazer
|
|
|
69
69
|
REDO_BUTTON_TOOLTIP=Repetir
|
|
70
70
|
|
|
71
71
|
#XTOL: Tooltip for link button
|
|
72
|
-
LINK_BUTTON_TOOLTIP=Inserir/
|
|
72
|
+
LINK_BUTTON_TOOLTIP=Inserir/editar link
|
|
73
73
|
|
|
74
74
|
#XTOL: Tooltip for unlink button
|
|
75
75
|
UNLINK_BUTTON_TOOLTIP=Remover link
|