eleven-solutions-common-website-unique-web 9.0.47 → 9.0.49
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.
|
@@ -14,13 +14,12 @@ import JoditEditor from "jodit-react";
|
|
|
14
14
|
const TemplateForm = () => {
|
|
15
15
|
const [name, setName] = useState("");
|
|
16
16
|
const [content, setContent] = useState("");
|
|
17
|
-
// const [placeholder, setPlaceholder] = React.useState("");
|
|
18
17
|
const placeholder = "";
|
|
19
18
|
const [isEditMode, setIsEditMode] = useState(false);
|
|
20
19
|
const editor = useRef(null);
|
|
21
20
|
const config = useMemo(() => ({
|
|
22
21
|
readonly: false,
|
|
23
|
-
placeholder: placeholder || "
|
|
22
|
+
placeholder: placeholder || "",
|
|
24
23
|
}), [placeholder]);
|
|
25
24
|
const validateForm = () => {
|
|
26
25
|
if (!name || !content) {
|
package/package.json
CHANGED
|
@@ -9,7 +9,6 @@ import JoditEditor from "jodit-react";
|
|
|
9
9
|
const TemplateForm = () => {
|
|
10
10
|
const [name, setName] = useState("");
|
|
11
11
|
const [content, setContent] = useState("");
|
|
12
|
-
// const [placeholder, setPlaceholder] = React.useState("");
|
|
13
12
|
const placeholder = "";
|
|
14
13
|
|
|
15
14
|
const [isEditMode, setIsEditMode] = useState<boolean>(false);
|
|
@@ -18,7 +17,7 @@ const TemplateForm = () => {
|
|
|
18
17
|
const config: Record<string, any> = useMemo(
|
|
19
18
|
() => ({
|
|
20
19
|
readonly: false,
|
|
21
|
-
placeholder: placeholder || "
|
|
20
|
+
placeholder: placeholder || "",
|
|
22
21
|
}),
|
|
23
22
|
[placeholder]
|
|
24
23
|
);
|