Skip to content

Commit

Permalink
fix(app-admin): only show images in Lexical File Manager [skip ci]
Browse files Browse the repository at this point in the history
  • Loading branch information
Pavel910 committed Jul 17, 2024
1 parent 067528f commit 56df774
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,13 @@ interface LexicalEditorProps extends Omit<RichTextEditorProps, "theme"> {
theme?: Theme;
}

const imagesOnly = ["image/*"];

export const LexicalEditor = (props: LexicalEditorProps) => {
const { theme } = useTheme();

return (
<FileManager>
<FileManager accept={imagesOnly}>
{({ showFileManager }) => (
<BaseEditor
{...props}
Expand Down

0 comments on commit 56df774

Please sign in to comment.