@syncfusion/ej2-richtexteditor 22.2.12 → 23.1.39

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.
Files changed (109) hide show
  1. package/CHANGELOG.md +67 -1
  2. package/dist/ej2-richtexteditor.min.js +3 -3
  3. package/dist/ej2-richtexteditor.umd.min.js +3 -3
  4. package/dist/ej2-richtexteditor.umd.min.js.map +1 -1
  5. package/dist/es6/ej2-richtexteditor.es2015.js +457 -285
  6. package/dist/es6/ej2-richtexteditor.es2015.js.map +1 -1
  7. package/dist/es6/ej2-richtexteditor.es5.js +457 -281
  8. package/dist/es6/ej2-richtexteditor.es5.js.map +1 -1
  9. package/dist/global/ej2-richtexteditor.min.js +3 -3
  10. package/dist/global/ej2-richtexteditor.min.js.map +1 -1
  11. package/dist/global/index.d.ts +2 -2
  12. package/package.json +13 -13
  13. package/src/editor-manager/plugin/dom-node.js +6 -5
  14. package/src/editor-manager/plugin/inserthtml.js +1 -1
  15. package/src/editor-manager/plugin/ms-word-clean-up.d.ts +2 -0
  16. package/src/editor-manager/plugin/ms-word-clean-up.js +79 -12
  17. package/src/editor-manager/plugin/selection-exec.js +1 -1
  18. package/src/editor-manager/plugin/table.js +1 -1
  19. package/src/rich-text-editor/actions/base-quick-toolbar.d.ts +2 -1
  20. package/src/rich-text-editor/actions/base-quick-toolbar.js +10 -6
  21. package/src/rich-text-editor/actions/emoji-picker.js +29 -14
  22. package/src/rich-text-editor/actions/enter-key.js +9 -2
  23. package/src/rich-text-editor/actions/format-painter.js +12 -6
  24. package/src/rich-text-editor/actions/full-screen.js +3 -0
  25. package/src/rich-text-editor/actions/html-editor.js +14 -1
  26. package/src/rich-text-editor/actions/markdown-editor.js +3 -0
  27. package/src/rich-text-editor/actions/paste-clean-up.d.ts +2 -0
  28. package/src/rich-text-editor/actions/paste-clean-up.js +63 -32
  29. package/src/rich-text-editor/actions/quick-toolbar.js +35 -2
  30. package/src/rich-text-editor/actions/toolbar.js +4 -1
  31. package/src/rich-text-editor/actions/xhtml-validation.js +1 -1
  32. package/src/rich-text-editor/base/classes.d.ts +5 -0
  33. package/src/rich-text-editor/base/classes.js +5 -0
  34. package/src/rich-text-editor/base/constant.d.ts +5 -0
  35. package/src/rich-text-editor/base/constant.js +5 -0
  36. package/src/rich-text-editor/base/enum.d.ts +4 -0
  37. package/src/rich-text-editor/base/interface.d.ts +10 -22
  38. package/src/rich-text-editor/base/rich-text-editor-model.d.ts +1 -39
  39. package/src/rich-text-editor/base/rich-text-editor.d.ts +1 -39
  40. package/src/rich-text-editor/base/rich-text-editor.js +14 -10
  41. package/src/rich-text-editor/base/util.js +5 -1
  42. package/src/rich-text-editor/models/items.js +34 -22
  43. package/src/rich-text-editor/models/toolbar-settings-model.d.ts +4 -5
  44. package/src/rich-text-editor/models/toolbar-settings.d.ts +4 -5
  45. package/src/rich-text-editor/models/toolbar-settings.js +1 -1
  46. package/src/rich-text-editor/renderer/audio-module.js +5 -33
  47. package/src/rich-text-editor/renderer/dialog-renderer.js +1 -1
  48. package/src/rich-text-editor/renderer/image-module.js +19 -65
  49. package/src/rich-text-editor/renderer/link-module.js +6 -0
  50. package/src/rich-text-editor/renderer/render.js +4 -0
  51. package/src/rich-text-editor/renderer/table-module.js +50 -24
  52. package/src/rich-text-editor/renderer/toolbar-renderer.d.ts +5 -1
  53. package/src/rich-text-editor/renderer/toolbar-renderer.js +28 -2
  54. package/src/rich-text-editor/renderer/video-module.js +5 -33
  55. package/src/rich-text-editor/renderer/view-source.js +4 -0
  56. package/styles/bootstrap-dark.css +4 -4
  57. package/styles/bootstrap.css +4 -4
  58. package/styles/bootstrap4.css +4 -4
  59. package/styles/bootstrap5-dark.css +4 -4
  60. package/styles/bootstrap5.css +4 -4
  61. package/styles/fabric-dark.css +4 -4
  62. package/styles/fabric.css +4 -4
  63. package/styles/fluent-dark.css +4 -4
  64. package/styles/fluent.css +4 -4
  65. package/styles/highcontrast-light.css +4 -4
  66. package/styles/highcontrast.css +4 -4
  67. package/styles/material-dark.css +4 -5
  68. package/styles/material.css +4 -5
  69. package/styles/material3-dark.css +4 -5
  70. package/styles/material3-dark.scss +1 -1
  71. package/styles/material3.css +4 -5
  72. package/styles/material3.scss +1 -1
  73. package/styles/rich-text-editor/_layout.scss +2 -2
  74. package/styles/rich-text-editor/bootstrap-dark.css +4 -4
  75. package/styles/rich-text-editor/bootstrap-dark.scss +1 -1
  76. package/styles/rich-text-editor/bootstrap.css +4 -4
  77. package/styles/rich-text-editor/bootstrap.scss +1 -1
  78. package/styles/rich-text-editor/bootstrap4.css +4 -4
  79. package/styles/rich-text-editor/bootstrap4.scss +1 -1
  80. package/styles/rich-text-editor/bootstrap5-dark.css +4 -4
  81. package/styles/rich-text-editor/bootstrap5-dark.scss +1 -1
  82. package/styles/rich-text-editor/bootstrap5.css +4 -4
  83. package/styles/rich-text-editor/bootstrap5.scss +1 -1
  84. package/styles/rich-text-editor/fabric-dark.css +4 -4
  85. package/styles/rich-text-editor/fabric-dark.scss +1 -1
  86. package/styles/rich-text-editor/fabric.css +4 -4
  87. package/styles/rich-text-editor/fabric.scss +1 -1
  88. package/styles/rich-text-editor/fluent-dark.css +4 -4
  89. package/styles/rich-text-editor/fluent-dark.scss +1 -1
  90. package/styles/rich-text-editor/fluent.css +4 -4
  91. package/styles/rich-text-editor/fluent.scss +1 -1
  92. package/styles/rich-text-editor/highcontrast-light.css +4 -4
  93. package/styles/rich-text-editor/highcontrast-light.scss +1 -1
  94. package/styles/rich-text-editor/highcontrast.css +4 -4
  95. package/styles/rich-text-editor/highcontrast.scss +1 -1
  96. package/styles/rich-text-editor/material-dark.css +4 -5
  97. package/styles/rich-text-editor/material-dark.scss +1 -1
  98. package/styles/rich-text-editor/material.css +4 -5
  99. package/styles/rich-text-editor/material.scss +1 -1
  100. package/styles/rich-text-editor/material3-dark.css +4 -5
  101. package/styles/rich-text-editor/material3-dark.scss +1 -1
  102. package/styles/rich-text-editor/material3.css +4 -5
  103. package/styles/rich-text-editor/material3.scss +1 -1
  104. package/styles/rich-text-editor/tailwind-dark.css +4 -5
  105. package/styles/rich-text-editor/tailwind-dark.scss +1 -1
  106. package/styles/rich-text-editor/tailwind.css +4 -5
  107. package/styles/rich-text-editor/tailwind.scss +1 -1
  108. package/styles/tailwind-dark.css +4 -5
  109. package/styles/tailwind.css +4 -5
