@syncfusion/ej2-richtexteditor 25.2.5 → 25.2.7

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.
@@ -13310,7 +13310,7 @@ var Lists = /** @__PURE__ @class */ (function () {
13310
13310
  e.event.preventDefault();
13311
13311
  }
13312
13312
  };
13313
- Lists.prototype.onKeyUp = function () {
13313
+ Lists.prototype.onKeyUp = function (e) {
13314
13314
  if (!isNullOrUndefined(this.commonLIParent) && !isNullOrUndefined(this.commonLIParent.querySelector('.removeList'))) {
13315
13315
  var currentLIElem = this.commonLIParent.querySelector('.removeList');
13316
13316
  while (!isNullOrUndefined(currentLIElem.firstChild)) {
@@ -13318,6 +13318,14 @@ var Lists = /** @__PURE__ @class */ (function () {
13318
13318
  }
13319
13319
  detach(currentLIElem);
13320
13320
  }
13321
+ if (e.event.keyCode === 13) {
13322
+ var listElements = this.parent.editableElement.querySelectorAll('UL, OL');
13323
+ for (var i = 0; i < listElements.length; i++) {
13324
+ if (!isNullOrUndefined(listElements[i]) && !isNullOrUndefined(listElements[i].parentElement) && !isNullOrUndefined(listElements[i].previousElementSibling) && (listElements[i].parentElement.nodeName === 'UL' || listElements[i].parentElement.nodeName === 'OL')) {
13325
+ listElements[i].previousElementSibling.appendChild(listElements[i]);
13326
+ }
13327
+ }
13328
+ }
13321
13329
  };
13322
13330
  // eslint-disable-next-line @typescript-eslint/no-unused-vars
13323
13331
  Lists.prototype.firstListBackSpace = function (range, _e) {
@@ -13559,6 +13567,8 @@ var Lists = /** @__PURE__ @class */ (function () {
13559
13567
  else {
13560
13568
  if (prevSibling.tagName === 'LI') {
13561
13569
  var nestedElement = createElement(elements[i].parentNode.tagName);
13570
+ nestedElement.style.listStyleType =
13571
+ elements[i].parentNode.style.listStyleType;
13562
13572
  append([nestedElement], prevSibling);
13563
13573
  append([elements[i]], nestedElement);
13564
13574
  }
@@ -13665,7 +13675,7 @@ var Lists = /** @__PURE__ @class */ (function () {
13665
13675
  }
13666
13676
  var elemAtt = void 0;
13667
13677
  elements[i].style.removeProperty('margin-left');
13668
- elemAtt = elements[i].tagName === 'IMG' ? '' : this.domNode.attributes(elements[i]);
13678
+ elemAtt = elements[i].tagName === 'IMG' || elements[i].classList.contains('e-editor-select-start') ? '' : this.domNode.attributes(elements[i]);
13669
13679
  if (elements[i].getAttribute('contenteditable') === 'true'
13670
13680
  && elements[i].childNodes.length === 1 && elements[i].childNodes[0].nodeName === 'TABLE') {
13671
13681
  var listEle = document.createElement(type);
@@ -13786,6 +13796,13 @@ var Lists = /** @__PURE__ @class */ (function () {
13786
13796
  for (var c = 0; c < liParents.length; c++) {
13787
13797
  var node = liParents[c];
13788
13798
  var toFindtopOlUl = true;
13799
+ var containsListElements = node;
13800
+ while (containsListElements.parentElement) {
13801
+ if (containsListElements.parentElement && containsListElements.parentElement.tagName !== 'LI' && containsListElements.parentElement.tagName !== 'OL' && containsListElements.parentElement.tagName !== 'UL') {
13802
+ break;
13803
+ }
13804
+ containsListElements = containsListElements.parentElement;
13805
+ }
13789
13806
  if (toFindtopOlUl && (liParents[c].parentElement.parentElement.nodeName === 'OL' || liParents[c].parentElement.parentElement.nodeName === 'UL')) {
13790
13807
  toFindtopOlUl = false;
13791
13808
  var preElement = liParents[c].parentElement.parentElement;
@@ -13805,9 +13822,43 @@ var Lists = /** @__PURE__ @class */ (function () {
13805
13822
  node.previousElementSibling.lastChild.append(node);
13806
13823
  }
13807
13824
  }
13825
+ else if (this.domNode.isList(node.previousElementSibling) && containsListElements.contains(node.previousElementSibling) && ((node.tagName === 'OL' || node.tagName === 'UL') && (node.previousElementSibling.nodeName === 'OL' || node.previousElementSibling.nodeName === 'UL'))) {
13826
+ var contentNodes = this.domNode.contents(node);
13827
+ for (var f = 0; f < contentNodes.length; f++) {
13828
+ node.previousElementSibling.appendChild(contentNodes[f]);
13829
+ }
13830
+ node.parentNode.removeChild(node);
13831
+ }
13808
13832
  }
13809
13833
  if (firstNodeOL) {
13810
13834
  firstNodeOL.style.listStyleType = listStyleType;
13835
+ var range = this.parent.nodeSelection.getRange(this.parent.currentDocument);
13836
+ var listOlUlElements = [];
13837
+ if (range.commonAncestorContainer.nodeName === 'UL' || range.commonAncestorContainer.nodeName === 'OL') {
13838
+ if (range.commonAncestorContainer instanceof Element) {
13839
+ listOlUlElements.push(range.commonAncestorContainer);
13840
+ }
13841
+ listOlUlElements = listOlUlElements.concat(Array.from(range.commonAncestorContainer.querySelectorAll('ol, ul')));
13842
+ }
13843
+ else {
13844
+ listOlUlElements = Array.from(range.commonAncestorContainer.querySelectorAll('ol, ul'));
13845
+ }
13846
+ for (var k = 0; k < listOlUlElements.length; k++) {
13847
+ var listStyle = void 0;
13848
+ var listElements = listOlUlElements[k];
13849
+ while (listElements) {
13850
+ if (listElements.nodeName === 'OL' || listElements.nodeName === 'OL') {
13851
+ if (listElements.style.listStyleType !== '' && listElements.style.listStyleType !== 'none' && listElements.nodeName !== 'LI') {
13852
+ listStyle = listElements.style.listStyleType;
13853
+ }
13854
+ else if (!isNullOrUndefined(listStyle) && (listElements.style.listStyleType === '' || listElements.style.listStyleType === 'none') &&
13855
+ listElements.nodeName !== 'LI' && (listElements.nodeName === 'UL' || listElements.nodeName === 'OL')) {
13856
+ listElements.style.listStyleType = listStyle;
13857
+ }
13858
+ }
13859
+ listElements = listElements.querySelector('UL,OL');
13860
+ }
13861
+ }
13811
13862
  }
13812
13863
  };
13813
13864
  Lists.prototype.findUnSelected = function (temp, elements) {
@@ -14744,6 +14795,9 @@ var InsertHtml = /** @__PURE__ @class */ (function () {
14744
14795
  this.insertTableInList(range, node, closestParentNode, nodes[0], nodeCutter);
14745
14796
  return;
14746
14797
  }
14798
+ if (isCursor && range.startContainer.textContent === '' && range.startContainer.nodeName !== 'BR' && enterAction !== 'BR' && node.nodeName !== '#text' && !isNullOrUndefined(node.children[0]) && !isNullOrUndefined(node.children[0].tagName) && node.children[0].tagName === 'IMG' && node.children.length === 1) {
14799
+ range.startContainer.innerHTML = '';
14800
+ }
14747
14801
  if (isExternal || (!isNullOrUndefined(node) && !isNullOrUndefined(node.classList) &&
14748
14802
  node.classList.contains('pasteContent'))) {
14749
14803
  this.pasteInsertHTML(nodes, node, range, nodeSelection, nodeCutter, docElement, isCollapsed, closestParentNode, editNode, enterAction);
@@ -20061,7 +20115,7 @@ var MsWordPaste = /** @__PURE__ @class */ (function () {
20061
20115
  !isNormalList) {
20062
20116
  prevList = null;
20063
20117
  }
20064
- var pElement = createElement('p', { className: 'MsoNormal' });
20118
+ var pElement = createElement('p', { className: 'MsoNoSpacing' });
20065
20119
  pElement.innerHTML = collection[index].content.join(' ');
20066
20120
  if ((collection[index].nestedLevel === 1) &&
20067
20121
  (listCount === 0 || lfo !== collection[index].listFormatOverride) &&
@@ -22034,7 +22088,7 @@ var HtmlEditor = /** @__PURE__ @class */ (function () {
22034
22088
  var range = this.nodeSelectionObj.getRange(this.contentRenderer.getDocument());
22035
22089
  var parentNode = this.nodeSelectionObj.getParentNodeCollection(range);
22036
22090
  if (!((parentNode[0].nodeName === 'LI' || closest(parentNode[0], 'li') ||
22037
- closest(parentNode[0], 'table')) && range.startOffset === 0)) {
22091
+ closest(parentNode[0], 'table')))) {
22038
22092
  args.preventDefault();
22039
22093
  var selection = this.contentRenderer.getDocument().getSelection().getRangeAt(0);
22040
22094
  var alignmentNodes = this.parent.formatter.editorManager.domNode.blockNodes();
@@ -23423,7 +23477,8 @@ var PasteCleanup = /** @__PURE__ @class */ (function () {
23423
23477
  clipBoardElem = this.allowedStyle(clipBoardElem);
23424
23478
  }
23425
23479
  this.saveSelection.restore();
23426
- clipBoardElem.innerHTML = this.sanitizeHelper(clipBoardElem.innerHTML);
23480
+ var newText = clipBoardElem.innerHTML.split("&").join("&amp;");
23481
+ clipBoardElem.innerHTML = this.sanitizeHelper(newText);
23427
23482
  var allImg = clipBoardElem.querySelectorAll('img');
23428
23483
  for (var i = 0; i < allImg.length; i++) {
23429
23484
  if (!isNullOrUndefined(allImg[i].getAttribute('src'))) {
@@ -26808,13 +26863,13 @@ var Image$1 = /** @__PURE__ @class */ (function () {
26808
26863
  selectParentEle = this.parent.formatter.editorManager.nodeSelection.getParentNodeCollection(range);
26809
26864
  if (!originalEvent.ctrlKey && originalEvent.key && (originalEvent.key.length === 1 || originalEvent.action === 'enter') &&
26810
26865
  (!isNullOrUndefined(selectParentEle[0]) && selectParentEle[0].tagName === 'IMG') && selectParentEle[0].parentElement) {
26811
- var prev = selectParentEle[0].parentElement.childNodes[0];
26812
26866
  if (this.contentModule.getEditPanel().querySelector('.e-img-resize')) {
26813
26867
  this.removeResizeEle();
26814
26868
  }
26815
- this.parent.formatter.editorManager.nodeSelection.setSelectionText(this.contentModule.getDocument(), prev, prev, prev.textContent.length, prev.textContent.length);
26816
26869
  removeClass([selectParentEle[0]], 'e-img-focus');
26817
- this.quickToolObj.imageQTBar.hidePopup();
26870
+ if (this.quickToolObj && this.quickToolObj.imageQTBar) {
26871
+ this.quickToolObj.imageQTBar.hidePopup();
26872
+ }
26818
26873
  }
26819
26874
  }
26820
26875
  if (originalEvent.ctrlKey && (originalEvent.keyCode === 89 || originalEvent.keyCode === 90)) {
@@ -27580,7 +27635,12 @@ var Image$1 = /** @__PURE__ @class */ (function () {
27580
27635
  animationSettings: { effect: 'None' },
27581
27636
  close: function (event) {
27582
27637
  if (_this.isImgUploaded) {
27583
- _this.uploadObj.remove();
27638
+ if (_this.dialogObj.element.querySelector('.e-file-abort-btn')) {
27639
+ _this.dialogObj.element.querySelector('.e-file-abort-btn').click();
27640
+ }
27641
+ else {
27642
+ _this.uploadObj.remove();
27643
+ }
27584
27644
  }
27585
27645
  _this.parent.isBlur = false;
27586
27646
  if (event && !isNullOrUndefined(event.event) && event.event.returnValue) {
@@ -29100,7 +29160,12 @@ var Audio = /** @__PURE__ @class */ (function () {
29100
29160
  animationSettings: { effect: 'None' },
29101
29161
  close: function (event) {
29102
29162
  if (_this.isAudioUploaded) {
29103
- _this.uploadObj.removing();
29163
+ if (_this.dialogObj.element.querySelector('.e-file-abort-btn')) {
29164
+ _this.dialogObj.element.querySelector('.e-file-abort-btn').click();
29165
+ }
29166
+ else {
29167
+ _this.uploadObj.remove();
29168
+ }
29104
29169
  }
29105
29170
  _this.parent.isBlur = false;
29106
29171
  if (event && !isNullOrUndefined(event.event) && event.event.returnValue) {
@@ -30460,7 +30525,12 @@ var Video = /** @__PURE__ @class */ (function () {
30460
30525
  animationSettings: { effect: 'None' },
30461
30526
  close: function (event) {
30462
30527
  if (_this.isVideoUploaded) {
30463
- _this.uploadObj.removing();
30528
+ if (_this.dialogObj.element.querySelector('.e-file-abort-btn')) {
30529
+ _this.dialogObj.element.querySelector('.e-file-abort-btn').click();
30530
+ }
30531
+ else {
30532
+ _this.uploadObj.remove();
30533
+ }
30464
30534
  }
30465
30535
  _this.parent.isBlur = false;
30466
30536
  if (event && !isNullOrUndefined(event.event) && event.event.returnValue) {
@@ -33775,16 +33845,18 @@ var EnterKeyAction = /** @__PURE__ @class */ (function () {
33775
33845
  this.getRangeNode();
33776
33846
  var isTableEnter = true;
33777
33847
  this.formatTags = ['h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'blockquote'];
33778
- var isCursorAtTableEnd = this.range.collapsed && (this.range.startContainer.nodeType === 1) &&
33779
- this.range.startContainer.isContentEditable &&
33780
- this.range.startContainer.childNodes[this.range.startOffset - 1] &&
33781
- this.range.startContainer.childNodes[this.range.startOffset - 1].nodeName === 'TABLE';
33782
- var isCursorAtTableStart = this.range.collapsed && (this.range.startContainer.nodeType === 1) &&
33783
- this.range.startContainer.isContentEditable && this.range.startContainer.childNodes[this.range.startOffset] &&
33784
- this.range.startContainer.childNodes[this.range.startOffset].nodeName === 'TABLE';
33785
- if (isCursorAtTableEnd || isCursorAtTableStart) {
33786
- this.handleCursorAtTableSide(e, isCursorAtTableStart, isCursorAtTableEnd);
33787
- return;
33848
+ var tableImagCursor = this.processedTableImageCursor();
33849
+ if (tableImagCursor.start || tableImagCursor.end) {
33850
+ if (tableImagCursor.startName === 'TABLE' || tableImagCursor.endName === 'TABLE') { // Default browser action prevented and hanled manually.
33851
+ this.handleCursorAtTableSide(e, tableImagCursor.start, tableImagCursor.end);
33852
+ return;
33853
+ }
33854
+ }
33855
+ if (tableImagCursor.start || tableImagCursor.end || this.range.startContainer.nodeName === 'IMG') {
33856
+ if (this.parent.enterKey === 'BR' && (tableImagCursor.startName === 'IMG' || tableImagCursor.endName === 'IMG' || this.range.startContainer.nodeName === 'IMG')) { // Default browser action prevented and hanled manually.
33857
+ this.handleEnterKeyAtImageSide(e, tableImagCursor.start, tableImagCursor.end);
33858
+ return;
33859
+ }
33788
33860
  }
33789
33861
  if (!isNullOrUndefined(this.startNode.closest('TABLE')) && !isNullOrUndefined(this.endNode.closest('TABLE'))) {
33790
33862
  isTableEnter = false;
@@ -34152,7 +34224,6 @@ var EnterKeyAction = /** @__PURE__ @class */ (function () {
34152
34224
  var outerBRElem = _this.parent.createElement('br');
34153
34225
  if (_this.range.startOffset === 0 && _this.range.endOffset === 0 &&
34154
34226
  !isNullOrUndefined(currentParent.previousSibling) && currentParent.previousSibling.nodeName === 'BR' && currentParent.nodeName !== 'P' && currentParent.nodeName !== 'DIV') {
34155
- // eslint-disable-next-line @typescript-eslint/no-unused-vars
34156
34227
  newElem = _this.parent.formatter.editorManager.nodeCutter.SplitNode(_this.range, currentParent, false).cloneNode(true);
34157
34228
  _this.parent.formatter.editorManager.domNode.insertAfter(outerBRElem, currentParent);
34158
34229
  _this.insertFocusContent();
@@ -34182,7 +34253,7 @@ var EnterKeyAction = /** @__PURE__ @class */ (function () {
34182
34253
  }
34183
34254
  e.args.preventDefault();
34184
34255
  }
34185
- _this.parent.trigger(actionComplete, { requestType: shiftKey_1 ? 'ShiftEnterAction' : 'EnterAction', args: e.args });
34256
+ _this.triggerActionComplete(e, shiftKey_1);
34186
34257
  }
34187
34258
  });
34188
34259
  }
@@ -34252,6 +34323,9 @@ var EnterKeyAction = /** @__PURE__ @class */ (function () {
34252
34323
  }
34253
34324
  return insertElem;
34254
34325
  };
34326
+ EnterKeyAction.prototype.triggerActionComplete = function (e, shiftKey) {
34327
+ this.parent.trigger(actionComplete, { requestType: shiftKey ? 'ShiftEnterAction' : 'EnterAction', args: e.args });
34328
+ };
34255
34329
  EnterKeyAction.prototype.handleCursorAtTableSide = function (e, isStart, isEnd) {
34256
34330
  var _this = this;
34257
34331
  if (this.parent.enterKey !== 'BR') {
@@ -34282,11 +34356,92 @@ var EnterKeyAction = /** @__PURE__ @class */ (function () {
34282
34356
  }
34283
34357
  _this.parent.formatter.editorManager.nodeSelection.setCursorPoint(_this.parent.contentModule.getDocument(), newElement, 0);
34284
34358
  e.args.preventDefault();
34285
- _this.parent.trigger(actionComplete, { requestType: shiftKey_2 ? 'ShiftEnterAction' : 'EnterAction', args: e.args });
34359
+ _this.triggerActionComplete(e, shiftKey_2);
34286
34360
  }
34287
34361
  });
34288
34362
  }
34289
34363
  };
34364
+ EnterKeyAction.prototype.handleEnterKeyAtImageSide = function (e, isStart, isEnd) {
34365
+ var _this = this;
34366
+ var actionBeginArgs = {
34367
+ cancel: false,
34368
+ name: actionBegin,
34369
+ requestType: e.args.shiftKey ? 'ShiftEnterAction' : 'EnterAction',
34370
+ originalEvent: e.args
34371
+ };
34372
+ var directRange = false;
34373
+ if (this.range.startContainer.nodeName === 'IMG' && this.range.startOffset === 0) {
34374
+ directRange = true;
34375
+ }
34376
+ this.parent.trigger(actionBegin, actionBeginArgs, function (actionBeginArgs) {
34377
+ if (!actionBeginArgs.cancel) {
34378
+ if (_this.parent.enterKey === 'BR') {
34379
+ var newElement = _this.parent.createElement('BR');
34380
+ var imageElement = void 0;
34381
+ if (directRange) {
34382
+ imageElement = _this.range.startContainer;
34383
+ imageElement.parentElement.insertBefore(newElement, imageElement);
34384
+ _this.parent.formatter.editorManager.nodeSelection.
34385
+ setCursorPoint(_this.parent.contentModule.getDocument(), imageElement, 0);
34386
+ }
34387
+ if (isStart) {
34388
+ imageElement = _this.range.startContainer.childNodes[_this.range.startOffset];
34389
+ imageElement.parentElement.insertBefore(newElement, imageElement);
34390
+ _this.parent.formatter.editorManager.nodeSelection.
34391
+ setCursorPoint(_this.parent.contentModule.getDocument(), imageElement, 0);
34392
+ }
34393
+ if (isEnd) {
34394
+ imageElement = _this.range.startContainer.childNodes[_this.range.startOffset - 1];
34395
+ if (!isNullOrUndefined(imageElement.nextSibling)) {
34396
+ imageElement.parentElement.insertBefore(newElement, imageElement.nextSibling);
34397
+ _this.parent.formatter.editorManager.nodeSelection.setCursorPoint(_this.parent.contentModule.getDocument(), newElement.nextSibling, 0);
34398
+ }
34399
+ else if (isNullOrUndefined(imageElement.nextSibling)) {
34400
+ imageElement.parentElement.appendChild(newElement);
34401
+ var brElement = _this.parent.createElement('BR');
34402
+ imageElement.parentElement.appendChild(brElement);
34403
+ _this.parent.formatter.editorManager.nodeSelection.setCursorPoint(_this.parent.contentModule.getDocument(), brElement, 0);
34404
+ }
34405
+ }
34406
+ e.args.preventDefault();
34407
+ _this.triggerActionComplete(e, e.args.shiftKey);
34408
+ }
34409
+ }
34410
+ });
34411
+ };
34412
+ EnterKeyAction.prototype.isTableOrImageStart = function () {
34413
+ var customHandlerElements = ['IMG', 'TABLE'];
34414
+ var startContainer = this.range.startContainer;
34415
+ var startOffset = this.range.startOffset;
34416
+ var isCursorAtStart = this.range.collapsed && (startContainer.nodeType === 1) &&
34417
+ startContainer.isContentEditable && startContainer.childNodes[startOffset] &&
34418
+ (customHandlerElements.indexOf(startContainer.childNodes[startOffset].nodeName) > -1);
34419
+ if (isCursorAtStart) {
34420
+ return { start: isCursorAtStart, startNodeName: startContainer.childNodes[startOffset].nodeName };
34421
+ }
34422
+ else {
34423
+ return { start: false, startNodeName: '' };
34424
+ }
34425
+ };
34426
+ EnterKeyAction.prototype.isTableOrImageEnd = function () {
34427
+ var customHandlerElements = ['IMG', 'TABLE'];
34428
+ var startContainer = this.range.startContainer;
34429
+ var startOffset = this.range.startOffset;
34430
+ var isCursorAtEnd = this.range.collapsed && (startContainer.nodeType === 1) &&
34431
+ startContainer.isContentEditable && startContainer.childNodes[startOffset - 1] &&
34432
+ (customHandlerElements.indexOf(startContainer.childNodes[startOffset - 1].nodeName) > -1);
34433
+ if (isCursorAtEnd) {
34434
+ return { end: isCursorAtEnd, endNodeName: startContainer.childNodes[startOffset - 1].nodeName };
34435
+ }
34436
+ else {
34437
+ return { end: false, endNodeName: '' };
34438
+ }
34439
+ };
34440
+ EnterKeyAction.prototype.processedTableImageCursor = function () {
34441
+ var _a = this.isTableOrImageStart(), start = _a.start, startNodeName = _a.startNodeName;
34442
+ var _b = this.isTableOrImageEnd(), end = _b.end, endNodeName = _b.endNodeName;
34443
+ return { start: start, startName: startNodeName, end: end, endName: endNodeName };
34444
+ };
34290
34445
  return EnterKeyAction;
34291
34446
  }());
34292
34447
 
@@ -35688,7 +35843,7 @@ var RichTextEditor = /** @__PURE__ @class */ (function (_super) {
35688
35843
  }
35689
35844
  };
35690
35845
  RichTextEditor.prototype.updatePanelValue = function () {
35691
- var value = this.value;
35846
+ var value = this.listOrderCorrection(this.value);
35692
35847
  value = (this.enableHtmlEncode && this.value) ? decode(value) : value;
35693
35848
  var getTextArea = this.element.querySelector('.' + CLS_RTE_SOURCE_CODE_TXTAREA);
35694
35849
  if (value) {
@@ -35732,6 +35887,17 @@ var RichTextEditor = /** @__PURE__ @class */ (function (_super) {
35732
35887
  this.countModule.refresh();
35733
35888
  }
35734
35889
  };
35890
+ RichTextEditor.prototype.listOrderCorrection = function (value) {
35891
+ var valueElementWrapper = this.createElement('div');
35892
+ valueElementWrapper.innerHTML = value;
35893
+ var listElements = valueElementWrapper.querySelectorAll('UL, OL');
35894
+ for (var i = 0; i < listElements.length; i++) {
35895
+ if (!isNullOrUndefined(listElements[i]) && !isNullOrUndefined(listElements[i].parentElement) && !isNullOrUndefined(listElements[i].previousElementSibling) && (listElements[i].parentElement.nodeName === 'UL' || listElements[i].parentElement.nodeName === 'OL')) {
35896
+ listElements[i].previousElementSibling.appendChild(listElements[i]);
35897
+ }
35898
+ }
35899
+ return valueElementWrapper.innerHTML;
35900
+ };
35735
35901
  RichTextEditor.prototype.setHeight = function (height) {
35736
35902
  if (height !== 'auto') {
35737
35903
  this.element.style.height = formatUnit(height);