suneditor 3.0.0-beta.13 → 3.0.0-beta.14

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.
@@ -20,7 +20,10 @@ declare namespace _default {
20
20
  };
21
21
  /**
22
22
  * Creates a new instance of the SunEditor
23
- * @param {Element|Object<string, {target: Element, options: EditorFrameOptions_suneditor}>} target - Target element or multi-root object
23
+ * @param {Element|string|Object<string, {target: Element, options: EditorFrameOptions_suneditor}>} target
24
+ * - Element: The direct DOM element to initialize the editor on.
25
+ * - string: A CSS selector string. The corresponding element is selected using `document.querySelector`.
26
+ * - Object: For multi-root setup. Each key maps to a config with `{target, options}`.
24
27
  * @param {EditorInitOptions_suneditor} options - Initialization options
25
28
  * @param {EditorInitOptions_suneditor} [_init_options] - Optional preset initialization options
26
29
  * @returns {Editor} - Instance of the SunEditor
@@ -29,6 +32,7 @@ declare namespace _default {
29
32
  function create(
30
33
  target:
31
34
  | Element
35
+ | string
32
36
  | {
33
37
  [x: string]: {
34
38
  target: Element;
@@ -42,10 +46,10 @@ declare namespace _default {
42
46
  export default _default;
43
47
  export type EditorFrameOptions_suneditor = import('./core/section/options').EditorFrameOptions;
44
48
  export type EditorInitOptions_suneditor = import('./core/section/options').EditorInitOptions;
45
- import EditorInjector from './editorInjector';
46
- import Plugins from './plugins';
47
- import Modules from './modules';
48
- import Langs from './langs';
49
- import Helper from './helper';
49
+ import editorInjector from './editorInjector';
50
+ import plugins from './plugins';
51
+ import modules from './modules';
52
+ import langs from './langs';
53
+ import helper from './helper';
50
54
  import Editor from './core/editor';
51
- export { EditorInjector, Plugins, Modules, Langs, Helper };
55
+ export { editorInjector, plugins, modules, langs, helper };