@syncfusion/ej2-richtexteditor 21.2.10 → 22.1.34
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/.eslintrc.json +1 -0
- package/CHANGELOG.md +18 -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 +1558 -186
- package/dist/es6/ej2-richtexteditor.es2015.js.map +1 -1
- package/dist/es6/ej2-richtexteditor.es5.js +1571 -189
- 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 +12 -12
- package/src/common/config.js +2 -2
- package/src/common/constant.d.ts +6 -0
- package/src/common/constant.js +6 -0
- package/src/common/interface.d.ts +2 -2
- package/src/common/util.js +2 -0
- package/src/editor-manager/base/editor-manager.d.ts +4 -3
- package/src/editor-manager/base/editor-manager.js +6 -1
- package/src/editor-manager/base/interface.d.ts +44 -9
- package/src/editor-manager/plugin/clearformat.d.ts +1 -0
- package/src/editor-manager/plugin/clearformat.js +1 -0
- package/src/editor-manager/plugin/dom-node.js +10 -6
- package/src/editor-manager/plugin/emoji-picker-action.d.ts +8 -0
- package/src/editor-manager/plugin/emoji-picker-action.js +62 -0
- package/src/editor-manager/plugin/format-painter-actions.d.ts +19 -36
- package/src/editor-manager/plugin/format-painter-actions.js +224 -81
- package/src/editor-manager/plugin/inserthtml.js +6 -1
- package/src/editor-manager/plugin/link.js +1 -1
- package/src/editor-manager/plugin/ms-word-clean-up.d.ts +3 -0
- package/src/editor-manager/plugin/ms-word-clean-up.js +40 -7
- package/src/editor-manager/plugin/selection-commands.d.ts +2 -1
- package/src/editor-manager/plugin/selection-commands.js +48 -23
- package/src/editor-manager/plugin/table.js +2 -2
- package/src/editor-manager/plugin/toolbar-status.js +6 -0
- package/src/editor-manager/plugin/undo.d.ts +1 -0
- package/src/editor-manager/plugin/undo.js +26 -5
- package/src/editor-manager/plugin.d.ts +1 -0
- package/src/editor-manager/plugin.js +1 -0
- package/src/global.js +1 -1
- package/src/rich-text-editor/actions/base-quick-toolbar.js +8 -1
- package/src/rich-text-editor/actions/base-toolbar.js +3 -2
- package/src/rich-text-editor/actions/emoji-picker.d.ts +48 -0
- package/src/rich-text-editor/actions/emoji-picker.js +778 -0
- package/src/rich-text-editor/actions/enter-key.js +2 -2
- package/src/rich-text-editor/actions/execute-command-callback.js +3 -1
- package/src/rich-text-editor/actions/file-manager.js +1 -0
- package/src/rich-text-editor/actions/format-painter.d.ts +2 -2
- package/src/rich-text-editor/actions/format-painter.js +11 -9
- package/src/rich-text-editor/actions/full-screen.js +6 -0
- package/src/rich-text-editor/actions/html-editor.js +11 -2
- package/src/rich-text-editor/actions/paste-clean-up.js +1 -0
- package/src/rich-text-editor/actions/resize.js +1 -1
- package/src/rich-text-editor/actions.d.ts +1 -0
- package/src/rich-text-editor/actions.js +1 -0
- package/src/rich-text-editor/base/constant.d.ts +10 -0
- package/src/rich-text-editor/base/constant.js +10 -0
- package/src/rich-text-editor/base/enum.d.ts +0 -4
- package/src/rich-text-editor/base/interface.d.ts +44 -6
- package/src/rich-text-editor/base/rich-text-editor-model.d.ts +13 -7
- package/src/rich-text-editor/base/rich-text-editor.d.ts +27 -7
- package/src/rich-text-editor/base/rich-text-editor.js +42 -12
- package/src/rich-text-editor/base/util.js +2 -2
- package/src/rich-text-editor/formatter/formatter.js +7 -5
- package/src/rich-text-editor/models/default-locale.js +14 -2
- package/src/rich-text-editor/models/items.d.ts +2 -1
- package/src/rich-text-editor/models/items.js +188 -1
- package/src/rich-text-editor/models/toolbar-settings-model.d.ts +212 -9
- package/src/rich-text-editor/models/toolbar-settings.d.ts +209 -11
- package/src/rich-text-editor/models/toolbar-settings.js +23 -6
- package/src/rich-text-editor/renderer/audio-module.js +3 -3
- package/src/rich-text-editor/renderer/iframe-content-renderer.js +1 -1
- package/src/rich-text-editor/renderer/image-module.js +11 -6
- package/src/rich-text-editor/renderer/toolbar-renderer.d.ts +2 -0
- package/src/rich-text-editor/renderer/toolbar-renderer.js +7 -2
- package/src/rich-text-editor/renderer/video-module.js +14 -9
- package/styles/bootstrap-dark.css +299 -137
- package/styles/bootstrap.css +305 -140
- package/styles/bootstrap4.css +304 -133
- package/styles/bootstrap5-dark.css +310 -165
- package/styles/bootstrap5.css +310 -165
- package/styles/fabric-dark.css +297 -136
- package/styles/fabric.css +294 -133
- package/styles/fluent-dark.css +311 -170
- package/styles/fluent.css +311 -170
- package/styles/highcontrast-light.css +289 -128
- package/styles/highcontrast.css +296 -135
- package/styles/material-dark.css +295 -129
- package/styles/material.css +300 -134
- package/styles/material3-dark.css +3082 -0
- package/styles/material3-dark.scss +3 -0
- package/styles/material3.css +3138 -0
- package/styles/material3.scss +3 -0
- package/styles/rich-text-editor/_bootstrap-dark-definition.scss +54 -12
- package/styles/rich-text-editor/_bootstrap-definition.scss +57 -13
- package/styles/rich-text-editor/_bootstrap4-definition.scss +50 -7
- package/styles/rich-text-editor/_bootstrap5-definition.scss +56 -13
- package/styles/rich-text-editor/_fabric-dark-definition.scss +53 -10
- package/styles/rich-text-editor/_fabric-definition.scss +52 -9
- package/styles/rich-text-editor/_fluent-definition.scss +56 -15
- package/styles/rich-text-editor/_fusionnew-definition.scss +46 -4
- package/styles/rich-text-editor/_highcontrast-definition.scss +52 -9
- package/styles/rich-text-editor/_highcontrast-light-definition.scss +48 -5
- package/styles/rich-text-editor/_layout.scss +280 -68
- package/styles/rich-text-editor/_material-dark-definition.scss +48 -5
- package/styles/rich-text-editor/_material-definition.scss +50 -6
- package/styles/rich-text-editor/_material3-dark-definition.scss +1 -0
- package/styles/rich-text-editor/_material3-definition.scss +262 -0
- package/styles/rich-text-editor/_tailwind-definition.scss +63 -23
- package/styles/rich-text-editor/_theme.scss +103 -19
- package/styles/rich-text-editor/bootstrap-dark.css +299 -137
- package/styles/rich-text-editor/bootstrap.css +305 -140
- package/styles/rich-text-editor/bootstrap4.css +304 -133
- package/styles/rich-text-editor/bootstrap5-dark.css +310 -165
- package/styles/rich-text-editor/bootstrap5.css +310 -165
- package/styles/rich-text-editor/fabric-dark.css +297 -136
- package/styles/rich-text-editor/fabric.css +294 -133
- package/styles/rich-text-editor/fluent-dark.css +311 -170
- package/styles/rich-text-editor/fluent.css +311 -170
- package/styles/rich-text-editor/highcontrast-light.css +289 -128
- package/styles/rich-text-editor/highcontrast.css +296 -135
- package/styles/rich-text-editor/icons/_bootstrap-dark.scss +1 -1
- package/styles/rich-text-editor/icons/_bootstrap.scss +1 -1
- package/styles/rich-text-editor/icons/_bootstrap4.scss +1 -1
- package/styles/rich-text-editor/icons/_bootstrap5.scss +1 -1
- package/styles/rich-text-editor/icons/_fabric-dark.scss +1 -1
- package/styles/rich-text-editor/icons/_fabric.scss +1 -1
- package/styles/rich-text-editor/icons/_fluent.scss +1 -1
- package/styles/rich-text-editor/icons/_fusionnew.scss +1 -1
- package/styles/rich-text-editor/icons/_highcontrast-light.scss +1 -1
- package/styles/rich-text-editor/icons/_highcontrast.scss +1 -1
- package/styles/rich-text-editor/icons/_material-dark.scss +1 -1
- package/styles/rich-text-editor/icons/_material.scss +1 -1
- package/styles/rich-text-editor/icons/_material3-dark.scss +1 -0
- package/styles/rich-text-editor/icons/_material3.scss +1 -1
- package/styles/rich-text-editor/icons/_tailwind.scss +1 -1
- package/styles/rich-text-editor/material-dark.css +295 -129
- package/styles/rich-text-editor/material.css +300 -134
- package/styles/rich-text-editor/material3-dark.css +3082 -0
- package/styles/rich-text-editor/material3-dark.scss +5 -0
- package/styles/rich-text-editor/material3.css +3138 -0
- package/styles/rich-text-editor/material3.scss +5 -0
- package/styles/rich-text-editor/tailwind-dark.css +313 -157
- package/styles/rich-text-editor/tailwind.css +313 -157
- package/styles/tailwind-dark.css +313 -157
- package/styles/tailwind.css +313 -157
|
@@ -46,7 +46,7 @@ var EnterKeyAction = /** @class */ (function () {
|
|
|
46
46
|
}
|
|
47
47
|
isTableEnter = blockElement.tagName === 'TD' || blockElement.tagName === 'TBODY' ? false : true;
|
|
48
48
|
}
|
|
49
|
-
if (e.args.which === 13 && e.args.code === 'Enter') {
|
|
49
|
+
if (e.args.which === 13 && (!Browser.isDevice ? e.args.code === 'Enter' : e.args.key === 'Enter')) {
|
|
50
50
|
if (isNOU(this.startNode.closest('LI, UL, OL')) && isNOU(this.endNode.closest('LI, UL, OL')) && isTableEnter &&
|
|
51
51
|
isNOU(this.startNode.closest('PRE')) && isNOU(this.endNode.closest('PRE'))) {
|
|
52
52
|
var shiftKey_1 = e.args.shiftKey;
|
|
@@ -152,7 +152,7 @@ var EnterKeyAction = /** @class */ (function () {
|
|
|
152
152
|
var isFocusedFirst = false;
|
|
153
153
|
if (_this.range.startOffset !== 0 && _this.range.endOffset !== 0 &&
|
|
154
154
|
_this.range.startContainer === _this.range.endContainer && !(!isNOU(nearBlockNode.childNodes[0])
|
|
155
|
-
&& nearBlockNode.childNodes[0].nodeName === 'IMG'
|
|
155
|
+
&& (nearBlockNode.childNodes[0].nodeName === 'IMG' || nearBlockNode.querySelectorAll('img, audio, video').length > 0))) {
|
|
156
156
|
var startNodeText = _this.range.startContainer.textContent;
|
|
157
157
|
var splitFirstText = startNodeText.substring(0, _this.range.startOffset);
|
|
158
158
|
// eslint-disable-next-line max-len
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import * as events from '../base/constant';
|
|
2
|
+
import { isNullOrUndefined as isNOU } from '@syncfusion/ej2-base';
|
|
2
3
|
/**
|
|
3
4
|
* `ExecCommandCallBack` module is used to run the editor manager command
|
|
4
5
|
*/
|
|
@@ -12,7 +13,8 @@ var ExecCommandCallBack = /** @class */ (function () {
|
|
|
12
13
|
this.parent.on(events.destroy, this.removeEventListener, this);
|
|
13
14
|
};
|
|
14
15
|
ExecCommandCallBack.prototype.commandCallBack = function (args) {
|
|
15
|
-
|
|
16
|
+
var formatPainterCopy = !isNOU(args.requestType) && args.requestType === 'FormatPainter' && args.action === 'format-copy';
|
|
17
|
+
if (!isNOU(args) && !isNOU(args.requestType) && args.requestType !== 'Undo' && args.requestType !== 'Redo' && !formatPainterCopy) {
|
|
16
18
|
this.parent.formatter.saveData();
|
|
17
19
|
}
|
|
18
20
|
this.parent.notify(events.toolbarRefresh, { args: args });
|
|
@@ -116,6 +116,7 @@ var FileManager = /** @class */ (function () {
|
|
|
116
116
|
detailsViewSettings: this.parent.fileManagerSettings.detailsViewSettings,
|
|
117
117
|
contextMenuSettings: this.parent.fileManagerSettings.contextMenuSettings,
|
|
118
118
|
navigationPaneSettings: this.parent.fileManagerSettings.navigationPaneSettings,
|
|
119
|
+
beforeSend: this.parent.fileManagerSettings.beforeSend,
|
|
119
120
|
fileSelect: function (e) {
|
|
120
121
|
var selectedFile = e.fileDetails;
|
|
121
122
|
if (selectedFile.isFile && proxy.parent.insertImageSettings.allowedTypes.indexOf(selectedFile.type) > -1) {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { IRichTextEditor } from '../base/interface';
|
|
2
|
-
export declare class FormatPainter {
|
|
1
|
+
import { IFormatPainter, IRichTextEditor } from '../base/interface';
|
|
2
|
+
export declare class FormatPainter implements IFormatPainter {
|
|
3
3
|
private parent;
|
|
4
4
|
private isSticky;
|
|
5
5
|
private isActive;
|
|
@@ -27,14 +27,10 @@ var FormatPainter = /** @class */ (function () {
|
|
|
27
27
|
};
|
|
28
28
|
FormatPainter.prototype.onKeyDown = function (event) {
|
|
29
29
|
var originalEvent = event.args;
|
|
30
|
-
if ((originalEvent.
|
|
30
|
+
if ((originalEvent.altKey && originalEvent.shiftKey && (originalEvent.action === 'format-copy' || originalEvent.action === 'format-paste'))
|
|
31
31
|
|| (originalEvent.action === 'escape' && (this.previousAction === 'format-copy' || this.previousAction === 'format-paste'))) {
|
|
32
|
-
if (
|
|
33
|
-
originalEvent.
|
|
34
|
-
}
|
|
35
|
-
if (!isNOU(originalEvent.key) && originalEvent.key.toLowerCase() === 'v' &&
|
|
36
|
-
this.previousAction === 'format-copy' || this.previousAction === 'format-paste' || this.isSticky) {
|
|
37
|
-
originalEvent.preventDefault();
|
|
32
|
+
if ((originalEvent.action === 'format-copy' || originalEvent.action === 'format-paste')) {
|
|
33
|
+
originalEvent.stopPropagation();
|
|
38
34
|
}
|
|
39
35
|
this.actionHandler(event, 'keyBoard');
|
|
40
36
|
}
|
|
@@ -118,8 +114,7 @@ var FormatPainter = /** @class */ (function () {
|
|
|
118
114
|
}
|
|
119
115
|
};
|
|
120
116
|
FormatPainter.prototype.destroy = function () {
|
|
121
|
-
|
|
122
|
-
if (this.parent.isDestroyed) {
|
|
117
|
+
if (isNOU(this.parent) || this.parent.isDestroyed) {
|
|
123
118
|
return;
|
|
124
119
|
}
|
|
125
120
|
this.parent.off(events.formatPainterClick, this.toolbarClick);
|
|
@@ -127,6 +122,13 @@ var FormatPainter = /** @class */ (function () {
|
|
|
127
122
|
this.parent.off(events.formatPainterDoubleClick, this.toolbarDoubleClick);
|
|
128
123
|
this.parent.off(events.keyDown, this.onKeyDown);
|
|
129
124
|
this.parent.off(events.destroy, this.destroy);
|
|
125
|
+
if (!isNOU(this.parent.formatter.editorManager.formatPainterEditor)) {
|
|
126
|
+
this.parent.formatter.editorManager.formatPainterEditor.destroy();
|
|
127
|
+
}
|
|
128
|
+
this.parent = undefined;
|
|
129
|
+
this.isSticky = undefined;
|
|
130
|
+
this.isActive = undefined;
|
|
131
|
+
this.previousAction = undefined;
|
|
130
132
|
};
|
|
131
133
|
/**
|
|
132
134
|
* For internal use only - Get the module name.
|
|
@@ -25,6 +25,9 @@ var FullScreen = /** @class */ (function () {
|
|
|
25
25
|
&& !isNOU(this.parent.quickToolbarModule)) {
|
|
26
26
|
this.parent.quickToolbarModule.hideQuickToolbars();
|
|
27
27
|
}
|
|
28
|
+
if (this.parent.showTooltip && !isNOU(document.querySelector('.e-tooltip-wrap'))) {
|
|
29
|
+
this.parent.notify(events.maximizeMinimizeClick, { args: event });
|
|
30
|
+
}
|
|
28
31
|
this.scrollableParent = getScrollableParent(this.parent.element);
|
|
29
32
|
if (!this.parent.element.classList.contains(classes.CLS_FULL_SCREEN)) {
|
|
30
33
|
var evenArgs = {
|
|
@@ -77,6 +80,9 @@ var FullScreen = /** @class */ (function () {
|
|
|
77
80
|
&& !isNOU(this.parent.quickToolbarModule)) {
|
|
78
81
|
this.parent.quickToolbarModule.hideQuickToolbars();
|
|
79
82
|
}
|
|
83
|
+
if (this.parent.showTooltip && !isNOU(document.querySelector('.e-tooltip-wrap'))) {
|
|
84
|
+
this.parent.notify(events.maximizeMinimizeClick, { args: event });
|
|
85
|
+
}
|
|
80
86
|
if (this.parent.element.classList.contains(classes.CLS_FULL_SCREEN)) {
|
|
81
87
|
var evenArgs = {
|
|
82
88
|
cancel: false,
|
|
@@ -294,9 +294,15 @@ var HtmlEditor = /** @class */ (function () {
|
|
|
294
294
|
};
|
|
295
295
|
HtmlEditor.prototype.backSpaceCleanup = function (e, currentRange) {
|
|
296
296
|
var isLiElement = false;
|
|
297
|
+
var isPreviousNotContentEditable = true;
|
|
298
|
+
if (!isNOU(currentRange.startContainer.previousSibling) &&
|
|
299
|
+
currentRange.startContainer.previousSibling.nodeName === 'SPAN') {
|
|
300
|
+
isPreviousNotContentEditable = currentRange.startContainer.previousSibling.contentEditable === 'false' ? false : true;
|
|
301
|
+
}
|
|
297
302
|
if (e.args.code === 'Backspace' && e.args.keyCode === 8 && currentRange.startOffset === 0 &&
|
|
298
303
|
currentRange.endOffset === 0 && this.parent.getSelection().length === 0 && currentRange.startContainer.textContent.length > 0 &&
|
|
299
|
-
currentRange.startContainer.parentElement.tagName !== 'TD' && currentRange.startContainer.parentElement.tagName !== 'TH'
|
|
304
|
+
currentRange.startContainer.parentElement.tagName !== 'TD' && currentRange.startContainer.parentElement.tagName !== 'TH' &&
|
|
305
|
+
isPreviousNotContentEditable) {
|
|
300
306
|
var checkNode = currentRange.startContainer.nodeName === '#text' ? currentRange.startContainer.parentElement : currentRange.startContainer;
|
|
301
307
|
if (!this.parent.formatter.editorManager.domNode.isBlockNode(checkNode) &&
|
|
302
308
|
!isNOU(checkNode.previousSibling) && checkNode.previousSibling.nodeName === 'BR') {
|
|
@@ -524,7 +530,7 @@ var HtmlEditor = /** @class */ (function () {
|
|
|
524
530
|
var resultSplitContent = '';
|
|
525
531
|
for (var j = 0; j < splitTextContent.length; j++) {
|
|
526
532
|
if (splitTextContent[j].match(httpRegex) || splitTextContent[j].match(wwwRegex)) {
|
|
527
|
-
resultSplitContent += '<a
|
|
533
|
+
resultSplitContent += '<a class="e-rte-anchor" href="' + splitTextContent[j] +
|
|
528
534
|
'" title="' + splitTextContent[j] + '"target="_blank">' + splitTextContent[j] + ' </a>';
|
|
529
535
|
}
|
|
530
536
|
else {
|
|
@@ -681,6 +687,9 @@ var HtmlEditor = /** @class */ (function () {
|
|
|
681
687
|
member: 'fileManager', args: args, selectNode: selectNodeEle, selection: save, selectParent: selectParentEle
|
|
682
688
|
});
|
|
683
689
|
break;
|
|
690
|
+
case 'EmojiPicker':
|
|
691
|
+
this.parent.notify(events.emojiPicker, { member: 'emojiPicker', args: args });
|
|
692
|
+
break;
|
|
684
693
|
default:
|
|
685
694
|
this.parent.formatter.process(this.parent, args, args.originalEvent, null);
|
|
686
695
|
break;
|
|
@@ -156,6 +156,7 @@ var PasteCleanup = /** @class */ (function () {
|
|
|
156
156
|
if (Browser.userAgent.indexOf('Firefox') !== -1) {
|
|
157
157
|
var currentFocusNode = _this.nodeSelectionObj.getRange(_this.contentRenderer.getDocument()).startContainer;
|
|
158
158
|
if (currentFocusNode.nodeName !== '#text') {
|
|
159
|
+
// eslint-disable-next-line
|
|
159
160
|
currentFocusNode = currentFocusNode.childNodes[_this.nodeSelectionObj.getRange(_this.contentRenderer.getDocument()).startOffset];
|
|
160
161
|
}
|
|
161
162
|
if (currentFocusNode.previousSibling.nodeName === 'IMG') {
|
|
@@ -68,7 +68,7 @@ var Resize = /** @class */ (function () {
|
|
|
68
68
|
else {
|
|
69
69
|
var eventType = Browser.info.name !== 'msie' ? e.touches[0] : e;
|
|
70
70
|
this.parent.element.style.height = eventType.clientY - boundRect.top + 'px';
|
|
71
|
-
this.parent.element.style.width = (!this.parent.enableRtl) ?
|
|
71
|
+
this.parent.element.style.width = (!this.parent.enableRtl) ? eventType.clientX - boundRect.left + 'px' : boundRect.right - eventType.clientX + 'px';
|
|
72
72
|
}
|
|
73
73
|
if (!this.parent.toolbarSettings.enable) {
|
|
74
74
|
this.parent.setContentHeight('', false);
|
|
@@ -724,6 +724,16 @@ export declare const formatPainterDoubleClick: string;
|
|
|
724
724
|
/**
|
|
725
725
|
* @hidden
|
|
726
726
|
|
|
727
|
+
*/
|
|
728
|
+
export declare const emojiPicker: string;
|
|
729
|
+
/**
|
|
730
|
+
* @hidden
|
|
731
|
+
|
|
732
|
+
*/
|
|
733
|
+
export declare const maximizeMinimizeClick: string;
|
|
734
|
+
/**
|
|
735
|
+
* @hidden
|
|
736
|
+
|
|
727
737
|
*/
|
|
728
738
|
export declare const blockEmptyNodes: string;
|
|
729
739
|
/**
|
|
@@ -724,6 +724,16 @@ export var formatPainterDoubleClick = 'formatPainterDoubleClick';
|
|
|
724
724
|
/**
|
|
725
725
|
* @hidden
|
|
726
726
|
|
|
727
|
+
*/
|
|
728
|
+
export var emojiPicker = 'emojiPicker';
|
|
729
|
+
/**
|
|
730
|
+
* @hidden
|
|
731
|
+
|
|
732
|
+
*/
|
|
733
|
+
export var maximizeMinimizeClick = 'maximizeMinimizeClick';
|
|
734
|
+
/**
|
|
735
|
+
* @hidden
|
|
736
|
+
|
|
727
737
|
*/
|
|
728
738
|
export var blockEmptyNodes = "address:empty, article:empty, aside:empty, blockquote:empty,\n details:empty, dd:empty, div:empty, dl:empty, dt:empty, fieldset:empty, footer:empty,form:empty, h1:empty,\n h2:empty, h3:empty, h4:empty, h5:empty, h6:empty, header:empty, hgroup:empty, li:empty, main:empty, nav:empty,\n noscript:empty, output:empty, p:empty, pre:empty, section:empty, td:empty, th:empty";
|
|
729
739
|
/**
|
|
@@ -60,7 +60,3 @@ export declare enum DialogType {
|
|
|
60
60
|
* Defines types to be used to configure the toolbar items.
|
|
61
61
|
*/
|
|
62
62
|
export declare type ToolbarItems = 'alignments' | 'justifyLeft' | 'justifyCenter' | 'justifyRight' | 'justifyFull' | 'fontName' | 'fontSize' | 'fontColor' | 'backgroundColor' | 'bold' | 'italic' | 'underline' | 'strikeThrough' | 'clearFormat' | 'clearAll' | 'cut' | 'copy' | 'paste' | 'unorderedList' | 'orderedList' | 'indent' | 'outdent' | 'undo' | 'redo' | 'superScript' | 'subScript' | 'createLink' | 'openLink' | 'editLink' | 'image' | 'createTable' | 'removeTable' | 'replace' | 'align' | 'caption' | 'remove' | 'openImageLink' | 'editImageLink' | 'removeImageLink' | 'insertLink' | 'display' | 'altText' | 'dimension' | 'fullScreen' | 'maximize' | 'minimize' | 'lowerCase' | 'upperCase' | 'print' | 'formats' | 'sourceCode' | 'preview' | 'viewSide' | 'insertCode' | 'tableHeader' | 'tableRemove' | 'tableRows' | 'tableColumns' | 'tableCellBackground' | 'tableCellHorizontalAlign' | 'tableCellVerticalAlign' | 'tableEditProperties' | 'styles' | 'removeLink' | 'merge';
|
|
63
|
-
/**
|
|
64
|
-
* Defines the context or contexts in which styles will be copied
|
|
65
|
-
*/
|
|
66
|
-
export declare type FormatPainterContext = 'Text' | 'List' | 'Table';
|
|
@@ -10,7 +10,7 @@ import { BaseQuickToolbar } from '../actions/base-quick-toolbar';
|
|
|
10
10
|
import { NodeSelection } from '../../selection/selection';
|
|
11
11
|
import { EditorMode, EnterKey, ShiftEnterKey } from './../../common/types';
|
|
12
12
|
import { MarkdownSelection } from './../../markdown-parser/plugin/markdown-selection';
|
|
13
|
-
import { ToolbarSettingsModel, IFrameSettingsModel, ImageSettingsModel, AudioSettingsModel, VideoSettingsModel, TableSettingsModel, FormatPainterSettingsModel } from '../models/models';
|
|
13
|
+
import { ToolbarSettingsModel, IFrameSettingsModel, ImageSettingsModel, AudioSettingsModel, VideoSettingsModel, TableSettingsModel, FormatPainterSettingsModel, EmojiSettingsModel } from '../models/models';
|
|
14
14
|
import { QuickToolbarSettingsModel, InlineModeModel, PasteCleanupSettingsModel, FileManagerSettingsModel } from '../models/models';
|
|
15
15
|
import { Count } from '../actions/count';
|
|
16
16
|
import { ColorPicker, ColorPickerEventArgs, ColorPickerModel, FileInfo } from '@syncfusion/ej2-inputs';
|
|
@@ -34,9 +34,9 @@ import { PasteCleanup } from '../actions/paste-clean-up';
|
|
|
34
34
|
import { Popup } from '@syncfusion/ej2-popups';
|
|
35
35
|
import { Resize } from '../actions/resize';
|
|
36
36
|
import { FileManager } from '../actions/file-manager';
|
|
37
|
-
import { NodeCutter, DOMNode } from '../../editor-manager';
|
|
37
|
+
import { NodeCutter, DOMNode, IFormatPainterEditor } from '../../editor-manager';
|
|
38
38
|
import { EnterKeyAction } from '../actions/enter-key';
|
|
39
|
-
import {
|
|
39
|
+
import { EmojiPicker } from '../actions/emoji-picker';
|
|
40
40
|
/**
|
|
41
41
|
* Specifies Rich Text Editor interfaces.
|
|
42
42
|
*
|
|
@@ -88,12 +88,12 @@ export interface IRichTextEditor extends Component<HTMLElement> {
|
|
|
88
88
|
*
|
|
89
89
|
* @default
|
|
90
90
|
* {
|
|
91
|
-
* allowedContext: ['Text', 'List', 'Table'],
|
|
92
91
|
* allowedFormats: 'b; em; font; sub; sup; kbd; i; s; u; code; strong; span; p; div; h1; h2; h3; h4; h5; h6; blockquote; table; thead; tbody; tr; td; th; ol; ul; li; pre;',
|
|
93
92
|
* deniedFormats: null
|
|
94
93
|
* }
|
|
95
94
|
*/
|
|
96
95
|
formatPainterSettings: FormatPainterSettingsModel;
|
|
96
|
+
emojiPickerSettings: EmojiSettingsModel;
|
|
97
97
|
floatingToolbarOffset?: number;
|
|
98
98
|
showCharCount?: boolean;
|
|
99
99
|
enableTabKey?: boolean;
|
|
@@ -143,7 +143,8 @@ export interface IRichTextEditor extends Component<HTMLElement> {
|
|
|
143
143
|
markdownEditorModule: MarkdownEditor;
|
|
144
144
|
htmlEditorModule: HtmlEditor;
|
|
145
145
|
countModule?: Count;
|
|
146
|
-
formatPainterModule?:
|
|
146
|
+
formatPainterModule?: IFormatPainter;
|
|
147
|
+
emojiPickerModule?: EmojiPicker;
|
|
147
148
|
serviceLocator?: ServiceLocator;
|
|
148
149
|
setEnable?(): void;
|
|
149
150
|
setReadOnly?(isInit?: boolean): void;
|
|
@@ -193,6 +194,7 @@ export interface IRichTextEditor extends Component<HTMLElement> {
|
|
|
193
194
|
getSelection(): string;
|
|
194
195
|
currentTarget: HTMLElement;
|
|
195
196
|
focusIn(): void;
|
|
197
|
+
showEmojiPicker?(x?: number, y?: number): void;
|
|
196
198
|
}
|
|
197
199
|
/**
|
|
198
200
|
|
|
@@ -253,6 +255,7 @@ export interface NotifyArgs {
|
|
|
253
255
|
touchData?: ITouchData;
|
|
254
256
|
allowedStylePropertiesArray?: string[];
|
|
255
257
|
formatPainterSettings?: FormatPainterSettingsModel;
|
|
258
|
+
emojiPickerSettings?: EmojiSettingsModel;
|
|
256
259
|
}
|
|
257
260
|
/**
|
|
258
261
|
* Provides information about the current and previous cssClass property .
|
|
@@ -294,6 +297,15 @@ export interface ITouchData {
|
|
|
294
297
|
/**
|
|
295
298
|
* @hidden
|
|
296
299
|
|
|
300
|
+
*/
|
|
301
|
+
export interface IFormatPainter {
|
|
302
|
+
/** Stores the previous action. */
|
|
303
|
+
previousAction: string;
|
|
304
|
+
destroy: Function;
|
|
305
|
+
}
|
|
306
|
+
/**
|
|
307
|
+
* @hidden
|
|
308
|
+
|
|
297
309
|
*/
|
|
298
310
|
export interface IColorPickerModel extends ColorPickerModel {
|
|
299
311
|
element?: HTMLElement;
|
|
@@ -501,6 +513,22 @@ export interface IFormatPainterArgs {
|
|
|
501
513
|
*/
|
|
502
514
|
formatPainterAction: string;
|
|
503
515
|
}
|
|
516
|
+
export interface IEmojiIcons {
|
|
517
|
+
/** Defines the description of emoji icon. */
|
|
518
|
+
desc: string;
|
|
519
|
+
/** Defines the Unicode of emoji icon. */
|
|
520
|
+
code: string;
|
|
521
|
+
}
|
|
522
|
+
export interface EmojiIconsSet {
|
|
523
|
+
/** Defines the name for category the Unicode. */
|
|
524
|
+
name: string;
|
|
525
|
+
/** Defines the icon Unicode which is showing in emoji picker toolbar item. */
|
|
526
|
+
code: string;
|
|
527
|
+
/** Defines the css class for emoji icon. */
|
|
528
|
+
iconCss?: string;
|
|
529
|
+
/** Defines the icons collection. */
|
|
530
|
+
icons: IEmojiIcons[];
|
|
531
|
+
}
|
|
504
532
|
/**
|
|
505
533
|
|
|
506
534
|
*/
|
|
@@ -544,6 +572,7 @@ export interface IEditorModel {
|
|
|
544
572
|
mdSelectionFormats?: MDSelectionFormats;
|
|
545
573
|
domNode?: DOMNode;
|
|
546
574
|
nodeCutter?: NodeCutter;
|
|
575
|
+
formatPainterEditor?: IFormatPainterEditor;
|
|
547
576
|
}
|
|
548
577
|
/**
|
|
549
578
|
* Provides information about a ToolbarItems.
|
|
@@ -701,6 +730,15 @@ export interface ActionBeginEventArgs {
|
|
|
701
730
|
|
|
702
731
|
*/
|
|
703
732
|
itemCollection?: IItemCollectionArgs;
|
|
733
|
+
/**
|
|
734
|
+
* Defines the emoji picker details.
|
|
735
|
+
*
|
|
736
|
+
|
|
737
|
+
*/
|
|
738
|
+
emojiPickerArgs?: IEmojiPickerArgs;
|
|
739
|
+
}
|
|
740
|
+
export interface IEmojiPickerArgs {
|
|
741
|
+
emojiSettings: EmojiSettingsModel;
|
|
704
742
|
}
|
|
705
743
|
/**
|
|
706
744
|
* Provides information about a Print event.
|
|
@@ -1310,7 +1348,7 @@ export declare const executeGroup: {
|
|
|
1310
1348
|
/**
|
|
1311
1349
|
* Defines types to be used as CommandName.
|
|
1312
1350
|
*/
|
|
1313
|
-
export declare type CommandName = 'bold' | 'italic' | 'underline' | 'strikeThrough' | 'superscript' | 'subscript' | 'uppercase' | 'lowercase' | 'fontColor' | 'fontName' | 'fontSize' | 'backColor' | 'justifyCenter' | 'justifyFull' | 'justifyLeft' | 'justifyRight' | 'undo' | 'createLink' | 'formatBlock' | 'heading' | 'indent' | 'insertHTML' | 'insertOrderedList' | 'insertUnorderedList' | 'insertParagraph' | 'outdent' | 'redo' | 'removeFormat' | 'insertText' | 'insertImage' | 'insertAudio' | 'insertVideo' | 'insertHorizontalRule' | 'insertBrOnReturn' | 'insertCode' | 'insertTable' | 'editImage' | 'editLink' | 'applyFormatPainter' | 'copyFormatPainter' | 'escapeFormatPainter';
|
|
1351
|
+
export declare type CommandName = 'bold' | 'italic' | 'underline' | 'strikeThrough' | 'superscript' | 'subscript' | 'uppercase' | 'lowercase' | 'fontColor' | 'fontName' | 'fontSize' | 'backColor' | 'justifyCenter' | 'justifyFull' | 'justifyLeft' | 'justifyRight' | 'undo' | 'createLink' | 'formatBlock' | 'heading' | 'indent' | 'insertHTML' | 'insertOrderedList' | 'insertUnorderedList' | 'insertParagraph' | 'outdent' | 'redo' | 'removeFormat' | 'insertText' | 'insertImage' | 'insertAudio' | 'insertVideo' | 'insertHorizontalRule' | 'insertBrOnReturn' | 'insertCode' | 'insertTable' | 'editImage' | 'editLink' | 'applyFormatPainter' | 'copyFormatPainter' | 'escapeFormatPainter' | 'emojiPicker';
|
|
1314
1352
|
/**
|
|
1315
1353
|
* @hidden
|
|
1316
1354
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Component, ModuleDeclaration, EventHandler, Complex, Browser, EmitType, addClass, select, detach } from '@syncfusion/ej2-base';import { Property, NotifyPropertyChanges, INotifyPropertyChanged, formatUnit, L10n, closest } from '@syncfusion/ej2-base';import { setStyleAttribute, Event, removeClass, print as printWindow, attributes } from '@syncfusion/ej2-base';import { isNullOrUndefined as isNOU, compile, append, extend, debounce } from '@syncfusion/ej2-base';import { Touch as EJ2Touch, TapEventArgs } from '@syncfusion/ej2-base';import { getScrollableParent, BeforeOpenEventArgs, BeforeCloseEventArgs } from '@syncfusion/ej2-popups';import * as events from '../base/constant';import * as classes from '../base/classes';import { Render } from '../renderer/render';import { ViewSource } from '../renderer/view-source';import { IRenderer, IFormatter, PrintEventArgs, ActionCompleteEventArgs, ActionBeginEventArgs, ImageDropEventArgs, IFormatPainterArgs } from './interface';import { IExecutionGroup, executeGroup, CommandName, ResizeArgs, StatusArgs, ToolbarStatusEventArgs } from './interface';import { BeforeQuickToolbarOpenArgs, ChangeEventArgs, AfterImageDeleteEventArgs, AfterMediaDeleteEventArgs, PasteCleanupArgs } from './interface';import { ILinkCommandsArgs, IImageCommandsArgs, IAudioCommandsArgs, IVideoCommandsArgs, BeforeSanitizeHtmlArgs, ITableCommandsArgs, ExecuteCommandOption } from './interface';import { ServiceLocator } from '../services/service-locator';import { RendererFactory } from '../services/renderer-factory';import { RenderType, ToolbarType, DialogType } from './enum';import { EditorMode, ShiftEnterKey, EnterKey } from './../../common/types';import { Toolbar } from '../actions/toolbar';import { ExecCommandCallBack } from '../actions/execute-command-callback';import { KeyboardEvents, KeyboardEventArgs } from '../actions/keyboard';import { FontFamilyModel, FontSizeModel, FontColorModel, FormatModel, BackgroundColorModel, NumberFormatListModel, BulletFormatListModel } from '../models/models';import { ToolbarSettingsModel, IFrameSettingsModel, ImageSettingsModel, AudioSettingsModel, VideoSettingsModel, TableSettingsModel } from '../models/models';import { QuickToolbarSettingsModel, InlineModeModel, PasteCleanupSettingsModel, FileManagerSettingsModel ,
|
|
1
|
+
import { Component, ModuleDeclaration, EventHandler, Complex, Browser, EmitType, addClass, select, detach } from '@syncfusion/ej2-base';import { Property, NotifyPropertyChanges, INotifyPropertyChanged, formatUnit, L10n, closest } from '@syncfusion/ej2-base';import { setStyleAttribute, Event, removeClass, print as printWindow, attributes } from '@syncfusion/ej2-base';import { isNullOrUndefined as isNOU, compile, append, extend, debounce } from '@syncfusion/ej2-base';import { Touch as EJ2Touch, TapEventArgs } from '@syncfusion/ej2-base';import { getScrollableParent, BeforeOpenEventArgs, BeforeCloseEventArgs } from '@syncfusion/ej2-popups';import * as events from '../base/constant';import * as classes from '../base/classes';import { Render } from '../renderer/render';import { ViewSource } from '../renderer/view-source';import { IRenderer, IFormatter, PrintEventArgs, ActionCompleteEventArgs, ActionBeginEventArgs, ImageDropEventArgs, IFormatPainterArgs } from './interface';import { IExecutionGroup, executeGroup, CommandName, ResizeArgs, StatusArgs, ToolbarStatusEventArgs } from './interface';import { BeforeQuickToolbarOpenArgs, ChangeEventArgs, AfterImageDeleteEventArgs, AfterMediaDeleteEventArgs, PasteCleanupArgs } from './interface';import { ILinkCommandsArgs, IImageCommandsArgs, IAudioCommandsArgs, IVideoCommandsArgs, BeforeSanitizeHtmlArgs, ITableCommandsArgs, ExecuteCommandOption } from './interface';import { ServiceLocator } from '../services/service-locator';import { RendererFactory } from '../services/renderer-factory';import { RenderType, ToolbarType, DialogType } from './enum';import { EditorMode, ShiftEnterKey, EnterKey } from './../../common/types';import { Toolbar } from '../actions/toolbar';import { ExecCommandCallBack } from '../actions/execute-command-callback';import { KeyboardEvents, KeyboardEventArgs } from '../actions/keyboard';import { FontFamilyModel, FontSizeModel, FontColorModel, FormatModel, BackgroundColorModel, NumberFormatListModel, BulletFormatListModel } from '../models/models';import { ToolbarSettingsModel, IFrameSettingsModel, ImageSettingsModel, AudioSettingsModel, VideoSettingsModel, TableSettingsModel } from '../models/models';import { QuickToolbarSettingsModel, InlineModeModel, PasteCleanupSettingsModel, FileManagerSettingsModel, FormatPainterSettingsModel, EmojiSettingsModel } from '../models/models';import { ToolbarSettings, ImageSettings, AudioSettings, VideoSettings, QuickToolbarSettings, FontFamily, FontSize, Format, NumberFormatList, BulletFormatList, FormatPainterSettings, EmojiSettings } from '../models/toolbar-settings';import { FileManagerSettings } from '../models/toolbar-settings';import { TableSettings, PasteCleanupSettings } from '../models/toolbar-settings';import { FontColor, BackgroundColor } from '../models/toolbar-settings';import { IFrameSettings } from '../models/iframe-settings';import { InlineMode } from '../models/inline-mode';import { Link } from '../renderer/link-module';import { Image } from '../renderer/image-module';import { Audio } from '../renderer/audio-module';import { Video } from '../renderer/video-module';import { Table } from '../renderer/table-module';import { Count } from '../actions/count';import { HtmlEditor } from '../actions/html-editor';import { MarkdownEditor } from '../actions/markdown-editor';import { defaultLocale } from '../models/default-locale';import { setAttributes } from '../actions/html-attributes';import { BaseToolbar } from '../actions/base-toolbar';import { QuickToolbar } from '../actions/quick-toolbar';import { FullScreen } from '../actions/full-screen';import { PasteCleanup } from '../actions/paste-clean-up';import { EnterKeyAction } from '../actions/enter-key';import * as CONSTANT from '../../common/constant';import { IHtmlKeyboardEvent } from '../../editor-manager/base/interface';import { dispatchEvent, getEditValue, isIDevice, decode, isEditableValueEmpty, getDefaultValue } from '../base/util';import { DialogRenderer } from '../renderer/dialog-renderer';import { SelectedEventArgs, RemovingEventArgs, UploadingEventArgs, BeforeUploadEventArgs } from '@syncfusion/ej2-inputs';import { Resize } from '../actions/resize';import { FileManager } from '../actions/file-manager';import { FormatPainter } from '../actions/format-painter';import { EmojiPicker } from '../actions/emoji-picker';
|
|
2
2
|
import {ComponentModel} from '@syncfusion/ej2-base';
|
|
3
3
|
|
|
4
4
|
/**
|
|
@@ -94,7 +94,6 @@ export interface RichTextEditorModel extends ComponentModel{
|
|
|
94
94
|
|
|
95
95
|
/**
|
|
96
96
|
* Specifies the format painter options in Rich Text Editor with the following properties.
|
|
97
|
-
* * allowedContext - Sets the context or contexts in which styles will be copied.
|
|
98
97
|
* * allowedFormats - Sets the tag name selectors for elements from which the formats can be copied.
|
|
99
98
|
* * deniedFormats - Sets the selectors for elements from which formats cannot be copied.
|
|
100
99
|
*
|
|
@@ -102,15 +101,21 @@ export interface RichTextEditorModel extends ComponentModel{
|
|
|
102
101
|
*
|
|
103
102
|
* @default
|
|
104
103
|
* {
|
|
105
|
-
*
|
|
106
|
-
* allowedFormats: 'b; em; font; sub; sup; kbd; i; s; u; code; strong; span; p; div; h1; h2; h3; h4; h5; h6; blockquote; table; thead; tbody; tr; td; th; ol; ul; li; pre;',
|
|
104
|
+
* allowedFormats: 'b; em; font; sub; sup; kbd; i; s; u; code; strong; span; p; div; h1; h2; h3; h4; h5; h6; blockquote; ol; ul; li; pre;',
|
|
107
105
|
* deniedFormats: null
|
|
108
106
|
* }
|
|
109
|
-
* @aspignore
|
|
110
|
-
* @private
|
|
111
107
|
*/
|
|
112
108
|
formatPainterSettings?: FormatPainterSettingsModel
|
|
113
109
|
|
|
110
|
+
/**
|
|
111
|
+
* Specifies the emoji picker options in Rich Text Editor with the following properties.
|
|
112
|
+
* * iconsSet – Specify an array of items representing emoji icons.
|
|
113
|
+
* * showSearchBox - Enables or disables the search box in an emoji picker.
|
|
114
|
+
*
|
|
115
|
+
*
|
|
116
|
+
*/
|
|
117
|
+
emojiPickerSettings?: EmojiSettingsModel
|
|
118
|
+
|
|
114
119
|
/**
|
|
115
120
|
* Specifies the items to be rendered in an iframe mode, and it has the following properties.
|
|
116
121
|
* * enable - Set Boolean value to enable, the editors content is placed in an iframe and isolated from the rest of the page.
|
|
@@ -660,8 +665,9 @@ export interface RichTextEditorModel extends ComponentModel{
|
|
|
660
665
|
* {% codeBlock src='rich-text-editor/value-template/index.md' %}{% endcodeBlock %}
|
|
661
666
|
*
|
|
662
667
|
* @default null
|
|
668
|
+
* @aspType string
|
|
663
669
|
*/
|
|
664
|
-
valueTemplate?: string;
|
|
670
|
+
valueTemplate?: string | Function;
|
|
665
671
|
|
|
666
672
|
/**
|
|
667
673
|
* Specifies the saveInterval in milliseconds for autosave the value.
|
|
@@ -15,7 +15,7 @@ import { Toolbar } from '../actions/toolbar';
|
|
|
15
15
|
import { KeyboardEvents } from '../actions/keyboard';
|
|
16
16
|
import { FontFamilyModel, FontSizeModel, FontColorModel, FormatModel, BackgroundColorModel, NumberFormatListModel, BulletFormatListModel } from '../models/models';
|
|
17
17
|
import { ToolbarSettingsModel, IFrameSettingsModel, ImageSettingsModel, AudioSettingsModel, VideoSettingsModel, TableSettingsModel } from '../models/models';
|
|
18
|
-
import { QuickToolbarSettingsModel, InlineModeModel, PasteCleanupSettingsModel, FileManagerSettingsModel, FormatPainterSettingsModel } from '../models/models';
|
|
18
|
+
import { QuickToolbarSettingsModel, InlineModeModel, PasteCleanupSettingsModel, FileManagerSettingsModel, FormatPainterSettingsModel, EmojiSettingsModel } from '../models/models';
|
|
19
19
|
import { Link } from '../renderer/link-module';
|
|
20
20
|
import { Image } from '../renderer/image-module';
|
|
21
21
|
import { Audio } from '../renderer/audio-module';
|
|
@@ -33,6 +33,7 @@ import { SelectedEventArgs, RemovingEventArgs, UploadingEventArgs, BeforeUploadE
|
|
|
33
33
|
import { Resize } from '../actions/resize';
|
|
34
34
|
import { FileManager } from '../actions/file-manager';
|
|
35
35
|
import { FormatPainter } from '../actions/format-painter';
|
|
36
|
+
import { EmojiPicker } from '../actions/emoji-picker';
|
|
36
37
|
/**
|
|
37
38
|
* Represents the Rich Text Editor component.
|
|
38
39
|
* ```html
|
|
@@ -184,6 +185,11 @@ export declare class RichTextEditor extends Component<HTMLElement> implements IN
|
|
|
184
185
|
|
|
185
186
|
*/
|
|
186
187
|
formatPainterModule: FormatPainter;
|
|
188
|
+
/**
|
|
189
|
+
* @hidden
|
|
190
|
+
|
|
191
|
+
*/
|
|
192
|
+
emojiPickerModule: EmojiPicker;
|
|
187
193
|
needsID: boolean;
|
|
188
194
|
/**
|
|
189
195
|
* Specifies the group of items aligned horizontally in the toolbar as well as defined the toolbar rendering type.
|
|
@@ -270,7 +276,6 @@ export declare class RichTextEditor extends Component<HTMLElement> implements IN
|
|
|
270
276
|
pasteCleanupSettings: PasteCleanupSettingsModel;
|
|
271
277
|
/**
|
|
272
278
|
* Specifies the format painter options in Rich Text Editor with the following properties.
|
|
273
|
-
* * allowedContext - Sets the context or contexts in which styles will be copied.
|
|
274
279
|
* * allowedFormats - Sets the tag name selectors for elements from which the formats can be copied.
|
|
275
280
|
* * deniedFormats - Sets the selectors for elements from which formats cannot be copied.
|
|
276
281
|
*
|
|
@@ -278,14 +283,19 @@ export declare class RichTextEditor extends Component<HTMLElement> implements IN
|
|
|
278
283
|
*
|
|
279
284
|
* @default
|
|
280
285
|
* {
|
|
281
|
-
*
|
|
282
|
-
* allowedFormats: 'b; em; font; sub; sup; kbd; i; s; u; code; strong; span; p; div; h1; h2; h3; h4; h5; h6; blockquote; table; thead; tbody; tr; td; th; ol; ul; li; pre;',
|
|
286
|
+
* allowedFormats: 'b; em; font; sub; sup; kbd; i; s; u; code; strong; span; p; div; h1; h2; h3; h4; h5; h6; blockquote; ol; ul; li; pre;',
|
|
283
287
|
* deniedFormats: null
|
|
284
288
|
* }
|
|
285
|
-
* @aspignore
|
|
286
|
-
* @private
|
|
287
289
|
*/
|
|
288
290
|
formatPainterSettings: FormatPainterSettingsModel;
|
|
291
|
+
/**
|
|
292
|
+
* Specifies the emoji picker options in Rich Text Editor with the following properties.
|
|
293
|
+
* * iconsSet – Specify an array of items representing emoji icons.
|
|
294
|
+
* * showSearchBox - Enables or disables the search box in an emoji picker.
|
|
295
|
+
*
|
|
296
|
+
*
|
|
297
|
+
*/
|
|
298
|
+
emojiPickerSettings: EmojiSettingsModel;
|
|
289
299
|
/**
|
|
290
300
|
* Specifies the items to be rendered in an iframe mode, and it has the following properties.
|
|
291
301
|
* * enable - Set Boolean value to enable, the editors content is placed in an iframe and isolated from the rest of the page.
|
|
@@ -799,8 +809,9 @@ export declare class RichTextEditor extends Component<HTMLElement> implements IN
|
|
|
799
809
|
* {% codeBlock src='rich-text-editor/value-template/index.md' %}{% endcodeBlock %}
|
|
800
810
|
*
|
|
801
811
|
* @default null
|
|
812
|
+
* @aspType string
|
|
802
813
|
*/
|
|
803
|
-
valueTemplate: string;
|
|
814
|
+
valueTemplate: string | Function;
|
|
804
815
|
/**
|
|
805
816
|
* Specifies the saveInterval in milliseconds for autosave the value.
|
|
806
817
|
* The change event will be triggered if the content was changed from the last saved interval.
|
|
@@ -1172,6 +1183,15 @@ export declare class RichTextEditor extends Component<HTMLElement> implements IN
|
|
|
1172
1183
|
* @public
|
|
1173
1184
|
*/
|
|
1174
1185
|
getSelection(): string;
|
|
1186
|
+
/**
|
|
1187
|
+
* Shows the emoji picker
|
|
1188
|
+
*
|
|
1189
|
+
* @param {number} x - specifies the number value.
|
|
1190
|
+
* @param {number} y - specifies the number value.
|
|
1191
|
+
* @returns {void}
|
|
1192
|
+
* @public
|
|
1193
|
+
*/
|
|
1194
|
+
showEmojiPicker(x?: number, y?: number): void;
|
|
1175
1195
|
/**
|
|
1176
1196
|
* Executes the commands
|
|
1177
1197
|
*
|