fix event
deskripsi: - mengubah tampilan text biasa ke html view - menambahkan text editor pada create & edit
This commit is contained in:
@@ -11,7 +11,6 @@ import { useRouter } from "next/navigation";
|
||||
import { useState } from "react";
|
||||
import "react-quill/dist/quill.snow.css";
|
||||
import { forum_funCreate } from "../fun/create/fun_create";
|
||||
import { Component_V3_TextEditor } from "@/app_modules/_global/component/new/comp_V3_text_editor";
|
||||
|
||||
export default function Forum_NewCreate() {
|
||||
const [data, setData] = useState<string>("");
|
||||
@@ -19,7 +18,7 @@ export default function Forum_NewCreate() {
|
||||
|
||||
return (
|
||||
<Stack>
|
||||
<Component_V3_TextEditor
|
||||
{/* <Component_V3_TextEditor
|
||||
data={data}
|
||||
onSetData={(val) => {
|
||||
setData(val);
|
||||
@@ -27,7 +26,7 @@ export default function Forum_NewCreate() {
|
||||
onSetLengthData={(val) => {
|
||||
setLengthData(val);
|
||||
}}
|
||||
/>
|
||||
/> */}
|
||||
|
||||
<Group position="apart">
|
||||
<ComponentGlobal_InputCountDown
|
||||
|
||||
@@ -2,7 +2,6 @@
|
||||
|
||||
import { MainColor } from "@/app_modules/_global/color/color_pallet";
|
||||
import ComponentGlobal_InputCountDown from "@/app_modules/_global/component/input_countdown";
|
||||
import { Component_V3_TextEditor } from "@/app_modules/_global/component/new/comp_V3_text_editor";
|
||||
import { funReplaceHtml } from "@/app_modules/_global/fun/fun_replace_html";
|
||||
import { maxInputLength } from "@/app_modules/_global/lib/maximal_setting";
|
||||
import { ComponentGlobal_NotifikasiBerhasil } from "@/app_modules/_global/notif_global/notifikasi_berhasil";
|
||||
@@ -45,7 +44,7 @@ export default function Forum_EditPosting() {
|
||||
return (
|
||||
<>
|
||||
<Stack>
|
||||
<Component_V3_TextEditor
|
||||
{/* <Component_V3_TextEditor
|
||||
data={data.diskusi}
|
||||
onSetData={(value) => {
|
||||
setData({
|
||||
@@ -57,7 +56,7 @@ export default function Forum_EditPosting() {
|
||||
console.log(value);
|
||||
setLengthData(value);
|
||||
}}
|
||||
/>
|
||||
/> */}
|
||||
|
||||
{/* <Paper withBorder shadow="lg" p={"xs"}>
|
||||
<ReactQuill
|
||||
|
||||
Reference in New Issue
Block a user