@syncfusion/ej2-richtexteditor 24.1.41-569421 → 24.1.41-581025
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 +0 -176
- 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 +7822 -9502
- package/dist/es6/ej2-richtexteditor.es2015.js.map +1 -1
- package/dist/es6/ej2-richtexteditor.es5.js +5674 -7355
- package/dist/es6/ej2-richtexteditor.es5.js.map +1 -1
- package/package.json +12 -12
- package/src/common/config.d.ts +0 -7
- package/src/common/config.js +0 -11
- package/src/common/constant.d.ts +0 -6
- package/src/common/constant.js +0 -6
- package/src/common/interface.d.ts +0 -12
- package/src/common/types.d.ts +0 -6
- package/src/common/util.d.ts +0 -6
- package/src/common/util.js +20 -61
- package/src/editor-manager/base/constant.d.ts +0 -6
- package/src/editor-manager/base/constant.js +0 -6
- package/src/editor-manager/base/editor-manager.d.ts +0 -5
- package/src/editor-manager/base/editor-manager.js +0 -59
- package/src/editor-manager/base/interface.d.ts +0 -8
- package/src/editor-manager/plugin/dom-node.d.ts +1 -5
- package/src/editor-manager/plugin/dom-node.js +15 -169
- package/src/editor-manager/plugin/format-painter-actions.d.ts +0 -1
- package/src/editor-manager/plugin/format-painter-actions.js +1 -19
- package/src/editor-manager/plugin/formats.d.ts +0 -1
- package/src/editor-manager/plugin/formats.js +3 -38
- package/src/editor-manager/plugin/image.js +16 -12
- package/src/editor-manager/plugin/indents.js +1 -1
- package/src/editor-manager/plugin/inserthtml.d.ts +0 -1
- package/src/editor-manager/plugin/inserthtml.js +18 -78
- package/src/editor-manager/plugin/link.js +3 -8
- package/src/editor-manager/plugin/lists.js +70 -159
- package/src/editor-manager/plugin/ms-word-clean-up.d.ts +0 -3
- package/src/editor-manager/plugin/ms-word-clean-up.js +85 -212
- package/src/editor-manager/plugin/nodecutter.js +2 -5
- package/src/editor-manager/plugin/selection-commands.d.ts +0 -2
- package/src/editor-manager/plugin/selection-commands.js +4 -209
- package/src/editor-manager/plugin/table.d.ts +1 -4
- package/src/editor-manager/plugin/table.js +49 -95
- package/src/editor-manager/plugin/toolbar-status.d.ts +2 -2
- package/src/editor-manager/plugin/toolbar-status.js +10 -20
- package/src/editor-manager/plugin/undo.d.ts +0 -1
- package/src/editor-manager/plugin/undo.js +1 -21
- package/src/rich-text-editor/actions/base-quick-toolbar.d.ts +3 -4
- package/src/rich-text-editor/actions/base-quick-toolbar.js +10 -43
- package/src/rich-text-editor/actions/base-toolbar.js +34 -33
- package/src/rich-text-editor/actions/color-picker.d.ts +0 -1
- package/src/rich-text-editor/actions/color-picker.js +0 -10
- package/src/rich-text-editor/actions/count.js +1 -1
- package/src/rich-text-editor/actions/dropdown-buttons.d.ts +0 -1
- package/src/rich-text-editor/actions/dropdown-buttons.js +4 -8
- package/src/rich-text-editor/actions/emoji-picker.js +4 -4
- package/src/rich-text-editor/actions/enter-key.js +4 -8
- package/src/rich-text-editor/actions/format-painter.js +1 -4
- package/src/rich-text-editor/actions/full-screen.js +2 -3
- package/src/rich-text-editor/actions/html-editor.d.ts +2 -2
- package/src/rich-text-editor/actions/html-editor.js +42 -123
- package/src/rich-text-editor/actions/keyboard.js +1 -3
- package/src/rich-text-editor/actions/markdown-editor.js +1 -3
- package/src/rich-text-editor/actions/paste-clean-up.d.ts +0 -3
- package/src/rich-text-editor/actions/paste-clean-up.js +14 -85
- package/src/rich-text-editor/actions/quick-toolbar.d.ts +0 -8
- package/src/rich-text-editor/actions/quick-toolbar.js +9 -37
- package/src/rich-text-editor/actions/resize.js +1 -2
- package/src/rich-text-editor/actions/toolbar-action.js +1 -1
- package/src/rich-text-editor/actions/toolbar.d.ts +3 -2
- package/src/rich-text-editor/actions/toolbar.js +87 -18
- package/src/rich-text-editor/base/classes.d.ts +5 -0
- package/src/rich-text-editor/base/classes.js +5 -0
- package/src/rich-text-editor/base/constant.d.ts +0 -40
- package/src/rich-text-editor/base/constant.js +0 -209
- package/src/rich-text-editor/base/interface.d.ts +3 -37
- package/src/rich-text-editor/base/rich-text-editor-model.d.ts +3 -3
- package/src/rich-text-editor/base/rich-text-editor.d.ts +4 -7
- package/src/rich-text-editor/base/rich-text-editor.js +132 -156
- package/src/rich-text-editor/base/util.js +2 -11
- package/src/rich-text-editor/formatter/formatter.js +4 -16
- package/src/rich-text-editor/models/default-locale.js +26 -30
- package/src/rich-text-editor/models/items.js +2 -2
- package/src/rich-text-editor/models/toolbar-settings-model.d.ts +1 -1
- package/src/rich-text-editor/models/toolbar-settings.d.ts +1 -1
- package/src/rich-text-editor/models/toolbar-settings.js +1 -1
- package/src/rich-text-editor/renderer/audio-module.d.ts +0 -1
- package/src/rich-text-editor/renderer/audio-module.js +4 -22
- package/src/rich-text-editor/renderer/dialog-renderer.d.ts +0 -2
- package/src/rich-text-editor/renderer/dialog-renderer.js +1 -12
- package/src/rich-text-editor/renderer/iframe-content-renderer.js +1 -2
- package/src/rich-text-editor/renderer/image-module.d.ts +1 -9
- package/src/rich-text-editor/renderer/image-module.js +168 -203
- package/src/rich-text-editor/renderer/link-module.js +1 -10
- package/src/rich-text-editor/renderer/table-module.d.ts +1 -8
- package/src/rich-text-editor/renderer/table-module.js +139 -301
- package/src/rich-text-editor/renderer/toolbar-renderer.d.ts +0 -3
- package/src/rich-text-editor/renderer/toolbar-renderer.js +9 -94
- package/src/rich-text-editor/renderer/video-module.d.ts +0 -3
- package/src/rich-text-editor/renderer/video-module.js +41 -82
- package/src/rich-text-editor/renderer/view-source.d.ts +0 -1
- package/src/rich-text-editor/renderer/view-source.js +4 -12
- package/src/selection/selection.js +0 -3
- package/styles/bootstrap-dark.css +53 -161
- package/styles/bootstrap.css +61 -162
- package/styles/bootstrap4.css +46 -146
- package/styles/bootstrap5-dark.css +46 -151
- package/styles/bootstrap5.css +46 -151
- package/styles/fabric-dark.css +40 -140
- package/styles/fabric.css +41 -141
- package/styles/fluent-dark.css +47 -165
- package/styles/fluent.css +47 -165
- package/styles/highcontrast-light.css +40 -140
- package/styles/highcontrast.css +41 -144
- package/styles/material-dark.css +41 -145
- package/styles/material.css +41 -145
- package/styles/material3-dark.css +50 -156
- package/styles/material3.css +50 -156
- package/styles/rich-text-editor/_bootstrap-dark-definition.scss +13 -17
- package/styles/rich-text-editor/_bootstrap-definition.scss +19 -22
- package/styles/rich-text-editor/_bootstrap4-definition.scss +7 -11
- package/styles/rich-text-editor/_bootstrap5-definition.scss +3 -7
- package/styles/rich-text-editor/_fabric-dark-definition.scss +2 -6
- package/styles/rich-text-editor/_fabric-definition.scss +3 -7
- package/styles/rich-text-editor/_fluent-definition.scss +9 -13
- package/styles/rich-text-editor/_fusionnew-definition.scss +3 -7
- package/styles/rich-text-editor/_highcontrast-definition.scss +3 -7
- package/styles/rich-text-editor/_highcontrast-light-definition.scss +2 -6
- package/styles/rich-text-editor/_layout.scss +31 -133
- package/styles/rich-text-editor/_material-dark-definition.scss +2 -6
- package/styles/rich-text-editor/_material-definition.scss +2 -6
- package/styles/rich-text-editor/_material3-definition.scss +12 -16
- package/styles/rich-text-editor/_tailwind-definition.scss +19 -23
- package/styles/rich-text-editor/_theme.scss +23 -112
- package/styles/rich-text-editor/bootstrap-dark.css +53 -161
- package/styles/rich-text-editor/bootstrap.css +61 -162
- package/styles/rich-text-editor/bootstrap4.css +46 -146
- package/styles/rich-text-editor/bootstrap5-dark.css +46 -151
- package/styles/rich-text-editor/bootstrap5.css +46 -151
- package/styles/rich-text-editor/fabric-dark.css +40 -140
- package/styles/rich-text-editor/fabric.css +41 -141
- package/styles/rich-text-editor/fluent-dark.css +47 -165
- package/styles/rich-text-editor/fluent.css +47 -165
- package/styles/rich-text-editor/highcontrast-light.css +40 -140
- package/styles/rich-text-editor/highcontrast.css +41 -144
- package/styles/rich-text-editor/icons/_bootstrap-dark.scss +2 -2
- package/styles/rich-text-editor/icons/_bootstrap.scss +2 -2
- package/styles/rich-text-editor/icons/_bootstrap4.scss +2 -2
- package/styles/rich-text-editor/icons/_bootstrap5.scss +2 -2
- package/styles/rich-text-editor/icons/_fabric-dark.scss +2 -2
- package/styles/rich-text-editor/icons/_fabric.scss +2 -2
- package/styles/rich-text-editor/icons/_fluent.scss +2 -2
- package/styles/rich-text-editor/icons/_highcontrast-light.scss +2 -2
- package/styles/rich-text-editor/icons/_highcontrast.scss +2 -2
- package/styles/rich-text-editor/icons/_material-dark.scss +2 -2
- package/styles/rich-text-editor/icons/_material.scss +2 -2
- package/styles/rich-text-editor/icons/_material3.scss +2 -2
- package/styles/rich-text-editor/icons/_tailwind.scss +2 -2
- package/styles/rich-text-editor/material-dark.css +41 -145
- package/styles/rich-text-editor/material.css +41 -145
- package/styles/rich-text-editor/material3-dark.css +50 -156
- package/styles/rich-text-editor/material3.css +50 -156
- package/styles/rich-text-editor/tailwind-dark.css +63 -191
- package/styles/rich-text-editor/tailwind.css +63 -191
- package/styles/tailwind-dark.css +63 -191
- package/styles/tailwind.css +63 -191
- package/.eslintrc.json +0 -260
- package/src/global.d.ts +0 -1
- package/styles/rich-text-editor/_bds-definition.scss +0 -279
- package/styles/rich-text-editor/icons/_bds.scss +0 -348
|
@@ -8,7 +8,7 @@ import { ClickEventArgs } from '@syncfusion/ej2-navigations';
|
|
|
8
8
|
import { BaseToolbar } from '../actions/base-toolbar';
|
|
9
9
|
import { BaseQuickToolbar } from '../actions/base-quick-toolbar';
|
|
10
10
|
import { NodeSelection } from '../../selection/selection';
|
|
11
|
-
import {
|
|
11
|
+
import { EditorMode, EnterKey, ShiftEnterKey } from './../../common/types';
|
|
12
12
|
import { MarkdownSelection } from './../../markdown-parser/plugin/markdown-selection';
|
|
13
13
|
import { ToolbarSettingsModel, IFrameSettingsModel, ImageSettingsModel, AudioSettingsModel, VideoSettingsModel, TableSettingsModel, FormatPainterSettingsModel, EmojiSettingsModel } from '../models/models';
|
|
14
14
|
import { QuickToolbarSettingsModel, InlineModeModel, PasteCleanupSettingsModel, FileManagerSettingsModel } from '../models/models';
|
|
@@ -163,7 +163,7 @@ export interface IRichTextEditor extends Component<HTMLElement> {
|
|
|
163
163
|
getText(): string;
|
|
164
164
|
updateValueData?(): void;
|
|
165
165
|
getBaseToolbarObject(): BaseToolbar;
|
|
166
|
-
setContentHeight(target
|
|
166
|
+
setContentHeight(target?: string, isExpand?: boolean): void;
|
|
167
167
|
keyConfig?: {
|
|
168
168
|
[key: string]: string;
|
|
169
169
|
};
|
|
@@ -196,8 +196,6 @@ export interface IRichTextEditor extends Component<HTMLElement> {
|
|
|
196
196
|
currentTarget: HTMLElement;
|
|
197
197
|
focusIn(): void;
|
|
198
198
|
showEmojiPicker?(x?: number, y?: number): void;
|
|
199
|
-
addAnchorAriaLabel?(value: string): string;
|
|
200
|
-
autoSaveOnIdle: boolean;
|
|
201
199
|
}
|
|
202
200
|
/**
|
|
203
201
|
* @deprecated
|
|
@@ -254,7 +252,7 @@ export interface NotifyArgs {
|
|
|
254
252
|
action?: string;
|
|
255
253
|
callBack?(args?: string | IImageCommandsArgs, cropImageData?: {
|
|
256
254
|
[key: string]: string | boolean | number;
|
|
257
|
-
}[]
|
|
255
|
+
}[]): void;
|
|
258
256
|
file?: Blob;
|
|
259
257
|
insertElement?: Element;
|
|
260
258
|
touchData?: ITouchData;
|
|
@@ -262,11 +260,6 @@ export interface NotifyArgs {
|
|
|
262
260
|
formatPainterSettings?: FormatPainterSettingsModel;
|
|
263
261
|
emojiPickerSettings?: EmojiSettingsModel;
|
|
264
262
|
ariaLabel?: string;
|
|
265
|
-
/**
|
|
266
|
-
* Defines the source of the Table content.
|
|
267
|
-
* @private
|
|
268
|
-
*/
|
|
269
|
-
pasteTableSource?: string;
|
|
270
263
|
}
|
|
271
264
|
/**
|
|
272
265
|
* Provides information about the current and previous cssClass property .
|
|
@@ -1384,31 +1377,4 @@ export interface ToolbarStatusEventArgs {
|
|
|
1384
1377
|
export interface CleanupResizeElemArgs {
|
|
1385
1378
|
name?: string;
|
|
1386
1379
|
value: string;
|
|
1387
|
-
callBack(value: string): void;
|
|
1388
|
-
}
|
|
1389
|
-
/**
|
|
1390
|
-
* @hidden
|
|
1391
|
-
* @private
|
|
1392
|
-
*/
|
|
1393
|
-
export interface IBaseQuickToolbar {
|
|
1394
|
-
/**
|
|
1395
|
-
* Instance of the Quick Toolabr Popup.
|
|
1396
|
-
*/
|
|
1397
|
-
popupObj: Popup;
|
|
1398
|
-
/**
|
|
1399
|
-
* Parent Element of the Quick Toolbar.
|
|
1400
|
-
*/
|
|
1401
|
-
element: HTMLElement;
|
|
1402
|
-
/**
|
|
1403
|
-
* Boolean to check whether the quick toolbar is rendered in the DOM.
|
|
1404
|
-
*/
|
|
1405
|
-
isRendered: boolean;
|
|
1406
|
-
/**
|
|
1407
|
-
* Instance of the Toolbar rendered inside the Popup.
|
|
1408
|
-
*/
|
|
1409
|
-
quickTBarObj: BaseToolbar;
|
|
1410
|
-
/**
|
|
1411
|
-
* Element of the Toolbar rendered inside the Popup.
|
|
1412
|
-
*/
|
|
1413
|
-
toolbarElement: HTMLElement;
|
|
1414
1380
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Component, ModuleDeclaration, EventHandler, Complex, Browser, EmitType, addClass, select, detach } from '@syncfusion/ej2-base';
|
|
1
|
+
import { Component, ModuleDeclaration, EventHandler, Complex, Browser, EmitType, addClass, select, detach } from '@syncfusion/ej2-base';
|
|
2
2
|
import {ComponentModel} from '@syncfusion/ej2-base';
|
|
3
3
|
|
|
4
4
|
/**
|
|
@@ -83,7 +83,7 @@ export interface RichTextEditorModel extends ComponentModel{
|
|
|
83
83
|
* 'height', 'left', 'line-height', 'list-style-type', 'margin', 'margin-top', 'margin-left',
|
|
84
84
|
* 'margin-right', 'margin-bottom', 'max-height', 'max-width', 'min-height', 'min-width',
|
|
85
85
|
* 'overflow', 'overflow-x', 'overflow-y', 'padding', 'padding-bottom', 'padding-left', 'padding-right',
|
|
86
|
-
* 'padding-top', 'position', 'right', 'table-layout', 'text-align', 'text-decoration', 'text-
|
|
86
|
+
* 'padding-top', 'position', 'right', 'table-layout', 'text-align', 'text-decoration', 'text-indent',
|
|
87
87
|
* 'top', 'vertical-align', 'visibility', 'white-space', 'width'],
|
|
88
88
|
* deniedTags: null,
|
|
89
89
|
* keepFormat: true,
|
|
@@ -604,7 +604,7 @@ export interface RichTextEditorModel extends ComponentModel{
|
|
|
604
604
|
*
|
|
605
605
|
* @default
|
|
606
606
|
* {
|
|
607
|
-
* default: '
|
|
607
|
+
* default: '10',
|
|
608
608
|
* width: '35px',
|
|
609
609
|
* items: [
|
|
610
610
|
* { text: '8', value: '8pt' },
|
|
@@ -10,7 +10,7 @@ import { BeforeQuickToolbarOpenArgs, ChangeEventArgs, AfterImageDeleteEventArgs,
|
|
|
10
10
|
import { ILinkCommandsArgs, IImageCommandsArgs, BeforeSanitizeHtmlArgs, ITableCommandsArgs, ExecuteCommandOption } from './interface';
|
|
11
11
|
import { ServiceLocator } from '../services/service-locator';
|
|
12
12
|
import { DialogType } from './enum';
|
|
13
|
-
import { EditorMode, ShiftEnterKey, EnterKey
|
|
13
|
+
import { EditorMode, ShiftEnterKey, EnterKey } from './../../common/types';
|
|
14
14
|
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';
|
|
@@ -266,7 +266,7 @@ export declare class RichTextEditor extends Component<HTMLElement> implements IN
|
|
|
266
266
|
* 'height', 'left', 'line-height', 'list-style-type', 'margin', 'margin-top', 'margin-left',
|
|
267
267
|
* 'margin-right', 'margin-bottom', 'max-height', 'max-width', 'min-height', 'min-width',
|
|
268
268
|
* 'overflow', 'overflow-x', 'overflow-y', 'padding', 'padding-bottom', 'padding-left', 'padding-right',
|
|
269
|
-
* 'padding-top', 'position', 'right', 'table-layout', 'text-align', 'text-decoration', 'text-
|
|
269
|
+
* 'padding-top', 'position', 'right', 'table-layout', 'text-align', 'text-decoration', 'text-indent',
|
|
270
270
|
* 'top', 'vertical-align', 'visibility', 'white-space', 'width'],
|
|
271
271
|
* deniedTags: null,
|
|
272
272
|
* keepFormat: true,
|
|
@@ -751,7 +751,7 @@ export declare class RichTextEditor extends Component<HTMLElement> implements IN
|
|
|
751
751
|
*
|
|
752
752
|
* @default
|
|
753
753
|
* {
|
|
754
|
-
* default: '
|
|
754
|
+
* default: '10',
|
|
755
755
|
* width: '35px',
|
|
756
756
|
* items: [
|
|
757
757
|
* { text: '8', value: '8pt' },
|
|
@@ -1444,7 +1444,7 @@ export declare class RichTextEditor extends Component<HTMLElement> implements IN
|
|
|
1444
1444
|
* @hidden
|
|
1445
1445
|
* @deprecated
|
|
1446
1446
|
*/
|
|
1447
|
-
setContentHeight(target
|
|
1447
|
+
setContentHeight(target?: string, isExpand?: boolean): void;
|
|
1448
1448
|
/**
|
|
1449
1449
|
* Retrieves the HTML from RichTextEditor.
|
|
1450
1450
|
*
|
|
@@ -1543,7 +1543,6 @@ export declare class RichTextEditor extends Component<HTMLElement> implements IN
|
|
|
1543
1543
|
private updateValueOnIdle;
|
|
1544
1544
|
private updateIntervalValue;
|
|
1545
1545
|
private cleanupResizeElements;
|
|
1546
|
-
addAnchorAriaLabel(value: string): string;
|
|
1547
1546
|
private removeResizeElement;
|
|
1548
1547
|
private updateStatus;
|
|
1549
1548
|
private onDocumentClick;
|
|
@@ -1607,6 +1606,4 @@ export declare class RichTextEditor extends Component<HTMLElement> implements IN
|
|
|
1607
1606
|
* @hidden
|
|
1608
1607
|
*/
|
|
1609
1608
|
private resetToolbarTabIndex;
|
|
1610
|
-
private removeSelectionClassStates;
|
|
1611
|
-
private getRenderedQuickToolbarElem;
|
|
1612
1609
|
}
|