suneditor 3.0.0-beta.8 → 3.0.0-beta.9

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 (37) hide show
  1. package/dist/suneditor.min.js +1 -1
  2. package/package.json +3 -3
  3. package/src/core/base/eventManager.js +9 -1
  4. package/src/core/section/constructor.js +19 -13
  5. package/src/helper/converter.js +1 -1
  6. package/src/helper/dom/domUtils.js +15 -0
  7. package/src/modules/ColorPicker.js +12 -10
  8. package/src/modules/Figure.js +2 -2
  9. package/src/plugins/command/blockquote.js +1 -0
  10. package/src/plugins/command/list_bulleted.js +1 -0
  11. package/src/plugins/command/list_numbered.js +1 -0
  12. package/src/plugins/dropdown/align.js +2 -0
  13. package/src/plugins/dropdown/backgroundColor.js +9 -5
  14. package/src/plugins/dropdown/font.js +6 -2
  15. package/src/plugins/dropdown/fontColor.js +9 -5
  16. package/src/plugins/dropdown/formatBlock.js +1 -0
  17. package/src/plugins/dropdown/lineHeight.js +2 -1
  18. package/src/plugins/dropdown/list.js +1 -0
  19. package/src/plugins/dropdown/table.js +15 -2
  20. package/src/plugins/input/fontSize.js +6 -2
  21. package/src/plugins/modal/link.js +1 -0
  22. package/types/core/section/constructor.d.ts +12 -6
  23. package/types/helper/dom/domUtils.d.ts +8 -0
  24. package/types/helper/index.d.ts +1 -0
  25. package/types/modules/ColorPicker.d.ts +5 -1
  26. package/types/plugins/command/blockquote.d.ts +1 -0
  27. package/types/plugins/command/list_bulleted.d.ts +1 -0
  28. package/types/plugins/command/list_numbered.d.ts +1 -0
  29. package/types/plugins/dropdown/align.d.ts +1 -0
  30. package/types/plugins/dropdown/backgroundColor.d.ts +1 -0
  31. package/types/plugins/dropdown/font.d.ts +1 -0
  32. package/types/plugins/dropdown/fontColor.d.ts +1 -0
  33. package/types/plugins/dropdown/formatBlock.d.ts +1 -0
  34. package/types/plugins/dropdown/lineHeight.d.ts +1 -0
  35. package/types/plugins/dropdown/list.d.ts +1 -0
  36. package/types/plugins/input/fontSize.d.ts +1 -0
  37. package/types/plugins/modal/link.d.ts +1 -0
@@ -38,6 +38,7 @@ declare class FontColor extends EditorInjector {
38
38
  * @param {?HTMLElement=} element - Node element where the cursor is currently located
39
39
  * @param {?HTMLElement=} target - The plugin's toolbar button element
40
40
  * @returns {boolean} - Whether the plugin is active
41
+ * - If it returns "undefined", it will no longer be called in this scope.
41
42
  */
42
43
  active(element?: (HTMLElement | null) | undefined, target?: (HTMLElement | null) | undefined): boolean;
43
44
  /**
@@ -29,6 +29,7 @@ declare class FormatBlock extends EditorInjector {
29
29
  * @param {?HTMLElement=} element - Node element where the cursor is currently located
30
30
  * @param {?HTMLElement=} target - The plugin's toolbar button element
31
31
  * @returns {boolean} - Whether the plugin is active
32
+ * - If it returns "undefined", it will no longer be called in this scope.
32
33
  */
33
34
  active(element?: (HTMLElement | null) | undefined, target?: (HTMLElement | null) | undefined): boolean;
34
35
  /**
@@ -32,6 +32,7 @@ declare class LineHeight extends EditorInjector {
32
32
  * @param {?HTMLElement=} element - Node element where the cursor is currently located
33
33
  * @param {?HTMLElement=} target - The plugin's toolbar button element
34
34
  * @returns {boolean} - Whether the plugin is active
35
+ * - If it returns "undefined", it will no longer be called in this scope.
35
36
  */
36
37
  active(element?: (HTMLElement | null) | undefined, target?: (HTMLElement | null) | undefined): boolean;
37
38
  /**
@@ -20,6 +20,7 @@ declare class List extends EditorInjector {
20
20
  * @param {?HTMLElement=} element - Node element where the cursor is currently located
21
21
  * @param {?HTMLElement=} target - The plugin's toolbar button element
22
22
  * @returns {boolean} - Whether the plugin is active
23
+ * - If it returns "undefined", it will no longer be called in this scope.
23
24
  */
24
25
  active(element?: (HTMLElement | null) | undefined, target?: (HTMLElement | null) | undefined): boolean;
25
26
  /**
@@ -114,6 +114,7 @@ declare class FontSize extends EditorInjector {
114
114
  * @param {?HTMLElement=} element - Node element where the cursor is currently located
115
115
  * @param {?HTMLElement=} target - The plugin's toolbar button element
116
116
  * @returns {boolean} - Whether the plugin is active
117
+ * - If it returns "undefined", it will no longer be called in this scope.
117
118
  */
118
119
  active(element?: (HTMLElement | null) | undefined, target?: (HTMLElement | null) | undefined): boolean;
119
120
  /**
@@ -86,6 +86,7 @@ declare class Link extends EditorInjector {
86
86
  * @description Executes the method that is called whenever the cursor position changes.
87
87
  * @param {?HTMLElement=} element - Node element where the cursor is currently located
88
88
  * @returns {boolean} - Whether the plugin is active
89
+ * - If it returns "undefined", it will no longer be called in this scope.
89
90
  */
90
91
  active(element?: (HTMLElement | null) | undefined): boolean;
91
92
  /**