@sapui5/sap.ui.richtexteditor 1.110.0 → 1.111.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.110.0",
3
+ "version": "1.111.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.110.0</version>
8
+ <version>1.111.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.110.0
27
+ * @version 1.111.0
28
28
  */
29
29
  var RTESplitButton = SplitButton.extend("sap.ui.richtexteditor.RTESplitButton", {
30
30
  metadata: {
@@ -294,7 +294,7 @@ sap.ui.define([
294
294
  * @deprecated Since version 1.97.0
295
295
  * This property became obsolete after the deprecation of TinyMCE v3.
296
296
  */
297
- useLegacyTheme: { type: "boolean", group: "Appearance", defaultValue: true },
297
+ useLegacyTheme: { type: "boolean", group: "Appearance", defaultValue: true, deprecated: true },
298
298
 
299
299
  /**
300
300
  * An array of button configurations. These configurations contain the names of buttons as array in the property "buttons" and the name of the group in "name", they can also contain the "row" where the buttons should be placed, a "priority" and whether the buttons are "visible". See method addButtonGroup() for more details on the structure of the objects in this array.
@@ -862,7 +862,7 @@ sap.ui.define([
862
862
  * RichTextEditor.
863
863
  *
864
864
  * @param {object|string} [mPlugin] The plugin ID/name or an object with property "name", containing the ID/name of the plugin
865
- * @returns {object} Control instance (for method chaining)
865
+ * @returns {sap.ui.richtexteditor.RichTextEditor} Control instance (for method chaining)
866
866
  * @public
867
867
  */
868
868
  RichTextEditor.prototype.addPlugin = function (mPlugin) {
@@ -887,7 +887,7 @@ sap.ui.define([
887
887
  * Removes the plugin with the given name/ID from the list of plugins to load
888
888
  *
889
889
  * @param {string} [sPluginName] The name/ID of the plugin to remove
890
- * @returns {object} Control instance (for method chaining)
890
+ * @returns {sap.ui.richtexteditor.RichTextEditor} Control instance (for method chaining)
891
891
  * @public
892
892
  */
893
893
  RichTextEditor.prototype.removePlugin = function(sPluginName) {
@@ -915,7 +915,7 @@ sap.ui.define([
915
915
  * @param {int} [vGroup.row=0] (optional) Row number in which the button should be
916
916
  * @param {int} [vGroup.priority=10] (optional) The priority of the button group. Lower priorities are added first.
917
917
  * @param {int} [vGroup.customToolbarPriority] (optional) The priority of the button group in the custom toolbar. Each default group in the custom toolbar has a predefined <code>customToolbarPriority</code>. Lower priorities are added in first.
918
- * @returns {object} Control instance (for method chaining)
918
+ * @returns {sap.ui.richtexteditor.RichTextEditor} Control instance (for method chaining)
919
919
  * @public
920
920
  */
921
921
  RichTextEditor.prototype.addButtonGroup = function (vGroup) {
@@ -1011,7 +1011,7 @@ sap.ui.define([
1011
1011
  * Removes a button group from the editor.
1012
1012
  *
1013
1013
  * @param {string} [sGroupName] The name of the group to be removed.
1014
- * @returns {object} Control instance (for method chaining)
1014
+ * @returns {sap.ui.richtexteditor.RichTextEditor} Control instance (for method chaining)
1015
1015
  * @public
1016
1016
  */
1017
1017
  RichTextEditor.prototype.removeButtonGroup = function(sGroupName) {
@@ -1035,7 +1035,7 @@ sap.ui.define([
1035
1035
  * Sets the button groups to the editor.
1036
1036
  *
1037
1037
  * @param {array} [aGroups] Array of names or objects containing the group information
1038
- * @returns {object} Control instance (for method chaining)
1038
+ * @returns {sap.ui.richtexteditor.RichTextEditor} Control instance (for method chaining)
1039
1039
  * @public
1040
1040
  */
1041
1041
  RichTextEditor.prototype.setButtonGroups = function (aGroups) {
@@ -1088,7 +1088,7 @@ sap.ui.define([
1088
1088
  * Sets the plugins to the editor.
1089
1089
  *
1090
1090
  * @param {array} [aPlugins] Array of names or objects containing the plugin information
1091
- * @returns {object} Control instance (for method chaining)
1091
+ * @returns {sap.ui.richtexteditor.RichTextEditor} Control instance (for method chaining)
1092
1092
  * @public
1093
1093
  */
1094
1094
  RichTextEditor.prototype.setPlugins = function (aPlugins) {
@@ -1248,7 +1248,7 @@ sap.ui.define([
1248
1248
  * All plugins and button groups should be set after this has been invoked
1249
1249
  *
1250
1250
  * @param {string} [sEditorType] Which editor type to be used (currently only TinyMCE 4, 5 and 6)
1251
- * @returns {object} Control instance (for method chaining)
1251
+ * @returns {sap.ui.richtexteditor.RichTextEditor} Control instance (for method chaining)
1252
1252
  * @public
1253
1253
  */
1254
1254
  RichTextEditor.prototype.setEditorType = function(sEditorType) {
@@ -1259,8 +1259,6 @@ sap.ui.define([
1259
1259
 
1260
1260
  this._setupToolbar();
1261
1261
 
1262
- this.setEditorLocation(EDITOR_LOCATION_MAPPING[this.getEditorType()]);
1263
-
1264
1262
  if (!oEditorMapping[sEditorType]) {
1265
1263
  Log.error('TinyMCE3 is removed now due to security concerns, please do NOT use it anymore. The framework automatically will load TinyMCE4 since v1.60');
1266
1264
  }
@@ -1524,9 +1522,11 @@ sap.ui.define([
1524
1522
  */
1525
1523
  RichTextEditor.prototype.onBeforeRenderingTinyMCE = function() {
1526
1524
  if (this._shouldLoadTinyMCE()) {
1525
+ // fallback to tinymce 4 for now since the editorLocation property used to do so
1526
+ var sEditorLocation = EDITOR_LOCATION_MAPPING[this.getEditorType()] || EDITOR_LOCATION_MAPPING[RichTextEditor.EDITORTYPE_TINYMCE4];
1527
1527
  // Load TinyMCE component
1528
1528
  this._tinyMCEStatus = EditorStatus.Loading;
1529
- this._pTinyMCELoaded = RichTextEditor.loadTinyMCE(this.getEditorLocation()).then(function() {
1529
+ this._pTinyMCELoaded = RichTextEditor.loadTinyMCE(sEditorLocation).then(function() {
1530
1530
  this._tinyMCEStatus = EditorStatus.Loaded;
1531
1531
  }.bind(this));
1532
1532
  } else {
@@ -34,7 +34,7 @@ sap.ui.define([
34
34
  "sap.ui.richtexteditor.RTESplitButton"
35
35
  ],
36
36
  elements: [],
37
- version: "1.110.0"
37
+ version: "1.111.0"
38
38
  });
39
39
 
40
40
  /**