@syncfusion/ej2-richtexteditor 19.3.53 → 19.4.40

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.
Files changed (38) hide show
  1. package/.github/PULL_REQUEST_TEMPLATE/Bug.md +41 -0
  2. package/.github/PULL_REQUEST_TEMPLATE/Feature.md +27 -0
  3. package/CHANGELOG.md +26 -0
  4. package/README.md +1 -1
  5. package/dist/ej2-richtexteditor.umd.min.js +2 -2
  6. package/dist/ej2-richtexteditor.umd.min.js.map +1 -1
  7. package/dist/es6/ej2-richtexteditor.es2015.js +200 -74
  8. package/dist/es6/ej2-richtexteditor.es2015.js.map +1 -1
  9. package/dist/es6/ej2-richtexteditor.es5.js +199 -73
  10. package/dist/es6/ej2-richtexteditor.es5.js.map +1 -1
  11. package/dist/global/ej2-richtexteditor.min.js +2 -2
  12. package/dist/global/ej2-richtexteditor.min.js.map +1 -1
  13. package/dist/global/index.d.ts +1 -1
  14. package/package.json +12 -12
  15. package/src/editor-manager/plugin/inserthtml.js +9 -1
  16. package/src/editor-manager/plugin/lists.js +2 -1
  17. package/src/editor-manager/plugin/ms-word-clean-up.js +1 -1
  18. package/src/editor-manager/plugin/selection-commands.js +10 -5
  19. package/src/editor-manager/plugin/undo.js +10 -1
  20. package/src/rich-text-editor/actions/color-picker.d.ts +1 -0
  21. package/src/rich-text-editor/actions/color-picker.js +2 -1
  22. package/src/rich-text-editor/actions/dropdown-buttons.js +0 -10
  23. package/src/rich-text-editor/actions/enter-key.d.ts +1 -0
  24. package/src/rich-text-editor/actions/enter-key.js +85 -34
  25. package/src/rich-text-editor/actions/html-editor.js +2 -2
  26. package/src/rich-text-editor/actions/quick-toolbar.d.ts +1 -0
  27. package/src/rich-text-editor/actions/quick-toolbar.js +16 -1
  28. package/src/rich-text-editor/actions/xhtml-validation.js +1 -1
  29. package/src/rich-text-editor/base/interface.d.ts +3 -1
  30. package/src/rich-text-editor/base/rich-text-editor.js +1 -1
  31. package/src/rich-text-editor/formatter/formatter.js +3 -3
  32. package/src/rich-text-editor/renderer/image-module.js +52 -7
  33. package/src/rich-text-editor/renderer/toolbar-renderer.d.ts +1 -1
  34. package/src/rich-text-editor/renderer/toolbar-renderer.js +3 -2
  35. package/src/selection/selection.js +2 -1
  36. package/styles/rich-text-editor/_fluent-definition.scss +168 -0
  37. package/styles/rich-text-editor/_layout.scss +1 -1
  38. package/styles/rich-text-editor/icons/_fluent.scss +303 -0
@@ -304,7 +304,7 @@ var Image = /** @class */ (function () {
304
304
  left: elem.offsetLeft
305
305
  };
306
306
  };
