@syncfusion/ej2-richtexteditor 20.2.46 → 20.2.49
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 +16 -0
- 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 +7 -4
- package/dist/es6/ej2-richtexteditor.es2015.js.map +1 -1
- package/dist/es6/ej2-richtexteditor.es5.js +9 -5
- 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 +9 -9
- package/src/editor-manager/plugin/inserthtml.js +2 -2
- package/src/rich-text-editor/base/interface.d.ts +2 -0
- package/src/rich-text-editor/base/rich-text-editor.d.ts +1 -0
- package/src/rich-text-editor/base/rich-text-editor.js +7 -3
- package/styles/fluent-dark.css +1 -0
- package/styles/fluent.css +1 -0
- package/styles/rich-text-editor/_layout.scss +3 -0
- package/styles/rich-text-editor/fluent-dark.css +1 -0
- package/styles/rich-text-editor/fluent.css +1 -0
package/dist/global/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* filename: index.d.ts
|
|
3
|
-
* version : 20.2.
|
|
3
|
+
* version : 20.2.49
|
|
4
4
|
* Copyright Syncfusion Inc. 2001 - 2020. 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@20.2.
|
|
3
|
+
"_id": "@syncfusion/ej2-richtexteditor@20.2.46",
|
|
4
4
|
"_inBundle": false,
|
|
5
|
-
"_integrity": "sha512-
|
|
5
|
+
"_integrity": "sha512-FAxbJFQ7jN+BCDvMXfKxfjAADZCh+sqZcmpSQOlIMiI4yS6sqD6zCPQ4/cu+3cCOqT3hMOoWCoIEZEnVJlZWLg==",
|
|
6
6
|
"_location": "/@syncfusion/ej2-richtexteditor",
|
|
7
7
|
"_phantomChildren": {},
|
|
8
8
|
"_requested": {
|
|
@@ -26,8 +26,8 @@
|
|
|
26
26
|
"/@syncfusion/ej2-react-richtexteditor",
|
|
27
27
|
"/@syncfusion/ej2-vue-richtexteditor"
|
|
28
28
|
],
|
|
29
|
-
"_resolved": "http://nexus.syncfusion.com/repository/ej2-hotfix-new/@syncfusion/ej2-richtexteditor/-/ej2-richtexteditor-20.2.
|
|
30
|
-
"_shasum": "
|
|
29
|
+
"_resolved": "http://nexus.syncfusion.com/repository/ej2-hotfix-new/@syncfusion/ej2-richtexteditor/-/ej2-richtexteditor-20.2.46.tgz",
|
|
30
|
+
"_shasum": "e9b1bd287385eee5a5111fe68f948c89541b35b9",
|
|
31
31
|
"_spec": "@syncfusion/ej2-richtexteditor@*",
|
|
32
32
|
"_where": "/jenkins/workspace/automation_release_19.1.0.1-ZPMUBNQ6AUYH6YGEFBPVYMEQLRRW2SLD4XCZ6GATNZJFYJ3RIAOA/packages/included",
|
|
33
33
|
"author": {
|
|
@@ -38,12 +38,12 @@
|
|
|
38
38
|
},
|
|
39
39
|
"bundleDependencies": false,
|
|
40
40
|
"dependencies": {
|
|
41
|
-
"@syncfusion/ej2-base": "~20.2.
|
|
41
|
+
"@syncfusion/ej2-base": "~20.2.48",
|
|
42
42
|
"@syncfusion/ej2-buttons": "~20.2.46",
|
|
43
43
|
"@syncfusion/ej2-filemanager": "~20.2.45",
|
|
44
|
-
"@syncfusion/ej2-inputs": "~20.2.
|
|
45
|
-
"@syncfusion/ej2-navigations": "~20.2.
|
|
46
|
-
"@syncfusion/ej2-popups": "~20.2.
|
|
44
|
+
"@syncfusion/ej2-inputs": "~20.2.48",
|
|
45
|
+
"@syncfusion/ej2-navigations": "~20.2.49",
|
|
46
|
+
"@syncfusion/ej2-popups": "~20.2.49",
|
|
47
47
|
"@syncfusion/ej2-splitbuttons": "~20.2.45"
|
|
48
48
|
},
|
|
49
49
|
"deprecated": false,
|
|
@@ -70,6 +70,6 @@
|
|
|
70
70
|
"url": "git+https://github.com/syncfusion/ej2-javascript-ui-controls.git"
|
|
71
71
|
},
|
|
72
72
|
"typings": "index.d.ts",
|
|
73
|
-
"version": "20.2.
|
|
73
|
+
"version": "20.2.49",
|
|
74
74
|
"sideEffects": false
|
|
75
75
|
}
|
|
@@ -320,7 +320,7 @@ var InsertHtml = /** @class */ (function () {
|
|
|
320
320
|
InsertHtml.getNodeCollection = function (range, nodeSelection, node) {
|
|
321
321
|
var nodes = [];
|
|
322
322
|
if (range.startOffset === range.endOffset && range.startContainer === range.endContainer &&
|
|
323
|
-
range.startContainer.nodeName != 'BR' &&
|
|
323
|
+
range.startContainer.nodeName != 'BR' && range.startContainer.childNodes.length > 0 &&
|
|
324
324
|
(range.startContainer.nodeName === 'TD' || (range.startContainer.nodeType !== 3 &&
|
|
325
325
|
node.classList && node.classList.contains('pasteContent')))) {
|
|
326
326
|
nodes.push(range.startContainer.childNodes[range.endOffset]);
|
|
@@ -373,7 +373,7 @@ var InsertHtml = /** @class */ (function () {
|
|
|
373
373
|
node.firstElementChild.insertAdjacentElement('afterend', liNode);
|
|
374
374
|
}
|
|
375
375
|
}
|
|
376
|
-
if (blockNode.nodeName === 'TD' || blockNode.nodeName === 'TH') {
|
|
376
|
+
if (blockNode.nodeName === 'TD' || blockNode.nodeName === 'TH' || blockNode.nodeName === 'TR') {
|
|
377
377
|
var tempSpan = createElement('span', { className: 'tempSpan' });
|
|
378
378
|
range.insertNode(tempSpan);
|
|
379
379
|
tempSpan.parentNode.replaceChild(node, tempSpan);
|
|
@@ -889,6 +889,8 @@ export interface ChangeEventArgs {
|
|
|
889
889
|
value: string;
|
|
890
890
|
/** Defines the event name. */
|
|
891
891
|
name?: string;
|
|
892
|
+
/** Specifies whether the request should be saved automatically or focused out. */
|
|
893
|
+
isInteracted: boolean;
|
|
892
894
|
}
|
|
893
895
|
/**
|
|
894
896
|
* Provides information about a DialogOpen event.
|
|
@@ -70,7 +70,9 @@ import { DialogRenderer } from '../renderer/dialog-renderer';
|
|
|
70
70
|
var RichTextEditor = /** @class */ (function (_super) {
|
|
71
71
|
__extends(RichTextEditor, _super);
|
|
72
72
|
function RichTextEditor(options, element) {
|
|
73
|
-
|
|
73
|
+
var _this = _super.call(this, options, element) || this;
|
|
74
|
+
_this.needsID = true;
|
|
75
|
+
return _this;
|
|
74
76
|
}
|
|
75
77
|
/**
|
|
76
78
|
* To provide the array of modules needed for component rendering
|
|
@@ -155,7 +157,6 @@ var RichTextEditor = /** @class */ (function (_super) {
|
|
|
155
157
|
this.isFocusOut = false;
|
|
156
158
|
this.isRTE = false;
|
|
157
159
|
this.isBlur = true;
|
|
158
|
-
this.needsID = true;
|
|
159
160
|
this.defaultResetValue = null;
|
|
160
161
|
this.isResizeInitialized = false;
|
|
161
162
|
};
|
|
@@ -1880,6 +1881,7 @@ var RichTextEditor = /** @class */ (function (_super) {
|
|
|
1880
1881
|
}
|
|
1881
1882
|
this.setProperties({ value: this.getUpdatedValue() }, true);
|
|
1882
1883
|
this.valueContainer.value = this.value;
|
|
1884
|
+
this.isValueChangeBlurhandler = false;
|
|
1883
1885
|
this.invokeChangeEvent();
|
|
1884
1886
|
};
|
|
1885
1887
|
RichTextEditor.prototype.updateIntervalValue = function () {
|
|
@@ -1935,6 +1937,7 @@ var RichTextEditor = /** @class */ (function (_super) {
|
|
|
1935
1937
|
var value = this.getUpdatedValue();
|
|
1936
1938
|
this.setProperties({ value: value });
|
|
1937
1939
|
this.notify(events.toolbarRefresh, { args: e, documentNode: document });
|
|
1940
|
+
this.isValueChangeBlurhandler = true;
|
|
1938
1941
|
this.invokeChangeEvent();
|
|
1939
1942
|
this.isFocusOut = true;
|
|
1940
1943
|
this.isBlur = false;
|
|
@@ -1982,7 +1985,8 @@ var RichTextEditor = /** @class */ (function (_super) {
|
|
|
1982
1985
|
currentValue = this.value;
|
|
1983
1986
|
}
|
|
1984
1987
|
var eventArgs = {
|
|
1985
|
-
value: currentValue
|
|
1988
|
+
value: currentValue,
|
|
1989
|
+
isInteracted: this.isValueChangeBlurhandler
|
|
1986
1990
|
};
|
|
1987
1991
|
if (this.value !== this.cloneValue) {
|
|
1988
1992
|
this.trigger('change', eventArgs);
|
package/styles/fluent-dark.css
CHANGED
|
@@ -2226,6 +2226,7 @@
|
|
|
2226
2226
|
|
|
2227
2227
|
.e-rte-table-popup.e-dialog .e-dlg-content {
|
|
2228
2228
|
padding: 0;
|
|
2229
|
+
margin-bottom: 0;
|
|
2229
2230
|
}
|
|
2230
2231
|
|
|
2231
2232
|
.e-rte-quick-toolbar.e-toolbar .e-toolbar-items .e-toolbar-item .e-rte-backgroundcolor-dropdown.e-dropdown-btn.e-tbar-btn.e-btn.e-control,
|
package/styles/fluent.css
CHANGED
|
@@ -2226,6 +2226,7 @@
|
|
|
2226
2226
|
|
|
2227
2227
|
.e-rte-table-popup.e-dialog .e-dlg-content {
|
|
2228
2228
|
padding: 0;
|
|
2229
|
+
margin-bottom: 0;
|
|
2229
2230
|
}
|
|
2230
2231
|
|
|
2231
2232
|
.e-rte-quick-toolbar.e-toolbar .e-toolbar-items .e-toolbar-item .e-rte-backgroundcolor-dropdown.e-dropdown-btn.e-tbar-btn.e-btn.e-control,
|
|
@@ -2226,6 +2226,7 @@
|
|
|
2226
2226
|
|
|
2227
2227
|
.e-rte-table-popup.e-dialog .e-dlg-content {
|
|
2228
2228
|
padding: 0;
|
|
2229
|
+
margin-bottom: 0;
|
|
2229
2230
|
}
|
|
2230
2231
|
|
|
2231
2232
|
.e-rte-quick-toolbar.e-toolbar .e-toolbar-items .e-toolbar-item .e-rte-backgroundcolor-dropdown.e-dropdown-btn.e-tbar-btn.e-btn.e-control,
|
|
@@ -2226,6 +2226,7 @@
|
|
|
2226
2226
|
|
|
2227
2227
|
.e-rte-table-popup.e-dialog .e-dlg-content {
|
|
2228
2228
|
padding: 0;
|
|
2229
|
+
margin-bottom: 0;
|
|
2229
2230
|
}
|
|
2230
2231
|
|
|
2231
2232
|
.e-rte-quick-toolbar.e-toolbar .e-toolbar-items .e-toolbar-item .e-rte-backgroundcolor-dropdown.e-dropdown-btn.e-tbar-btn.e-btn.e-control,
|