@@ -314,7 +314,7 @@ export interface RichTextEditorModel extends ComponentModel{
314
314
  /**
315
315
  * Specify the value whether tooltip will be displayed for the Rich Text Editor toolbar.
316
316
  *
317
- * @default false.
317
+ * @default true.
318
318
  */
319
319
  showTooltip?: boolean;
320
320
 
@@ -685,7 +685,6 @@ export interface RichTextEditorModel extends ComponentModel{
685
685
  * Set the cancel argument to true to cancel the command execution.
686
686
  *
687
687
  * @event 'actionBegin'
688
- * @blazorProperty 'OnActionBegin'
689
688
  */
690
689
  actionBegin?: EmitType<ActionBeginEventArgs>;
691
690
 
@@ -693,7 +692,6 @@ export interface RichTextEditorModel extends ComponentModel{
693
692
  * Triggers after command execution using toolbar items or executeCommand method.
694
693
  *
695
694
  * @event 'actionComplete'
696
- * @blazorProperty 'OnActionComplete'
697
695
  */
698
696
  actionComplete?: EmitType<ActionCompleteEventArgs>;
699
697
 
@@ -703,8 +701,6 @@ export interface RichTextEditorModel extends ComponentModel{
703
701
  * Set the cancel argument to true to cancel the open of a dialog.
704
702
  *
705
703
  * @event 'beforeDialogOpen'
706
- * @blazorProperty 'OnDialogOpen'
707
- * @blazorType Syncfusion.EJ2.Blazor.Popups.BeforeOpenEventArgs
708
704
  */
709
705
 
710
706
  beforeDialogOpen?: EmitType<BeforeOpenEventArgs>;
@@ -713,8 +709,6 @@ export interface RichTextEditorModel extends ComponentModel{
713
709
  * Event triggers when a dialog is opened.
714
710
  *
715
711
  * @event 'dialogOpen'
716
- * @blazorProperty 'DialogOpened'
717
- * @blazorType DialogOpenEventArgs
718
712
  */
719
713
  dialogOpen?: EmitType<Object>;
720
714
 
@@ -724,8 +718,6 @@ export interface RichTextEditorModel extends ComponentModel{
724
718
  * Set the cancel argument to true to prevent closing a dialog.
725
719
  *
726
720
  * @event 'beforeDialogClose'
727
- * @blazorProperty 'OnDialogClose'
728
- * @blazorType Syncfusion.EJ2.Blazor.Popups.BeforeOpenEventArgs
729
721
  */
730
722
  beforeDialogClose?: EmitType<BeforeCloseEventArgs>;
731
723
 
@@ -733,8 +725,6 @@ export interface RichTextEditorModel extends ComponentModel{
733
725
  * Event triggers after the dialog has been closed.
734
726
  *
735
727
  * @event 'dialogClose'
736
- * @blazorProperty 'DialogClosed'
737
- * @blazorType DialogCloseEventArgs
738
728
  */
739
729
  dialogClose?: EmitType<Object>;
740
730
 
@@ -742,7 +732,6 @@ export interface RichTextEditorModel extends ComponentModel{
742
732
  * Event triggers when the quick toolbar is being opened.
743
733
  *
744
734
  * @event 'beforeQuickToolbarOpen'
745
- * @blazorProperty 'OnQuickToolbarOpen'
746
735
  */
747
736
  beforeQuickToolbarOpen?: EmitType<BeforeQuickToolbarOpenArgs>;
748
737
 
@@ -750,8 +739,6 @@ export interface RichTextEditorModel extends ComponentModel{
750
739
  * Event triggers when a quick toolbar is opened.
751
740
  *
752
741
  * @event 'quickToolbarOpen'
753
- * @blazorProperty 'QuickToolbarOpened'
754
- * @blazorType QuickToolbarEventArgs
755
742
  */
756
743
  quickToolbarOpen?: EmitType<Object>;
757
744
 
@@ -759,8 +746,6 @@ export interface RichTextEditorModel extends ComponentModel{
759
746
  * Event triggers after the quick toolbar has been closed.
760
747
  *
761
748
  * @event 'quickToolbarClose'
762
- * @blazorProperty 'QuickToolbarClosed'
763
- * @blazorType QuickToolbarEventArgs
764
749
  */
765
750
  quickToolbarClose?: EmitType<Object>;
766
751
 
@@ -776,7 +761,6 @@ export interface RichTextEditorModel extends ComponentModel{
776
761
  * Triggers when the toolbar items status is updated.
777
762
  *
778
763
  * @event 'updatedToolbarStatus'
779
- * @blazorType ToolbarUpdateEventArgs
780
764
  */
781
765
  updatedToolbarStatus?: EmitType<ToolbarStatusEventArgs>;
782
766
 
@@ -784,7 +768,6 @@ export interface RichTextEditorModel extends ComponentModel{
784
768
  * Event triggers when the image is selected or dragged into the insert image dialog.
785
769
  *
786
770
  * @event 'imageSelected'
787
- * @blazorProperty 'OnImageSelected'
788
771
  */
789
772
  imageSelected?: EmitType<SelectedEventArgs>;
790
773
 
@@ -799,7 +782,6 @@ export interface RichTextEditorModel extends ComponentModel{
799
782
  * Event triggers when the selected image begins to upload in the insert image dialog.
800
783
  *
801
784
  * @event 'imageUploading'
802
- * @blazorProperty 'OnImageUploading'
803
785
  */
804
786
  imageUploading?: EmitType<UploadingEventArgs>;
805
787
 
@@ -807,8 +789,6 @@ export interface RichTextEditorModel extends ComponentModel{
807
789
  * Event triggers when the image is successfully uploaded to the server side.
808
790
  *
809
791
  * @event 'imageUploadSuccess'
810
- * @blazorProperty 'OnImageUploadSuccess'
811
- * @blazorType ImageSuccessEventArgs
812
792
  */
813
793
  imageUploadSuccess?: EmitType<Object>;
814
794
 
@@ -816,8 +796,6 @@ export interface RichTextEditorModel extends ComponentModel{
816
796
  * Event triggers when there is an error in the image upload.
817
797
  *
818
798
  * @event 'imageUploadFailed'
819
- * @blazorProperty 'OnImageUploadFailed'
820
- * @blazorType ImageFailedEventArgs
821
799
  */
822
800
  imageUploadFailed?: EmitType<Object>;
823
801
 
@@ -825,7 +803,6 @@ export interface RichTextEditorModel extends ComponentModel{
825
803
  * Event triggers when the selected image is cleared from the insert image dialog.
826
804
  *
827
805
  * @event 'imageRemoving'
828
- * @blazorProperty 'OnImageRemoving'
829
806
  */
830
807
  imageRemoving?: EmitType<RemovingEventArgs>;
831
808
 
@@ -833,7 +810,6 @@ export interface RichTextEditorModel extends ComponentModel{
833
810
  * Event triggers when the selected image is cleared from the Rich Text Editor Content.
834
811
  *
835
812
  * @event 'afterImageDelete'
836
- * @blazorProperty 'OnImageDelete'
837
813
  */
838
814
  afterImageDelete?: EmitType<AfterImageDeleteEventArgs>;
839
815
 
@@ -890,7 +866,6 @@ export interface RichTextEditorModel extends ComponentModel{
890
866
  * Triggers when the Rich Text Editor is rendered.
891
867
  *
892
868
  * @event 'created'
893
- * @blazorProperty 'Created'
894
869
  */
895
870
  created?: EmitType<Object>;
896
871
 
@@ -898,8 +873,6 @@ export interface RichTextEditorModel extends ComponentModel{
898
873
  * Triggers when the Rich Text Editor is destroyed.
899
874
  *
900
875
  * @event 'destroyed'
901
- * @blazorProperty 'Destroyed'
902
- * @blazorType DestroyedEventArgs
903
876
  */
904
877
  destroyed?: EmitType<Object>;
905
878
 
@@ -907,7 +880,6 @@ export interface RichTextEditorModel extends ComponentModel{
907
880
  * Event triggers before sanitize the value. It's only applicable to editorMode as `HTML`.
908
881
  *
909
882
  * @event 'beforeSanitizeHtml'
910
- * @blazorProperty 'OnSanitizeHtml'
911
883
  */
912
884
  beforeSanitizeHtml?: EmitType<BeforeSanitizeHtmlArgs>;
913
885
 
@@ -915,7 +887,6 @@ export interface RichTextEditorModel extends ComponentModel{
915
887
  * Triggers when Rich Text Editor is focused out.
916
888
  *
917
889
  * @event 'blur'
918
- * @blazorType BlurEventArgs
919
890
  */
920
891
  blur?: EmitType<Object>;
921
892
 
@@ -923,8 +894,6 @@ export interface RichTextEditorModel extends ComponentModel{
923
894
  * Triggers when Rich Text Editor Toolbar items is clicked.
924
895
  *
925
896
  * @event 'toolbarClick'
926
- * @blazorProperty 'OnToolbarClick'
927
- * @blazorType ToolbarClickEventArgs
928
897
  */
929
898
  toolbarClick?: EmitType<Object>;
930
899
 
@@ -932,7 +901,6 @@ export interface RichTextEditorModel extends ComponentModel{
932
901
  * Triggers when Rich Text Editor is focused in
933
902
  *
934
903
  * @event 'focus'
935
- * @blazorType FocusEventArgs
936
904
  */
937
905
  focus?: EmitType<Object>;
938
906
 
@@ -940,7 +908,6 @@ export interface RichTextEditorModel extends ComponentModel{
940
908
  * Triggers only when Rich Text Editor is blurred and changes are done to the content.
941
909
  *
942
910
  * @event 'change'
943
- * @blazorProperty 'ValueChange'
944
911
  */
945
912
  change?: EmitType<ChangeEventArgs>;
946
913
 
@@ -948,7 +915,6 @@ export interface RichTextEditorModel extends ComponentModel{
948
915
  * Triggers only when resizing the image.
949
916
  *
950
917
  * @event 'resizing'
951
- * @blazorProperty 'Resizing'
952
918
  */
953
919
  resizing?: EmitType<ResizeArgs>;
954
920
 
@@ -956,7 +922,6 @@ export interface RichTextEditorModel extends ComponentModel{
956
922
  * Triggers only when start resize the image.
957
923
  *
958
924
  * @event 'resizeStart'
959
- * @blazorProperty 'OnResizeStart'
960
925
  */
961
926
  resizeStart?: EmitType<ResizeArgs>;
962
927
 
@@ -964,7 +929,6 @@ export interface RichTextEditorModel extends ComponentModel{
964
929
  * Triggers only when stop resize the image.
965
930
  *
966
931
  * @event 'resizeStop'
967
- * @blazorProperty 'OnResizeStop'
968
932
  */
969
933
  resizeStop?: EmitType<ResizeArgs>;
970
934
 
@@ -986,7 +950,6 @@ export interface RichTextEditorModel extends ComponentModel{
986
950
  * Triggers before drop the image.
987
951
  *
988
952
  * @event 'beforeImageDrop'
989
- * @blazorProperty 'OnImageDrop'
990
953
  */
991
954
  beforeImageDrop?: EmitType<ImageDropEventArgs>;
992
955
 
@@ -996,7 +959,6 @@ export interface RichTextEditorModel extends ComponentModel{
996
959
  * {% codeBlock src='rich-text-editor/formatter/index.md' %}{% endcodeBlock %}
997
960
  *
998
961
  * @default null
999
- * @blazorType object
1000
962
  */
1001
963
  formatter?: IFormatter;
1002
964
 
@@ -484,7 +484,7 @@ export declare class RichTextEditor extends Component<HTMLElement> implements IN
484
484
  /**
485
485
  * Specify the value whether tooltip will be displayed for the Rich Text Editor toolbar.
486
486
  *
487
- * @default false.
487
+ * @default true.
488
488
  */
489
489
  showTooltip: boolean;
490
490
  /**
@@ -827,14 +827,12 @@ export declare class RichTextEditor extends Component<HTMLElement> implements IN
827
827
  * Set the cancel argument to true to cancel the command execution.
828
828
  *
829
829
  * @event 'actionBegin'
830
- * @blazorProperty 'OnActionBegin'
831
830
  */
832
831
  actionBegin: EmitType<ActionBeginEventArgs>;
833
832
  /**
834
833
  * Triggers after command execution using toolbar items or executeCommand method.
835
834
  *
836
835
  * @event 'actionComplete'
837
- * @blazorProperty 'OnActionComplete'
838
836
  */
839
837
  actionComplete: EmitType<ActionCompleteEventArgs>;
840
838
  /**
@@ -843,16 +841,12 @@ export declare class RichTextEditor extends Component<HTMLElement> implements IN
843
841
  * Set the cancel argument to true to cancel the open of a dialog.
844
842
  *
845
843
  * @event 'beforeDialogOpen'
846
- * @blazorProperty 'OnDialogOpen'
847
- * @blazorType Syncfusion.EJ2.Blazor.Popups.BeforeOpenEventArgs
848
844
  */
849
845
  beforeDialogOpen: EmitType<BeforeOpenEventArgs>;
850
846
  /**
851
847
  * Event triggers when a dialog is opened.
852
848
  *
853
849
  * @event 'dialogOpen'
854
- * @blazorProperty 'DialogOpened'
855
- * @blazorType DialogOpenEventArgs
856
850
  */
857
851
  dialogOpen: EmitType<Object>;
858
852
  /**
@@ -861,39 +855,30 @@ export declare class RichTextEditor extends Component<HTMLElement> implements IN
861
855
  * Set the cancel argument to true to prevent closing a dialog.
862
856
  *
863
857
  * @event 'beforeDialogClose'
864
- * @blazorProperty 'OnDialogClose'
865
- * @blazorType Syncfusion.EJ2.Blazor.Popups.BeforeOpenEventArgs
866
858
  */
867
859
  beforeDialogClose: EmitType<BeforeCloseEventArgs>;
868
860
  /**
869
861
  * Event triggers after the dialog has been closed.
870
862
  *
871
863
  * @event 'dialogClose'
872
- * @blazorProperty 'DialogClosed'
873
- * @blazorType DialogCloseEventArgs
874
864
  */
875
865
  dialogClose: EmitType<Object>;
876
866
  /**
877
867
  * Event triggers when the quick toolbar is being opened.
878
868
  *
879
869
  * @event 'beforeQuickToolbarOpen'
880
- * @blazorProperty 'OnQuickToolbarOpen'
881
870
  */
882
871
  beforeQuickToolbarOpen: EmitType<BeforeQuickToolbarOpenArgs>;
883
872
  /**
884
873
  * Event triggers when a quick toolbar is opened.
885
874
  *
886
875
  * @event 'quickToolbarOpen'
887
- * @blazorProperty 'QuickToolbarOpened'
888
- * @blazorType QuickToolbarEventArgs
889
876
  */
890
877
  quickToolbarOpen: EmitType<Object>;
891
878
  /**
892
879
  * Event triggers after the quick toolbar has been closed.
893
880
  *
894
881
  * @event 'quickToolbarClose'
895
- * @blazorProperty 'QuickToolbarClosed'
896
- * @blazorType QuickToolbarEventArgs
897
882
  */
898
883
  quickToolbarClose: EmitType<Object>;
899
884
  /**
@@ -907,14 +892,12 @@ export declare class RichTextEditor extends Component<HTMLElement> implements IN
907
892
  * Triggers when the toolbar items status is updated.
908
893
  *
909
894
  * @event 'updatedToolbarStatus'
910
- * @blazorType ToolbarUpdateEventArgs
911
895
  */
912
896
  updatedToolbarStatus: EmitType<ToolbarStatusEventArgs>;
913
897
  /**
914
898
  * Event triggers when the image is selected or dragged into the insert image dialog.
915
899
  *
916
900
  * @event 'imageSelected'
917
- * @blazorProperty 'OnImageSelected'
918
901
  */
919
902
  imageSelected: EmitType<SelectedEventArgs>;
920
903
  /**
@@ -927,37 +910,30 @@ export declare class RichTextEditor extends Component<HTMLElement> implements IN
927
910
  * Event triggers when the selected image begins to upload in the insert image dialog.
928
911
  *
929
912
  * @event 'imageUploading'
930
- * @blazorProperty 'OnImageUploading'
931
913
  */
932
914
  imageUploading: EmitType<UploadingEventArgs>;
933
915
  /**
934
916
  * Event triggers when the image is successfully uploaded to the server side.
935
917
  *
936
918
  * @event 'imageUploadSuccess'
937
- * @blazorProperty 'OnImageUploadSuccess'
938
- * @blazorType ImageSuccessEventArgs
939
919
  */
940
920
  imageUploadSuccess: EmitType<Object>;
941
921
  /**
942
922
  * Event triggers when there is an error in the image upload.
943
923
  *
944
924
  * @event 'imageUploadFailed'
945
- * @blazorProperty 'OnImageUploadFailed'
946
- * @blazorType ImageFailedEventArgs
947
925
  */
948
926
  imageUploadFailed: EmitType<Object>;
949
927
  /**
950
928
  * Event triggers when the selected image is cleared from the insert image dialog.
951
929
  *
952
930
  * @event 'imageRemoving'
953
- * @blazorProperty 'OnImageRemoving'
954
931
  */
955
932
  imageRemoving: EmitType<RemovingEventArgs>;
956
933
  /**
957
934
  * Event triggers when the selected image is cleared from the Rich Text Editor Content.
958
935
  *
959
936
  * @event 'afterImageDelete'
960
- * @blazorProperty 'OnImageDelete'
961
937
  */
962
938
  afterImageDelete: EmitType<AfterImageDeleteEventArgs>;
963
939
  /**
@@ -1006,72 +982,60 @@ export declare class RichTextEditor extends Component<HTMLElement> implements IN
1006
982
  * Triggers when the Rich Text Editor is rendered.
1007
983
  *
1008
984
  * @event 'created'
1009
- * @blazorProperty 'Created'
1010
985
  */
1011
986
  created: EmitType<Object>;
1012
987
  /**
1013
988
  * Triggers when the Rich Text Editor is destroyed.
1014
989
  *
1015
990
  * @event 'destroyed'
1016
- * @blazorProperty 'Destroyed'
1017
- * @blazorType DestroyedEventArgs
1018
991
  */
1019
992
  destroyed: EmitType<Object>;
1020
993
  /**
1021
994
  * Event triggers before sanitize the value. It's only applicable to editorMode as `HTML`.
1022
995
  *
1023
996
  * @event 'beforeSanitizeHtml'
1024
- * @blazorProperty 'OnSanitizeHtml'
1025
997
  */
1026
998
  beforeSanitizeHtml: EmitType<BeforeSanitizeHtmlArgs>;
1027
999
  /**
1028
1000
  * Triggers when Rich Text Editor is focused out.
1029
1001
  *
1030
1002
  * @event 'blur'
1031
- * @blazorType BlurEventArgs
1032
1003
  */
1033
1004
  blur: EmitType<Object>;
1034
1005
  /**
1035
1006
  * Triggers when Rich Text Editor Toolbar items is clicked.
1036
1007
  *
1037
1008
  * @event 'toolbarClick'
1038
- * @blazorProperty 'OnToolbarClick'
1039
- * @blazorType ToolbarClickEventArgs
1040
1009
  */
1041
1010
  toolbarClick: EmitType<Object>;
1042
1011
  /**
1043
1012
  * Triggers when Rich Text Editor is focused in
1044
1013
  *
1045
1014
  * @event 'focus'
1046
- * @blazorType FocusEventArgs
1047
1015
  */
1048
1016
  focus: EmitType<Object>;
1049
1017
  /**
1050
1018
  * Triggers only when Rich Text Editor is blurred and changes are done to the content.
1051
1019
  *
1052
1020
  * @event 'change'
1053
- * @blazorProperty 'ValueChange'
1054
1021
  */
1055
1022
  change: EmitType<ChangeEventArgs>;
1056
1023
  /**
1057
1024
  * Triggers only when resizing the image.
1058
1025
  *
1059
1026
  * @event 'resizing'
1060
- * @blazorProperty 'Resizing'
1061
1027
  */
1062
1028
  resizing: EmitType<ResizeArgs>;
1063
1029
  /**
1064
1030
  * Triggers only when start resize the image.
1065
1031
  *
1066
1032
  * @event 'resizeStart'
1067
- * @blazorProperty 'OnResizeStart'
1068
1033
  */
1069
1034
  resizeStart: EmitType<ResizeArgs>;
1070
1035
  /**
1071
1036
  * Triggers only when stop resize the image.
1072
1037
  *
1073
1038
  * @event 'resizeStop'
1074
- * @blazorProperty 'OnResizeStop'
1075
1039
  */
1076
1040
  resizeStop: EmitType<ResizeArgs>;
1077
1041
  /**
@@ -1090,7 +1054,6 @@ export declare class RichTextEditor extends Component<HTMLElement> implements IN
1090
1054
  * Triggers before drop the image.
1091
1055
  *
1092
1056
  * @event 'beforeImageDrop'
1093
- * @blazorProperty 'OnImageDrop'
1094
1057
  */
1095
1058
  beforeImageDrop: EmitType<ImageDropEventArgs>;
1096
1059
  /**
@@ -1099,7 +1062,6 @@ export declare class RichTextEditor extends Component<HTMLElement> implements IN
1099
1062
  * {% codeBlock src='rich-text-editor/formatter/index.md' %}{% endcodeBlock %}
1100
1063
  *
1101
1064
  * @default null
1102
- * @blazorType object
1103
1065
  */
1104
1066
  formatter: IFormatter;
1105
1067
  keyboardModule: KeyboardEvents;
@@ -749,7 +749,7 @@ var RichTextEditor = /** @class */ (function (_super) {
749
749
  }
750
750
  if (e.action !== 'insert-link' &&
751
751
  e.action !== 'format-copy' && e.action !== 'format-paste' &&
752
- (!e.target || !e.target.classList.contains('e-mention')) &&
752
+ (!e.target || (e.target.classList.contains('e-mention') && e.code !== 'Tab')) &&
753
753
  (e.action && e.action !== 'paste' && e.action !== 'space'
754
754
  || e.which === 9 || (e.code === 'Backspace' && e.which === 8))) {
755
755
  var FormatPainterEscapeAction = false;
@@ -1055,6 +1055,8 @@ var RichTextEditor = /** @class */ (function (_super) {
1055
1055
  this.toolbarModule.destroy();
1056
1056
  }
1057
1057
  this.notify(events.moduleDestroy, {});
1058
+ _super.prototype.destroy.call(this);
1059
+ this.isRendered = false;
1058
1060
  return;
1059
1061
  }
1060
1062
  this.notify(events.destroy, {});
@@ -1108,9 +1110,6 @@ var RichTextEditor = /** @class */ (function (_super) {
1108
1110
  this.removeAttributes();
1109
1111
  _super.prototype.destroy.call(this);
1110
1112
  this.isRendered = false;
1111
- if (this.enablePersistence) {
1112
- window.localStorage.removeItem(this.getModuleName() + this.element.id);
1113
- }
1114
1113
  };
1115
1114
  RichTextEditor.prototype.removeHtmlAttributes = function () {
1116
1115
  if (this.htmlAttributes) {
@@ -1240,9 +1239,10 @@ var RichTextEditor = /** @class */ (function (_super) {
1240
1239
  else {
1241
1240
  nVal = newProp[prop];
1242
1241
  }
1242
+ nVal = this.serializeValue(nVal);
1243
1243
  var val = this.editorMode === 'HTML' ? getEditValue(nVal, this) : nVal;
1244
1244
  if ((!isNOU(nVal) && nVal !== '') || prop === 'enterKey') {
1245
- this.value = this.serializeValue(((this.enableHtmlEncode) ? this.encode(decode(val)) : val));
1245
+ this.setProperties({ value: ((this.enableHtmlEncode) ? this.encode(decode(val)) : val) }, true);
1246
1246
  }
1247
1247
  this.updatePanelValue();
1248
1248
  if (this.inputElement) {
@@ -1790,10 +1790,6 @@ var RichTextEditor = /** @class */ (function (_super) {
1790
1790
  // eslint-disable-next-line
1791
1791
  var imgPadding = 12;
1792
1792
  var imgResizeBorder = 2;
1793
- if (isNOU(this.contentModule) || isNOU(this.contentModule.getEditPanel())) {
1794
- EventHandler.remove(this.contentModule.getDocument(), Browser.touchMoveEvent, this.imageModule.resizing);
1795
- return maxWidth;
1796
- }
1797
1793
  var editEle = this.contentModule.getEditPanel();
1798
1794
  var eleStyle = window.getComputedStyle(editEle);
1799
1795
  var editEleMaxWidth = editEle.offsetWidth - (imgPadding + imgResizeBorder +
@@ -1860,13 +1856,17 @@ var RichTextEditor = /** @class */ (function (_super) {
1860
1856
  heightValue = heightPercent && rteHeightPercent ? rteHeightPercent : rteHeight - (tbHeight + rzHeight) + 'px';
1861
1857
  }
1862
1858
  }
1863
- if (target !== 'windowResize') {
1859
+ if (target !== 'windowResize' || heightPercent) {
1864
1860
  if (this.iframeSettings.enable) {
1865
1861
  if (heightValue !== 'auto') {
1866
1862
  setStyleAttribute(cntEle, { height: heightValue, marginTop: topValue + 'px' });
1867
1863
  }
1868
1864
  }
1869
1865
  else {
1866
+ if (target === 'windowResize' && heightPercent) {
1867
+ // cntEle hide the borderBottom of RichTextEditor. so removed the 2px of cntEle height.
1868
+ heightValue = parseInt(heightValue) - 2 + 'px';
1869
+ }
1870
1870
  setStyleAttribute(cntEle, { height: heightValue, marginTop: topValue + 'px' });
1871
1871
  }
1872
1872
  }
@@ -2075,6 +2075,10 @@ var RichTextEditor = /** @class */ (function (_super) {
2075
2075
  this.toolbarModule.refreshToolbarOverflow();
2076
2076
  isExpand = this.toolbarModule.baseToolbar.toolbarObj.element.classList.contains(classes.CLS_EXPAND_OPEN);
2077
2077
  }
2078
+ if (this.iframeSettings.enable !== true) {
2079
+ // When resize the window,border bottom of cntEle and this.element border visible separatly.so none the cntEle borderBottom.
2080
+ this.contentModule.getPanel().style.borderBottom = 'none';
2081
+ }
2078
2082
  this.setContentHeight('windowResize', isExpand);
2079
2083
  this.notify(events.windowResize, null);
2080
2084
  };
@@ -163,7 +163,7 @@ export function setToolbarStatus(e, isPopToolbar, self) {
163
163
  }
164
164
  }
165
165
  else if ((typeof data["" + key] === 'string' || data["" + key] === null) &&
166
- getIndex(key, e.parent.toolbarSettings.items) > -1) {
166
+ getIndex(key, e.parent.toolbarSettings.items) >= -1) {
167
167
  var value = ((data["" + key]) ? data["" + key] : '');
168
168
  var result = '';
169
169
  switch (key) {
@@ -228,6 +228,10 @@ export function setToolbarStatus(e, isPopToolbar, self) {
228
228
  dropDown.fontSizeDropDown.dataBind();
229
229
  break;
230
230
  }
231
+ case 'bulletFormatList':
232
+ case 'numberFormatList': {
233
+ removeClass([e.tbElements[j]], [classes.CLS_ACTIVE]);
234
+ }
231
235
  }
232
236
  }
233
237
  }
@@ -755,29 +755,41 @@ export function updateDropDownLocale(self) {
755
755
  });
756
756
  }
757
757
  export var windowKeys = {
758
- 'Insert Link': 'Ctrl + K',
759
- 'Insert Image': 'Ctrl + Shift + I',
760
- 'Create Table': 'Ctrl + Shift + E',
761
- 'Undo': 'Ctrl + Z',
762
- 'Redo': 'Ctrl + Y',
763
- 'Copy': 'Ctrl + C',
764
- 'Cut': 'Ctrl + X',
765
- 'Paste': 'Ctrl + V',
766
- 'Bold': 'Ctrl + B',
767
- 'Italic': 'Ctrl + I',
768
- 'Underline': 'Ctrl + U',
769
- 'Strikethrough': 'Ctrl + Shift + S',
770
- 'Upper Case': 'Ctrl + Shift + U',
771
- 'Lower Case': 'Ctrl + Shift + L',
772
- 'Superscript': 'Ctrl + Shift + =',
773
- 'Subscript': 'Ctrl + =',
774
- 'Source Code': 'Ctrl + Shift + H',
775
- 'Maximize': 'Ctrl + Shift + F',
758
+ 'Insert Link': 'Ctrl+K',
759
+ 'Insert Image': 'Ctrl+Shift+I',
760
+ 'Create Table': 'Ctrl+Shift+E',
761
+ 'Undo': 'Ctrl+Z',
762
+ 'Redo': 'Ctrl+Y',
763
+ 'Copy': 'Ctrl+C',
764
+ 'Cut': 'Ctrl+X',
765
+ 'Paste': 'Ctrl+V',
766
+ 'Bold': 'Ctrl+B',
767
+ 'Italic': 'Ctrl+I',
768
+ 'Underline': 'Ctrl+U',
769
+ 'Strikethrough': 'Ctrl+Shift+S',
770
+ 'Upper Case': 'Ctrl+Shift+U',
771
+ 'Lower Case': 'Ctrl+Shift+L',
772
+ 'Superscript': 'Ctrl+Shift+=',
773
+ 'Subscript': 'Ctrl+=',
774
+ 'Code View': 'Ctrl+Shift+H',
775
+ 'Maximize': 'Ctrl+Shift+F',
776
776
  'Minimize': 'Esc',
777
- 'Clear Format': 'Ctrl + Shift + R',
778
- 'Numbered List': 'Ctrl + Shift + O',
779
- 'Bulleted List': 'Ctrl + Alt + O',
780
- 'Format Painter': 'Alt + Shift + C, Alt + Shift + V'
777
+ 'Clear Format': 'Ctrl+Shift+R',
778
+ 'Numbered List': 'Ctrl+Shift+O',
779
+ 'Bulleted List': 'Ctrl+Alt+O',
780
+ 'Number Format List': 'Ctrl+Shift+O',
781
+ 'Bullet Format List': 'Ctrl+Alt+O',
782
+ 'Insert Audio': 'Ctrl+Shift+A',
783
+ 'Insert Video': 'Ctrl+Shift+V',
784
+ 'Increase Indent': 'Ctrl+]',
785
+ 'Decrease Indent': 'Ctrl+[',
786
+ 'Decrease Fontsize': 'Ctrl+Shift+<',
787
+ 'Increase Fontsize': 'Ctrl+Shift+>',
788
+ 'Justify Center': 'Ctrl+E',
789
+ 'Justify Full': 'Ctrl+J',
790
+ 'Justify Left': 'Ctrl+L',
791
+ 'Justify Right': 'Ctrl+R',
792
+ 'Format Painter': 'Alt+Shift+C, Alt+Shift+V'
781
793
  };
782
794
  export var defaultEmojiIcons = [{
783
795
  name: 'Smilies & People', code: '1F600', iconCss: 'e-emoji', icons: [{ code: '1F600', desc: 'Grinning face' },
@@ -1,4 +1,4 @@
1
- import { Property, ChildProperty, Complex, Event, EmitType } from '@syncfusion/ej2-base';import { AjaxSettings, AjaxSettingsModel, ContextMenuSettings, ContextMenuSettingsModel, BeforeSendEventArgs } from '@syncfusion/ej2-filemanager';import { DetailsViewSettings, DetailsViewSettingsModel, NavigationPaneSettings } from '@syncfusion/ej2-filemanager';import { NavigationPaneSettingsModel, SearchSettings, SearchSettingsModel, SortOrder } from '@syncfusion/ej2-filemanager';import { ToolbarSettingsModel as FileToolbarSettingsModel, ToolbarSettings as FileToolbarSettings } from '@syncfusion/ej2-filemanager';import { UploadSettings, UploadSettingsModel, ViewType } from '@syncfusion/ej2-filemanager';import { SaveFormat, DisplayLayoutOptions } from '../../common';import { ToolbarType, ActionOnScroll, ToolbarItems } from '../base/enum';import { IToolbarItems, IDropDownItemModel, ColorModeType, IToolsItemConfigs, IListDropDownModel, EmojiIconsSet } from '../base/interface';import { backgroundColor, fontColor, fontFamily, fontSize, formatItems, predefinedItems, TableStyleItems, numberFormatList, bulletFormatList, defaultEmojiIcons } from './items';
1
+ import { Property, ChildProperty, Complex, Event, EmitType } from '@syncfusion/ej2-base';import { AjaxSettings, AjaxSettingsModel, ContextMenuSettings, ContextMenuSettingsModel, BeforeSendEventArgs } from '@syncfusion/ej2-filemanager';import { DetailsViewSettings, DetailsViewSettingsModel, NavigationPaneSettings } from '@syncfusion/ej2-filemanager';import { NavigationPaneSettingsModel, SearchSettings, SearchSettingsModel, SortOrder } from '@syncfusion/ej2-filemanager';import { ToolbarSettingsModel as FileToolbarSettingsModel, ToolbarSettings as FileToolbarSettings } from '@syncfusion/ej2-filemanager';import { UploadSettings, UploadSettingsModel, ViewType } from '@syncfusion/ej2-filemanager';import { SaveFormat, DisplayLayoutOptions } from '../../common';import { ToolbarType, ActionOnScroll, ToolbarItems, ToolbarConfigItems } from '../base/enum';import { IToolbarItems, IDropDownItemModel, ColorModeType, IToolsItemConfigs, IListDropDownModel, EmojiIconsSet } from '../base/interface';import { backgroundColor, fontColor, fontFamily, fontSize, formatItems, predefinedItems, TableStyleItems, numberFormatList, bulletFormatList, defaultEmojiIcons } from './items';
2
2
 
3
3
  /**
4
4
  * Interface for a class ToolbarSettings
@@ -36,7 +36,7 @@ export interface ToolbarSettingsModel {
36
36
  * @default ['Bold', 'Italic', 'Underline', '|', 'Formats', 'Alignments', 'OrderedList',
37
37
  * 'UnorderedList', '|', 'CreateLink', 'Image', '|', 'SourceCode', 'Undo', 'Redo']
38
38
  */
39
- items?: (string | IToolbarItems)[];
39
+ items?: (string |ToolbarConfigItems | IToolbarItems)[];
40
40
 
41
41
  /**
42
42
  * Using this property, Modify the default toolbar item configuration like icon class.
@@ -570,10 +570,9 @@ export interface QuickToolbarSettingsModel {
570
570
  /**
571
571
  * Specifies the items to render in quick toolbar, when text selected.
572
572
  *
573
- * @default ['Cut', 'Copy', 'Paste']
574
-
573
+ * @default null
575
574
  */
576
- text?: (string | IToolbarItems)[];
575
+ text?: (string | ToolbarConfigItems | IToolbarItems)[];
577
576
 
578
577
  /**
579
578
  * Specifies the items to render in quick toolbar, when table selected.