feat: fix heading

This commit is contained in:
Nevo David 2025-07-17 17:26:30 +07:00
parent 1e288ab08a
commit e18a24fcaa
1 changed files with 2 additions and 2 deletions

View File

@ -6,9 +6,9 @@ export const HeadingComponent: FC<{
editor: any;
currentValue: string;
}> = ({ editor }) => {
const setHeading = useCallback((level: number) => () => {
const setHeading = (level: string) => () => {
editor.commands.toggleHeading({ level })
}, []);
};
return (
<div className="select-none cursor-pointer w-[40px] p-[5px] text-center relative group">