@syncfusion/ej2-richtexteditor 25.1.35 → 25.1.38
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/CHANGELOG.md +28 -0
- package/dist/ej2-richtexteditor.min.js +2 -2
- package/dist/ej2-richtexteditor.umd.min.js +2 -2
- package/dist/ej2-richtexteditor.umd.min.js.map +1 -1
- package/dist/es6/ej2-richtexteditor.es2015.js +71 -50
- package/dist/es6/ej2-richtexteditor.es2015.js.map +1 -1
- package/dist/es6/ej2-richtexteditor.es5.js +71 -50
- package/dist/es6/ej2-richtexteditor.es5.js.map +1 -1
- package/dist/global/ej2-richtexteditor.min.js +2 -2
- package/dist/global/ej2-richtexteditor.min.js.map +1 -1
- package/dist/global/index.d.ts +1 -1
- package/package.json +10 -10
- package/src/editor-manager/plugin/dom-node.js +2 -1
- package/src/editor-manager/plugin/inserthtml.js +16 -19
- package/src/editor-manager/plugin/lists.js +31 -11
- package/src/editor-manager/plugin/ms-word-clean-up.js +2 -2
- package/src/editor-manager/plugin/selection-commands.js +4 -0
- package/src/rich-text-editor/actions/html-editor.js +0 -3
- package/src/rich-text-editor/actions/quick-toolbar.js +4 -0
- package/src/rich-text-editor/base/rich-text-editor.js +2 -4
- package/src/rich-text-editor/renderer/toolbar-renderer.js +10 -10
- package/styles/bootstrap-dark.css +14 -7
- package/styles/bootstrap.css +7 -3
- package/styles/bootstrap4.css +4 -0
- package/styles/bootstrap5-dark.css +4 -0
- package/styles/bootstrap5.css +4 -0
- package/styles/fabric-dark.css +4 -0
- package/styles/fabric.css +4 -0
- package/styles/fluent-dark.css +21 -5
- package/styles/fluent.css +21 -5
- package/styles/highcontrast-light.css +4 -0
- package/styles/highcontrast.css +4 -0
- package/styles/material-dark.css +5 -1
- package/styles/material.css +5 -1
- package/styles/material3-dark.css +4 -0
- package/styles/material3.css +4 -0
- package/styles/rich-text-editor/_bootstrap-dark-definition.scss +4 -4
- package/styles/rich-text-editor/_bootstrap-definition.scss +2 -2
- package/styles/rich-text-editor/_fluent-definition.scss +5 -5
- package/styles/rich-text-editor/_layout.scss +7 -7
- package/styles/rich-text-editor/_tailwind-definition.scss +5 -5
- package/styles/rich-text-editor/_theme.scss +21 -0
- package/styles/rich-text-editor/bootstrap-dark.css +14 -7
- package/styles/rich-text-editor/bootstrap.css +7 -3
- package/styles/rich-text-editor/bootstrap4.css +4 -0
- package/styles/rich-text-editor/bootstrap5-dark.css +4 -0
- package/styles/rich-text-editor/bootstrap5.css +4 -0
- package/styles/rich-text-editor/fabric-dark.css +4 -0
- package/styles/rich-text-editor/fabric.css +4 -0
- package/styles/rich-text-editor/fluent-dark.css +21 -5
- package/styles/rich-text-editor/fluent.css +21 -5
- package/styles/rich-text-editor/highcontrast-light.css +4 -0
- package/styles/rich-text-editor/highcontrast.css +4 -0
- package/styles/rich-text-editor/material-dark.css +5 -1
- package/styles/rich-text-editor/material.css +5 -1
- package/styles/rich-text-editor/material3-dark.css +4 -0
- package/styles/rich-text-editor/material3.css +4 -0
- package/styles/rich-text-editor/tailwind-dark.css +13 -13
- package/styles/rich-text-editor/tailwind.css +13 -13
- package/styles/tailwind-dark.css +13 -13
- package/styles/tailwind.css +13 -13
package/dist/global/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* filename: index.d.ts
|
|
3
|
-
* version : 25.1.
|
|
3
|
+
* version : 25.1.38
|
|
4
4
|
* Copyright Syncfusion Inc. 2001 - 2023. All rights reserved.
|
|
5
5
|
* Use of this code is subject to the terms of our license.
|
|
6
6
|
* A copy of the current license can be obtained at any time by e-mailing
|
package/package.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"_from": "@syncfusion/ej2-richtexteditor@*",
|
|
3
|
-
"_id": "@syncfusion/ej2-richtexteditor@
|
|
3
|
+
"_id": "@syncfusion/ej2-richtexteditor@25.1.37",
|
|
4
4
|
"_inBundle": false,
|
|
5
|
-
"_integrity": "sha512-
|
|
5
|
+
"_integrity": "sha512-CEvrleMxqO4OKhdhi18qBG/K230NQEOrIMhby9ijEpKXDIZMDr5Ya3WHfVA+ODcCjIYsSy3kIJcH13sjKdwcyQ==",
|
|
6
6
|
"_location": "/@syncfusion/ej2-richtexteditor",
|
|
7
7
|
"_phantomChildren": {},
|
|
8
8
|
"_requested": {
|
|
@@ -25,8 +25,8 @@
|
|
|
25
25
|
"/@syncfusion/ej2-react-richtexteditor",
|
|
26
26
|
"/@syncfusion/ej2-vue-richtexteditor"
|
|
27
27
|
],
|
|
28
|
-
"_resolved": "https://nexus.syncfusioninternal.com/repository/ej2-
|
|
29
|
-
"_shasum": "
|
|
28
|
+
"_resolved": "https://nexus.syncfusioninternal.com/repository/ej2-hotfix-new/@syncfusion/ej2-richtexteditor/-/ej2-richtexteditor-25.1.37.tgz",
|
|
29
|
+
"_shasum": "33b50ff739e07452c07dcd7aeb20843177c42689",
|
|
30
30
|
"_spec": "@syncfusion/ej2-richtexteditor@*",
|
|
31
31
|
"_where": "/jenkins/workspace/elease-automation_release_25.1.1/packages/included",
|
|
32
32
|
"author": {
|
|
@@ -39,11 +39,11 @@
|
|
|
39
39
|
"dependencies": {
|
|
40
40
|
"@syncfusion/ej2-base": "~25.1.35",
|
|
41
41
|
"@syncfusion/ej2-buttons": "~25.1.35",
|
|
42
|
-
"@syncfusion/ej2-filemanager": "~25.1.
|
|
43
|
-
"@syncfusion/ej2-inputs": "~25.1.
|
|
44
|
-
"@syncfusion/ej2-navigations": "~25.1.
|
|
45
|
-
"@syncfusion/ej2-popups": "~25.1.
|
|
46
|
-
"@syncfusion/ej2-splitbuttons": "~25.1.
|
|
42
|
+
"@syncfusion/ej2-filemanager": "~25.1.38",
|
|
43
|
+
"@syncfusion/ej2-inputs": "~25.1.38",
|
|
44
|
+
"@syncfusion/ej2-navigations": "~25.1.38",
|
|
45
|
+
"@syncfusion/ej2-popups": "~25.1.38",
|
|
46
|
+
"@syncfusion/ej2-splitbuttons": "~25.1.38"
|
|
47
47
|
},
|
|
48
48
|
"deprecated": false,
|
|
49
49
|
"description": "Essential JS 2 RichTextEditor component",
|
|
@@ -69,6 +69,6 @@
|
|
|
69
69
|
"url": "git+https://github.com/syncfusion/ej2-javascript-ui-controls.git"
|
|
70
70
|
},
|
|
71
71
|
"typings": "index.d.ts",
|
|
72
|
-
"version": "25.1.
|
|
72
|
+
"version": "25.1.38",
|
|
73
73
|
"sideEffects": false
|
|
74
74
|
}
|
|
@@ -580,7 +580,8 @@ var DOMNode = /** @class */ (function () {
|
|
|
580
580
|
}
|
|
581
581
|
}
|
|
582
582
|
else {
|
|
583
|
-
|
|
583
|
+
var tagName = !isNOU(start.parentElement) ? start.parentElement.tagName.toLocaleLowerCase() : '';
|
|
584
|
+
if (start.tagName === 'IMG' && tagName !== 'p' && tagName !== 'div') {
|
|
584
585
|
var parNode = document.createElement('p');
|
|
585
586
|
start.parentElement.insertBefore(parNode, start);
|
|
586
587
|
parNode.appendChild(start);
|
|
@@ -215,25 +215,22 @@ var InsertHtml = /** @class */ (function () {
|
|
|
215
215
|
CONSTANT.TABLE_BLOCK_TAGS.indexOf(closestParentNode.tagName.toLocaleLowerCase()) !== -1))
|
|
216
216
|
|| (node.nodeName.toLowerCase() === 'table' && closestParentNode &&
|
|
217
217
|
CONSTANT.TABLE_BLOCK_TAGS.indexOf(closestParentNode.tagName.toLocaleLowerCase()) === -1))) {
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
lasNode.textContent.length : lasNode.childNodes.length);
|
|
235
|
-
range = nodeSelection.getRange(docElement);
|
|
236
|
-
isSingleNode = false;
|
|
218
|
+
preNode = nodeCutter.GetSpliceNode(range, closestParentNode);
|
|
219
|
+
if (!isNOU(preNode)) {
|
|
220
|
+
sibNode = isNOU(preNode.previousSibling) ? preNode.parentNode.previousSibling : preNode.previousSibling;
|
|
221
|
+
if (nodes.length === 1) {
|
|
222
|
+
nodeSelection.setSelectionContents(docElement, preNode);
|
|
223
|
+
range = nodeSelection.getRange(docElement);
|
|
224
|
+
isSingleNode = true;
|
|
225
|
+
}
|
|
226
|
+
else {
|
|
227
|
+
lasNode = nodeCutter.GetSpliceNode(range, nodes[nodes.length - 1].parentElement);
|
|
228
|
+
lasNode = isNOU(lasNode) ? preNode : lasNode;
|
|
229
|
+
nodeSelection.setSelectionText(docElement, preNode, lasNode, 0, (lasNode.nodeType === 3) ?
|
|
230
|
+
lasNode.textContent.length : lasNode.childNodes.length);
|
|
231
|
+
range = nodeSelection.getRange(docElement);
|
|
232
|
+
isSingleNode = false;
|
|
233
|
+
}
|
|
237
234
|
}
|
|
238
235
|
}
|
|
239
236
|
var containsBlockNode = false;
|
|
@@ -212,6 +212,7 @@ var Lists = /** @class */ (function () {
|
|
|
212
212
|
endNode = endNode.nodeName === 'BR' ? endNode.parentElement : endNode;
|
|
213
213
|
startNode = startNode.nodeName !== 'LI' && !isNOU(startNode.closest('LI')) ? startNode.closest('LI') : startNode;
|
|
214
214
|
endNode = endNode.nodeName !== 'LI' && endNode.nodeName !== '#text' && !isNOU(endNode.closest('LI')) ? endNode.closest('LI') : endNode;
|
|
215
|
+
var parentList = (range.startContainer.nodeName === '#text') ? range.startContainer.parentElement.closest('li') : range.startContainer.closest('li');
|
|
215
216
|
if (((range.commonAncestorContainer.nodeName === 'OL' || range.commonAncestorContainer.nodeName === 'UL' || range.commonAncestorContainer.nodeName === 'LI') &&
|
|
216
217
|
isNOU(endNode.nextElementSibling) && endNode.textContent.length === range.endOffset &&
|
|
217
218
|
isNOU(startNode.previousElementSibling) && range.startOffset === 0) ||
|
|
@@ -228,6 +229,12 @@ var Lists = /** @class */ (function () {
|
|
|
228
229
|
}
|
|
229
230
|
e.event.preventDefault();
|
|
230
231
|
}
|
|
232
|
+
else if (!isNOU(parentList) && parentList.textContent === range.startContainer.textContent && parentList.closest('li').previousElementSibling === null) {
|
|
233
|
+
range.deleteContents();
|
|
234
|
+
this.parent.editableElement.querySelectorAll('li:empty').forEach(function (e) { return e.remove(); });
|
|
235
|
+
this.parent.editableElement.querySelectorAll('ol:empty').forEach(function (e) { return e.remove(); });
|
|
236
|
+
e.event.preventDefault();
|
|
237
|
+
}
|
|
231
238
|
};
|
|
232
239
|
Lists.prototype.onKeyUp = function () {
|
|
233
240
|
if (!isNOU(this.commonLIParent) && !isNOU(this.commonLIParent.querySelector('.removeList'))) {
|
|
@@ -267,7 +274,7 @@ var Lists = /** @class */ (function () {
|
|
|
267
274
|
if (e.event.which === 8) {
|
|
268
275
|
this.backspaceList(e);
|
|
269
276
|
}
|
|
270
|
-
if (e.event.which === 46 && e.event.action === 'delete') {
|
|
277
|
+
if ((e.event.which === 46 && e.event.action === 'delete') || (e.event.which === 88 && e.event.action === 'cut')) {
|
|
271
278
|
var range = this.parent.nodeSelection.getRange(this.parent.currentDocument);
|
|
272
279
|
var commonAncestor = range.commonAncestorContainer;
|
|
273
280
|
var startEle = range.startContainer;
|
|
@@ -743,8 +750,17 @@ var Lists = /** @class */ (function () {
|
|
|
743
750
|
};
|
|
744
751
|
Lists.prototype.cleanNode = function () {
|
|
745
752
|
var liParents = this.parent.editableElement.querySelectorAll('ol + ol, ul + ul');
|
|
753
|
+
var listStyleType;
|
|
754
|
+
var firstNodeOL;
|
|
746
755
|
for (var c = 0; c < liParents.length; c++) {
|
|
747
756
|
var node = liParents[c];
|
|
757
|
+
var toFindtopOlUl = true;
|
|
758
|
+
if (toFindtopOlUl && (liParents[c].parentElement.parentElement.nodeName === 'OL' || liParents[c].parentElement.parentElement.nodeName === 'UL')) {
|
|
759
|
+
toFindtopOlUl = false;
|
|
760
|
+
var preElement = liParents[c].parentElement.parentElement;
|
|
761
|
+
listStyleType = preElement.style.listStyleType;
|
|
762
|
+
firstNodeOL = node.previousElementSibling;
|
|
763
|
+
}
|
|
748
764
|
if (this.domNode.isList(node.previousElementSibling) &&
|
|
749
765
|
this.domNode.openTagString(node) === this.domNode.openTagString(node.previousElementSibling)) {
|
|
750
766
|
var contentNodes = this.domNode.contents(node);
|
|
@@ -759,6 +775,9 @@ var Lists = /** @class */ (function () {
|
|
|
759
775
|
}
|
|
760
776
|
}
|
|
761
777
|
}
|
|
778
|
+
if (firstNodeOL) {
|
|
779
|
+
firstNodeOL.style.listStyleType = listStyleType;
|
|
780
|
+
}
|
|
762
781
|
};
|
|
763
782
|
Lists.prototype.findUnSelected = function (temp, elements) {
|
|
764
783
|
temp = temp.slice().reverse();
|
|
@@ -855,17 +874,18 @@ var Lists = /** @class */ (function () {
|
|
|
855
874
|
var wrapperclass = isNullOrUndefined(className) ? ' class="e-rte-wrap-inner"' :
|
|
856
875
|
' class="' + className + ' e-rte-wrap-inner"';
|
|
857
876
|
var parentElement = parentNode;
|
|
858
|
-
if (
|
|
859
|
-
|
|
860
|
-
|
|
861
|
-
|
|
862
|
-
|
|
863
|
-
|
|
864
|
-
|
|
865
|
-
|
|
877
|
+
if (elements.length === parentElement.querySelectorAll('li').length) {
|
|
878
|
+
if (!isNOU(parentElement.style.listStyleType)) {
|
|
879
|
+
parentNode.style.removeProperty('list-style-type');
|
|
880
|
+
}
|
|
881
|
+
if (!isNOU(parentElement.style.listStyleImage)) {
|
|
882
|
+
parentNode.style.removeProperty('list-style-image');
|
|
883
|
+
}
|
|
884
|
+
if (parentElement.style.length === 0) {
|
|
885
|
+
parentNode.removeAttribute('style');
|
|
886
|
+
}
|
|
866
887
|
}
|
|
867
|
-
var wrapper = '<' + CONSTANT.DEFAULT_TAG + wrapperclass +
|
|
868
|
-
this.domNode.attributes(parentElement) + '></' + CONSTANT.DEFAULT_TAG + '>';
|
|
888
|
+
var wrapper = '<' + CONSTANT.DEFAULT_TAG + wrapperclass + '></' + CONSTANT.DEFAULT_TAG + '>';
|
|
869
889
|
if (e.enterAction !== 'BR') {
|
|
870
890
|
this.domNode.wrapInner(element, this.domNode.parseHTMLFragment(wrapper));
|
|
871
891
|
}
|
|
@@ -44,7 +44,7 @@ var MsWordPaste = /** @class */ (function () {
|
|
|
44
44
|
'x', 'xi', 'xii', 'xiii', 'xiv', 'xv', 'xvi', 'xvii', 'xviii', 'xix', 'xx'];
|
|
45
45
|
this.lowerGreekNumber = ['α', 'β', 'γ', 'δ', 'ε', 'ζ', 'η', 'θ', 'ι', 'κ', 'λ',
|
|
46
46
|
'μ', 'ν', 'ξ', 'ο', 'π', 'ρ', 'σ', 'τ', 'υ', 'φ', 'χ', 'ψ', 'ω'];
|
|
47
|
-
this.removableElements = ['o:p', 'style'];
|
|
47
|
+
this.removableElements = ['o:p', 'style', 'w:sdt'];
|
|
48
48
|
this.listContents = [];
|
|
49
49
|
this.cropImageDimensions = [];
|
|
50
50
|
this.parent = parent;
|
|
@@ -409,7 +409,7 @@ var MsWordPaste = /** @class */ (function () {
|
|
|
409
409
|
var innerElement = elm.innerHTML;
|
|
410
410
|
for (var i = 0; i < this.removableElements.length; i++) {
|
|
411
411
|
// eslint-disable-next-line security/detect-non-literal-regexp
|
|
412
|
-
var regExpStartElem = new RegExp('<' + this.removableElements[i] + '
|
|
412
|
+
var regExpStartElem = new RegExp('<' + this.removableElements[i] + '\\s*[^>]*>', 'g');
|
|
413
413
|
// eslint-disable-next-line security/detect-non-literal-regexp
|
|
414
414
|
var regExpEndElem = new RegExp('</' + this.removableElements[i] + '>', 'g');
|
|
415
415
|
innerElement = innerElement.replace(regExpStartElem, '');
|
|
@@ -249,11 +249,15 @@ var SelectionCommands = /** @class */ (function () {
|
|
|
249
249
|
&& range.endOffset === range.startContainer.length)) {
|
|
250
250
|
var nodeIndex = [];
|
|
251
251
|
var cloneNode = nodes[index];
|
|
252
|
+
var clonedElement = cloneNode;
|
|
252
253
|
do {
|
|
253
254
|
nodeIndex.push(domSelection.getIndex(cloneNode));
|
|
254
255
|
cloneNode = cloneNode.parentNode;
|
|
255
256
|
} while (cloneNode && (cloneNode !== formatNode));
|
|
256
257
|
if (nodes[index].nodeName !== 'BR') {
|
|
258
|
+
if (clonedElement.nodeName === '#text' && clonedElement.textContent.includes('\u200B')) {
|
|
259
|
+
clonedElement.remove();
|
|
260
|
+
}
|
|
257
261
|
cloneNode = splitNode = (isCursor && (formatNode.textContent.length - 1) === range.startOffset) ?
|
|
258
262
|
nodeCutter.SplitNode(range, formatNode, true)
|
|
259
263
|
: nodeCutter.GetSpliceNode(range, formatNode);
|
|
@@ -90,9 +90,6 @@ var HtmlEditor = /** @class */ (function () {
|
|
|
90
90
|
};
|
|
91
91
|
HtmlEditor.prototype.onSelectionRestore = function (e) {
|
|
92
92
|
this.parent.isBlur = false;
|
|
93
|
-
if (isNOU(this.saveSelection) || isNOU(closest(this.saveSelection.range.startContainer.parentElement, ".e-img-caption")) ? true : !(closest(this.saveSelection.range.startContainer.parentElement, ".e-img-caption").getAttribute("contenteditable") == "false")) {
|
|
94
|
-
this.contentRenderer.getEditPanel().focus();
|
|
95
|
-
}
|
|
96
93
|
if (isNullOrUndefined(e.items) || e.items) {
|
|
97
94
|
this.saveSelection.restore();
|
|
98
95
|
}
|
|
@@ -261,6 +261,10 @@ var QuickToolbar = /** @class */ (function () {
|
|
|
261
261
|
};
|
|
262
262
|
QuickToolbar.prototype.keyDownHandler = function (e) {
|
|
263
263
|
var preventHide = e.args.altKey;
|
|
264
|
+
if (this.parent.inlineMode.enable && e.args.metaKey && e.args.keyCode === 65) {
|
|
265
|
+
this.showInlineQTBar(this.offsetX, this.offsetY, e.args.target);
|
|
266
|
+
return;
|
|
267
|
+
}
|
|
264
268
|
if (!preventHide) {
|
|
265
269
|
if ((this.parent.inlineMode.enable && (!Browser.isDevice || isIDevice()))
|
|
266
270
|
&& !isNullOrUndefined(select('.' + CLS_INLINE_POP, document))) {
|
|
@@ -2420,10 +2420,8 @@ var RichTextEditor = /** @class */ (function (_super) {
|
|
|
2420
2420
|
}, 0);
|
|
2421
2421
|
}
|
|
2422
2422
|
else if (this.iframeSettings.enable) {
|
|
2423
|
-
var
|
|
2424
|
-
|
|
2425
|
-
_this.setAutoHeight(iframeElement_1);
|
|
2426
|
-
}, 100);
|
|
2423
|
+
var iframeElement = this.element.querySelector('#' + this.getID() + '_rte-view');
|
|
2424
|
+
this.setAutoHeight(iframeElement);
|
|
2427
2425
|
this.inputElement.style.overflow = 'hidden';
|
|
2428
2426
|
}
|
|
2429
2427
|
}
|
|
@@ -366,9 +366,11 @@ var ToolbarRenderer = /** @class */ (function () {
|
|
|
366
366
|
for (var index = 0; index < args.element.childNodes.length; index++) {
|
|
367
367
|
if (currentListStyle === args.element.childNodes[index].innerHTML.split(' ').join('').toLocaleLowerCase()) {
|
|
368
368
|
addClass([args.element.childNodes[index]], 'e-active');
|
|
369
|
+
break;
|
|
369
370
|
}
|
|
370
|
-
else if (currentListStyle === '') {
|
|
371
|
+
else if (currentListStyle === '' && args.element.childNodes[index].innerHTML !== 'None') {
|
|
371
372
|
addClass([args.element.childNodes[index]], 'e-active');
|
|
373
|
+
break;
|
|
372
374
|
}
|
|
373
375
|
}
|
|
374
376
|
}
|
|
@@ -457,8 +459,6 @@ var ToolbarRenderer = /** @class */ (function () {
|
|
|
457
459
|
target: colorPicker.element.parentElement, cssClass: css,
|
|
458
460
|
enablePersistence: this.parent.enablePersistence, enableRtl: this.parent.enableRtl,
|
|
459
461
|
beforeOpen: function (dropDownArgs) {
|
|
460
|
-
colorPicker.inline = true;
|
|
461
|
-
colorPicker.dataBind();
|
|
462
462
|
if (proxy.parent.readonly || !proxy.parent.enabled) {
|
|
463
463
|
dropDownArgs.cancel = true;
|
|
464
464
|
return;
|
|
@@ -597,14 +597,18 @@ var ToolbarRenderer = /** @class */ (function () {
|
|
|
597
597
|
var colorPicker = new ColorPicker({
|
|
598
598
|
enablePersistence: this.parent.enablePersistence,
|
|
599
599
|
enableRtl: this.parent.enableRtl,
|
|
600
|
-
inline:
|
|
601
|
-
value:
|
|
600
|
+
inline: true,
|
|
601
|
+
value: null,
|
|
602
|
+
cssClass: ((item === 'backgroundcolor') ? CLS_BACKGROUND_COLOR_PICKER : CLS_FONT_COLOR_PICKER) + ' ' + args.cssClass + ' ' + 'e-rte-picker-init',
|
|
602
603
|
created: function () {
|
|
603
604
|
var value = (item === 'backgroundcolor') ? proxy.parent.backgroundColor.default : proxy.parent.fontColor.default;
|
|
604
|
-
colorPicker.
|
|
605
|
+
colorPicker.cssClass = ((item === 'backgroundcolor') ? CLS_BACKGROUND_COLOR_PICKER : CLS_FONT_COLOR_PICKER) + ' ' + args.cssClass;
|
|
606
|
+
colorPicker.value = value;
|
|
605
607
|
},
|
|
606
608
|
mode: ((item === 'backgroundcolor') ? proxy.parent.backgroundColor.mode : proxy.parent.fontColor.mode),
|
|
607
609
|
modeSwitcher: ((item === 'backgroundcolor') ? proxy.parent.backgroundColor.modeSwitcher : proxy.parent.fontColor.modeSwitcher),
|
|
610
|
+
presetColors: (item === 'backgroundcolor') ? this.parent.backgroundColor.colorCode : this.parent.fontColor.colorCode,
|
|
611
|
+
columns: (item === 'backgroundcolor') ? this.parent.backgroundColor.columns : this.parent.fontColor.columns,
|
|
608
612
|
beforeTileRender: function (args) {
|
|
609
613
|
args.element.classList.add(CLS_COLOR_PALETTE);
|
|
610
614
|
args.element.classList.add(CLS_CUSTOM_TILE);
|
|
@@ -649,10 +653,6 @@ var ToolbarRenderer = /** @class */ (function () {
|
|
|
649
653
|
}
|
|
650
654
|
});
|
|
651
655
|
colorPicker.isStringTemplate = true;
|
|
652
|
-
colorPicker.columns = (item === 'backgroundcolor') ? this.parent.backgroundColor.columns : this.parent.fontColor.columns;
|
|
653
|
-
colorPicker.presetColors = (item === 'backgroundcolor') ? this.parent.backgroundColor.colorCode :
|
|
654
|
-
this.parent.fontColor.colorCode;
|
|
655
|
-
colorPicker.cssClass = ((item === 'backgroundcolor') ? CLS_BACKGROUND_COLOR_PICKER : CLS_FONT_COLOR_PICKER) + ' ' + args.cssClass;
|
|
656
656
|
colorPicker.createElement = this.parent.createElement;
|
|
657
657
|
colorPicker.appendTo(document.getElementById(args.target));
|
|
658
658
|
return colorPicker;
|
|
@@ -475,7 +475,7 @@
|
|
|
475
475
|
.e-richtexteditor.e-bigger .e-rte-toolbar.e-toolbar.e-extended-toolbar .e-toolbar-items .e-dropdown-btn .e-rte-color-content,
|
|
476
476
|
.e-richtexteditor.e-bigger .e-rte-toolbar.e-toolbar.e-extended-toolbar .e-toolbar-extended .e-dropdown-btn .e-rte-color-content {
|
|
477
477
|
padding-top: 1px;
|
|
478
|
-
height:
|
|
478
|
+
height: 35px;
|
|
479
479
|
}
|
|
480
480
|
.e-bigger .e-richtexteditor.e-rte-full-screen iframe,
|
|
481
481
|
.e-richtexteditor.e-bigger.e-rte-full-screen iframe {
|
|
@@ -545,11 +545,11 @@
|
|
|
545
545
|
}
|
|
546
546
|
.e-bigger .e-richtexteditor .e-toolbar.e-extended-toolbar .e-toolbar-extended .e-toolbar-item .e-tbar-btn.e-btn.e-control,
|
|
547
547
|
.e-richtexteditor.e-bigger .e-toolbar.e-extended-toolbar .e-toolbar-extended .e-toolbar-item .e-tbar-btn.e-btn.e-control {
|
|
548
|
-
padding: 0
|
|
548
|
+
padding: 0 7px;
|
|
549
549
|
}
|
|
550
550
|
.e-bigger .e-richtexteditor .e-toolbar.e-extended-toolbar .e-toolbar-extended .e-toolbar-item .e-tbar-btn.e-btn.e-control:hover,
|
|
551
551
|
.e-richtexteditor.e-bigger .e-toolbar.e-extended-toolbar .e-toolbar-extended .e-toolbar-item .e-tbar-btn.e-btn.e-control:hover {
|
|
552
|
-
padding: 0
|
|
552
|
+
padding: 0 7px;
|
|
553
553
|
}
|
|
554
554
|
|
|
555
555
|
.e-richtexteditor {
|
|
@@ -629,7 +629,7 @@
|
|
|
629
629
|
}
|
|
630
630
|
.e-richtexteditor .e-rte-toolbar .e-hor-nav.e-expended-nav {
|
|
631
631
|
height: auto;
|
|
632
|
-
min-height:
|
|
632
|
+
min-height: 40px;
|
|
633
633
|
padding-left: 1px;
|
|
634
634
|
}
|
|
635
635
|
.e-richtexteditor .e-rte-toolbar .e-toolbar-multirow {
|
|
@@ -1383,7 +1383,7 @@
|
|
|
1383
1383
|
.e-richtexteditor .e-toolbar.e-extended-toolbar .e-toolbar-extended .e-toolbar-item .e-tbar-btn.e-btn.e-control,
|
|
1384
1384
|
.e-rte-elements .e-toolbar.e-extended-toolbar .e-toolbar-extended .e-toolbar-item .e-tbar-btn.e-btn,
|
|
1385
1385
|
.e-rte-elements .e-toolbar.e-extended-toolbar .e-toolbar-extended .e-toolbar-item .e-tbar-btn.e-btn.e-control {
|
|
1386
|
-
padding:
|
|
1386
|
+
padding: 0 2.5px;
|
|
1387
1387
|
}
|
|
1388
1388
|
.e-richtexteditor .e-toolbar .e-toolbar-pop .e-toolbar-item.e-tbtn-align .e-btn.e-control .e-icons.e-btn-icon,
|
|
1389
1389
|
.e-rte-elements .e-toolbar .e-toolbar-pop .e-toolbar-item.e-tbtn-align .e-btn.e-control .e-icons.e-btn-icon {
|
|
@@ -1794,11 +1794,11 @@
|
|
|
1794
1794
|
}
|
|
1795
1795
|
.e-bigger .e-rte-quick-popup .e-rte-quick-toolbar .e-toolbar-items .e-rte-backgroundcolor-dropdown .e-rte-color-content,
|
|
1796
1796
|
.e-bigger .e-rte-quick-popup .e-rte-quick-toolbar .e-toolbar-items .e-rte-backgroundcolor-dropdown .e-caret {
|
|
1797
|
-
height:
|
|
1797
|
+
height: 35px;
|
|
1798
1798
|
}
|
|
1799
1799
|
.e-bigger .e-rte-quick-popup .e-rte-quick-toolbar .e-toolbar-items .e-rte-backgroundcolor-dropdown .e-rte-color-content:hover,
|
|
1800
1800
|
.e-bigger .e-rte-quick-popup .e-rte-quick-toolbar .e-toolbar-items .e-rte-backgroundcolor-dropdown .e-caret:hover {
|
|
1801
|
-
height:
|
|
1801
|
+
height: 35px;
|
|
1802
1802
|
}
|
|
1803
1803
|
.e-bigger .e-rte-quick-popup .e-rte-quick-toolbar .e-toolbar-items:not(.e-tbar-pos) {
|
|
1804
1804
|
margin: 0 6px;
|
|
@@ -2673,6 +2673,10 @@
|
|
|
2673
2673
|
display: block;
|
|
2674
2674
|
}
|
|
2675
2675
|
|
|
2676
|
+
.e-rte-picker-init {
|
|
2677
|
+
display: none !important; /* stylelint-disable-line declaration-no-important */
|
|
2678
|
+
}
|
|
2679
|
+
|
|
2676
2680
|
/*! tab layout */
|
|
2677
2681
|
.e-richtexteditor .e-rte-toolbar {
|
|
2678
2682
|
border: 1px solid #505050;
|
|
@@ -2940,6 +2944,9 @@
|
|
|
2940
2944
|
.e-richtexteditor .e-video-url-wrap textarea {
|
|
2941
2945
|
height: 80px;
|
|
2942
2946
|
}
|
|
2947
|
+
.e-richtexteditor .e-toolbar-extended .e-toolbar-item:not(.e-active) .e-tbar-btn {
|
|
2948
|
+
border: 1px solid transparent;
|
|
2949
|
+
}
|
|
2943
2950
|
|
|
2944
2951
|
.e-rte-quick-popup {
|
|
2945
2952
|
border: 0;
|
package/styles/bootstrap.css
CHANGED
|
@@ -770,7 +770,7 @@
|
|
|
770
770
|
}
|
|
771
771
|
.e-richtexteditor .e-rte-toolbar .e-hor-nav.e-expended-nav {
|
|
772
772
|
height: auto;
|
|
773
|
-
min-height:
|
|
773
|
+
min-height: 40px;
|
|
774
774
|
padding-left: 1px;
|
|
775
775
|
}
|
|
776
776
|
.e-richtexteditor .e-rte-toolbar .e-toolbar-multirow {
|
|
@@ -1524,7 +1524,7 @@
|
|
|
1524
1524
|
.e-richtexteditor .e-toolbar.e-extended-toolbar .e-toolbar-extended .e-toolbar-item .e-tbar-btn.e-btn.e-control,
|
|
1525
1525
|
.e-rte-elements .e-toolbar.e-extended-toolbar .e-toolbar-extended .e-toolbar-item .e-tbar-btn.e-btn,
|
|
1526
1526
|
.e-rte-elements .e-toolbar.e-extended-toolbar .e-toolbar-extended .e-toolbar-item .e-tbar-btn.e-btn.e-control {
|
|
1527
|
-
padding:
|
|
1527
|
+
padding: 1px 2.5px;
|
|
1528
1528
|
}
|
|
1529
1529
|
.e-richtexteditor .e-toolbar .e-toolbar-pop .e-toolbar-item.e-tbtn-align .e-btn.e-control .e-icons.e-btn-icon,
|
|
1530
1530
|
.e-rte-elements .e-toolbar .e-toolbar-pop .e-toolbar-item.e-tbtn-align .e-btn.e-control .e-icons.e-btn-icon {
|
|
@@ -1770,7 +1770,7 @@
|
|
|
1770
1770
|
.e-richtexteditor .e-rte-emojipicker-popup.e-popup.e-popup-open .e-toolbar .e-toolbar-item .e-tbar-btn:hover, .e-richtexteditor .e-rte-emojipicker-popup.e-popup.e-popup-open .e-toolbar .e-toolbar-item .e-tbar-btn:focus,
|
|
1771
1771
|
.e-rte-elements .e-rte-emojipicker-popup.e-popup.e-popup-open .e-toolbar .e-toolbar-item .e-tbar-btn:hover,
|
|
1772
1772
|
.e-rte-elements .e-rte-emojipicker-popup.e-popup.e-popup-open .e-toolbar .e-toolbar-item .e-tbar-btn:focus {
|
|
1773
|
-
padding:
|
|
1773
|
+
padding: 7px 3px;
|
|
1774
1774
|
}
|
|
1775
1775
|
.e-richtexteditor .e-rte-emojipicker-popup.e-popup.e-popup-open .e-toolbar .e-toolbar-item .e-tbar-btn .e-tbar-btn-text,
|
|
1776
1776
|
.e-rte-elements .e-rte-emojipicker-popup.e-popup.e-popup-open .e-toolbar .e-toolbar-item .e-tbar-btn .e-tbar-btn-text {
|
|
@@ -2819,6 +2819,10 @@
|
|
|
2819
2819
|
display: block;
|
|
2820
2820
|
}
|
|
2821
2821
|
|
|
2822
|
+
.e-rte-picker-init {
|
|
2823
|
+
display: none !important; /* stylelint-disable-line declaration-no-important */
|
|
2824
|
+
}
|
|
2825
|
+
|
|
2822
2826
|
/*! tab layout */
|
|
2823
2827
|
.e-richtexteditor .e-rte-toolbar {
|
|
2824
2828
|
border: 1px solid #ddd;
|
package/styles/bootstrap4.css
CHANGED
|
@@ -2901,6 +2901,10 @@
|
|
|
2901
2901
|
display: block;
|
|
2902
2902
|
}
|
|
2903
2903
|
|
|
2904
|
+
.e-rte-picker-init {
|
|
2905
|
+
display: none !important; /* stylelint-disable-line declaration-no-important */
|
|
2906
|
+
}
|
|
2907
|
+
|
|
2904
2908
|
/*! tab layout */
|
|
2905
2909
|
.e-richtexteditor .e-rte-toolbar {
|
|
2906
2910
|
border: 1px solid #dee2e6;
|
|
@@ -2717,6 +2717,10 @@
|
|
|
2717
2717
|
display: block;
|
|
2718
2718
|
}
|
|
2719
2719
|
|
|
2720
|
+
.e-rte-picker-init {
|
|
2721
|
+
display: none !important; /* stylelint-disable-line declaration-no-important */
|
|
2722
|
+
}
|
|
2723
|
+
|
|
2720
2724
|
/*! tab layout */
|
|
2721
2725
|
.e-richtexteditor .e-rte-toolbar {
|
|
2722
2726
|
border: 1px solid #444c54;
|
package/styles/bootstrap5.css
CHANGED
|
@@ -2717,6 +2717,10 @@
|
|
|
2717
2717
|
display: block;
|
|
2718
2718
|
}
|
|
2719
2719
|
|
|
2720
|
+
.e-rte-picker-init {
|
|
2721
|
+
display: none !important; /* stylelint-disable-line declaration-no-important */
|
|
2722
|
+
}
|
|
2723
|
+
|
|
2720
2724
|
/*! tab layout */
|
|
2721
2725
|
.e-richtexteditor .e-rte-toolbar {
|
|
2722
2726
|
border: 1px solid #dee2e6;
|
package/styles/fabric-dark.css
CHANGED
|
@@ -2654,6 +2654,10 @@
|
|
|
2654
2654
|
display: block;
|
|
2655
2655
|
}
|
|
2656
2656
|
|
|
2657
|
+
.e-rte-picker-init {
|
|
2658
|
+
display: none !important; /* stylelint-disable-line declaration-no-important */
|
|
2659
|
+
}
|
|
2660
|
+
|
|
2657
2661
|
/*! tab layout */
|
|
2658
2662
|
.e-richtexteditor .e-rte-toolbar {
|
|
2659
2663
|
border: 1px solid #414040;
|
package/styles/fabric.css
CHANGED
|
@@ -2654,6 +2654,10 @@
|
|
|
2654
2654
|
display: block;
|
|
2655
2655
|
}
|
|
2656
2656
|
|
|
2657
|
+
.e-rte-picker-init {
|
|
2658
|
+
display: none !important; /* stylelint-disable-line declaration-no-important */
|
|
2659
|
+
}
|
|
2660
|
+
|
|
2657
2661
|
/*! tab layout */
|
|
2658
2662
|
.e-richtexteditor .e-rte-toolbar {
|
|
2659
2663
|
border: 1px solid #dadada;
|
package/styles/fluent-dark.css
CHANGED
|
@@ -453,7 +453,7 @@
|
|
|
453
453
|
.e-richtexteditor.e-bigger .e-rte-toolbar .e-toolbar-extended .e-toolbar-item.e-active .e-tbar-btn.e-btn,
|
|
454
454
|
.e-richtexteditor.e-bigger .e-rte-toolbar.e-toolbar.e-extended-toolbar .e-toolbar-items .e-toolbar-item.e-active .e-tbar-btn.e-btn,
|
|
455
455
|
.e-richtexteditor.e-bigger .e-rte-toolbar.e-toolbar.e-extended-toolbar .e-toolbar-extended .e-toolbar-item.e-active .e-tbar-btn.e-btn {
|
|
456
|
-
padding: 0
|
|
456
|
+
padding: 0 8px;
|
|
457
457
|
border-radius: 0;
|
|
458
458
|
}
|
|
459
459
|
.e-bigger .e-richtexteditor .e-rte-toolbar .e-toolbar-items .e-dropdown-btn .e-rte-color-content,
|
|
@@ -747,7 +747,7 @@
|
|
|
747
747
|
.e-richtexteditor .e-rte-toolbar .e-toolbar-extended .e-toolbar-item.e-active .e-tbar-btn.e-btn,
|
|
748
748
|
.e-richtexteditor .e-rte-toolbar.e-toolbar.e-extended-toolbar .e-toolbar-items .e-toolbar-item.e-active .e-tbar-btn.e-btn,
|
|
749
749
|
.e-richtexteditor .e-rte-toolbar.e-toolbar.e-extended-toolbar .e-toolbar-extended .e-toolbar-item.e-active .e-tbar-btn.e-btn {
|
|
750
|
-
padding: 0;
|
|
750
|
+
padding: 0 4px;
|
|
751
751
|
border-radius: 0;
|
|
752
752
|
}
|
|
753
753
|
.e-richtexteditor .e-rte-toolbar .e-toolbar-items .e-dropdown-btn .e-rte-color-content,
|
|
@@ -2702,6 +2702,10 @@
|
|
|
2702
2702
|
display: block;
|
|
2703
2703
|
}
|
|
2704
2704
|
|
|
2705
|
+
.e-rte-picker-init {
|
|
2706
|
+
display: none !important; /* stylelint-disable-line declaration-no-important */
|
|
2707
|
+
}
|
|
2708
|
+
|
|
2705
2709
|
/*! tab layout */
|
|
2706
2710
|
.e-richtexteditor .e-rte-toolbar {
|
|
2707
2711
|
border: 1px solid #292827;
|
|
@@ -2712,7 +2716,7 @@
|
|
|
2712
2716
|
}
|
|
2713
2717
|
.e-richtexteditor .e-rte-toolbar .e-toolbar-item.e-active .e-tbar-btn, .e-richtexteditor .e-rte-toolbar .e-toolbar-item.e-active .e-tbar-btn:focus {
|
|
2714
2718
|
background: #3b3a39;
|
|
2715
|
-
border:
|
|
2719
|
+
border: 1px solid transparent;
|
|
2716
2720
|
}
|
|
2717
2721
|
.e-richtexteditor .e-rte-toolbar .e-toolbar-item.e-active .e-tbar-btn .e-icons, .e-richtexteditor .e-rte-toolbar .e-toolbar-item.e-active .e-tbar-btn:focus .e-icons {
|
|
2718
2722
|
color: #a19f9d;
|
|
@@ -2780,7 +2784,7 @@
|
|
|
2780
2784
|
}
|
|
2781
2785
|
.e-richtexteditor .e-rte-toolbar .e-toolbar-item .e-rte-backgroundcolor-dropdown.e-active, .e-richtexteditor .e-rte-toolbar .e-toolbar-item .e-rte-fontcolor-dropdown.e-active, .e-richtexteditor .e-rte-toolbar .e-toolbar-item .e-rte-numberformatlist-dropdown.e-active, .e-richtexteditor .e-rte-toolbar .e-toolbar-item .e-rte-bulletformatlist-dropdown.e-active {
|
|
2782
2786
|
background: #3b3a39;
|
|
2783
|
-
border:
|
|
2787
|
+
border: 1px solid transparent;
|
|
2784
2788
|
}
|
|
2785
2789
|
.e-richtexteditor .e-rte-toolbar .e-toolbar-item .e-rte-backgroundcolor-dropdown.e-active .e-rte-color-content::after, .e-richtexteditor .e-rte-toolbar .e-toolbar-item .e-rte-fontcolor-dropdown.e-active .e-rte-color-content::after, .e-richtexteditor .e-rte-toolbar .e-toolbar-item .e-rte-numberformatlist-dropdown.e-active .e-rte-color-content::after, .e-richtexteditor .e-rte-toolbar .e-toolbar-item .e-rte-bulletformatlist-dropdown.e-active .e-rte-color-content::after {
|
|
2786
2790
|
background: #1b1a19;
|
|
@@ -2969,6 +2973,18 @@
|
|
|
2969
2973
|
.e-richtexteditor .e-video-url-wrap textarea {
|
|
2970
2974
|
height: 80px;
|
|
2971
2975
|
}
|
|
2976
|
+
.e-richtexteditor .e-toolbar.e-extended-toolbar .e-toolbar-extended .e-toolbar-item .e-tbar-btn {
|
|
2977
|
+
border: 1px solid transparent;
|
|
2978
|
+
}
|
|
2979
|
+
.e-richtexteditor .e-toolbar.e-extended-toolbar .e-toolbar-extended .e-toolbar-item .e-tbar-btn:hover {
|
|
2980
|
+
border: 1px solid transparent;
|
|
2981
|
+
}
|
|
2982
|
+
.e-richtexteditor .e-toolbar .e-toolbar-item .e-tbar-btn {
|
|
2983
|
+
border: 1px solid transparent;
|
|
2984
|
+
}
|
|
2985
|
+
.e-richtexteditor .e-toolbar .e-toolbar-item .e-tbar-btn:hover {
|
|
2986
|
+
border: 1px solid transparent;
|
|
2987
|
+
}
|
|
2972
2988
|
|
|
2973
2989
|
.e-rte-quick-popup {
|
|
2974
2990
|
border: none;
|
|
@@ -3022,7 +3038,7 @@
|
|
|
3022
3038
|
.e-rte-quick-popup .e-rte-quick-toolbar .e-toolbar-items .e-toolbar-item.e-active .e-tbar-btn,
|
|
3023
3039
|
.e-rte-quick-popup .e-rte-quick-toolbar .e-toolbar-items .e-toolbar-item.e-active .e-tbar-btn:focus {
|
|
3024
3040
|
background: #3b3a39;
|
|
3025
|
-
border:
|
|
3041
|
+
border: 1px solid transparent;
|
|
3026
3042
|
}
|
|
3027
3043
|
.e-rte-quick-popup .e-rte-quick-toolbar .e-toolbar-items .e-toolbar-item.e-active .e-tbar-btn .e-icons,
|
|
3028
3044
|
.e-rte-quick-popup .e-rte-quick-toolbar .e-toolbar-items .e-toolbar-item.e-active .e-tbar-btn:focus .e-icons {
|