@syncfusion/ej2-richtexteditor 20.2.50 → 20.3.47
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 +12 -0
- package/dist/ej2-richtexteditor.min.js +10 -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 +3799 -402
- package/dist/es6/ej2-richtexteditor.es2015.js.map +1 -1
- package/dist/es6/ej2-richtexteditor.es5.js +3759 -333
- 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 +13 -13
- package/src/common/config.js +2 -0
- package/src/common/types.d.ts +4 -0
- package/src/editor-manager/base/classes.d.ts +16 -0
- package/src/editor-manager/base/classes.js +16 -0
- package/src/editor-manager/base/constant.d.ts +2 -0
- package/src/editor-manager/base/constant.js +2 -0
- package/src/editor-manager/base/editor-manager.d.ts +4 -0
- package/src/editor-manager/base/editor-manager.js +14 -0
- package/src/editor-manager/base/interface.d.ts +2 -0
- package/src/editor-manager/plugin/audio.d.ts +32 -0
- package/src/editor-manager/plugin/audio.js +133 -0
- package/src/editor-manager/plugin/dom-node.js +1 -1
- package/src/editor-manager/plugin/image.js +1 -1
- package/src/editor-manager/plugin/inserthtml.js +1 -1
- package/src/editor-manager/plugin/lists.js +10 -8
- package/src/editor-manager/plugin/ms-word-clean-up.js +18 -18
- package/src/editor-manager/plugin/nodecutter.d.ts +1 -1
- package/src/editor-manager/plugin/nodecutter.js +7 -5
- package/src/editor-manager/plugin/selection-commands.js +3 -2
- package/src/editor-manager/plugin/table.js +3 -2
- package/src/editor-manager/plugin/undo.js +2 -1
- package/src/editor-manager/plugin/video.d.ts +34 -0
- package/src/editor-manager/plugin/video.js +249 -0
- package/src/editor-manager/plugin.d.ts +2 -0
- package/src/editor-manager/plugin.js +2 -0
- package/src/global.js +1 -1
- package/src/rich-text-editor/actions/base-quick-toolbar.js +3 -1
- package/src/rich-text-editor/actions/base-toolbar.js +1 -1
- package/src/rich-text-editor/actions/dropdown-buttons.d.ts +2 -2
- package/src/rich-text-editor/actions/dropdown-buttons.js +14 -11
- package/src/rich-text-editor/actions/enter-key.d.ts +1 -0
- package/src/rich-text-editor/actions/enter-key.js +157 -103
- package/src/rich-text-editor/actions/html-editor.d.ts +1 -1
- package/src/rich-text-editor/actions/html-editor.js +57 -9
- package/src/rich-text-editor/actions/paste-clean-up.js +2 -1
- package/src/rich-text-editor/actions/quick-toolbar.d.ts +2 -0
- package/src/rich-text-editor/actions/quick-toolbar.js +52 -6
- package/src/rich-text-editor/actions/resize.js +11 -1
- package/src/rich-text-editor/actions/toolbar-action.js +2 -1
- package/src/rich-text-editor/actions/xhtml-validation.js +1 -1
- package/src/rich-text-editor/audio.d.ts +4 -0
- package/src/rich-text-editor/audio.js +4 -0
- package/src/rich-text-editor/base/classes.d.ts +50 -0
- package/src/rich-text-editor/base/classes.js +50 -0
- package/src/rich-text-editor/base/constant.d.ts +69 -14
- package/src/rich-text-editor/base/constant.js +71 -16
- package/src/rich-text-editor/base/enum.d.ts +10 -2
- package/src/rich-text-editor/base/enum.js +10 -2
- package/src/rich-text-editor/base/interface.d.ts +86 -2
- package/src/rich-text-editor/base/interface.js +8 -0
- package/src/rich-text-editor/base/rich-text-editor-model.d.ts +130 -29
- package/src/rich-text-editor/base/rich-text-editor.d.ts +150 -30
- package/src/rich-text-editor/base/rich-text-editor.js +196 -6
- package/src/rich-text-editor/formatter/formatter.js +7 -2
- package/src/rich-text-editor/models/default-locale.js +46 -4
- package/src/rich-text-editor/models/items.d.ts +3 -0
- package/src/rich-text-editor/models/items.js +100 -3
- package/src/rich-text-editor/models/toolbar-settings-model.d.ts +169 -1
- package/src/rich-text-editor/models/toolbar-settings.d.ts +143 -1
- package/src/rich-text-editor/models/toolbar-settings.js +88 -0
- package/src/rich-text-editor/renderer/audio-module.d.ts +76 -0
- package/src/rich-text-editor/renderer/audio-module.js +875 -0
- package/src/rich-text-editor/renderer/iframe-content-renderer.js +1 -1
- package/src/rich-text-editor/renderer/image-module.js +9 -6
- package/src/rich-text-editor/renderer/link-module.js +2 -1
- package/src/rich-text-editor/renderer/table-module.d.ts +2 -0
- package/src/rich-text-editor/renderer/table-module.js +32 -7
- package/src/rich-text-editor/renderer/video-module.d.ts +105 -0
- package/src/rich-text-editor/renderer/video-module.js +1422 -0
- package/src/rich-text-editor/renderer/view-source.js +1 -0
- package/src/rich-text-editor/renderer.d.ts +2 -0
- package/src/rich-text-editor/renderer.js +2 -0
- package/src/rich-text-editor/video.d.ts +4 -0
- package/src/rich-text-editor/video.js +4 -0
- package/styles/_all.scss +1 -2
- package/styles/bootstrap-dark.css +220 -70
- package/styles/bootstrap.css +220 -70
- package/styles/bootstrap4.css +220 -70
- package/styles/bootstrap5-dark.css +220 -70
- package/styles/bootstrap5.css +220 -70
- package/styles/fabric-dark.css +220 -70
- package/styles/fabric.css +222 -72
- package/styles/fluent-dark.css +222 -72
- package/styles/fluent.css +222 -72
- package/styles/highcontrast-light.css +222 -72
- package/styles/highcontrast.css +222 -72
- package/styles/material-dark.css +220 -70
- package/styles/material.css +220 -70
- package/styles/rich-text-editor/_all.scss +1 -1
- package/styles/rich-text-editor/_bootstrap-dark-definition.scss +3 -0
- package/styles/rich-text-editor/_bootstrap-definition.scss +2 -1
- package/styles/rich-text-editor/_bootstrap4-definition.scss +5 -3
- package/styles/rich-text-editor/_bootstrap5-definition.scss +8 -3
- package/styles/rich-text-editor/_fabric-dark-definition.scss +3 -0
- package/styles/rich-text-editor/_fabric-definition.scss +2 -0
- package/styles/rich-text-editor/_fluent-definition.scss +8 -3
- package/styles/rich-text-editor/_fusionnew-definition.scss +8 -3
- package/styles/rich-text-editor/_highcontrast-definition.scss +2 -0
- package/styles/rich-text-editor/_highcontrast-light-definition.scss +2 -0
- package/styles/rich-text-editor/_layout.scss +116 -74
- package/styles/rich-text-editor/_material-dark-definition.scss +3 -0
- package/styles/rich-text-editor/_material-definition.scss +2 -0
- package/styles/rich-text-editor/_material3-definition.scss +8 -3
- package/styles/rich-text-editor/_tailwind-definition.scss +7 -2
- package/styles/rich-text-editor/_theme.scss +74 -15
- package/styles/rich-text-editor/bootstrap-dark.css +220 -70
- package/styles/rich-text-editor/bootstrap.css +220 -70
- package/styles/rich-text-editor/bootstrap4.css +220 -70
- package/styles/rich-text-editor/bootstrap5-dark.css +220 -70
- package/styles/rich-text-editor/bootstrap5.css +220 -70
- package/styles/rich-text-editor/fabric-dark.css +220 -70
- package/styles/rich-text-editor/fabric.css +222 -72
- package/styles/rich-text-editor/fluent-dark.css +222 -72
- package/styles/rich-text-editor/fluent.css +222 -72
- package/styles/rich-text-editor/highcontrast-light.css +222 -72
- package/styles/rich-text-editor/highcontrast.css +222 -72
- package/styles/rich-text-editor/icons/_bootstrap-dark.scss +20 -4
- package/styles/rich-text-editor/icons/_bootstrap.scss +20 -4
- package/styles/rich-text-editor/icons/_bootstrap4.scss +20 -4
- package/styles/rich-text-editor/icons/_bootstrap5.scss +20 -4
- package/styles/rich-text-editor/icons/_fabric-dark.scss +20 -4
- package/styles/rich-text-editor/icons/_fabric.scss +20 -4
- package/styles/rich-text-editor/icons/_fluent.scss +20 -4
- package/styles/rich-text-editor/icons/_fusionnew.scss +20 -4
- package/styles/rich-text-editor/icons/_highcontrast-light.scss +20 -4
- package/styles/rich-text-editor/icons/_highcontrast.scss +20 -4
- package/styles/rich-text-editor/icons/_material-dark.scss +20 -4
- package/styles/rich-text-editor/icons/_material.scss +20 -4
- package/styles/rich-text-editor/icons/_material3.scss +20 -4
- package/styles/rich-text-editor/icons/_tailwind.scss +20 -4
- package/styles/rich-text-editor/material-dark.css +220 -70
- package/styles/rich-text-editor/material.css +220 -70
- package/styles/rich-text-editor/tailwind-dark.css +220 -70
- package/styles/rich-text-editor/tailwind.css +220 -70
- package/styles/tailwind-dark.css +220 -70
- package/styles/tailwind.css +220 -70
- package/.eslintrc.json +0 -244
- package/tslint.json +0 -111
|
@@ -6,7 +6,7 @@ import { Render } from '../renderer/render';
|
|
|
6
6
|
import { ViewSource } from '../renderer/view-source';
|
|
7
7
|
import { IRenderer, IFormatter, ActionCompleteEventArgs, ActionBeginEventArgs, ImageDropEventArgs } from './interface';
|
|
8
8
|
import { CommandName, ResizeArgs, ToolbarStatusEventArgs } from './interface';
|
|
9
|
-
import { BeforeQuickToolbarOpenArgs, ChangeEventArgs, AfterImageDeleteEventArgs, PasteCleanupArgs } from './interface';
|
|
9
|
+
import { BeforeQuickToolbarOpenArgs, ChangeEventArgs, AfterImageDeleteEventArgs, AfterMediaDeleteEventArgs, PasteCleanupArgs } from './interface';
|
|
10
10
|
import { ILinkCommandsArgs, IImageCommandsArgs, BeforeSanitizeHtmlArgs, ITableCommandsArgs, ExecuteCommandOption } from './interface';
|
|
11
11
|
import { ServiceLocator } from '../services/service-locator';
|
|
12
12
|
import { DialogType } from './enum';
|
|
@@ -14,10 +14,12 @@ 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';
|
|
17
|
-
import { ToolbarSettingsModel, IFrameSettingsModel, ImageSettingsModel, TableSettingsModel } from '../models/models';
|
|
17
|
+
import { ToolbarSettingsModel, IFrameSettingsModel, ImageSettingsModel, AudioSettingsModel, VideoSettingsModel, TableSettingsModel } from '../models/models';
|
|
18
18
|
import { QuickToolbarSettingsModel, InlineModeModel, PasteCleanupSettingsModel, FileManagerSettingsModel } from '../models/models';
|
|
19
19
|
import { Link } from '../renderer/link-module';
|
|
20
20
|
import { Image } from '../renderer/image-module';
|
|
21
|
+
import { Audio } from '../renderer/audio-module';
|
|
22
|
+
import { Video } from '../renderer/video-module';
|
|
21
23
|
import { Table } from '../renderer/table-module';
|
|
22
24
|
import { Count } from '../actions/count';
|
|
23
25
|
import { HtmlEditor } from '../actions/html-editor';
|
|
@@ -108,6 +110,16 @@ export declare class RichTextEditor extends Component<HTMLElement> implements IN
|
|
|
108
110
|
/**
|
|
109
111
|
* @hidden
|
|
110
112
|
|
|
113
|
+
*/
|
|
114
|
+
audioModule: Audio;
|
|
115
|
+
/**
|
|
116
|
+
* @hidden
|
|
117
|
+
|
|
118
|
+
*/
|
|
119
|
+
videoModule: Video;
|
|
120
|
+
/**
|
|
121
|
+
* @hidden
|
|
122
|
+
|
|
111
123
|
*/
|
|
112
124
|
tableModule: Table;
|
|
113
125
|
/**
|
|
@@ -215,6 +227,8 @@ export declare class RichTextEditor extends Component<HTMLElement> implements IN
|
|
|
215
227
|
* actionOnScroll: 'hide',
|
|
216
228
|
* link: ['Open', 'Edit', 'UnLink'],
|
|
217
229
|
* image: ['Replace', 'Align', 'Caption', 'Remove', '-', 'InsertLink', 'Display', 'AltText', 'Dimension'],
|
|
230
|
+
* audio: ['AudioReplace', 'AudioRemove', 'AudioLayoutOption'],
|
|
231
|
+
* video: ['VideoReplace', 'VideoAlign', 'VideoRemove', 'VideoLayoutOption', 'VideoDimension'],
|
|
218
232
|
* }
|
|
219
233
|
*/
|
|
220
234
|
quickToolbarSettings: QuickToolbarSettingsModel;
|
|
@@ -293,6 +307,54 @@ export declare class RichTextEditor extends Component<HTMLElement> implements IN
|
|
|
293
307
|
* }
|
|
294
308
|
*/
|
|
295
309
|
insertImageSettings: ImageSettingsModel;
|
|
310
|
+
/**
|
|
311
|
+
* Specifies the audio insert options in Rich Text Editor component and control with the following properties.
|
|
312
|
+
* * allowedTypes - Specifies the extensions of the audio types allowed to insert on bowering and
|
|
313
|
+
* passing the extensions with comma separators. For example, pass allowedTypes as .jpg and .png.
|
|
314
|
+
* * layoutOption - Sets the default display for an audio when it is inserted in to the RichTextEditor.
|
|
315
|
+
* Possible options are: 'Inline' and 'Break'.
|
|
316
|
+
* * saveFormat - Specifies the format to store the audio in the Rich Text Editor (Base64 or Blob).
|
|
317
|
+
* > If you want to insert a lot of tiny audios in the editor and don't want a specific physical location for
|
|
318
|
+
* saving audios, you can opt to save format as Base64.
|
|
319
|
+
* * saveUrl - Specifies the service URL of save action that will receive the uploaded files and save them in the server.
|
|
320
|
+
* * path - Specifies the path of the location to store the audios and refer it to display the audios.
|
|
321
|
+
*
|
|
322
|
+
* @default
|
|
323
|
+
* {
|
|
324
|
+
* allowedTypes: ['.wav', '.mp3', '.m4a','.wma'],
|
|
325
|
+
* layoutOption: 'Inline',
|
|
326
|
+
* saveFormat: 'Blob'
|
|
327
|
+
* saveUrl: null,
|
|
328
|
+
* path: null,
|
|
329
|
+
* }
|
|
330
|
+
*/
|
|
331
|
+
insertAudioSettings: AudioSettingsModel;
|
|
332
|
+
/**
|
|
333
|
+
* Specifies the video insert options in Rich Text Editor component and control with the following properties.
|
|
334
|
+
* * allowedTypes - Specifies the extensions of the video types allowed to insert on bowering and
|
|
335
|
+
* passing the extensions with comma separators. For example, pass allowedTypes as .jpg and .png.
|
|
336
|
+
* * layoutOption - Sets the default display for an video when it is inserted in to the RichTextEditor.
|
|
337
|
+
* Possible options are: 'Inline' and 'Break'.
|
|
338
|
+
* * width - Sets the default width of the video when it is inserted in the RichTextEditor.
|
|
339
|
+
* * saveFormat - Specifies the format to store the video in the Rich Text Editor (Base64 or Blob).
|
|
340
|
+
* > If you want to insert a lot of tiny videos in the editor and don't want a specific physical location for
|
|
341
|
+
* saving videos, you can opt to save format as Base64.
|
|
342
|
+
* * height - Sets the default height of the video when it is inserted in the RichTextEditor.
|
|
343
|
+
* * saveUrl - Specifies the service URL of save action that will receive the uploaded files and save them in the server.
|
|
344
|
+
* * path - Specifies the path of the location to store the videos and refer it to display the videos.
|
|
345
|
+
*
|
|
346
|
+
* @default
|
|
347
|
+
* {
|
|
348
|
+
* allowedTypes: ['.mp4', '.mov', '.wmv','.avi'],
|
|
349
|
+
* layoutOption: 'Inline',
|
|
350
|
+
* width: 'auto',
|
|
351
|
+
* height: 'auto',
|
|
352
|
+
* saveFormat: 'Blob'
|
|
353
|
+
* saveUrl: null,
|
|
354
|
+
* path: null,
|
|
355
|
+
* }
|
|
356
|
+
*/
|
|
357
|
+
insertVideoSettings: VideoSettingsModel;
|
|
296
358
|
/**
|
|
297
359
|
* Specifies the table insert options in Rich Text Editor component and control with the following properties.
|
|
298
360
|
* * styles - Class name should be appended by default in table element.
|
|
@@ -738,7 +800,7 @@ export declare class RichTextEditor extends Component<HTMLElement> implements IN
|
|
|
738
800
|
* If you cancel this event, the dialog remains closed.
|
|
739
801
|
* Set the cancel argument to true to cancel the open of a dialog.
|
|
740
802
|
*
|
|
741
|
-
* @event '
|
|
803
|
+
* @event 'beforeDialogOpen'
|
|
742
804
|
* @blazorProperty 'OnDialogOpen'
|
|
743
805
|
* @blazorType Syncfusion.EJ2.Blazor.Popups.BeforeOpenEventArgs
|
|
744
806
|
*/
|
|
@@ -746,7 +808,7 @@ export declare class RichTextEditor extends Component<HTMLElement> implements IN
|
|
|
746
808
|
/**
|
|
747
809
|
* Event triggers when a dialog is opened.
|
|
748
810
|
*
|
|
749
|
-
* @event '
|
|
811
|
+
* @event 'dialogOpen'
|
|
750
812
|
* @blazorProperty 'DialogOpened'
|
|
751
813
|
* @blazorType DialogOpenEventArgs
|
|
752
814
|
*/
|
|
@@ -756,7 +818,7 @@ export declare class RichTextEditor extends Component<HTMLElement> implements IN
|
|
|
756
818
|
* If you cancel this event, the dialog remains opened.
|
|
757
819
|
* Set the cancel argument to true to prevent closing a dialog.
|
|
758
820
|
*
|
|
759
|
-
* @event '
|
|
821
|
+
* @event 'beforeDialogClose'
|
|
760
822
|
* @blazorProperty 'OnDialogClose'
|
|
761
823
|
* @blazorType Syncfusion.EJ2.Blazor.Popups.BeforeOpenEventArgs
|
|
762
824
|
*/
|
|
@@ -764,7 +826,7 @@ export declare class RichTextEditor extends Component<HTMLElement> implements IN
|
|
|
764
826
|
/**
|
|
765
827
|
* Event triggers after the dialog has been closed.
|
|
766
828
|
*
|
|
767
|
-
* @event '
|
|
829
|
+
* @event 'dialogClose'
|
|
768
830
|
* @blazorProperty 'DialogClosed'
|
|
769
831
|
* @blazorType DialogCloseEventArgs
|
|
770
832
|
*/
|
|
@@ -772,14 +834,14 @@ export declare class RichTextEditor extends Component<HTMLElement> implements IN
|
|
|
772
834
|
/**
|
|
773
835
|
* Event triggers when the quick toolbar is being opened.
|
|
774
836
|
*
|
|
775
|
-
* @event '
|
|
837
|
+
* @event 'beforeQuickToolbarOpen'
|
|
776
838
|
* @blazorProperty 'OnQuickToolbarOpen'
|
|
777
839
|
*/
|
|
778
840
|
beforeQuickToolbarOpen: EmitType<BeforeQuickToolbarOpenArgs>;
|
|
779
841
|
/**
|
|
780
842
|
* Event triggers when a quick toolbar is opened.
|
|
781
843
|
*
|
|
782
|
-
* @event '
|
|
844
|
+
* @event 'quickToolbarOpen'
|
|
783
845
|
* @blazorProperty 'QuickToolbarOpened'
|
|
784
846
|
* @blazorType QuickToolbarEventArgs
|
|
785
847
|
*/
|
|
@@ -787,7 +849,7 @@ export declare class RichTextEditor extends Component<HTMLElement> implements IN
|
|
|
787
849
|
/**
|
|
788
850
|
* Event triggers after the quick toolbar has been closed.
|
|
789
851
|
*
|
|
790
|
-
* @event '
|
|
852
|
+
* @event 'quickToolbarClose'
|
|
791
853
|
* @blazorProperty 'QuickToolbarClosed'
|
|
792
854
|
* @blazorType QuickToolbarEventArgs
|
|
793
855
|
*/
|
|
@@ -796,20 +858,20 @@ export declare class RichTextEditor extends Component<HTMLElement> implements IN
|
|
|
796
858
|
* This event is deprecated and no longer works. Use `updatedToolbarStatus` event to get the undo and redo status.
|
|
797
859
|
*
|
|
798
860
|
|
|
799
|
-
* @event '
|
|
861
|
+
* @event 'toolbarStatusUpdate'
|
|
800
862
|
*/
|
|
801
863
|
toolbarStatusUpdate: EmitType<Object>;
|
|
802
864
|
/**
|
|
803
865
|
* Triggers when the toolbar items status is updated.
|
|
804
866
|
*
|
|
805
|
-
* @event '
|
|
867
|
+
* @event 'updatedToolbarStatus'
|
|
806
868
|
* @blazorType ToolbarUpdateEventArgs
|
|
807
869
|
*/
|
|
808
870
|
updatedToolbarStatus: EmitType<ToolbarStatusEventArgs>;
|
|
809
871
|
/**
|
|
810
872
|
* Event triggers when the image is selected or dragged into the insert image dialog.
|
|
811
873
|
*
|
|
812
|
-
* @event '
|
|
874
|
+
* @event 'imageSelected'
|
|
813
875
|
* @blazorProperty 'OnImageSelected'
|
|
814
876
|
*/
|
|
815
877
|
imageSelected: EmitType<SelectedEventArgs>;
|
|
@@ -822,14 +884,14 @@ export declare class RichTextEditor extends Component<HTMLElement> implements IN
|
|
|
822
884
|
/**
|
|
823
885
|
* Event triggers when the selected image begins to upload in the insert image dialog.
|
|
824
886
|
*
|
|
825
|
-
* @event '
|
|
887
|
+
* @event 'imageUploading'
|
|
826
888
|
* @blazorProperty 'OnImageUploading'
|
|
827
889
|
*/
|
|
828
890
|
imageUploading: EmitType<UploadingEventArgs>;
|
|
829
891
|
/**
|
|
830
892
|
* Event triggers when the image is successfully uploaded to the server side.
|
|
831
893
|
*
|
|
832
|
-
* @event '
|
|
894
|
+
* @event 'imageUploadSuccess'
|
|
833
895
|
* @blazorProperty 'OnImageUploadSuccess'
|
|
834
896
|
* @blazorType ImageSuccessEventArgs
|
|
835
897
|
*/
|
|
@@ -837,7 +899,7 @@ export declare class RichTextEditor extends Component<HTMLElement> implements IN
|
|
|
837
899
|
/**
|
|
838
900
|
* Event triggers when there is an error in the image upload.
|
|
839
901
|
*
|
|
840
|
-
* @event '
|
|
902
|
+
* @event 'imageUploadFailed'
|
|
841
903
|
* @blazorProperty 'OnImageUploadFailed'
|
|
842
904
|
* @blazorType ImageFailedEventArgs
|
|
843
905
|
*/
|
|
@@ -845,28 +907,70 @@ export declare class RichTextEditor extends Component<HTMLElement> implements IN
|
|
|
845
907
|
/**
|
|
846
908
|
* Event triggers when the selected image is cleared from the insert image dialog.
|
|
847
909
|
*
|
|
848
|
-
* @event '
|
|
910
|
+
* @event 'imageRemoving'
|
|
849
911
|
* @blazorProperty 'OnImageRemoving'
|
|
850
912
|
*/
|
|
851
913
|
imageRemoving: EmitType<RemovingEventArgs>;
|
|
852
914
|
/**
|
|
853
915
|
* Event triggers when the selected image is cleared from the Rich Text Editor Content.
|
|
854
916
|
*
|
|
855
|
-
* @event '
|
|
917
|
+
* @event 'afterImageDelete'
|
|
856
918
|
* @blazorProperty 'OnImageDelete'
|
|
857
919
|
*/
|
|
858
920
|
afterImageDelete: EmitType<AfterImageDeleteEventArgs>;
|
|
921
|
+
/**
|
|
922
|
+
* Event triggers when the media is selected or dragged into the insert media audio/video dialog.
|
|
923
|
+
*
|
|
924
|
+
* @event 'fileSelected'
|
|
925
|
+
*/
|
|
926
|
+
fileSelected: EmitType<SelectedEventArgs>;
|
|
927
|
+
/**
|
|
928
|
+
* Event triggers before the media audio/video upload process.
|
|
929
|
+
*
|
|
930
|
+
* @event 'beforeFileUpload'
|
|
931
|
+
*/
|
|
932
|
+
beforeFileUpload: EmitType<BeforeUploadEventArgs>;
|
|
933
|
+
/**
|
|
934
|
+
* Event triggers when the selected media begins to upload in the insert media audio/video dialog.
|
|
935
|
+
*
|
|
936
|
+
* @event 'fileUploading'
|
|
937
|
+
*/
|
|
938
|
+
fileUploading: EmitType<UploadingEventArgs>;
|
|
939
|
+
/**
|
|
940
|
+
* Event triggers when the media is successfully uploaded to the server side.
|
|
941
|
+
*
|
|
942
|
+
* @event 'fileUploadSuccess'
|
|
943
|
+
*/
|
|
944
|
+
fileUploadSuccess: EmitType<Object>;
|
|
945
|
+
/**
|
|
946
|
+
* Event triggers when there is an error in the media upload.
|
|
947
|
+
*
|
|
948
|
+
* @event 'fileUploadFailed'
|
|
949
|
+
*/
|
|
950
|
+
fileUploadFailed: EmitType<Object>;
|
|
951
|
+
/**
|
|
952
|
+
* Event triggers when the selected media is cleared from the insert audio/video dialog.
|
|
953
|
+
*
|
|
954
|
+
* @event 'fileRemoving'
|
|
955
|
+
*/
|
|
956
|
+
fileRemoving: EmitType<RemovingEventArgs>;
|
|
957
|
+
/**
|
|
958
|
+
* Event triggers when the selected media is cleared from the Rich Text Editor Content.
|
|
959
|
+
*
|
|
960
|
+
* @event 'afterMediaDelete'
|
|
961
|
+
*/
|
|
962
|
+
afterMediaDelete: EmitType<AfterMediaDeleteEventArgs>;
|
|
859
963
|
/**
|
|
860
964
|
* Triggers when the Rich Text Editor is rendered.
|
|
861
965
|
*
|
|
862
|
-
* @event '
|
|
966
|
+
* @event 'created'
|
|
863
967
|
* @blazorProperty 'Created'
|
|
864
968
|
*/
|
|
865
969
|
created: EmitType<Object>;
|
|
866
970
|
/**
|
|
867
971
|
* Triggers when the Rich Text Editor is destroyed.
|
|
868
972
|
*
|
|
869
|
-
* @event '
|
|
973
|
+
* @event 'destroyed'
|
|
870
974
|
* @blazorProperty 'Destroyed'
|
|
871
975
|
* @blazorType DestroyedEventArgs
|
|
872
976
|
*/
|
|
@@ -874,21 +978,21 @@ export declare class RichTextEditor extends Component<HTMLElement> implements IN
|
|
|
874
978
|
/**
|
|
875
979
|
* Event triggers before sanitize the value. It's only applicable to editorMode as `HTML`.
|
|
876
980
|
*
|
|
877
|
-
* @event '
|
|
981
|
+
* @event 'beforeSanitizeHtml'
|
|
878
982
|
* @blazorProperty 'OnSanitizeHtml'
|
|
879
983
|
*/
|
|
880
984
|
beforeSanitizeHtml: EmitType<BeforeSanitizeHtmlArgs>;
|
|
881
985
|
/**
|
|
882
986
|
* Triggers when Rich Text Editor is focused out.
|
|
883
987
|
*
|
|
884
|
-
* @event '
|
|
988
|
+
* @event 'blur'
|
|
885
989
|
* @blazorType BlurEventArgs
|
|
886
990
|
*/
|
|
887
991
|
blur: EmitType<Object>;
|
|
888
992
|
/**
|
|
889
993
|
* Triggers when Rich Text Editor Toolbar items is clicked.
|
|
890
994
|
*
|
|
891
|
-
* @event '
|
|
995
|
+
* @event 'toolbarClick'
|
|
892
996
|
* @blazorProperty 'OnToolbarClick'
|
|
893
997
|
* @blazorType ToolbarClickEventArgs
|
|
894
998
|
*/
|
|
@@ -896,54 +1000,54 @@ export declare class RichTextEditor extends Component<HTMLElement> implements IN
|
|
|
896
1000
|
/**
|
|
897
1001
|
* Triggers when Rich Text Editor is focused in
|
|
898
1002
|
*
|
|
899
|
-
* @event '
|
|
1003
|
+
* @event 'focus'
|
|
900
1004
|
* @blazorType FocusEventArgs
|
|
901
1005
|
*/
|
|
902
1006
|
focus: EmitType<Object>;
|
|
903
1007
|
/**
|
|
904
1008
|
* Triggers only when Rich Text Editor is blurred and changes are done to the content.
|
|
905
1009
|
*
|
|
906
|
-
* @event '
|
|
1010
|
+
* @event 'change'
|
|
907
1011
|
* @blazorProperty 'ValueChange'
|
|
908
1012
|
*/
|
|
909
1013
|
change: EmitType<ChangeEventArgs>;
|
|
910
1014
|
/**
|
|
911
1015
|
* Triggers only when resizing the image.
|
|
912
1016
|
*
|
|
913
|
-
* @event '
|
|
1017
|
+
* @event 'resizing'
|
|
914
1018
|
* @blazorProperty 'Resizing'
|
|
915
1019
|
*/
|
|
916
1020
|
resizing: EmitType<ResizeArgs>;
|
|
917
1021
|
/**
|
|
918
1022
|
* Triggers only when start resize the image.
|
|
919
1023
|
*
|
|
920
|
-
* @event '
|
|
1024
|
+
* @event 'resizeStart'
|
|
921
1025
|
* @blazorProperty 'OnResizeStart'
|
|
922
1026
|
*/
|
|
923
1027
|
resizeStart: EmitType<ResizeArgs>;
|
|
924
1028
|
/**
|
|
925
1029
|
* Triggers only when stop resize the image.
|
|
926
1030
|
*
|
|
927
|
-
* @event '
|
|
1031
|
+
* @event 'resizeStop'
|
|
928
1032
|
* @blazorProperty 'OnResizeStop'
|
|
929
1033
|
*/
|
|
930
1034
|
resizeStop: EmitType<ResizeArgs>;
|
|
931
1035
|
/**
|
|
932
1036
|
* Triggers before cleanup the copied content.
|
|
933
1037
|
*
|
|
934
|
-
* @event '
|
|
1038
|
+
* @event 'beforePasteCleanup'
|
|
935
1039
|
*/
|
|
936
1040
|
beforePasteCleanup: EmitType<PasteCleanupArgs>;
|
|
937
1041
|
/**
|
|
938
1042
|
* Triggers after cleanup the copied content.
|
|
939
1043
|
*
|
|
940
|
-
* @event '
|
|
1044
|
+
* @event 'afterPasteCleanup'
|
|
941
1045
|
*/
|
|
942
1046
|
afterPasteCleanup: EmitType<object>;
|
|
943
1047
|
/**
|
|
944
1048
|
* Triggers before drop the image.
|
|
945
1049
|
*
|
|
946
|
-
* @event '
|
|
1050
|
+
* @event 'beforeImageDrop'
|
|
947
1051
|
* @blazorProperty 'OnImageDrop'
|
|
948
1052
|
*/
|
|
949
1053
|
beforeImageDrop: EmitType<ImageDropEventArgs>;
|
|
@@ -1057,6 +1161,14 @@ export declare class RichTextEditor extends Component<HTMLElement> implements IN
|
|
|
1057
1161
|
|
|
1058
1162
|
*/
|
|
1059
1163
|
protected render(): void;
|
|
1164
|
+
/**
|
|
1165
|
+
* addAudioVideoWrapper method
|
|
1166
|
+
*
|
|
1167
|
+
* @returns {void}
|
|
1168
|
+
* @hidden
|
|
1169
|
+
|
|
1170
|
+
*/
|
|
1171
|
+
addAudioVideoWrapper(): void;
|
|
1060
1172
|
/**
|
|
1061
1173
|
* For internal use only - Initialize the event handler
|
|
1062
1174
|
*
|
|
@@ -1301,6 +1413,14 @@ export declare class RichTextEditor extends Component<HTMLElement> implements IN
|
|
|
1301
1413
|
|
|
1302
1414
|
*/
|
|
1303
1415
|
getInsertImgMaxWidth(): string | number;
|
|
1416
|
+
/**
|
|
1417
|
+
* Video max width calculation method
|
|
1418
|
+
*
|
|
1419
|
+
* @returns {void}
|
|
1420
|
+
* @hidden
|
|
1421
|
+
|
|
1422
|
+
*/
|
|
1423
|
+
getInsertVidMaxWidth(): string | number;
|
|
1304
1424
|
/**
|
|
1305
1425
|
* setContentHeight method
|
|
1306
1426
|
*
|