Skip to content

Commit

Permalink
fix editor styles #1088 (#1089)
Browse files Browse the repository at this point in the history
  • Loading branch information
2nthony authored Feb 28, 2025
1 parent 27e96b6 commit 4053d13
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions next/components/editor/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import LoadingEditor from "./loading";

const RichEditor = dynamic(
() => import("@osn/common-ui").then((mod) => mod.RichEditor),
{ ssr: false },
{ ssr: false, loading: () => <LoadingEditor /> },
);

export default function Editor(props) {
Expand All @@ -20,10 +20,7 @@ export default function Editor(props) {
"[&_.rich-editor]:bg-fillBgPrimary",
)}
>
<LoadingEditor />
<div className="absolute top-0 right-0 bottom-0 left-0 z-10">
<RichEditor {...props} onChangePreviewMode={setIsPreview} />
</div>
<RichEditor {...props} onChangePreviewMode={setIsPreview} />
</div>
);
}

0 comments on commit 4053d13

Please sign in to comment.