devexpress-richedit 23.2.13 → 23.2.14

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/bin/gulpfile.js CHANGED
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * DevExpress WebRichEdit (gulpfile.js)
3
- * Version: 23.2.13
3
+ * Version: 23.2.14
4
4
  * Copyright (c) 2012 - 2025 Developer Express Inc. ALL RIGHTS RESERVED
5
5
  * License: https://www.devexpress.com/Support/EULAs
6
6
  */
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * DevExpress WebRichEdit (index-custom.js)
3
- * Version: 23.2.13
3
+ * Version: 23.2.14
4
4
  * Copyright (c) 2012 - 2025 Developer Express Inc. ALL RIGHTS RESERVED
5
5
  * License: https://www.devexpress.com/Support/EULAs
6
6
  */
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * DevExpress WebRichEdit (localization-builder.js)
3
- * Version: 23.2.13
3
+ * Version: 23.2.14
4
4
  * Copyright (c) 2012 - 2025 Developer Express Inc. ALL RIGHTS RESERVED
5
5
  * License: https://www.devexpress.com/Support/EULAs
6
6
  */
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * DevExpress WebRichEdit (nspell-index.js)
3
- * Version: 23.2.13
3
+ * Version: 23.2.14
4
4
  * Copyright (c) 2012 - 2025 Developer Express Inc. ALL RIGHTS RESERVED
5
5
  * License: https://www.devexpress.com/Support/EULAs
6
6
  */
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * DevExpress WebRichEdit (nspell.webpack.config.js)
3
- * Version: 23.2.13
3
+ * Version: 23.2.14
4
4
  * Copyright (c) 2012 - 2025 Developer Express Inc. ALL RIGHTS RESERVED
5
5
  * License: https://www.devexpress.com/Support/EULAs
6
6
  */
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * DevExpress WebRichEdit (webpack-externals.js)
3
- * Version: 23.2.13
3
+ * Version: 23.2.14
4
4
  * Copyright (c) 2012 - 2025 Developer Express Inc. ALL RIGHTS RESERVED
5
5
  * License: https://www.devexpress.com/Support/EULAs
6
6
  */
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * DevExpress WebRichEdit (webpack.config.js)
3
- * Version: 23.2.13
3
+ * Version: 23.2.14
4
4
  * Copyright (c) 2012 - 2025 Developer Express Inc. ALL RIGHTS RESERVED
5
5
  * License: https://www.devexpress.com/Support/EULAs
6
6
  */
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * DevExpress WebRichEdit (client.d.ts)
3
- * Version: 23.2.13
3
+ * Version: 23.2.14
4
4
  * Copyright (c) 2012 - 2025 Developer Express Inc. ALL RIGHTS RESERVED
5
5
  * License: https://www.devexpress.com/Support/EULAs
6
6
  */
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * DevExpress WebRichEdit (dx.richedit.js)
3
- * Version: 23.2.13
3
+ * Version: 23.2.14
4
4
  * Copyright (c) 2012 - 2025 Developer Express Inc. ALL RIGHTS RESERVED
5
5
  * License: https://www.devexpress.com/Support/EULAs
6
6
  */
