ct-rich-text-editor 1.1.8 → 1.2.0
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/README.md +94 -24
- package/dist/assets/style.css +1 -1
- package/dist/components/ConfigurableEditorWithAuth.d.ts +1 -1
- package/dist/{index-b5d35c27.js → index-6088a747.js} +2 -2
- package/dist/{index-b5d35c27.js.map → index-6088a747.js.map} +1 -1
- package/dist/{index-9cbd199b.js → index-7647a047.js} +2240 -2244
- package/dist/index-7647a047.js.map +1 -0
- package/dist/index.js +2 -2
- package/dist/pages/ConfigurableEditor/ConfigurableEditor.d.ts +5 -0
- package/package.json +1 -1
- package/dist/index-9cbd199b.js.map +0 -1
package/dist/index.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { m as E, l as g, E as n, g as v, n as h, k as C, h as b, v as w } from "./index-
|
|
1
|
+
import { m as E, l as g, E as n, g as v, n as h, k as C, h as b, v as w } from "./index-7647a047.js";
|
|
2
2
|
import "react";
|
|
3
3
|
import "axios";
|
|
4
4
|
import "@emotion/styled";
|
|
5
|
-
import "@lexical/utils";
|
|
6
5
|
import "lexical";
|
|
6
|
+
import "@lexical/utils";
|
|
7
7
|
import "react-dom";
|
|
8
8
|
import "@lexical/table";
|
|
9
9
|
import "@lexical/code";
|
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
2
|
import { EditorConfigTypes } from '../../types';
|
|
3
3
|
|
|
4
|
+
/**
|
|
5
|
+
* Handles editor state changes, retrieving root and selection.
|
|
6
|
+
*/
|
|
4
7
|
/**
|
|
5
8
|
* ConfigurableEditor component using Lexical.
|
|
6
9
|
* Includes plugins for various functionalities such as lists, tables, and formatting.
|
|
@@ -9,6 +12,8 @@ interface ConfigurableEditorProps {
|
|
|
9
12
|
config: EditorConfigTypes;
|
|
10
13
|
defaultFontFamilies: string[];
|
|
11
14
|
mentionUserList: string[];
|
|
15
|
+
initialContent?: string;
|
|
16
|
+
onChange?: (html: string) => void;
|
|
12
17
|
}
|
|
13
18
|
declare const ConfigurableEditor: React.FC<ConfigurableEditorProps>;
|
|
14
19
|
export default ConfigurableEditor;
|