@syncfusion/ej2-richtexteditor 18.4.34 → 18.4.42-70943
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 +782 -718
- package/README.md +67 -67
- package/dist/ej2-richtexteditor.umd.min.js +1 -1
- package/dist/ej2-richtexteditor.umd.min.js.map +1 -1
- package/dist/es6/ej2-richtexteditor.es2015.js +271 -153
- package/dist/es6/ej2-richtexteditor.es2015.js.map +1 -1
- package/dist/es6/ej2-richtexteditor.es5.js +393 -275
- package/dist/es6/ej2-richtexteditor.es5.js.map +1 -1
- package/helpers/e2e/index.js +3 -3
- package/license +9 -9
- package/package.json +76 -53
- package/src/editor-manager/plugin/image.js +2 -1
- package/src/editor-manager/plugin/inserthtml.js +14 -10
- package/src/editor-manager/plugin/link.js +6 -6
- package/src/editor-manager/plugin/lists.js +6 -2
- package/src/editor-manager/plugin/ms-word-clean-up.js +22 -6
- package/src/editor-manager/plugin/selection-commands.d.ts +1 -0
- package/src/editor-manager/plugin/selection-commands.js +34 -3
- package/src/editor-manager/plugin/table.js +2 -1
- package/src/global.d.ts +1 -0
- package/src/rich-text-editor/actions/full-screen.d.ts +0 -1
- package/src/rich-text-editor/actions/full-screen.js +6 -4
- package/src/rich-text-editor/actions/keyboard-model.d.ts +13 -13
- package/src/rich-text-editor/actions/keyboard.js +21 -20
- package/src/rich-text-editor/actions/resize.js +3 -0
- package/src/rich-text-editor/base/constant.d.ts +5 -0
- package/src/rich-text-editor/base/constant.js +5 -0
- package/src/rich-text-editor/base/rich-text-editor-model.d.ts +701 -701
- package/src/rich-text-editor/base/rich-text-editor.js +61 -36
- package/src/rich-text-editor/formatter/html-formatter.js +13 -13
- package/src/rich-text-editor/formatter/markdown-formatter.js +13 -13
- package/src/rich-text-editor/models/iframe-settings-model.d.ts +21 -21
- package/src/rich-text-editor/models/iframe-settings.js +19 -19
- package/src/rich-text-editor/models/inline-mode-model.d.ts +9 -9
- package/src/rich-text-editor/models/inline-mode.js +19 -19
- package/src/rich-text-editor/models/toolbar-settings-model.d.ts +328 -328
- package/src/rich-text-editor/models/toolbar-settings.js +19 -19
- package/src/rich-text-editor/renderer/iframe-content-renderer.js +13 -13
- package/src/rich-text-editor/renderer/image-module.d.ts +2 -0
- package/src/rich-text-editor/renderer/image-module.js +28 -8
- package/src/rich-text-editor/renderer/table-module.js +6 -1
- package/styles/_all.scss +2 -2
- package/styles/bootstrap-dark.css +22 -1
- package/styles/bootstrap.css +22 -1
- package/styles/bootstrap4.css +22 -1
- package/styles/bootstrap5-dark.css +0 -0
- package/styles/bootstrap5-dark.scss +0 -0
- package/styles/bootstrap5.css +0 -0
- package/styles/bootstrap5.scss +0 -0
- package/styles/fabric-dark.css +22 -1
- package/styles/fabric.css +22 -1
- package/styles/highcontrast-light.css +22 -1
- package/styles/highcontrast.css +22 -1
- package/styles/material-dark.css +22 -1
- package/styles/material.css +22 -1
- package/styles/rich-text-editor/_all.scss +2 -2
- package/styles/rich-text-editor/_bootstrap-dark-definition.scss +151 -151
- package/styles/rich-text-editor/_bootstrap-definition.scss +184 -184
- package/styles/rich-text-editor/_bootstrap4-definition.scss +307 -307
- package/styles/rich-text-editor/_fabric-dark-definition.scss +150 -150
- package/styles/rich-text-editor/_fabric-definition.scss +148 -148
- package/styles/rich-text-editor/_highcontrast-definition.scss +148 -148
- package/styles/rich-text-editor/_highcontrast-light-definition.scss +148 -148
- package/styles/rich-text-editor/_layout.scss +1416 -1405
- package/styles/rich-text-editor/_material-dark-definition.scss +151 -151
- package/styles/rich-text-editor/_material-definition.scss +150 -150
- package/styles/rich-text-editor/_theme.scss +499 -489
- package/styles/rich-text-editor/bootstrap-dark.css +22 -1
- package/styles/rich-text-editor/bootstrap.css +22 -1
- package/styles/rich-text-editor/bootstrap4.css +22 -1
- package/styles/rich-text-editor/fabric-dark.css +22 -1
- package/styles/rich-text-editor/fabric.css +22 -1
- package/styles/rich-text-editor/highcontrast-light.css +22 -1
- package/styles/rich-text-editor/highcontrast.css +22 -1
- package/styles/rich-text-editor/icons/_bootstrap-dark.scss +289 -289
- package/styles/rich-text-editor/icons/_bootstrap.scss +288 -288
- package/styles/rich-text-editor/icons/_bootstrap4.scss +288 -288
- package/styles/rich-text-editor/icons/_fabric-dark.scss +288 -288
- package/styles/rich-text-editor/icons/_fabric.scss +288 -288
- package/styles/rich-text-editor/icons/_highcontrast-light.scss +288 -288
- package/styles/rich-text-editor/icons/_highcontrast.scss +288 -288
- package/styles/rich-text-editor/icons/_material-dark.scss +288 -288
- package/styles/rich-text-editor/icons/_material.scss +288 -288
- package/styles/rich-text-editor/material-dark.css +22 -1
- package/styles/rich-text-editor/material.css +22 -1
- package/styles/tailwind-dark.css +0 -0
- package/styles/tailwind-dark.scss +0 -0
- package/styles/tailwind.css +0 -0
- package/styles/tailwind.scss +0 -0
- package/dist/global/ej2-richtexteditor.min.js +0 -2
- package/dist/global/ej2-richtexteditor.min.js.map +0 -1
- package/dist/global/index.d.ts +0 -5
|
@@ -1,33 +1,33 @@
|
|
|
1
|
-
var __extends = (this && this.__extends) || (function () {
|
|
2
|
-
var extendStatics = function (d, b) {
|
|
3
|
-
extendStatics = Object.setPrototypeOf ||
|
|
4
|
-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
5
|
-
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
|
6
|
-
return extendStatics(d, b);
|
|
7
|
-
}
|
|
8
|
-
return function (d, b) {
|
|
9
|
-
extendStatics(d, b);
|
|
10
|
-
function __() { this.constructor = d; }
|
|
11
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
12
|
-
};
|
|
13
|
-
})();
|
|
14
|
-
var __assign = (this && this.__assign) || function () {
|
|
15
|
-
__assign = Object.assign || function(t) {
|
|
16
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
17
|
-
s = arguments[i];
|
|
18
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
19
|
-
t[p] = s[p];
|
|
20
|
-
}
|
|
21
|
-
return t;
|
|
22
|
-
};
|
|
23
|
-
return __assign.apply(this, arguments);
|
|
24
|
-
};
|
|
25
|
-
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
26
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
27
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
28
|
-
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
29
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
30
|
-
};
|
|
1
|
+
var __extends = (this && this.__extends) || (function () {
|
|
2
|
+
var extendStatics = function (d, b) {
|
|
3
|
+
extendStatics = Object.setPrototypeOf ||
|
|
4
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
5
|
+
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
|
6
|
+
return extendStatics(d, b);
|
|
7
|
+
};
|
|
8
|
+
return function (d, b) {
|
|
9
|
+
extendStatics(d, b);
|
|
10
|
+
function __() { this.constructor = d; }
|
|
11
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
12
|
+
};
|
|
13
|
+
})();
|
|
14
|
+
var __assign = (this && this.__assign) || function () {
|
|
15
|
+
__assign = Object.assign || function(t) {
|
|
16
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
17
|
+
s = arguments[i];
|
|
18
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
19
|
+
t[p] = s[p];
|
|
20
|
+
}
|
|
21
|
+
return t;
|
|
22
|
+
};
|
|
23
|
+
return __assign.apply(this, arguments);
|
|
24
|
+
};
|
|
25
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
26
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
27
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
28
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
29
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
30
|
+
};
|
|
31
31
|
import { Component, EventHandler, Complex, Browser, addClass, select, detach } from '@syncfusion/ej2-base';
|
|
32
32
|
import { Property, NotifyPropertyChanges, formatUnit, L10n, closest } from '@syncfusion/ej2-base';
|
|
33
33
|
import { setStyleAttribute, Event, removeClass, print as printWindow, attributes } from '@syncfusion/ej2-base';
|
|
@@ -528,6 +528,17 @@ var RichTextEditor = /** @class */ (function (_super) {
|
|
|
528
528
|
this.autoResize();
|
|
529
529
|
};
|
|
530
530
|
RichTextEditor.prototype.keyUp = function (e) {
|
|
531
|
+
if (this.editorMode === "HTML") {
|
|
532
|
+
var range = this.getRange();
|
|
533
|
+
if (Browser.userAgent.indexOf('Firefox') != -1 && range.startContainer.nodeName === '#text' &&
|
|
534
|
+
range.startContainer.parentElement === this.inputElement) {
|
|
535
|
+
var range_1 = this.getRange();
|
|
536
|
+
var tempElem = this.createElement('p');
|
|
537
|
+
range_1.startContainer.parentElement.insertBefore(tempElem, range_1.startContainer);
|
|
538
|
+
tempElem.appendChild(range_1.startContainer);
|
|
539
|
+
this.formatter.editorManager.nodeSelection.setSelectionText(this.contentModule.getDocument(), tempElem.childNodes[0], tempElem.childNodes[0], tempElem.childNodes[0].textContent.length, tempElem.childNodes[0].textContent.length);
|
|
540
|
+
}
|
|
541
|
+
}
|
|
531
542
|
this.notify(events.keyUp, { member: 'keyup', args: e });
|
|
532
543
|
if (e.code === 'KeyX' && e.which === 88 && e.keyCode === 88 && e.ctrlKey && (this.inputElement.innerHTML === '' ||
|
|
533
544
|
this.inputElement.innerHTML === '<br>')) {
|
|
@@ -538,11 +549,14 @@ var RichTextEditor = /** @class */ (function (_super) {
|
|
|
538
549
|
&& ((e.key !== 'shift' && !e.ctrlKey) && e.key && e.key.length === 1 || allowedKeys)) && !this.inlineMode.enable) {
|
|
539
550
|
this.formatter.onKeyHandler(this, e);
|
|
540
551
|
}
|
|
541
|
-
if (this.inputElement && this.inputElement.textContent.length !== 0
|
|
552
|
+
if (this.inputElement && this.inputElement.textContent.length !== 0
|
|
553
|
+
|| this.element.querySelectorAll('.e-toolbar-item.e-active').length > 0) {
|
|
542
554
|
this.notify(events.toolbarRefresh, { args: e });
|
|
543
555
|
}
|
|
544
556
|
if (!isNOU(this.placeholder)) {
|
|
545
|
-
this.
|
|
557
|
+
if (!(e.key === 'Enter' && e.keyCode === 13) && this.inputElement.innerHTML === '<p><br></p>') {
|
|
558
|
+
this.setPlaceHolder();
|
|
559
|
+
}
|
|
546
560
|
}
|
|
547
561
|
};
|
|
548
562
|
/**
|
|
@@ -727,7 +741,9 @@ var RichTextEditor = /** @class */ (function (_super) {
|
|
|
727
741
|
return;
|
|
728
742
|
}
|
|
729
743
|
if (this.element.offsetParent === null) {
|
|
730
|
-
this.toolbarModule
|
|
744
|
+
if (!isNOU(this.toolbarModule)) {
|
|
745
|
+
this.toolbarModule.destroy();
|
|
746
|
+
}
|
|
731
747
|
return;
|
|
732
748
|
}
|
|
733
749
|
this.notify(events.destroy, {});
|
|
@@ -1107,8 +1123,7 @@ var RichTextEditor = /** @class */ (function (_super) {
|
|
|
1107
1123
|
this.placeHolderWrapper.innerHTML = this.placeholder;
|
|
1108
1124
|
if (this.inputElement.textContent.length === 0 &&
|
|
1109
1125
|
!isNOU(this.inputElement.firstChild) && this.inputElement.firstChild.nodeName === 'P' &&
|
|
1110
|
-
!isNOU(this.inputElement.firstChild.firstChild) && this.inputElement.firstChild.firstChild.nodeName === 'BR'
|
|
1111
|
-
this.inputElement.innerHTML !== '<p><br></p><p><br></p>') {
|
|
1126
|
+
!isNOU(this.inputElement.firstChild.firstChild) && this.inputElement.firstChild.firstChild.nodeName === 'BR') {
|
|
1112
1127
|
this.placeHolderWrapper.style.display = 'block';
|
|
1113
1128
|
}
|
|
1114
1129
|
else {
|
|
@@ -1336,7 +1351,9 @@ var RichTextEditor = /** @class */ (function (_super) {
|
|
|
1336
1351
|
var item = compiledTemplate[i];
|
|
1337
1352
|
append([item], this.element);
|
|
1338
1353
|
}
|
|
1339
|
-
|
|
1354
|
+
if (this.element.innerHTML.trim() !== '') {
|
|
1355
|
+
this.setProperties({ value: this.element.innerHTML.trim() });
|
|
1356
|
+
}
|
|
1340
1357
|
}
|
|
1341
1358
|
}
|
|
1342
1359
|
else {
|
|
@@ -1530,11 +1547,16 @@ var RichTextEditor = /** @class */ (function (_super) {
|
|
|
1530
1547
|
};
|
|
1531
1548
|
RichTextEditor.prototype.resizeHandler = function () {
|
|
1532
1549
|
var isExpand = false;
|
|
1550
|
+
if (!document.body.contains(this.element)) {
|
|
1551
|
+
document.defaultView.removeEventListener('resize', this.onResizeHandler, true);
|
|
1552
|
+
return;
|
|
1553
|
+
}
|
|
1533
1554
|
if (this.toolbarSettings.enable && !this.inlineMode.enable) {
|
|
1534
1555
|
this.toolbarModule.refreshToolbarOverflow();
|
|
1535
1556
|
isExpand = this.toolbarModule.baseToolbar.toolbarObj.element.classList.contains(classes.CLS_EXPAND_OPEN);
|
|
1536
1557
|
}
|
|
1537
1558
|
this.setContentHeight('', isExpand);
|
|
1559
|
+
this.notify(events.windowResize, null);
|
|
1538
1560
|
};
|
|
1539
1561
|
RichTextEditor.prototype.scrollHandler = function (e) {
|
|
1540
1562
|
this.notify(events.scroll, { args: e });
|
|
@@ -1610,6 +1632,9 @@ var RichTextEditor = /** @class */ (function (_super) {
|
|
|
1610
1632
|
return value;
|
|
1611
1633
|
};
|
|
1612
1634
|
RichTextEditor.prototype.updateValueOnIdle = function () {
|
|
1635
|
+
if (!isNOU(this.tableModule) && !isNOU(this.inputElement.querySelector('.e-table-box.e-rbox-select'))) {
|
|
1636
|
+
return;
|
|
1637
|
+
}
|
|
1613
1638
|
this.setProperties({ value: this.getUpdatedValue() }, true);
|
|
1614
1639
|
this.valueContainer.value = this.value;
|
|
1615
1640
|
this.invokeChangeEvent();
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
var __extends = (this && this.__extends) || (function () {
|
|
2
|
-
var extendStatics = function (d, b) {
|
|
3
|
-
extendStatics = Object.setPrototypeOf ||
|
|
4
|
-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
5
|
-
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
|
6
|
-
return extendStatics(d, b);
|
|
7
|
-
}
|
|
8
|
-
return function (d, b) {
|
|
9
|
-
extendStatics(d, b);
|
|
10
|
-
function __() { this.constructor = d; }
|
|
11
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
12
|
-
};
|
|
13
|
-
})();
|
|
1
|
+
var __extends = (this && this.__extends) || (function () {
|
|
2
|
+
var extendStatics = function (d, b) {
|
|
3
|
+
extendStatics = Object.setPrototypeOf ||
|
|
4
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
5
|
+
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
|
6
|
+
return extendStatics(d, b);
|
|
7
|
+
};
|
|
8
|
+
return function (d, b) {
|
|
9
|
+
extendStatics(d, b);
|
|
10
|
+
function __() { this.constructor = d; }
|
|
11
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
12
|
+
};
|
|
13
|
+
})();
|
|
14
14
|
import { Formatter } from './formatter';
|
|
15
15
|
import { EditorManager } from './../../editor-manager/base/editor-manager';
|
|
16
16
|
import { extend } from '@syncfusion/ej2-base';
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
var __extends = (this && this.__extends) || (function () {
|
|
2
|
-
var extendStatics = function (d, b) {
|
|
3
|
-
extendStatics = Object.setPrototypeOf ||
|
|
4
|
-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
5
|
-
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
|
6
|
-
return extendStatics(d, b);
|
|
7
|
-
}
|
|
8
|
-
return function (d, b) {
|
|
9
|
-
extendStatics(d, b);
|
|
10
|
-
function __() { this.constructor = d; }
|
|
11
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
12
|
-
};
|
|
13
|
-
})();
|
|
1
|
+
var __extends = (this && this.__extends) || (function () {
|
|
2
|
+
var extendStatics = function (d, b) {
|
|
3
|
+
extendStatics = Object.setPrototypeOf ||
|
|
4
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
5
|
+
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
|
6
|
+
return extendStatics(d, b);
|
|
7
|
+
};
|
|
8
|
+
return function (d, b) {
|
|
9
|
+
extendStatics(d, b);
|
|
10
|
+
function __() { this.constructor = d; }
|
|
11
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
12
|
+
};
|
|
13
|
+
})();
|
|
14
14
|
import { Formatter } from './formatter';
|
|
15
15
|
import { MarkdownParser } from './../../markdown-parser/base/markdown-parser';
|
|
16
16
|
import { extend } from '@syncfusion/ej2-base';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Property, ChildProperty, Complex } from '@syncfusion/ej2-base';
|
|
1
|
+
import { Property, ChildProperty, Complex } from '@syncfusion/ej2-base';
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
4
|
* Interface for a class Resources
|
|
@@ -6,16 +6,16 @@ import { Property, ChildProperty, Complex } from '@syncfusion/ej2-base';
|
|
|
6
6
|
export interface ResourcesModel {
|
|
7
7
|
|
|
8
8
|
/**
|
|
9
|
-
* Specifies styles that inject into iframe.
|
|
10
|
-
* @default []
|
|
11
|
-
*/
|
|
12
|
-
styles?: string[];
|
|
9
|
+
* Specifies styles that inject into iframe.
|
|
10
|
+
* @default []
|
|
11
|
+
*/
|
|
12
|
+
styles?: string[];
|
|
13
13
|
|
|
14
14
|
/**
|
|
15
|
-
* Specifies scripts that inject into iframe.
|
|
16
|
-
* @default []
|
|
17
|
-
*/
|
|
18
|
-
scripts?: string[];
|
|
15
|
+
* Specifies scripts that inject into iframe.
|
|
16
|
+
* @default []
|
|
17
|
+
*/
|
|
18
|
+
scripts?: string[];
|
|
19
19
|
|
|
20
20
|
}
|
|
21
21
|
|
|
@@ -25,21 +25,21 @@ export interface ResourcesModel {
|
|
|
25
25
|
export interface IFrameSettingsModel {
|
|
26
26
|
|
|
27
27
|
/**
|
|
28
|
-
* Specifies whether to render iframe based editable element in RTE.
|
|
29
|
-
* @default false
|
|
30
|
-
*/
|
|
31
|
-
enable?: boolean;
|
|
28
|
+
* Specifies whether to render iframe based editable element in RTE.
|
|
29
|
+
* @default false
|
|
30
|
+
*/
|
|
31
|
+
enable?: boolean;
|
|
32
32
|
|
|
33
33
|
/**
|
|
34
|
-
* Defines additional attributes to render iframe.
|
|
35
|
-
* @default 'null'
|
|
36
|
-
*/
|
|
37
|
-
attributes?: { [key: string]: string; };
|
|
34
|
+
* Defines additional attributes to render iframe.
|
|
35
|
+
* @default 'null'
|
|
36
|
+
*/
|
|
37
|
+
attributes?: { [key: string]: string; };
|
|
38
38
|
|
|
39
39
|
/**
|
|
40
|
-
* The object used for inject styles and scripts.
|
|
41
|
-
* @default {}
|
|
42
|
-
*/
|
|
43
|
-
resources?: ResourcesModel;
|
|
40
|
+
* The object used for inject styles and scripts.
|
|
41
|
+
* @default {}
|
|
42
|
+
*/
|
|
43
|
+
resources?: ResourcesModel;
|
|
44
44
|
|
|
45
45
|
}
|
|
@@ -1,22 +1,22 @@
|
|
|
1
|
-
var __extends = (this && this.__extends) || (function () {
|
|
2
|
-
var extendStatics = function (d, b) {
|
|
3
|
-
extendStatics = Object.setPrototypeOf ||
|
|
4
|
-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
5
|
-
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
|
6
|
-
return extendStatics(d, b);
|
|
7
|
-
}
|
|
8
|
-
return function (d, b) {
|
|
9
|
-
extendStatics(d, b);
|
|
10
|
-
function __() { this.constructor = d; }
|
|
11
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
12
|
-
};
|
|
13
|
-
})();
|
|
14
|
-
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
15
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
16
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
17
|
-
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
18
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
19
|
-
};
|
|
1
|
+
var __extends = (this && this.__extends) || (function () {
|
|
2
|
+
var extendStatics = function (d, b) {
|
|
3
|
+
extendStatics = Object.setPrototypeOf ||
|
|
4
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
5
|
+
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
|
6
|
+
return extendStatics(d, b);
|
|
7
|
+
};
|
|
8
|
+
return function (d, b) {
|
|
9
|
+
extendStatics(d, b);
|
|
10
|
+
function __() { this.constructor = d; }
|
|
11
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
12
|
+
};
|
|
13
|
+
})();
|
|
14
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
15
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
16
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
17
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
18
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
19
|
+
};
|
|
20
20
|
import { Property, ChildProperty, Complex } from '@syncfusion/ej2-base';
|
|
21
21
|
/**
|
|
22
22
|
* Objects used for configuring the iframe resources properties.
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Property, ChildProperty } from '@syncfusion/ej2-base';
|
|
1
|
+
import { Property, ChildProperty } from '@syncfusion/ej2-base';
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
4
|
* Interface for a class InlineMode
|
|
@@ -6,15 +6,15 @@ import { Property, ChildProperty } from '@syncfusion/ej2-base';
|
|
|
6
6
|
export interface InlineModeModel {
|
|
7
7
|
|
|
8
8
|
/**
|
|
9
|
-
* Specifies whether enable/disable inline toolbar in RTE.
|
|
10
|
-
* @default false
|
|
11
|
-
*/
|
|
12
|
-
enable?: boolean;
|
|
9
|
+
* Specifies whether enable/disable inline toolbar in RTE.
|
|
10
|
+
* @default false
|
|
11
|
+
*/
|
|
12
|
+
enable?: boolean;
|
|
13
13
|
|
|
14
14
|
/**
|
|
15
|
-
* Specifies the inline toolbar render based on with or without selection.
|
|
16
|
-
* @default true
|
|
17
|
-
*/
|
|
18
|
-
onSelection?: boolean;
|
|
15
|
+
* Specifies the inline toolbar render based on with or without selection.
|
|
16
|
+
* @default true
|
|
17
|
+
*/
|
|
18
|
+
onSelection?: boolean;
|
|
19
19
|
|
|
20
20
|
}
|
|
@@ -1,22 +1,22 @@
|
|
|
1
|
-
var __extends = (this && this.__extends) || (function () {
|
|
2
|
-
var extendStatics = function (d, b) {
|
|
3
|
-
extendStatics = Object.setPrototypeOf ||
|
|
4
|
-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
5
|
-
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
|
6
|
-
return extendStatics(d, b);
|
|
7
|
-
}
|
|
8
|
-
return function (d, b) {
|
|
9
|
-
extendStatics(d, b);
|
|
10
|
-
function __() { this.constructor = d; }
|
|
11
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
12
|
-
};
|
|
13
|
-
})();
|
|
14
|
-
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
15
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
16
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
17
|
-
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
18
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
19
|
-
};
|
|
1
|
+
var __extends = (this && this.__extends) || (function () {
|
|
2
|
+
var extendStatics = function (d, b) {
|
|
3
|
+
extendStatics = Object.setPrototypeOf ||
|
|
4
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
5
|
+
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
|
6
|
+
return extendStatics(d, b);
|
|
7
|
+
};
|
|
8
|
+
return function (d, b) {
|
|
9
|
+
extendStatics(d, b);
|
|
10
|
+
function __() { this.constructor = d; }
|
|
11
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
12
|
+
};
|
|
13
|
+
})();
|
|
14
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
15
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
16
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
17
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
18
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
19
|
+
};
|
|
20
20
|
import { Property, ChildProperty } from '@syncfusion/ej2-base';
|
|
21
21
|
/**
|
|
22
22
|
* Configures the inlineMode property of the RTE.
|