@@ -5224,21 +5224,6 @@ var DomUtils = (function () {
5224
5224
  function getAbsolutePositionY_FF3(element) {
5225
5225
  return Math.round(element.getBoundingClientRect().top + DomUtils.getDocumentScrollTop());
5226
5226
  }
5227
- function getAbsolutePositionY_Opera(curEl) {
5228
- var isFirstCycle = true;
5229
- if (curEl && DomUtils.isHTMLTableRowElement(curEl) && curEl.cells.length > 0)
5230
- curEl = curEl.cells[0];
5231
- var pos = getAbsoluteScrollOffset_OperaFF(curEl, false);
5232
- while (curEl != null) {
5233
- pos += curEl.offsetTop;
5234
- if (!isFirstCycle)
5235
- pos -= curEl.scrollTop;
5236
- curEl = curEl.offsetParent;
5237
- isFirstCycle = false;
5238
- }
5239
- pos += document.body.scrollTop;
5240
- return pos;
5241
- }
5242
5227
  function getAbsolutePositionY_NS(curEl) {
5243
5228
  var pos = getAbsoluteScrollOffset_OperaFF(curEl, false);
5244
5229
  var isFirstCycle = true;
@@ -5274,8 +5259,6 @@ var DomUtils = (function () {
5274
5259
  return getAbsolutePositionY_IE(element);
5275
5260
  else if (browser_1.Browser.Firefox && browser_1.Browser.Version >= 3)
5276
5261
  return getAbsolutePositionY_FF3(element);
5277
- else if (browser_1.Browser.Opera)
5278
- return getAbsolutePositionY_Opera(element);
5279
5262
  else if (browser_1.Browser.NetscapeFamily && (!browser_1.Browser.Firefox || browser_1.Browser.Version < 3))
5280
5263
  return getAbsolutePositionY_NS(element);
5281
5264
  else if (browser_1.Browser.WebKitFamily || browser_1.Browser.Edge)
@@ -5537,9 +5520,9 @@ var EncodeUtils = (function () {
5537
5520
  };
5538
5521
  EncodeUtils.decodeHtml = function (text) {
5539
5522
  return text
5540
- .replace(/&amp;/g, '&')
5541
5523
  .replace(/&lt;/g, '<')
5542
- .replace(/&gt;/g, '>');
5524
+ .replace(/&gt;/g, '>')
5525
+ .replace(/&amp;/g, '&');
5543
5526
  };
5544
5527
  EncodeUtils.prepareTextForRequest = function (text) {
5545
5528
  return text
@@ -7102,10 +7085,11 @@ exports.MathUtils = MathUtils;
7102
7085
 
7103
7086
  var _a, _b, _c;
7104
7087
  Object.defineProperty(exports, "__esModule", ({ value: true }));
7105
- exports.MimeTypeUtils = exports.DxMimeType = exports.ImageWebpMimeType = exports.ImageWbmpMimeType = exports.ImageIcoMimeType = exports.ImageTiffMimeType = exports.ImageSvgMimeType = exports.ImagePjpegMimeType = exports.ImageJpegMimeType = exports.ImageGifMimeType = exports.ImagePngMimeType = exports.DocmMimeType = exports.PlainTextMimeType = exports.RtfMimeType = exports.OpenXmlMimeType = void 0;
7088
+ exports.MimeTypeUtils = exports.DxMimeType = exports.ImageWebpMimeType = exports.ImageWbmpMimeType = exports.ImageIcoMimeType = exports.ImageTiffMimeType = exports.ImageSvgMimeType = exports.ImagePjpegMimeType = exports.ImageJpegMimeType = exports.ImageGifMimeType = exports.ImagePngMimeType = exports.DocmMimeType = exports.HtmlMimeType = exports.PlainTextMimeType = exports.RtfMimeType = exports.OpenXmlMimeType = void 0;
7106
7089
  exports.OpenXmlMimeType = 'application/vnd.openxmlformats-officedocument.wordprocessingml.document';
7107
7090
  exports.RtfMimeType = 'application/rtf';
7108
7091
  exports.PlainTextMimeType = 'text/plain';
7092
+ exports.HtmlMimeType = 'text/html';
7109
7093
  exports.DocmMimeType = 'application/vnd.ms-word.document.macroEnabled.12';
7110
7094
  exports.ImagePngMimeType = 'image/png';
7111
7095
  exports.ImageGifMimeType = 'image/gif';
@@ -7132,6 +7116,7 @@ var DxMimeType;
7132
7116
  DxMimeType[DxMimeType["Ico"] = 11] = "Ico";
7133
7117
  DxMimeType[DxMimeType["Wbmp"] = 12] = "Wbmp";
7134
7118
  DxMimeType[DxMimeType["Webp"] = 13] = "Webp";
7119
+ DxMimeType[DxMimeType["Html"] = 14] = "Html";
7135
7120
  })(DxMimeType = exports.DxMimeType || (exports.DxMimeType = {}));
7136
7121
  var MimeTypeUtils = (function () {
7137
7122
  function MimeTypeUtils() {
@@ -7164,6 +7149,7 @@ var MimeTypeUtils = (function () {
7164
7149
  _a[exports.RtfMimeType] = DxMimeType.Rtf,
7165
7150
  _a[exports.PlainTextMimeType] = DxMimeType.PlainText,
7166
7151
  _a[exports.DocmMimeType] = DxMimeType.Docm,
7152
+ _a[exports.HtmlMimeType] = DxMimeType.Html,
7167
7153
  _a[exports.ImagePngMimeType] = DxMimeType.Png,
7168
7154
  _a[exports.ImageGifMimeType] = DxMimeType.Gif,
7169
7155
  _a[exports.ImageJpegMimeType] = DxMimeType.Jpeg,
@@ -7180,6 +7166,7 @@ var MimeTypeUtils = (function () {
7180
7166
  _b[DxMimeType.Rtf] = exports.RtfMimeType,
7181
7167
  _b[DxMimeType.PlainText] = exports.PlainTextMimeType,
7182
7168
  _b[DxMimeType.Docm] = exports.DocmMimeType,
7169
+ _b[DxMimeType.Html] = exports.HtmlMimeType,
7183
7170
  _b[DxMimeType.Png] = exports.ImagePngMimeType,
7184
7171
  _b[DxMimeType.Gif] = exports.ImageGifMimeType,
7185
7172
  _b[DxMimeType.Jpeg] = exports.ImageJpegMimeType,
@@ -7196,6 +7183,7 @@ var MimeTypeUtils = (function () {
7196
7183
  _c[DxMimeType.Rtf] = '.rtf',
7197
7184
  _c[DxMimeType.PlainText] = '.txt',
7198
7185
  _c[DxMimeType.Docm] = '.docm',
7186
+ _c[DxMimeType.Html] = '.html',
7199
7187
  _c[DxMimeType.Png] = '.png',
7200
7188
  _c[DxMimeType.Gif] = '.gif',
7201
7189
  _c[DxMimeType.Jpeg] = '.jpeg',
@@ -7211,6 +7199,8 @@ var MimeTypeUtils = (function () {
7211
7199
  '.rtf': DxMimeType.Rtf,
7212
7200
  '.txt': DxMimeType.PlainText,
7213
7201
  '.docm': DxMimeType.Docm,
7202
+ '.html': DxMimeType.Html,
7203
+ '.htm': DxMimeType.Html,
7214
7204
  '.png': DxMimeType.Png,
7215
7205
  '.gif': DxMimeType.Gif,
7216
7206
  '.jpeg': DxMimeType.Jpeg,
@@ -58321,7 +58311,7 @@ class TextDestination extends ElementDestination {
58321
58311
  return true;
58322
58312
  }
58323
58313
  replaceLineBreakOnSpace(text) {
58324
- return text.replace('\n', ' ');
58314
+ return text.replace(/\n/g, ' ');
58325
58315
  }
58326
58316
  }
58327
58317
 
@@ -61139,7 +61129,7 @@ class ListLevelFormatStringDestination extends ListLevelElementDestination {
61139
61129
  }
61140
61130
  convertFormatString(value) {
61141
61131
  const regex = new RegExp(/%\d/);
61142
- let result = value.replace('{', '{{').replace('}', '}}');
61132
+ let result = value.replace(/{/g, '{{').replace(/}/g, '}}');
61143
61133
  let match = result.match(regex);
61144
61134
  if (match) {
61145
61135
  do {
@@ -69972,8 +69962,8 @@ class ListLevelDisplayTextHelper {
69972
69962
  static getTextRange(placeholderIndices, startPlaceHolderIndex, text) {
69973
69963
  var index = placeholderIndices[startPlaceHolderIndex] + 1;
69974
69964
  var result = text.substr(index, placeholderIndices[startPlaceHolderIndex + 1] - index);
69975
- result = result.replace("{", "{{");
69976
- result = result.replace("}", "}}");
69965
+ result = result.replace(/{/g, "{{");
69966
+ result = result.replace(/}/g, "}}");
69977
69967
  return result;
69978
69968
  }
69979
69969
  }
@@ -88640,9 +88630,9 @@ class RelationsBaseExporter extends ExporterBaseWithRootElement {
88640
88630
  urlEncodeAsciiSpecialSymbols(url) {
88641
88631
  if (url) {
88642
88632
  if (url.indexOf(' ') >= 0)
88643
- url = url.replace(' ', '%20');
88633
+ url = url.replace(/ /g, '%20');
88644
88634
  if (url.indexOf('\'') >= 0)
88645
- url = url.replace("\'", '%27');
88635
+ url = url.replace(/'/g, '%27');
88646
88636
  }
88647
88637
  return url;
88648
88638
  }
@@ -101727,7 +101717,7 @@ class HtmlImporter {
101727
101717
  html = html.replace(/<o:[pP][^>]*>\s*<\/o:[pP]>/gi, '');
101728
101718
  html = html.replace(/<o:[pP][^>]*>.*?<\/o:[pP]>/gi, '&nbsp;');
101729
101719
  html = html.replace(/<st1:.*?>/gi, '');
101730
- html = html.replace(/<\!--[\s\S]*?-->/g, '');
101720
+ html = html.replace(/<!--[\s\S]*?(-->|$)/g, '');
101731
101721
  html = html.replace(/\s*style="\s*"/gi, '');
101732
101722
  html = html.replace(/style=""/ig, "");
101733
101723
  html = html.replace(/style=''/ig, "");
@@ -101770,7 +101760,7 @@ class HtmlImporter {
101770
101760
  html = html.replace(/\n/gi, RichUtils.specialCharacters.LineBreak);
101771
101761
  html = html.replace(/(<\/(?!(p)+)(\s*[^>]*)?>)<\/td>/gi, '$1<p>&nbsp;</p></td>');
101772
101762
  html = html.replace(/(<\/(?!(p)+)(\s*[^>]*)?>)<\/th>/gi, '$1<p>&nbsp;</p></th>');
101773
- html = html.replace(/<script(\s[^>]*)?>[\s\S]*?<\/script>/gi, '');
101763
+ html = html.replace(/<script\b[^>]*>[\s\S]*?(<\/script\b[^>]*>|$)/gi, '');
101774
101764
  html = html.replace(/<u>([\s\S]*?)<\/u>/gi, '<span style="text-decoration: underline">$1</span>');
101775
101765
  html = html.replace(/<s>([\s\S]*?)<\/s>/gi, '<span style="text-decoration: line-through">$1</span>');
101776
101766
  html = html.replace(/<\/([^\s>]+)(\s[^>]*)?><br><\/([^\s>]+)(\s[^>]*)?>/gi, '');
@@ -110874,7 +110864,7 @@ class HtmlExporter {
110874
110864
  .configure((el) => {
110875
110865
  el.setAttribute('border', '1');
110876
110866
  el.style.cssText = 'border-width: 0px; border-collapse: collapse; border-spacing: 0px;';
110877
- el.setAttribute('id', guidLabel.replace("id=\"", "").replace("\"", ""));
110867
+ el.setAttribute('id', guidLabel.replace(/id="/g, "").replace(/"/g, ""));
110878
110868
  })
110879
110869
  .startChild('tbody')
110880
110870
  .startChild('tr')
@@ -112003,7 +111993,7 @@ class InputController {
112003
111993
  }
112004
111994
  static getCopyPasteHtmlContentForEditable(html, guidLabel) {
112005
111995
  const builder = new HtmlBuilder();
112006
- const id = guidLabel.replace("id=\"", "").replace("\"", "");
111996
+ const id = guidLabel.replace(/id="/g, "").replace(/"/g, "");
112007
111997
  builder
112008
111998
  .startChild('a')
112009
111999
  .configure((el) => {
@@ -142602,7 +142592,7 @@ class ClientRichEdit {
142602
142592
  this.contextMenuSettings = settings.contextMenuSettings;
142603
142593
  this.fullScreenHelper = new FullScreenHelper(element);
142604
142594
  if (true)
142605
- external_DevExpress_config_default()(JSON.parse(atob('eyJsaWNlbnNlS2V5IjoiZXdvZ0lDSm1iM0p0WVhRaU9pQXhMQW9nSUNKcGJuUmxjbTVoYkZWellXZGxTV1FpT2lBaVIwaDVTak5RVUVwRGJqVXlZVFJ1WWxOb1lraGhVU0lLZlE9PS5TV1o5SjNoSUxuQkowSmVaNnFXdWRnR3hIRTAxQkRRNitUUjJOQk55QStxcTc1dDRnYWt5VGJXdDhkTUlLNHBnVTM2dWNXOW53S0lIYUFVL1JyR1NqcWFtOGVZbEdYQXBKSGNoV2dMUTFVZU05NndtTGRSemJYbHcxZDNRS2RNUFNDZ0tWZz09In0=')));
142595
+ external_DevExpress_config_default()(JSON.parse(atob('eyJsaWNlbnNlS2V5IjoiZXdvZ0lDSm1iM0p0WVhRaU9pQXhMQW9nSUNKcGJuUmxjbTVoYkZWellXZGxTV1FpT2lBaVpUSllVazB6V1RsVWVIVmtUREo0YW5kRVNEbHVheUlLZlE9PS5jdnQwaS9sOWdwQVh3WGFiZTE2c0xXU2cwN3BhbVJDYzNUM3dLRXcyZ3Uvdjk3cm1HMEV4K2hjMmU2WmVieVJmNjJzb3A4R3RGMStucUplSHl0dUJsaUEvK096bEd6dXQxWGNvZWEzbXIvK29LNktVUFNyd2xWSlBXRHpYV1dBNm9RZWZPZz09In0=')));
142606
142596
  this.prepareElement(element, settings);
142607
142597
  this.initDefaultFontsAndStyles();
142608
142598
  this.initBars(settings.ribbon, settings.fonts);