diff --git a/apps/cs/src/pages/menu/ui/type-menu-form.tsx b/apps/cs/src/pages/menu/ui/type-menu-form.tsx
index 9f2864c3b..650ddcb96 100644
--- a/apps/cs/src/pages/menu/ui/type-menu-form.tsx
+++ b/apps/cs/src/pages/menu/ui/type-menu-form.tsx
@@ -1,5 +1,6 @@
import dynamic from "next/dynamic";
import dayjs from "dayjs";
+import { useEffect, useRef } from "react";
import type { UseFormReturn } from "react-hook-form";
import {
DatePicker,
@@ -30,12 +31,91 @@ const Editor = dynamic(
{ ssr: false },
);
+const DEFAULT_HELP_CONTENT = `
+
+
+
+
+
+
+
+ κΈ°λ₯ κ°μ
+
+ μλ λ°±μ
κΈ°λ₯μ μ¬μ©μμ λ°μ΄ν°λ₯Ό μ€μ λ μ£ΌκΈ°μ 쑰건μ λ°λΌ μλμΌλ‘ μ μ₯μμ λ°±μ
ν©λλ€.
+
+
+
+
+
+ μ¬μ© λ°©λ²
+
+
+
+ - μ€μ λ©λ΄μμ μλ λ°±μ
μ νμ±νν©λλ€.
+
+ - λ°±μ
μ£ΌκΈ°(μ: λ§€μΌ, λ§€μ£Ό)λ₯Ό μ νν©λλ€.
+
+ - λ°±μ
λμ ν΄λ λ° μ μ₯ μμΉλ₯Ό μ§μ ν©λλ€.
+
+ - μ€μ μ μ μ₯νλ©΄ μλμΌλ‘ λ°±μ
μ΄ μμλ©λλ€.
+
+
+
+
+
+
+
+ μ£Όμ κΈ°λ₯
+
+
+
+ - λ°±μ
μ£ΌκΈ° μ€μ
+
+ - ν΄λΌμ°λ λλ λ‘컬 μ μ₯μ μ ν
+
+ - λ°±μ
λ‘κ·Έ νμΈ
+
+ - μ€λ₯ λ°μ μ μλ¦Ό κΈ°λ₯
+
+
+
+
+
+
+
+ μ£Όμ μ¬ν
+
+
+
+ λ°±μ
μ μ₯μμ μ©λμ λ°λμ νμΈνμΈμ. μ μ₯ 곡κ°μ΄ λΆμ‘±νλ©΄ λ°±μ
μ΄ μ€ν¨ν μ μμ΅λλ€.
+
+
+
+
+
+
+
+
+
+`;
+
type TypeMenuFormProps = {
form: UseFormReturn;
menuType: MenuType;
};
function TypeMenuForm({ form, menuType }: TypeMenuFormProps) {
+ const hasSetDefaultHelpContent = useRef(false);
const handleIconClick = (icon: string) => {
form.setValue("iconNm", icon);
};
@@ -65,6 +145,19 @@ function TypeMenuForm({ form, menuType }: TypeMenuFormProps) {
form.setValue("menuPicDsgnYmd", dayjs(date).format("YYYYMMDD"));
};
+ useEffect(() => {
+ if (menuType === "INSIDE") {
+ const currentValue = form.getValues("menuHlpCn");
+ if ((!currentValue || currentValue.trim() === "") && !hasSetDefaultHelpContent.current) {
+ form.setValue("menuHlpCn", DEFAULT_HELP_CONTENT);
+ hasSetDefaultHelpContent.current = true;
+ }
+ } else {
+ // menuTypeμ΄ "INSIDE"κ° μλ λ ref 리μ
+ hasSetDefaultHelpContent.current = false;
+ }
+ }, [menuType, form]);
+
const getUrlPathPlaceholder = () => {
if (menuType === "CONTENTS") return "μ½ν
μΈ μ ν μ μλμΌλ‘ μ
λ ₯λ©λλ€.";
if (menuType === "BOARD") return "κ²μν μ ν μ μλμΌλ‘ μ
λ ₯λ©λλ€.";
diff --git a/packages/common/components/src/ui/lnb/index.tsx b/packages/common/components/src/ui/lnb/index.tsx
index b90868ef2..12b50e324 100644
--- a/packages/common/components/src/ui/lnb/index.tsx
+++ b/packages/common/components/src/ui/lnb/index.tsx
@@ -299,16 +299,29 @@ export function LNB({
-
+
λμλ§
-
+
{helpContent ? (
+ style={{
+ fontSize: '16px',
+ lineHeight: '1.5',
+ }}
+ >
+
]*>/gi, '
')
+ .replace(/<\/body>/gi, '
')
+ }}
+ style={{
+ fontSize: 'inherit',
+ }}
+ />
+
) : (
νμ¬ νμ΄μ§μ λν λμλ§μ΄ μμ΅λλ€.