307
- Image.prototype.setAspectRatio = function (img, expectedX, expectedY) {
307
+ Image.prototype.setAspectRatio = function (img, expectedX, expectedY, e) {
308
308
  if (isNullOrUndefined(img.width)) {
309
309
  return;
310
310
  }
@@ -328,10 +328,14 @@ var Image = /** @class */ (function () {
328
328
  img.style.height = expectedY + 'px';
329
329
  }
330
330
  else if (img.style.width !== '' && img.style.height === '') {
331
- img.style.width = ((width / height * expectedY) + width / height).toString() + 'px';
331
+ var currentWidth = ((width / height * expectedY) + width / height) < (this.parent.inputElement.getBoundingClientRect().right - 32) ?
332
+ ((width / height * expectedY) + width / height) : (this.parent.inputElement.getBoundingClientRect().right - 32);
333
+ img.style.width = currentWidth.toString() + 'px';
332
334
  }
333
335
  else if (img.style.width !== '') {
334
- img.style.width = (width / height * expectedY) + 'px';
336
+ var currentWidth = (width / height * expectedY) < (this.parent.inputElement.getBoundingClientRect().right - 32) ?
337
+ (width / height * expectedY) : (this.parent.inputElement.getBoundingClientRect().right - 32);
338
+ img.style.width = currentWidth + 'px';
335
339
  img.style.height = expectedY + 'px';
336
340
  }
337
341
  else {
@@ -354,7 +358,7 @@ var Image = /** @class */ (function () {
354
358
  img.style.height = (height / width * expectedX) + 'px';
355
359
  }
356
360
  else {
357
- img.setAttribute('width', expectedX.toString());
361
+ img.setAttribute('width', this.resizeBtnStat.botRight ? (this.getPointX(e.event) - img.getBoundingClientRect().left).toString() : expectedX.toString());
358
362
  }
359
363
  }
360
364
  else {
@@ -395,7 +399,7 @@ var Image = /** @class */ (function () {
395
399
  return;
396
400
  }
397
401
  _this.imgEle.parentElement.style.cursor = 'pointer';
398
- _this.setAspectRatio(_this.imgEle, parseInt(width, 10), parseInt(height, 10));
402
+ _this.setAspectRatio(_this.imgEle, parseInt(width, 10), parseInt(height, 10), args);
399
403
  _this.resizeImgDupPos(_this.imgEle);
400
404
  _this.imgResizePos(_this.imgEle, _this.imgResizeDiv);
401
405
  _this.parent.setContentHeight('', false);
@@ -440,7 +444,7 @@ var Image = /** @class */ (function () {
440
444
  };
441
445
  Image.prototype.resizeImgDupPos = function (e) {
442
446
  this.imgDupPos = {
443
- width: (e.style.height !== '') ? this.imgEle.style.width : e.width + 'px',
447
+ width: (e.style.width !== '') ? this.imgEle.style.width : e.width + 'px',
444
448
  height: (e.style.height !== '') ? this.imgEle.style.height : e.height + 'px'
445
449
  };
446
450
  };
@@ -608,6 +612,27 @@ var Image = /** @class */ (function () {
608
612
  var src = this.deletedImg[i].src;
609
613
  this.imageRemovePost(src);
610
614
  }
615
+ if (range.startContainer.nodeType === 3) {
616
+ if (originalEvent.code === 'Backspace') {
617
+ if (range.startContainer.previousElementSibling && range.startOffset === 0 &&
618
+ range.startContainer.previousElementSibling.classList.contains(classes.CLS_CAPTION) &&
619
+ range.startContainer.previousElementSibling.classList.contains(classes.CLS_CAPINLINE)) {
620
+ detach(range.startContainer.previousElementSibling);
621
+ }
622
+ }
623
+ else {
624
+ if (range.startContainer.nextElementSibling &&
625
+ range.endContainer.textContent.length === range.endOffset &&
626
+ range.startContainer.nextElementSibling.classList.contains(classes.CLS_CAPTION) &&
627
+ range.startContainer.nextElementSibling.classList.contains(classes.CLS_CAPINLINE)) {
628
+ detach(range.startContainer.nextElementSibling);
629
+ }
630
+ }
631
+ }
632
+ else if ((range.startContainer.nodeType === 1 &&
633
+ range.startContainer.querySelector('.' + classes.CLS_CAPTION + '.' + classes.CLS_CAPINLINE))) {
634
+ detach(range.startContainer.querySelector('.' + classes.CLS_CAPTION + '.' + classes.CLS_CAPINLINE));
635
+ }
611
636
  break;
612
637
  case 'insert-image':
613
638
  this.openDialog(true, originalEvent, save, selectNodeEle, selectParentEle);
@@ -813,7 +838,7 @@ var Image = /** @class */ (function () {
813
838
  var target = args.target;
814
839
  this.contentModule = this.rendererFactory.getRenderer(RenderType.Content);
815
840
  var isPopupOpen = this.quickToolObj.imageQTBar.element.classList.contains('e-rte-pop');
816
- if (target.nodeName === 'IMG' && this.parent.quickToolbarModule && this.parent.getRange().startOffset === this.parent.getRange().endOffset) {
841
+ if (target.nodeName === 'IMG' && this.parent.quickToolbarModule) {
817
842
  if (isPopupOpen) {
818
843
  return;
819
844
  }
@@ -1054,6 +1079,9 @@ var Image = /** @class */ (function () {
1054
1079
  Image.prototype.imageRemovePost = function (src) {
1055
1080
  var proxy = this;
1056
1081
  var absoluteUrl = '';
1082
+ if (isNOU(this.parent.insertImageSettings.removeUrl) || this.parent.insertImageSettings.removeUrl === '') {
1083
+ return;
1084
+ }
1057
1085
  if (src.indexOf('http://') > -1 || src.indexOf('https://') > -1) {
1058
1086
  absoluteUrl = src;
1059
1087
  }
@@ -1899,6 +1927,7 @@ var Image = /** @class */ (function () {
1899
1927
  imageTag.addEventListener('load', function () {
1900
1928
  _this.parent.trigger(events.actionComplete, e);
1901
1929
  });
1930
+ detach(parentElement);
1902
1931
  };
1903
1932
  /**
1904
1933
  * Rendering uploader and popup for drag and drop
@@ -1934,6 +1963,9 @@ var Image = /** @class */ (function () {
1934
1963
  _this.popupObj.destroy();
1935
1964
  detach(_this.popupObj.element);
1936
1965
  _this.popupObj = null;
1966
+ if (!_this.parent.inlineMode.enable) {
1967
+ _this.parent.toolbarModule.baseToolbar.toolbarObj.disable(false);
1968
+ }
1937
1969
  }
1938
1970
  });
1939
1971
  this.popupObj.element.style.display = 'none';
@@ -1965,6 +1997,10 @@ var Image = /** @class */ (function () {
1965
1997
  isUploading = false;
1966
1998
  detach(imageElement);
1967
1999
  _this.popupObj.close();
2000
+ _this.quickToolObj.imageQTBar.hidePopup();
2001
+ setTimeout(function () {
2002
+ _this.uploadObj.destroy();
2003
+ }, 900);
1968
2004
  },
1969
2005
  beforeUpload: function (args) {
1970
2006
  if (_this.parent.isServerRendered) {
@@ -1976,6 +2012,9 @@ var Image = /** @class */ (function () {
1976
2012
  if (beforeUploadArgs.cancel) {
1977
2013
  return;
1978
2014
  }
2015
+ if (!_this.parent.inlineMode.enable) {
2016
+ _this.parent.toolbarModule.baseToolbar.toolbarObj.disable(true);
2017
+ }
1979
2018
  /* eslint-disable */
1980
2019
  _this.uploadObj.currentRequestHeader = beforeUploadArgs.currentRequest ?
1981
2020
  beforeUploadArgs.currentRequest : _this.uploadObj.currentRequestHeader;
@@ -1988,6 +2027,9 @@ var Image = /** @class */ (function () {
1988
2027
  }
1989
2028
  else {
1990
2029
  _this.parent.trigger(events.beforeImageUpload, args);
2030
+ if (!_this.parent.inlineMode.enable) {
2031
+ _this.parent.toolbarModule.baseToolbar.toolbarObj.disable(true);
2032
+ }
1991
2033
  }
1992
2034
  },
1993
2035
  uploading: function (e) {
@@ -2030,6 +2072,9 @@ var Image = /** @class */ (function () {
2030
2072
  }, 900);
2031
2073
  },
2032
2074
  success: function (e) {
2075
+ if (e.operation === "cancel") {
2076
+ return;
2077
+ }
2033
2078
  isUploading = false;
2034
2079
  _this.parent.inputElement.contentEditable = 'true';
2035
2080
  var args = {
@@ -71,7 +71,7 @@ export declare class ToolbarRenderer implements IRenderer {
71
71
  * @hidden
72
72
 
73
73
  */
74
- renderColorPickerDropDown(args: IColorPickerModel, item: string, colorPicker: ColorPicker): DropDownButton;
74
+ renderColorPickerDropDown(args: IColorPickerModel, item: string, colorPicker: ColorPicker, defaultColor: string): DropDownButton;
75
75
  private pickerRefresh;
76
76
  private popupModal;
77
77
  private setColorPickerContentWidth;
@@ -289,7 +289,7 @@ var ToolbarRenderer = /** @class */ (function () {
289
289
  * @hidden
290
290
 
291
291
  */
292
- ToolbarRenderer.prototype.renderColorPickerDropDown = function (args, item, colorPicker) {
292
+ ToolbarRenderer.prototype.renderColorPickerDropDown = function (args, item, colorPicker, defaultColor) {
293
293
  var _this = this;
294
294
  // eslint-disable-next-line
295
295
  var proxy = this;
@@ -298,8 +298,9 @@ var ToolbarRenderer = /** @class */ (function () {
298
298
  var content = proxy.parent.createElement('span', { className: CLS_COLOR_CONTENT });
299
299
  var inlineEle = proxy.parent.createElement('span', { className: args.cssClass });
300
300
  var range;
301
+ var initialBackgroundColor = (isNullOrUndefined(defaultColor)) ? proxy.parent.backgroundColor.default : defaultColor;
301
302
  inlineEle.style.borderBottomColor = (item === 'backgroundcolor') ?
302
- proxy.parent.backgroundColor.default : proxy.parent.fontColor.default;
303
+ initialBackgroundColor : proxy.parent.fontColor.default;
303
304
  content.appendChild(inlineEle);
304
305
  var dropDown = new DropDownButton({
305
306
  target: colorPicker.element.parentElement, cssClass: css,
@@ -116,7 +116,8 @@ var NodeSelection = /** @class */ (function () {
116
116
  || range.startContainer;
117
117
  var endNode = range.endContainer.childNodes[(range.endOffset > 0) ? (range.endOffset - 1) : range.endOffset]
118
118
  || range.endContainer;
119
- if (startNode === endNode && startNode.childNodes.length === 0) {
119
+ if ((startNode === endNode || (startNode.nodeName === 'BR' && startNode === range.endContainer.childNodes[range.endOffset])) &&
120
+ startNode.childNodes.length === 0) {
120
121
  return [startNode];
121
122
  }
122
123
  if (range.startOffset === range.endOffset && range.startOffset !== 0 && range.startContainer.nodeName === 'PRE') {
@@ -0,0 +1,168 @@
1
+ $skin-name: 'FluentUI' !default;
2
+ //Layout Variables Start
3
+ $rte-border-size: 1px !default;
4
+ $rte-2px-border-size: 2px !default;
5
+ $rte-border-type: solid !default;
6
+ $rte-list-btn-flex: column !default;
7
+ $rte-list-btn-line-height: 1 !default;
8
+ $rte-split-btn-line-height: 41px !default;
9
+ $rte-big-split-btn-line-height: 50px !default;
10
+ $rte-big-quick-item-btn-width: 39px !default;
11
+ $rte-quick-item-btn-width: 27px !default;
12
+ $rte-big-quick-item-btn-height: 34px !default;
13
+ $rte-quick-item-btn-height: 26px !default;
14
+ $rte-big-quick-item-padding: 0 !default;
15
+ $rte-quick-item-padding: 0 !default;
16
+ $rte-quick-item-icon-min-width: 20px !default;
17
+ $rte-big-quick-item-line-height: $leading-normal !default;
18
+ $rte-content-padding: 24px !default;
19
+ $rte-toolbar-icon-size: $text-base !default;
20
+ $rte-toolbar-big-icon-size: $text-lg !default;
21
+ $rte-big-quick-drop-btn-line-height: 33px !default;
22
+ $rte-quick-drop-btn-line-height: 24px !default;
23
+ $rte-big-quick-drop-btn-margin: 4px 0 !default;
24
+ $rte-quick-drop-btn-margin: 4px 0 !default;
25
+ $rte-big-quick-drop-btn-padding: 0 !default;
26
+ $rte-quick-drop-btn-padding: 1px 0 !default;
27
+ $rte-big-quick-drop-btn-icon-size: 16px !default;
28
+ $rte-quick-drop-btn-icon-size: 14px !default;
29
+ $rte-big-quick-drop-btn-caret-icon-size: 10px !default;
30
+ $rte-quick-drop-btn-caret-icon-size: 12px !default;
31
+ $rte-big-quick-drop-btn-caret-font-size: 12px !default;
32
+ $rte-quick-drop-btn-caret-font-size: 10px !default;
33
+ $rte-big-tb-items-margin-left: 8px !default;
34
+ $rte-tb-items-margin-left: 8px !default;
35
+ $rte-big-tb-items-padding-left: 8px !default;
36
+ $rte-tb-items-padding-left: 8px !default;
37
+ $rte-active-tb-item-btn-padding: 0 !default;
38
+ $rte-split-btn-bar-size: 0 !default;
39
+ $rte-split-btn-active-color-icon-line-height: 30px !default;
40
+ $rte-big-split-btn-active-color-icon-line-height: 37px !default;
41
+ $rte-format-btn-min-width: 72px !default;
42
+ $rte-font-name-btn-min-width: 0 !default;
43
+ $rte-font-size-btn-min-width: 37px !default;
44
+ $rte-drop-btn-padding-left: 7px !default;
45
+ $dropdown-btn-font-size: $text-sm;
46
+ $dropdown-btn-big-font-size: $text-base;
47
+ $rte-drop-btn-padding-right: 7px !default;
48
+ $rte-drop-btn-action-padding-left: 7px !default;
49
+ $rte-drop-btn-action-padding-right: 7px !default;
50
+ $rte-big-drop-btn-padding-left: 10px !default;
51
+ $rte-big-drop-btn-padding-right: 6px !default;
52
+ $rte-big-drop-btn-action-padding-left: 10px !default;
53
+ $rte-big-drop-btn-action-padding-right: 6px !default;
54
+ $rte-colorpicker-parent-padding: 0 !default;
55
+ $rte-colorpicker-parent-padding-hover: 0 !default;
56
+ $rte-colorpicker-parent-padding-active-hover: 0 !default;
57
+ $rte-font-icon-width: 30px !default;
58
+ $rte-font-arrow-width: 18px !default;
59
+ $rte-font-arrow-touch-width: 20px !default;
60
+ $rte-font-icon-line-height: $leading-tight !default;
61
+ $rte-placeholder-line-height: $leading-normal !default;
62
+ $rte-big-active-tb-item-btn-padding: 0 6px !default;
63
+ $rte-table-popup-padding: 10px !default;
64
+ $rte-insert-dialog-label-padding-top: 12px !default;
65
+ $rte-insert-dialog-label-padding-bottom: 12px !default;
66
+ $rte-big-quick-tbar-item-min-height: 34px !default;
67
+ $rte-big-quick-tbar-item-min-width: 39px !default;
68
+ $rte-content-font-size: $text-sm !default;
69
+ $rte-dropdown-caret-icon-size: $text-xs !default;
70
+ $rte-big-dropdown-caret-icon-size: $text-sm !default;
71
+ $font-weight: $font-weight-normal !default;
72
+ $rte-table-popup-bdr-radius: 0 !default;
73
+ $rte-resize-handler-width: 15px;
74
+ $rte-resize-handler-height: 15px;
75
+ $rte-resize-handler-position: 0;
76
+ $rte-big-inline-tmp-min-width: 48px;
77
+ $rte-inline-tmp-min-width: 55px;
78
+ $rte-big-inline-tmp-size-min-width: 59px;
79
+ $rte-inline-tmp-size-min-width: 66px;
80
+ $rte-big-inline-tmp-color-min-width: 50px;
81
+ $rte-inline-tmp-color-min-width: 55px;
82
+ $rte-big-color-list-span-common-padding-left-right: 0;
83
+ //Layout Variables End
84
+
85
+ //Theme Variables Start
86
+ $rte-split-btn-active-border: 0 !default;
87
+ $rte-border-color: $border-light !default;
88
+ $rte-content-bg: $content-bg-color !default;
89
+ $rte-full-screen-bg: $content-bg-color !default;
90
+ $rte-content-font-color: $content-text-color !default;
91
+ $rte-item-color: $icon-color !default;
92
+ $rte-icons-color: $icon-color !default;
93
+ $rte-img-popup-border: 1px solid $border-light !default;
94
+ $rte-img-popup-box-shadow: $shadow-lg !default;
95
+ $rte-img-popup-color: $border-light !default;
96
+ $rte-quick-item-active-bg: $content-bg-color-alt5 !default;
97
+ $rte-quick-item-active-font-color: $icon-color !default;
98
+ $rte-quick-item-border: 0 !default;
99
+ $rte-quick-item-hover-border-color: $content-bg-color-alt4 !default;
100
+ $rte-quick-item-active-border-color: $secondary-border-color-pressed !default;
101
+ $rte-quick-drop-btn-border-color: $content-bg-color-alt2 !default;
102
+ $rte-quick-drop-btn-hover-border-color: $content-bg-color-alt4 !default;
103
+ $rte-extended-toolbar-background: $content-bg-color-alt2 !default;
104
+ $rte-quick-pop-border: none !default;
105
+ $rte-quick-tb-border: 1px solid $border-light !default;
106
+ $rte-quick-pop-bg: $content-bg-color-alt2 !default;
107
+ $rte-quick-vr-line-color: $border-light !default;
108
+ $rte-quick-pop-shadow: $shadow-sm !default;
109
+ $rte-quick-pop-item-focus-bg: $content-bg-color-alt4 !default;
110
+ $rte-quick-tb-btn-hover: $content-bg-color-alt4 !default;
111
+ $rte-tb-item-active-bg: $content-bg-color-alt5 !default;
112
+ $rte-tb-active-font-color: $icon-color !default;
113
+ $rte-tb-item-active-border: 1px solid $secondary-border-color-pressed !default;
114
+ $rte-expand-tb-border-bottom: $rte-border-size $rte-border-type $border-light !default;
115
+ $rte-color-picker-active-bg: inherit !default;
116
+ $rte-drop-btn-active-bg: $secondary-bg-color-pressed !default;
117
+ $rte-drop-btn-active-color: $icon-color !default;
118
+ $rte-drop-btn-active-border-color: $secondary-border-color-pressed !default;
119
+ $rte-split-btn-active-hover-font-color: $icon-color !default;
120
+ $rte-split-btn-color: $secondary-bg-color-pressed !default;
121
+ $rte-split-btn-active-color: $icon-color !default;
122
+ $rte-split-btn-hover-bg: $content-bg-color-alt3 !default;
123
+ $rte-split-btn-active-bg: $content-bg-color-alt5 !default;
124
+ $rte-split-btn-span-hover-bg: $content-bg-color-alt3 !default;
125
+ $rte-split-btn-span-focus-bg: $content-bg-color-alt3 !default;
126
+ $rte-split-btn-span-active-bg: $content-bg-color-alt5 !default;
127
+ $rte-split-btn-bar-bg: $content-bg-color !default;
128
+ $rte-split-btn-active-bar-bg: $content-bg-color !default;
129
+ $rte-split-btn-bar-size: 0 !default;
130
+ $rte-split-btn-active-border: 0 !default;
131
+ $rte-split-btn-active-color-icon-line-height: 30px !default;
132
+ $rte-big-split-btn-active-color-icon-line-height: 38px !default;
133
+
134
+ $rte-link-valid-color: $danger !default;
135
+ $rte-upload-drag-border-clr: $border-dark !default;
136
+ $rte-img-header-clr: $content-text-color !default;
137
+ $rte-drop-text-clr: $content-text-color-alt2 !default;
138
+ $rte-default-character-count-color: $content-text-color-disabled !default;
139
+ $rte-warning-character-count-color: $warning !default;
140
+ $rte-error-character-count-color: $danger !default;
141
+ $rte-img-border: dashed 2px $primary !default;
142
+ $rte-font-family: $font-family !default;
143
+ $rte-content-color: $content-text-color !default;
144
+ $rte-content-blockquote-border-left-color: solid 2px $content-text-color !default;
145
+ $rte-dropdown-selection-bgcolor: $secondary-bg-color-pressed !default;
146
+ $rte-ext-tbar-overlay-icons-color: $icon-color-disabled !default;
147
+ $rte-overlay-color: $overlay-bg-color !default;
148
+ $rte-dropdown-selection-color: $secondary-text-color-pressed !default;
149
+ $rte-anchor-color: $primary !default;
150
+ $rte-ext-tbar-overlay-dropdown-color: $content-bg-color-alt4 !default;
151
+ $rte-img-resize-back-color: $primary !default;
152
+ $rte-img-resize-color: $primary-text-color !default;
153
+ $rte-table-header-color: $content-text-color-alt2 !default;
154
+ $rte-table-span-bg-color: $flyout-bg-color !default;
155
+ $rte-table-span-border: 1px solid $flyout-border !default;
156
+ $rte-table-span-active-bg-color: $primary-lighter !default;
157
+ $rte-table-span-active-border-color: $primary !default;
158
+ $rte-table-select-border-color: $primary !default;
159
+ $rte-table-popup-bg: $flyout-bg-color !default;
160
+ $rte-table-popup-color: $flyout-border !default;
161
+ $rte-table-popup-box: $shadow-lg !default;
162
+ $rte-table-border-color: $border-light !default;
163
+ $rte-table-alternate-color: $content-bg-color-alt1 !default;
164
+ $rte-table-header-bg: $content-bg-color-alt1 !default;
165
+ //Theme Variables End
166
+
167
+ $rte-tb-hover-font-color: $secondary-text-color-hover;
168
+ $transparent: $transparent;
@@ -194,7 +194,7 @@
194
194
  }
195
195
 
196
196
  .e-rte-dropdown-btn-text {
197
- @if $skin-name == 'tailwind' or $skin-name == 'bootstrap5' {
197
+ @if $skin-name == 'tailwind' or $skin-name == 'bootstrap5' or $skin-name == 'FluentUI' {
198
198
  font-size: $dropdown-btn-font-size;
199
199
  }
200
200
  font-weight: $font-weight;
@@ -0,0 +1,303 @@
1
+ /*! component's theme wise override definitions and variables */
2
+ @include export-module('richtexteditor-fluent-icons') {
3
+ /*! richtexteditor icons */
4
+
5
+ .e-rte-toolbar,
6
+ .e-rte-dropdown-popup {
7
+
8
+ .e-alignments::before {
9
+ content: '\e703';
10
+ }
11
+
12
+ .e-justify-left::before {
13
+ content: '\e703';
14
+ }
15
+
16
+ .e-justify-center::before {
17
+ content: '\e704';
18
+ }
19
+
20
+ .e-justify-right::before {
21
+ content: '\e705';
22
+ }
23
+
24
+ .e-justify-full::before {
25
+ content: '\e706';
26
+ }
27
+
28
+ .e-font-name::before {
29
+ content: '\e826';
30
+ }
31
+
32
+ .e-font-color::before {
33
+ content: '\e750';
34
+ }
35
+
36
+ .e-background-color::before {
37
+ content: '\e781';
38
+ }
39
+
40
+ .e-bold::before {
41
+ content: '\e7a5';
42
+ }
43
+
44
+ .e-italic::before {
45
+ content: '\e7a6';
46
+ }
47
+
48
+ .e-underline::before {
49
+ content: '\e7a7';
50
+ }
51
+
52
+ .e-strike-through::before {
53
+ content: '\e74e';
54
+ }
55
+
56
+ .e-clear-format::before {
57
+ content: '\e825';
58
+ }
59
+
60
+ .e-clear-all::before {
61
+ content: '\e700';
62
+ }
63
+
64
+ .e-cut::before {
65
+ content: '\e7b2';
66
+ }
67
+
68
+ .e-copy::before {
69
+ content: '\e7b3';
70
+ }
71
+
72
+ .e-paste::before {
73
+ content: '\e7b4';
74
+ }
75
+
76
+ .e-unorder-list::before {
77
+ content: '\e754';
78
+ }
79
+
80
+ .e-order-list::before {
81
+ content: '\e755';
82
+ }
83
+
84
+ .e-indent::before {
85
+ content: '\e751';
86
+ }
87
+
88
+ .e-outdent::before {
89
+ content: '\e753';
90
+ }
91
+
92
+ .e-undo::before {
93
+ content: '\e7b5';
94
+ }
95
+
96
+ .e-redo::before {
97
+ content: '\e7b6';
98
+ }
99
+
100
+ .e-super-script::before {
101
+ content: '\e7a1';
102
+ }
103
+
104
+ .e-sub-script::before {
105
+ content: '\e7a2';
106
+ }
107
+
108
+ .e-create-link::before {
109
+ content: '\e7b8';
110
+ }
111
+
112
+ .e-open-link::before {
113
+ content: '\e7df';
114
+ }
115
+
116
+ .e-edit-link::before {
117
+ content: '\e7ed';
118
+ }
119
+
120
+ .e-remove-link::before {
121
+ content: '\e7ee';
122
+ }
123
+
124
+ .e-image::before {
125
+ content: '\e718';
126
+ }
127
+
128
+ .e-replace::before {
129
+ content: '\e78c';
130
+ }
131
+
132
+ .e-align::before {
133
+ content: '\e703';
134
+ }
135
+
136
+ .e-caption::before {
137
+ content: '\e770';
138
+ }
139
+
140
+ .e-remove::before {
141
+ content: '\e75b';
142
+ }
143
+
144
+ .e-insert-link::before {
145
+ content: '\e7b8';
146
+ }
147
+
148
+ .e-display::before {
149
+ content: '\e724';
150
+ }
151
+
152
+ .e-alt-text::before {
153
+ content: '\e824';
154
+ }
155
+
156
+ .e-img-dimension::before {
157
+ content: '\e714';
158
+ }
159
+
160
+ .e-maximize::before {
161
+ content: '\e814';
162
+ }
163
+
164
+ .e-minimize::before {
165
+ content: '\e70b';
166
+ }
167
+
168
+ .e-zoom-in::before {
169
+ content: '\e7ab';
170
+ }
171
+
172
+ .e-zoom-out::before {
173
+ content: '\e7ac';
174
+ }
175
+
176
+ .e-lower-case::before {
177
+ content: '\e76d';
178
+ }
179
+
180
+ .e-upper-case::before {
181
+ content: '\e76c';
182
+ }
183
+
184
+ .e-print::before {
185
+ content: '\e7bd';
186
+ }
187
+
188
+ .e-formats::before {
189
+ content: '\e75f';
190
+ }
191
+
192
+ .e-source-code::before {
193
+ content: '\e76f';
194
+ }
195
+
196
+ .e-preview::before {
197
+ content: '\e717';
198
+ }
199
+
200
+ .e-view-side::before {
201
+ content: '\e713';
202
+ }
203
+
204
+ .e-insert-code::before {
205
+ content: '\e76e';
206
+ }
207
+
208
+ .e-table-header::before {
209
+ content: '\e823';
210
+ }
211
+
212
+ .e-table-remove::before {
213
+ content: '\e75b';
214
+ }
215
+
216
+ .e-table-rows::before {
217
+ content: '\e715';
218
+ }
219
+
220
+ .e-table-columns::before {
221
+ content: '\e716';
222
+ }
223
+
224
+ .e-table-cell-ver-align::before {
225
+ content: '\e757';
226
+ }
227
+
228
+ .e-table-edit-properties::before {
229
+ content: '\e822';
230
+ }
231
+
232
+ .e-create-table::before {
233
+ content: '\e71a';
234
+ }
235
+
236
+ .e-align-bottom::before {
237
+ content: '\e7b0';
238
+ }
239
+
240
+ .e-align-middle::before {
241
+ content: '\e757';
242
+ }
243
+
244
+ .e-align-top::before {
245
+ content: '\e7af';
246
+ }
247
+
248
+ .e-insert-column-left::before {
249
+ content: '\e766';
250
+ }
251
+
252
+ .e-insert-column-right::before {
253
+ content: '\e767';
254
+ }
255
+
256
+ .e-delete-column::before {
257
+ content: '\e769';
258
+ }
259
+
260
+ .e-insert-row-before::before {
261
+ content: '\e762';
262
+ }
263
+
264
+ .e-insert-row-after::before {
265
+ content: '\e765';
266
+ }
267
+
268
+ .e-delete-row::before {
269
+ content: '\e768';
270
+ }
271
+
272
+ .e-style::before {
273
+ content: '\e7aa';
274
+ }
275
+
276
+ .e-rte-file-manager::before {
277
+ content: '\e7b1';
278
+ }
279
+ }
280
+
281
+ .e-richtexteditor {
282
+ .e-south-east::before,
283
+ .e-south-west::before {
284
+ content: '\e7ea';
285
+ }
286
+ }
287
+
288
+ .e-cell-merge::before {
289
+ content: '\e731';
290
+ }
291
+
292
+ .e-cell-horizontal-split::before {
293
+ content: '\e837';
294
+ }
295
+
296
+ .e-cell-vertical-split::before {
297
+ content: '\e838';
298
+ }
299
+
300
+ .e-table-cell::before {
301
+ content: '\e839';
302
+ }
303
+ }